diff --git a/node_modules/prettier-linter-helpers/LICENSE.md b/node_modules/prettier-linter-helpers/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..26864ebf2b104771fe669f7d2559bdb1a7c5859b --- /dev/null +++ b/node_modules/prettier-linter-helpers/LICENSE.md @@ -0,0 +1,24 @@ +# The MIT License (MIT) + +Copyright © 2017 Andres Suarez and Teddy Katz + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the “Software”), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/prettier-linter-helpers/README.md b/node_modules/prettier-linter-helpers/README.md new file mode 100644 index 0000000000000000000000000000000000000000..0e427536b2896a88445a02d7da544a04a9a12fe8 --- /dev/null +++ b/node_modules/prettier-linter-helpers/README.md @@ -0,0 +1,14 @@ +# prettier-linter-helpers + +Helper functions for exposing prettier changes within linting tools. + +This package contains: + +- `showInvisibles(string)` - Replace invisible characters with ones you can see for + for easier diffing. +- `generateDifferences(source, prettierSource)` - Generate an array of + differences between two strings. + +## Inspiration + +This code was extracted from [eslint-plugin-prettier v2.7.0](https://github.com/prettier/eslint-plugin-prettier/blob/9fac6b4039c1983b83073fa7af7864f0d7e1f2d3/eslint-plugin-prettier.js#L85-L215) diff --git a/node_modules/prettier-linter-helpers/index.d.ts b/node_modules/prettier-linter-helpers/index.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..3f093eb94eb6d3f8dd5eefc51376698ff8763c86 --- /dev/null +++ b/node_modules/prettier-linter-helpers/index.d.ts @@ -0,0 +1,41 @@ +/** + * Converts invisible characters to a commonly recognizable visible form. + * @param {string} str - The string with invisibles to convert. + * @returns {string} The converted string. + */ +export function showInvisibles(str: string): string; + +export type Difference = + | { + operation: 'insert'; + insertText: string; + offset: number; + } + | { + operation: 'delete'; + deleteText: string; + offset: number; + } + | { + operation: 'replace'; + insertText: string; + deleteText: string; + offset: number; + }; + +/** + * Generate results for differences between source code and formatted version. + * + * @param {string} source - The original source. + * @param {string} prettierSource - The Prettier formatted source. + * @returns {Difference[]} - An array containing { operation, offset, insertText, deleteText } + */ +export function generateDifferences( + source: string, + prettierSource: string +): Difference[]; +export namespace generateDifferences { + let INSERT: 'insert'; + let DELETE: 'delete'; + let REPLACE: 'replace'; +} diff --git a/node_modules/prettier-linter-helpers/index.js b/node_modules/prettier-linter-helpers/index.js new file mode 100644 index 0000000000000000000000000000000000000000..4fe62f4fe3235583622be047e0f7a6b1f1292b46 --- /dev/null +++ b/node_modules/prettier-linter-helpers/index.js @@ -0,0 +1,152 @@ +// @ts-check + +const diff = require('fast-diff'); + +const LINE_ENDING_RE = /\r\n|[\r\n\u2028\u2029]/; + +/** + * Converts invisible characters to a commonly recognizable visible form. + * @param {string} str - The string with invisibles to convert. + * @returns {string} The converted string. + */ +function showInvisibles(str) { + let ret = ''; + for (let i = 0; i < str.length; i++) { + switch (str[i]) { + case ' ': + ret += '·'; // Middle Dot, \u00B7 + break; + case '\n': + ret += '⏎'; // Return Symbol, \u23ce + break; + case '\t': + ret += '↹'; // Left Arrow To Bar Over Right Arrow To Bar, \u21b9 + break; + case '\r': + ret += '␍'; // Carriage Return Symbol, \u240D + break; + default: + ret += str[i]; + break; + } + } + return ret; +} + +/** @typedef {({operation: 'insert'; insertText: string; offset: number;} | {operation: 'delete'; deleteText: string; offset: number;} | {operation: 'replace'; insertText: string; deleteText: string; offset: number;})} Difference */ + +/** + * Generate results for differences between source code and formatted version. + * + * @param {string} source - The original source. + * @param {string} prettierSource - The Prettier formatted source. + * @returns {Difference[]} - An array containing { operation, offset, insertText, deleteText } + */ +function generateDifferences(source, prettierSource) { + // fast-diff returns the differences between two texts as a series of + // INSERT, DELETE or EQUAL operations. The results occur only in these + // sequences: + // /-> INSERT -> EQUAL + // EQUAL | /-> EQUAL + // \-> DELETE | + // \-> INSERT -> EQUAL + // Instead of reporting issues at each INSERT or DELETE, certain sequences + // are batched together and are reported as a friendlier "replace" operation: + // - A DELETE immediately followed by an INSERT. + // - Any number of INSERTs and DELETEs where the joining EQUAL of one's end + // and another's beginning does not have line endings (i.e. issues that occur + // on contiguous lines). + + const results = diff(source, prettierSource); + + /** @type {Difference[]} */ + const differences = []; + + /** @type {typeof results} */ + const batch = []; + let offset = 0; // NOTE: INSERT never advances the offset. + while (results.length) { + const result = /** @type {typeof results[number]} */ (results.shift()); + const op = result[0]; + const text = result[1]; + switch (op) { + case diff.INSERT: + case diff.DELETE: + batch.push(result); + break; + case diff.EQUAL: + if (results.length) { + if (batch.length) { + if (LINE_ENDING_RE.test(text)) { + flush(); + offset += text.length; + } else { + batch.push(result); + } + } else { + offset += text.length; + } + } + break; + default: + throw new Error(`Unexpected fast-diff operation "${op}"`); + } + if (batch.length && !results.length) { + flush(); + } + } + + return differences; + + function flush() { + let aheadDeleteText = ''; + let aheadInsertText = ''; + while (batch.length) { + const next = /** @type {typeof batch[number]} */ (batch.shift()); + const op = next[0]; + const text = next[1]; + switch (op) { + case diff.INSERT: + aheadInsertText += text; + break; + case diff.DELETE: + aheadDeleteText += text; + break; + case diff.EQUAL: + aheadDeleteText += text; + aheadInsertText += text; + break; + } + } + if (aheadDeleteText && aheadInsertText) { + differences.push({ + offset, + operation: generateDifferences.REPLACE, + insertText: aheadInsertText, + deleteText: aheadDeleteText, + }); + } else if (!aheadDeleteText && aheadInsertText) { + differences.push({ + offset, + operation: generateDifferences.INSERT, + insertText: aheadInsertText, + }); + } else if (aheadDeleteText && !aheadInsertText) { + differences.push({ + offset, + operation: generateDifferences.DELETE, + deleteText: aheadDeleteText, + }); + } + offset += aheadDeleteText.length; + } +} + +generateDifferences.INSERT = /** @type {const} */ ('insert'); +generateDifferences.DELETE = /** @type {const} */ ('delete'); +generateDifferences.REPLACE = /** @type {const} */ ('replace'); + +module.exports = { + showInvisibles, + generateDifferences, +}; diff --git a/node_modules/prettier-linter-helpers/package.json b/node_modules/prettier-linter-helpers/package.json new file mode 100644 index 0000000000000000000000000000000000000000..8ed419fe5767d9472636024cf853297fc20aabc4 --- /dev/null +++ b/node_modules/prettier-linter-helpers/package.json @@ -0,0 +1,43 @@ +{ + "name": "prettier-linter-helpers", + "version": "1.0.1", + "description": "Utilities to help expose prettier output in linting tools", + "contributors": [ + "Ben Scott", + "Teddy Katz" + ], + "main": "index.js", + "types": "index.d.ts", + "license": "MIT", + "repository": { + "type": "git", + "url": "git+https://github.com/prettier/prettier-linter-helpers.git" + }, + "bugs": { + "url": "https://github.com/prettier/prettier-linter-helpers/issues" + }, + "homepage": "https://github.com/prettier/prettier-linter-helpers#readme", + "files": [ + "index.js", + "index.d.ts" + ], + "dependencies": { + "fast-diff": "^1.1.2" + }, + "devDependencies": { + "@eslint/js": "^9.39.2", + "eslint": "^9.39.2", + "eslint-config-prettier": "^10.1.8", + "eslint-plugin-n": "^17.23.1 ", + "eslint-plugin-prettier": "^5.5.4", + "prettier": "^3.7.4" + }, + "engines": { + "node": ">=6.0.0" + }, + "scripts": { + "lint": "eslint . && prettier . --check", + "test": "node --test test/*.test.js", + "format": "eslint . --fix && prettier '**/*.{js,json,md,yml}' --write" + } +} \ No newline at end of file diff --git a/node_modules/prettier-plugin-organize-imports/index.js b/node_modules/prettier-plugin-organize-imports/index.js new file mode 100644 index 0000000000000000000000000000000000000000..2e408a218c367d056489cb70a798df3bf08c267a --- /dev/null +++ b/node_modules/prettier-plugin-organize-imports/index.js @@ -0,0 +1,101 @@ +/** + * @todo change these to their new locations (`prettier/plugins/`) with + * the next major release. (requires dropping Prettier 2.x support) + */ +// @ts-expect-error +const { parsers: babelParsers } = require('prettier/parser-babel'); +// @ts-expect-error +const { parsers: htmlParsers } = require('prettier/parser-html'); +// @ts-expect-error +const { parsers: typescriptParsers } = require('prettier/parser-typescript'); + +const { organize } = require('./lib/organize'); + +/** + * Organize the code's imports using the `organizeImports` feature of the TypeScript language service API. + * + * @param {string} code + * @param {import('prettier').ParserOptions} options + */ +const organizeImports = (code, options) => { + if (code.includes('// organize-imports-ignore') || code.includes('// tslint:disable:ordered-imports')) { + return code; + } + + const isRange = + Boolean(options.originalText) || + options.rangeStart !== 0 || + (options.rangeEnd !== Infinity && options.rangeEnd !== code.length); + + if (isRange) { + return code; // processing a range doesn't make sense + } + + try { + return organize(code, options); + } catch (error) { + if (process.env.DEBUG) { + console.error(error); + } + + return code; + } +}; + +/** + * Set `organizeImports` as the given parser's `preprocess` hook, or merge it with the existing one. + * + * @param {import('prettier').Parser} parser prettier parser + */ +const withOrganizeImportsPreprocess = (parser) => { + return { + ...parser, + /** + * @param {string} code + * @param {import('prettier').ParserOptions} options + */ + preprocess: (code, options) => + organizeImports(parser.preprocess ? parser.preprocess(code, options) : code, options), + }; +}; + +/** + * @type {import('prettier').Plugin} + */ +const plugin = { + options: { + organizeImportsSkipDestructiveCodeActions: { + type: 'boolean', + default: false, + category: 'OrganizeImports', + description: 'Skip destructive code actions like removing unused imports.', + }, + organizeImportsTypeOrder: { + type: 'choice', + choices: [ + { + value: 'last', + description: 'Places type imports last.', + }, + { + value: 'first', + description: 'Places type imports first.', + }, + { + value: 'inline', + description: 'Keeps type imports in place.', + }, + ], + category: 'OrganizeImports', + description: 'How to sort type imports when mixed in an import statement.', + }, + }, + parsers: { + babel: withOrganizeImportsPreprocess(babelParsers.babel), + 'babel-ts': withOrganizeImportsPreprocess(babelParsers['babel-ts']), + typescript: withOrganizeImportsPreprocess(typescriptParsers.typescript), + vue: withOrganizeImportsPreprocess(htmlParsers.vue), + }, +}; + +module.exports = plugin; diff --git a/node_modules/prettier-plugin-organize-imports/lib/apply-text-changes.js b/node_modules/prettier-plugin-organize-imports/lib/apply-text-changes.js new file mode 100644 index 0000000000000000000000000000000000000000..7647702cd26b82fb956c7fc026da476790e0bae4 --- /dev/null +++ b/node_modules/prettier-plugin-organize-imports/lib/apply-text-changes.js @@ -0,0 +1,13 @@ +/** + * Apply the given set of text changes to the input. + * + * @param {string} input + * @param {readonly import('typescript').TextChange[]} changes + */ +module.exports.applyTextChanges = (input, changes) => + changes.reduceRight((text, change) => { + const head = text.slice(0, change.span.start); + const tail = text.slice(change.span.start + change.span.length); + + return `${head}${change.newText}${tail}`; + }, input); diff --git a/node_modules/prettier-plugin-organize-imports/lib/find-tsconfig.js b/node_modules/prettier-plugin-organize-imports/lib/find-tsconfig.js new file mode 100644 index 0000000000000000000000000000000000000000..466bbc1cb6ac0341bd081a6612491a3f7c125764 --- /dev/null +++ b/node_modules/prettier-plugin-organize-imports/lib/find-tsconfig.js @@ -0,0 +1,9 @@ +const ts = require('typescript'); +const { memoize } = require('./memoize'); + +/** + * Find the path of the project's tsconfig from a path to a file in the project. + * + * @type {(path: string) => string | undefined} + */ +module.exports.findTsconfig = memoize((path) => ts.findConfigFile(path, ts.sys.fileExists)); diff --git a/node_modules/prettier-plugin-organize-imports/lib/get-compiler-options.js b/node_modules/prettier-plugin-organize-imports/lib/get-compiler-options.js new file mode 100644 index 0000000000000000000000000000000000000000..b1d2dee29fd8fb0a6759148572f4395f53db360b --- /dev/null +++ b/node_modules/prettier-plugin-organize-imports/lib/get-compiler-options.js @@ -0,0 +1,22 @@ +const { dirname } = require('path'); +const ts = require('typescript'); +const { memoize } = require('./memoize'); + +/** + * Get the compiler options from the path to a tsconfig. + * + * @param {string | undefined} tsconfig path to tsconfig + */ +function getCompilerOptions(tsconfig) { + const compilerOptions = tsconfig + ? ts.parseJsonConfigFileContent(ts.readConfigFile(tsconfig, ts.sys.readFile).config, ts.sys, dirname(tsconfig)) + .options + : ts.getDefaultCompilerOptions(); + + compilerOptions.allowJs = true; // for automatic JS support + compilerOptions.allowNonTsExtensions = true // for Vue support + + return compilerOptions; +} + +module.exports.getCompilerOptions = memoize(getCompilerOptions); diff --git a/node_modules/prettier-plugin-organize-imports/lib/get-language-service.js b/node_modules/prettier-plugin-organize-imports/lib/get-language-service.js new file mode 100644 index 0000000000000000000000000000000000000000..fd3350ec7e6ee1d21c56ee4cbae8149eda38035e --- /dev/null +++ b/node_modules/prettier-plugin-organize-imports/lib/get-language-service.js @@ -0,0 +1,100 @@ +const ts = require('typescript'); + +const { findTsconfig } = require('./find-tsconfig'); +const { getTypeScriptLanguageServiceHost } = require('./service-host'); + +/** + * Get the correct language service for the given parser. + * + * @param {import('prettier').ParserOptions['parser']} parser + * @param {string} filepath + * @param {string} code + * + * @returns {import('typescript').LanguageService} + */ +const getLanguageService = (parser, filepath, code) => { + const langaugeServiceHost = getTypeScriptLanguageServiceHost(filepath, code); + + const languageService = ts.createLanguageService(langaugeServiceHost); + + switch (parser) { + case 'vue': + return getVueDecoratedProxyLanguageService(langaugeServiceHost, languageService, filepath); + + /** @todo add svelte support */ + + default: + return languageService; + } +}; + +/** + * Decorate a language service so it can handle Vue files. + * + * @param {import('typescript').LanguageServiceHost} langaugeServiceHost + * @param {import('typescript').LanguageService} languageService + * @param {string} filepath + * + * @returns {import('typescript').LanguageService} + */ +function getVueDecoratedProxyLanguageService(langaugeServiceHost, languageService, filepath) { + const vueTscDir = tryCatch(() => require('path').dirname(require.resolve('vue-tsc/package.json'))); + + if (!vueTscDir) { + console.error('Please install vue-tsc to organize imports in Vue files.'); + return languageService; + } + + const { createProxyLanguageService, decorateLanguageServiceHost } = require( + require.resolve('@volar/typescript', { paths: [vueTscDir] }), + ); + + /** @type {import('@vue/language-core')} */ + const { + createLanguage, + createVueLanguagePlugin, + FileMap, + createParsedCommandLine, + getDefaultCompilerOptions, + } = require(require.resolve('@vue/language-core', { paths: [vueTscDir] })); + + const tsconfig = findTsconfig(filepath); + + const vueLanguagePlugin = createVueLanguagePlugin( + ts, + langaugeServiceHost.getCompilationSettings(), + tsconfig ? createParsedCommandLine(ts, ts.sys, tsconfig).vueOptions : getDefaultCompilerOptions(), + (s) => s, + ); + + const language = createLanguage([vueLanguagePlugin], new FileMap(ts.sys.useCaseSensitiveFileNames), () => {}); + + const snapshot = langaugeServiceHost.getScriptSnapshot(filepath); + + if (snapshot) { + language.scripts.set(filepath, snapshot); + } + + const { initialize, proxy } = createProxyLanguageService(languageService); + + initialize(language); + + decorateLanguageServiceHost(ts, language, langaugeServiceHost); + + return proxy; +} + +/** + * @template T + * @param {() => T} fn + * @returns {T | undefined} + */ +function tryCatch(fn) { + try { + return fn(); + } catch { + return undefined; + } +} + +module.exports = { getLanguageService }; diff --git a/node_modules/prettier-plugin-organize-imports/lib/memoize.js b/node_modules/prettier-plugin-organize-imports/lib/memoize.js new file mode 100644 index 0000000000000000000000000000000000000000..0e85cce62cdd764c215d52579815c2584202a23f --- /dev/null +++ b/node_modules/prettier-plugin-organize-imports/lib/memoize.js @@ -0,0 +1,23 @@ +/** + * Simple memoization utility that only uses the first argument as cache key and has no memory limit. + * + * @template {(...args: any[]) => any} F + * @param {F} f + * @returns {F} + */ +module.exports.memoize = (f) => { + const cache = new Map(); + + // @ts-ignore + return function (cacheKey, ...rest) { + if (cache.has(cacheKey)) { + return cache.get(cacheKey); + } + + const result = f(cacheKey, ...rest); + + cache.set(cacheKey, result); + + return result; + }; +}; diff --git a/node_modules/prettier-plugin-organize-imports/lib/organize.js b/node_modules/prettier-plugin-organize-imports/lib/organize.js new file mode 100644 index 0000000000000000000000000000000000000000..cd489a71db73bb66ba7b8e4ed15cd9490c2b3070 --- /dev/null +++ b/node_modules/prettier-plugin-organize-imports/lib/organize.js @@ -0,0 +1,33 @@ +const { sep, posix } = require('path'); +const { applyTextChanges } = require('./apply-text-changes'); +const { getLanguageService } = require('./get-language-service'); + +/** + * Organize the given code's imports. + * + * @param {string} code + * @param {import('prettier').ParserOptions} options + */ +module.exports.organize = ( + code, + { filepath = 'file.ts', organizeImportsSkipDestructiveCodeActions, parentParser, parser, organizeImportsTypeOrder }, +) => { + if (parentParser === 'vue') { + // we already did the preprocessing in the parent parser, so we skip the child parsers + return code; + } + + if (sep !== posix.sep) { + filepath = filepath.split(sep).join(posix.sep); + } + + const languageService = getLanguageService(parser, filepath, code); + + const fileChanges = languageService.organizeImports( + { type: 'file', fileName: filepath, skipDestructiveCodeActions: organizeImportsSkipDestructiveCodeActions }, + {}, + { organizeImportsTypeOrder }, + )[0]; + + return fileChanges ? applyTextChanges(code, fileChanges.textChanges) : code; +}; diff --git a/node_modules/prettier-plugin-organize-imports/lib/service-host.js b/node_modules/prettier-plugin-organize-imports/lib/service-host.js new file mode 100644 index 0000000000000000000000000000000000000000..b950cd3fa2a5001986a3353762523e9dbffda50a --- /dev/null +++ b/node_modules/prettier-plugin-organize-imports/lib/service-host.js @@ -0,0 +1,40 @@ +const { dirname } = require('path'); +const ts = require('typescript'); +const { findTsconfig } = require('./find-tsconfig'); + +const { getCompilerOptions } = require('./get-compiler-options'); + +/** + * Create the most basic TS language service host for the given file to make import sorting work. + * + * @param {string} path path to file + * @param {string} content file's content + * + * @returns {ts.LanguageServiceHost} + */ +function getTypeScriptLanguageServiceHost(path, content) { + const tsconfig = findTsconfig(path); + const compilerOptions = getCompilerOptions(tsconfig); + const snapshot = ts.ScriptSnapshot.fromString(content); + + return { + directoryExists: ts.sys.directoryExists, + fileExists: ts.sys.fileExists, + getDefaultLibFileName: ts.getDefaultLibFileName, + getDirectories: ts.sys.getDirectories, + readDirectory: ts.sys.readDirectory, + readFile: ts.sys.readFile, + getCurrentDirectory: () => (tsconfig ? dirname(tsconfig) : ts.sys.getCurrentDirectory()), + getCompilationSettings: () => compilerOptions, + getNewLine: () => ts.sys.newLine, + getScriptFileNames: () => [path], + getScriptVersion: () => '0', + getScriptSnapshot: (filePath) => { + if (filePath === path) { + return snapshot; + } + }, + }; +} + +module.exports = { getTypeScriptLanguageServiceHost }; diff --git a/node_modules/prettier-plugin-organize-imports/license b/node_modules/prettier-plugin-organize-imports/license new file mode 100644 index 0000000000000000000000000000000000000000..4f29ae19aaffd021e7633ec55dba1056e9d6dbdc --- /dev/null +++ b/node_modules/prettier-plugin-organize-imports/license @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Simon Hänisch + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/node_modules/prettier-plugin-organize-imports/package.json b/node_modules/prettier-plugin-organize-imports/package.json new file mode 100644 index 0000000000000000000000000000000000000000..fa4cf40ffa42c540228b29506558d96b933c69b6 --- /dev/null +++ b/node_modules/prettier-plugin-organize-imports/package.json @@ -0,0 +1,61 @@ +{ + "name": "prettier-plugin-organize-imports", + "version": "4.3.0", + "description": "Make prettier organize your imports using the TypeScript language service API.", + "keywords": [ + "prettier", + "prettier-plugin", + "typescript", + "imports", + "organize-imports" + ], + "main": "index.js", + "scripts": { + "test": "tsc && ava --verbose", + "preversion": "npm test" + }, + "files": [ + "index.js", + "lib", + "prettier.d.ts" + ], + "author": "Simon Haenisch (https://github.com/simonhaenisch)", + "license": "MIT", + "repository": "simonhaenisch/prettier-plugin-organize-imports", + "homepage": "https://github.com/simonhaenisch/prettier-plugin-organize-imports#readme", + "peerDependencies": { + "prettier": ">=2.0", + "typescript": ">=2.9", + "vue-tsc": "^2.1.0 || 3" + }, + "peerDependenciesMeta": { + "vue-tsc": { + "optional": true + } + }, + "devDependencies": { + "@types/node": "24.5.2", + "@vue/language-plugin-pug": "3.0.7", + "ava": "6.4.1", + "prettier": "3.6.2", + "typescript": "5.9.2", + "vue-tsc": "3.0.7" + }, + "prettier": { + "printWidth": 120, + "singleQuote": true, + "trailingComma": "all", + "useTabs": true, + "overrides": [ + { + "files": [ + "package.json", + "*.md" + ], + "options": { + "useTabs": false + } + } + ] + } +} diff --git a/node_modules/prettier-plugin-organize-imports/prettier.d.ts b/node_modules/prettier-plugin-organize-imports/prettier.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..2679cfd448132f7505a8ea0d077c260243faaac6 --- /dev/null +++ b/node_modules/prettier-plugin-organize-imports/prettier.d.ts @@ -0,0 +1,14 @@ +import ts = require('typescript'); + +declare module 'prettier' { + interface Options { + organizeImportsSkipDestructiveCodeActions?: boolean; + organizeImportsTypeOrder?: ts.OrganizeImportsTypeOrder; + } + interface ParserOptions { + organizeImportsSkipDestructiveCodeActions?: boolean; + organizeImportsTypeOrder?: ts.OrganizeImportsTypeOrder; + } +} + +export {}; diff --git a/node_modules/prettier-plugin-organize-imports/readme.md b/node_modules/prettier-plugin-organize-imports/readme.md new file mode 100644 index 0000000000000000000000000000000000000000..6fe3c355eac17a74e5d210e0ed9e1059d937940f --- /dev/null +++ b/node_modules/prettier-plugin-organize-imports/readme.md @@ -0,0 +1,97 @@ +[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/simonhaenisch/prettier-plugin-organize-imports/test.yml?label=CI)](https://github.com/simonhaenisch/prettier-plugin-organize-imports/actions?query=branch%3Amaster) + +# Prettier Plugin: Organize Imports + +> Make sure that your import statements stay consistent no matter who writes them and what their preferences are. + +A plugin that makes Prettier organize your imports (i. e. sorts, combines and removes unused ones) using the `organizeImports` feature of the TypeScript language service API. This is the same as using the "Organize Imports" action in VS Code. + +**Features** + +- 👌 Dependency-free (just peer-dependencies you probably already have). +- 💪 Supports `.js`, `.jsx`, `.ts`, `.tsx` and `.vue` files. +- 🚀 Zero config. +- 🤓 No more weird diffs or annoying merge conflicts in PRs caused by import statements. +- 🤯 If your editor supports auto-imports, you'll stop thinking about your imports so much that you won't even care about their order anymore. + +**Caveat** + +This plugin inherits, extends, and then overrides the built-in Prettier parsers for `babel`, `babel-ts`, `typescript` and `vue`. This means that it is incompatible with other plugins that do the same; only the last loaded plugin that exports one of those parsers will function. + +## Installation + +```sh +npm install --save-dev prettier-plugin-organize-imports +``` + +_Note that `prettier` and `typescript` are peer dependencies, so make sure you have those installed in your project._ + +## Usage + +### Prettier 3 + +Automatic plugin discovery [has been removed](https://prettier.io/blog/2023/07/05/3.0.0.html#plugin-search-feature-has-been-removed-14759httpsgithubcomprettierprettierpull14759-by-fiskerhttpsgithubcomfisker). Thus you need to configure Prettier to use the plugin according to the [Plugins docs](https://prettier.io/docs/en/plugins.html), for example by adding it to the `plugins` config option: + +```json +{ + "plugins": ["prettier-plugin-organize-imports"] +} +``` + +### Prettier 2 + +The plugin will be loaded by Prettier automatically. No configuration needed. + +Note that automatic plugin discovery is not supported with some package managers, e. g. Yarn PnP (see https://github.com/prettier/prettier/issues/8474). In that case follow the instructions for Prettier 3 above. + +## Configuration + +### Skip Files + +Files containing the substring `// organize-imports-ignore` or `// tslint:disable:ordered-imports` are skipped. + +### Skip Destructive Code Actions + +If you don't want destructive code actions (like removing unused imports), you can enable the option `organizeImportsSkipDestructiveCodeActions` via your Prettier config. + +```json +{ + "organizeImportsSkipDestructiveCodeActions": true +} +``` + +## Compatibility + +### ESLint + +For compatibility with [ESLint](https://eslint.org/) or other linters, see ["Integrating with Linters"](https://prettier.io/docs/en/integrating-with-linters.html) in the Prettier docs. You should have any import order rules/plugins disabled. + +### React + +Depending on your configuration, if you need the `React` import to stay even if it's "unused" (i.e. only needed for the JSX factory), make sure to have the `jsx` option set to `react` in your `tsconfig.json`. For more details [click here](https://www.typescriptlang.org/docs/handbook/jsx.html#basic-usage). + +### Vue.js + +Make sure that you have the optional peer dependency `vue-tsc` installed. + +``` +npm install --save-dev vue-tsc +``` + +If you're using Vue.js with Pug templates, you'll also need to install `@vue/language-plugin-pug` as a dev dependency, and configure it in `vueCompilerOptions` (see [usage](https://www.npmjs.com/package/@vue/language-plugin-pug)). + +## Debug Logs + +If something doesn't work, you can try to prefix your `prettier` command with `DEBUG=true` which will enable this plugin to print some logs. + +## Rationale/Disclaimer + +This plugin acts outside of [Prettier's scope](https://prettier.io/docs/en/rationale#what-prettier-is-_not_-concerned-about) because _"Prettier only prints code. It does not transform it."_, and technically sorting is a code transformation because it changes the AST (this plugin even removes code, i. e. unused imports). In my opinion however, the import statements are not _really_ part of the code, they are merely directives that instruct the module system where to find the code (only true as long as your imports are side-effects free regarding the global scope, i. e. import order doesn't matter), comparable with `using` directives in C# or `#include` preprocessing directives in C. Therefore the practical benefits outweigh sticking with the philosophy in this case. + +## Changelog + +See [changelog.md](/changelog.md). + +## License + +[MIT](/license). diff --git a/node_modules/prettier-plugin-tailwindcss/LICENSE b/node_modules/prettier-plugin-tailwindcss/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..5c3a44f199d2d50b7817b0fa7bd61bc5b6c4eb61 --- /dev/null +++ b/node_modules/prettier-plugin-tailwindcss/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Tailwind Labs Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/node_modules/prettier-plugin-tailwindcss/README.md b/node_modules/prettier-plugin-tailwindcss/README.md new file mode 100644 index 0000000000000000000000000000000000000000..f6caa8e09214fb38297a21eec837fa40e12ce677 --- /dev/null +++ b/node_modules/prettier-plugin-tailwindcss/README.md @@ -0,0 +1,328 @@ +prettier-plugin-tailwindcss + +A [Prettier v3+](https://prettier.io/) plugin for Tailwind CSS v3.0+ that automatically sorts classes based on [our recommended class order](https://tailwindcss.com/blog/automatic-class-sorting-with-prettier#how-classes-are-sorted). + +## Installation + +To get started, install `prettier-plugin-tailwindcss` as a dev-dependency: + +```sh +npm install -D prettier prettier-plugin-tailwindcss +``` + +Then add the plugin to your [Prettier configuration](https://prettier.io/docs/en/configuration.html): + +```json5 +// .prettierrc +{ + "plugins": ["prettier-plugin-tailwindcss"] +} +``` + +When using a JavaScript config, you can import the types for IntelliSense: + +```js +// prettier.config.js + +/** @type {import('prettier').Config & import('prettier-plugin-tailwindcss').PluginOptions} */ +export default { + plugins: ["prettier-plugin-tailwindcss"], +} +``` + +## Upgrading to v0.5.x + +As of v0.5.x, this plugin now requires Prettier v3 and is ESM-only. This means it cannot be loaded via `require()`. For more information see our [upgrade guide](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/issues/207#issuecomment-1698071122). + +## Options + +### Specifying your Tailwind stylesheet path (Tailwind CSS v4+) + +When using Tailwind CSS v4 you must specify your CSS file entry point, which includes your theme, custom utilities, and other Tailwind configuration options. To do this, use the `tailwindStylesheet` option in your Prettier configuration. + +Note that paths are resolved relative to the Prettier configuration file. + +```json5 +// .prettierrc +{ + "tailwindStylesheet": "./resources/css/app.css" +} +``` + +### Specifying your Tailwind JavaScript config path (Tailwind CSS v3) + +To ensure that the class sorting takes into consideration any of your project's Tailwind customizations, it needs access to your [Tailwind configuration file](https://tailwindcss.com/docs/configuration) (`tailwind.config.js`). + +By default the plugin will look for this file in the same directory as your Prettier configuration file. However, if your Tailwind configuration is somewhere else, you can specify this using the `tailwindConfig` option in your Prettier configuration. + +Note that paths are resolved relative to the Prettier configuration file. + +```json5 +// .prettierrc +{ + "tailwindConfig": "./styles/tailwind.config.js" +} +``` + +If a local configuration file cannot be found the plugin will fallback to the default Tailwind configuration. + +## Sorting non-standard attributes + +By default this plugin sorts classes in the `class` attribute, any framework-specific equivalents like `className`, `:class`, `[ngClass]`, and any Tailwind `@apply` directives. + +You can sort additional attributes using the `tailwindAttributes` option, which takes an array of attribute names: + +```json5 +// .prettierrc +{ + "tailwindAttributes": ["myClassList"] +} +``` + +With this configuration, any classes found in the `myClassList` attribute will be sorted: + +```jsx +function MyButton({ children }) { + return ( + + ); +} +``` + +### Using regex patterns + +You can also use regular expressions to match multiple attributes. Patterns should be enclosed in forward slashes. Note that JS regex literals are not supported with Prettier: + +```json5 +// .prettierrc +{ + "tailwindAttributes": ["myClassList", "/data-.*/"] +} +``` + +This example will sort classes in the `myClassList` attribute as well as any attribute starting with `data-`: + +```jsx +function MyButton({ children }) { + return ( + + ); +} +``` + +## Sorting classes in function calls + +In addition to sorting classes in attributes, you can also sort classes in strings provided to function calls. This is useful when working with libraries like [clsx](https://github.com/lukeed/clsx) or [cva](https://cva.style/). + +You can sort classes in function calls using the `tailwindFunctions` option, which takes a list of function names: + +```json5 +// .prettierrc +{ + "tailwindFunctions": ["clsx"] +} +``` + +With this configuration, any classes in `clsx()` function calls will be sorted: + +```jsx +import clsx from 'clsx' + +function MyButton({ isHovering, children }) { + let classes = clsx( + 'rounded bg-blue-500 px-4 py-2 text-base text-white', + { + 'bg-blue-700 text-gray-100': isHovering, + }, + ) + + return ( + + ) +} +``` + +## Sorting classes in template literals + +This plugin also enables sorting of classes in tagged template literals. + +You can sort classes in template literals using the `tailwindFunctions` option, which takes a list of function names: + +```json5 +// .prettierrc +{ + "tailwindFunctions": ["tw"], +} +``` + +With this configuration, any classes in template literals tagged with `tw` will automatically be sorted: + +```jsx +import { View, Text } from 'react-native' +import tw from 'twrnc' + +function MyScreen() { + return ( + + Hello World + + ) +} +``` + +This feature can be used with third-party libraries like `twrnc` or you can create your own tagged template by defining this "identity" function: + +```js +const tw = (strings, ...values) => String.raw({ raw: strings }, ...values) +``` + +Once added, tag your strings with the function and the plugin will sort them: + +```js +const mySortedClasses = tw`bg-white p-4 dark:bg-black` +``` + +## Public API + +If you want to use the Tailwind class sorting logic outside of Prettier, import from the +`sorter` entrypoint: + +```js +import { createSorter } from 'prettier-plugin-tailwindcss/sorter' + +let sorter = await createSorter({ + base: '/path/to/project', + stylesheetPath: './app.css', +}) + +// Sort HTML class attributes (space-separated strings) +let sorted = sorter.sortClassAttributes([ + 'sm:bg-tomato bg-red-500', + 'p-4 m-2' +]) +// Returns: ['bg-red-500 sm:bg-tomato', 'm-2 p-4'] + +// Sort class lists (arrays of class names) +let sortedLists = sorter.sortClassLists([ + ['sm:bg-tomato', 'bg-red-500'], + ['p-4', 'm-2'] +]) +// Returns: [['bg-red-500', 'sm:bg-tomato'], ['m-2', 'p-4']] +``` + +### API Options + +The `createSorter` function accepts the following options: + +- **`base`** (optional): The directory used to resolve relative file paths. Defaults to the current working directory. +- **`filepath`** (optional): The path to the file being formatted. When provided, Tailwind CSS is resolved relative to this path. +- **`configPath`** (optional): Path to the Tailwind CSS config file (v3). Paths are resolved relative to `base`. +- **`stylesheetPath`** (optional): Path to the CSS stylesheet used by Tailwind CSS (v4+). Paths are resolved relative to `base`. +- **`preserveWhitespace`** (optional): Whether to preserve whitespace around classes. Default: `false`. +- **`preserveDuplicates`** (optional): Whether to preserve duplicate classes. Default: `false`. + +### Sorter Methods + +The sorter object returned by `createSorter` has two methods: + +- **`sortClassAttributes(classes: string[]): string[]`** + Sorts one or more HTML class attributes. Each element should be a space-separated string of class names (like the value of an HTML `class` attribute). + +- **`sortClassLists(classes: string[][]): (string | null)[][]`** + Sorts one or more class lists. Each element should be an array of individual class names. When removing duplicates (default behavior), duplicate classes are replaced with `null` in the output. + +### Using regex patterns + +Like the `tailwindAttributes` option, the `tailwindFunctions` option also supports regular expressions to match multiple function names. Patterns should be enclosed in forward slashes. Note that JS regex literals are not supported with Prettier. + +## Preserving whitespace + +This plugin automatically removes unnecessary whitespace between classes to ensure consistent formatting. If you prefer to preserve whitespace, you can use the `tailwindPreserveWhitespace` option: + +```json5 +// .prettierrc +{ + "tailwindPreserveWhitespace": true, +} +``` + +With this configuration, any whitespace surrounding classes will be preserved: + +```jsx +import clsx from 'clsx' + +function MyButton({ isHovering, children }) { + return ( + + ) +} +``` + +## Preserving duplicate classes + +This plugin automatically removes duplicate classes from your class lists. However, this can cause issues in some templating languages, like Fluid or Blade, where we can't distinguish between classes and the templating syntax. + +If removing duplicate classes is causing issues in your project, you can use the `tailwindPreserveDuplicates` option to disable this behavior: + +```json5 +// .prettierrc +{ + "tailwindPreserveDuplicates": true, +} +``` + +With this configuration, anything we perceive as duplicate classes will be preserved: + +```html +
+
+``` + +## Compatibility with other Prettier plugins + +This plugin uses Prettier APIs that can only be used by one plugin at a time, making it incompatible with other Prettier plugins implemented the same way. To solve this we've added explicit per-plugin workarounds that enable compatibility with the following Prettier plugins: + +- `@ianvs/prettier-plugin-sort-imports` +- `@prettier/plugin-pug` +- `@shopify/prettier-plugin-liquid` +- `@trivago/prettier-plugin-sort-imports` +- `prettier-plugin-astro` +- `prettier-plugin-css-order` +- `prettier-plugin-jsdoc` +- `prettier-plugin-multiline-arrays` +- `prettier-plugin-organize-attributes` +- `prettier-plugin-organize-imports` +- `prettier-plugin-svelte` +- `prettier-plugin-sort-imports` + +One limitation with this approach is that `prettier-plugin-tailwindcss` *must* be loaded last. + +```json5 +// .prettierrc +{ + // .. + "plugins": [ + "prettier-plugin-svelte", + "prettier-plugin-organize-imports", + "prettier-plugin-tailwindcss" // MUST come last + ] +} +``` diff --git a/node_modules/prettier-plugin-tailwindcss/package.json b/node_modules/prettier-plugin-tailwindcss/package.json new file mode 100644 index 0000000000000000000000000000000000000000..4a967fe70a221e3ea758eaa1e2d34440fa97bc7a --- /dev/null +++ b/node_modules/prettier-plugin-tailwindcss/package.json @@ -0,0 +1,170 @@ +{ + "type": "module", + "name": "prettier-plugin-tailwindcss", + "version": "0.8.0", + "description": "A Prettier plugin for sorting Tailwind CSS classes.", + "license": "MIT", + "main": "dist/index.mjs", + "module": "dist/index.mjs", + "types": "dist/index.d.mts", + "files": [ + "dist" + ], + "exports": { + ".": { + "types": "./dist/index.d.mts", + "import": "./dist/index.mjs", + "default": "./dist/index.mjs" + }, + "./sorter": { + "types": "./dist/sorter.d.mts", + "import": "./dist/sorter.mjs", + "default": "./dist/sorter.mjs" + } + }, + "repository": { + "type": "git", + "url": "https://github.com/tailwindlabs/prettier-plugin-tailwindcss" + }, + "bugs": { + "url": "https://github.com/tailwindlabs/prettier-plugin-tailwindcss/issues" + }, + "devDependencies": { + "@babel/types": "^7.28.2", + "@ianvs/prettier-plugin-sort-imports": "^4.7.0", + "@marko/compiler": "^5.39.49", + "@prettier/plugin-hermes": "^0.1.2", + "@prettier/plugin-oxc": "^0.1.2", + "@prettier/plugin-pug": "^3.4.2", + "@shopify/prettier-plugin-liquid": "^1.10.0", + "@trivago/prettier-plugin-sort-imports": "^6.0.0", + "@types/node": "^24.3.0", + "@zackad/prettier-plugin-twig": "^0.16.0", + "clear-module": "^4.1.2", + "dedent": "^1.6.0", + "enhanced-resolve": "^5.18.3", + "escalade": "^3.2.0", + "fast-glob": "^3.3.3", + "import-sort-style-module": "^6.0.0", + "jiti": "^2.6.0", + "knip": "^5.83.0", + "license-checker": "^25.0.1", + "line-column": "^1.0.2", + "marko": "^5.37.46", + "oxlint": "^1.43.0", + "oxlint-tsgolint": "^0.11.4", + "postcss": "^8.5.6", + "postcss-import": "^16.1.1", + "prettier": "^3.7.3", + "prettier-plugin-astro": "^0.14.1", + "prettier-plugin-css-order": "^2.1.2", + "prettier-plugin-jsdoc": "^1.3.3", + "prettier-plugin-marko": "^3.3.2", + "prettier-plugin-multiline-arrays": "^4.0.3", + "prettier-plugin-organize-attributes": "^1.0.0", + "prettier-plugin-organize-imports": "^4.2.0", + "prettier-plugin-sort-imports": "^1.8.8", + "prettier-plugin-svelte": "^3.4.0", + "pug-lexer": "^5.0.1", + "svelte": "^5.38.2", + "tailwindcss-v3": "npm:tailwindcss@^3.4.18", + "tailwindcss-v4": "npm:tailwindcss@^4.1.14", + "tsdown": "^0.20.1", + "vitest": "^3.2.4" + }, + "peerDependencies": { + "@ianvs/prettier-plugin-sort-imports": "*", + "@prettier/plugin-hermes": "*", + "@prettier/plugin-oxc": "*", + "@prettier/plugin-pug": "*", + "@shopify/prettier-plugin-liquid": "*", + "@trivago/prettier-plugin-sort-imports": "*", + "@zackad/prettier-plugin-twig": "*", + "prettier": "^3.0", + "prettier-plugin-astro": "*", + "prettier-plugin-css-order": "*", + "prettier-plugin-jsdoc": "*", + "prettier-plugin-marko": "*", + "prettier-plugin-multiline-arrays": "*", + "prettier-plugin-organize-attributes": "*", + "prettier-plugin-organize-imports": "*", + "prettier-plugin-sort-imports": "*", + "prettier-plugin-svelte": "*" + }, + "peerDependenciesMeta": { + "@ianvs/prettier-plugin-sort-imports": { + "optional": true + }, + "@prettier/plugin-hermes": { + "optional": true + }, + "@prettier/plugin-oxc": { + "optional": true + }, + "@prettier/plugin-pug": { + "optional": true + }, + "@shopify/prettier-plugin-liquid": { + "optional": true + }, + "@trivago/prettier-plugin-sort-imports": { + "optional": true + }, + "@zackad/prettier-plugin-twig": { + "optional": true + }, + "prettier-plugin-astro": { + "optional": true + }, + "prettier-plugin-css-order": { + "optional": true + }, + "prettier-plugin-jsdoc": { + "optional": true + }, + "prettier-plugin-marko": { + "optional": true + }, + "prettier-plugin-multiline-arrays": { + "optional": true + }, + "prettier-plugin-organize-attributes": { + "optional": true + }, + "prettier-plugin-organize-imports": { + "optional": true + }, + "prettier-plugin-sort-imports": { + "optional": true + }, + "prettier-plugin-svelte": { + "optional": true + } + }, + "engines": { + "node": ">=20.19" + }, + "importSort": { + ".js, .jsx, .ts, .tsx": { + "style": "module" + } + }, + "jest": { + "testTimeout": 15000 + }, + "overrides": { + "@ianvs/prettier-plugin-sort-imports": { + "@prettier/plugin-oxc": "^0.1.2" + } + }, + "scripts": { + "build": "tsdown", + "dev": "tsdown --watch", + "pretest": "node scripts/install-fixture-deps.js", + "test": "vitest", + "format": "prettier \"src/**/*.ts\" \"scripts/**/*.js\" \"tests/*.ts\" --write --print-width 100 --single-quote --no-semi", + "lint": "knip && oxlint --type-aware src tests/*.ts", + "release-channel": "node ./scripts/release-channel.js", + "release-notes": "node ./scripts/release-notes.js" + } +} \ No newline at end of file diff --git a/node_modules/prettier/plugins/glimmer.js b/node_modules/prettier/plugins/glimmer.js new file mode 100644 index 0000000000000000000000000000000000000000..d9ef64b22df10d72ff77ed5eb366703ce9c948fe --- /dev/null +++ b/node_modules/prettier/plugins/glimmer.js @@ -0,0 +1,37 @@ +(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.glimmer=e()}})(function(){"use strict";var Oe=Object.defineProperty;var Un=Object.getOwnPropertyDescriptor;var Mn=Object.getOwnPropertyNames;var zn=Object.prototype.hasOwnProperty;var Ie=(e,t)=>{for(var r in t)Oe(e,r,{get:t[r],enumerable:!0})},Yn=(e,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Mn(t))!zn.call(e,n)&&n!==r&&Oe(e,n,{get:()=>t[n],enumerable:!(s=Un(t,n))||s.enumerable});return e};var Gn=e=>Yn(Oe({},"__esModule",{value:!0}),e);var Di={};Ie(Di,{languages:()=>Dn,parsers:()=>Sr,printers:()=>Li});var Jt=(e,t)=>(r,s,...n)=>r|1&&s==null?void 0:(t.call(s)??s[e]).apply(s,n);var Kn=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},Wn=Jt("replaceAll",function(){if(typeof this=="string")return Kn}),St=Wn;function jn(e){return this[e<0?this.length+e:e]}var Qn=Jt("at",function(){if(Array.isArray(this)||typeof this=="string")return jn}),V=Qn;var Jn=()=>{},Dt=Jn;var Ot="string",It="array",$t="cursor",kt="indent",Et="align",Xt="trim",vt="group",wt="fill",Tt="if-break",Zt="indent-if-break",te="line-suffix",ee="line-suffix-boundary",Q="line",re="label",xt="break-parent",ne=new Set([$t,kt,Et,Xt,vt,wt,Tt,Zt,te,ee,Q,re,xt]);function $n(e){if(typeof e=="string")return Ot;if(Array.isArray(e))return It;if(!e)return;let{type:t}=e;if(ne.has(t))return t}var se=$n;var Xn=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function Zn(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', +Expected it to be 'string' or 'object'.`;if(se(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let s=Xn([...ne].map(n=>`'${n}'`));return`Unexpected doc.type '${e.type}'. +Expected it to be ${s}.`}var Be=class extends Error{name="InvalidDocError";constructor(t){super(Zn(t)),this.doc=t}},Lr=Be;function ts(e,t){if(typeof e=="string")return t(e);let r=new Map;return s(e);function s(i){if(r.has(i))return r.get(i);let a=n(i);return r.set(i,a),a}function n(i){switch(se(i)){case It:return t(i.map(s));case wt:return t({...i,parts:i.parts.map(s)});case Tt:return t({...i,breakContents:s(i.breakContents),flatContents:s(i.flatContents)});case vt:{let{expandedStates:a,contents:o}=i;return a?(a=a.map(s),o=a[0]):o=s(o),t({...i,contents:o,expandedStates:a})}case Et:case kt:case Zt:case re:case te:return t({...i,contents:s(i.contents)});case Ot:case $t:case Xt:case ee:case Q:case xt:return t(i);default:throw new Lr(i)}}}function ie(e,t=Dr){return ts(e,r=>typeof r=="string"?ct(t,r.split(` +`)):r)}var M=Dt,ae=Dt,Or=Dt,Ir=Dt;function F(e){return M(e),{type:kt,contents:e}}function es(e,t){return Ir(e),M(t),{type:Et,contents:t,n:e}}function Re(e){return es(-1,e)}var qe={type:xt};function Ve(e){return Or(e),{type:wt,parts:e}}function I(e,t={}){return M(e),ae(t.expandedStates,!0),{type:vt,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Fe(e,t="",r={}){return M(e),t!==""&&M(t),{type:Tt,breakContents:e,flatContents:t,groupId:r.groupId}}function ct(e,t){M(e),ae(t);let r=[];for(let s=0;sa?s:r).character}var oe=as;function He(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Ue=class{#t;constructor(t){this.#t=new Set(t)}getLeadingWhitespaceCount(t){let r=this.#t,s=0;for(let n=0;n=0&&r.has(t.charAt(n));n--)s++;return s}getLeadingWhitespace(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(0,r)}getTrailingWhitespace(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(t.length-r)}hasLeadingWhitespace(t){return this.#t.has(t.charAt(0))}hasTrailingWhitespace(t){return this.#t.has(V(0,t,-1))}trimStart(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(r)}trimEnd(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(0,t.length-r)}trim(t){return this.trimEnd(this.trimStart(t))}split(t,r=!1){let s=`[${He([...this.#t].join(""))}]+`,n=new RegExp(r?`(${s})`:s,"u");return t.split(n)}hasWhitespaceCharacter(t){let r=this.#t;return Array.prototype.some.call(t,s=>r.has(s))}hasNonWhitespaceCharacter(t){let r=this.#t;return Array.prototype.some.call(t,s=>!r.has(s))}isWhitespaceOnly(t){let r=this.#t;return Array.prototype.every.call(t,s=>r.has(s))}#e(t){let r=Number.POSITIVE_INFINITY;for(let s of t.split(` +`)){if(s.length===0)continue;let n=this.getLeadingWhitespaceCount(s);if(n===0)return 0;s.length!==n&&ns.slice(r)).join(` +`)}},qr=Ue;var os=[" ",` +`,"\f","\r"," "],ls=new qr(os),R=ls;function cs(e){return Array.isArray(e)&&e.length>0}var Bt=cs;var Me=class extends Error{name="UnexpectedNodeError";constructor(t,r,s="type"){super(`Unexpected ${r} node ${s}: ${JSON.stringify(t[s])}.`),this.node=t}},Vr=Me;function Fr(e,t,r){if(e.type==="TextNode"){let s=e.chars.trim();if(!s)return null;r.tag==="style"&&r.children.length===1&&r.children[0]===e?t.chars="":t.chars=R.split(s).join(" ")}e.type==="ElementNode"&&(delete t.startTag,delete t.openTag,delete t.parts,delete t.endTag,delete t.closeTag,delete t.nameNode,delete t.body,delete t.blockParamNodes,delete t.params,delete t.path),e.type==="Block"&&(delete t.blockParamNodes,delete t.params),e.type==="AttrNode"&&e.name.toLowerCase()==="class"&&delete t.value,e.type==="PathExpression"&&(t.head=e.head.original)}Fr.ignoredProperties=new Set(["loc","selfClosing"]);var Hr=Fr;function us(e){let{node:t}=e;if(t.type!=="TextNode")return;let{parent:r}=e;if(!(r.type==="ElementNode"&&r.tag==="style"&&r.children.length===1&&r.children[0]===t))return;let s=r.attributes.find(n=>n.type==="AttrNode"&&n.name==="lang");if(!(s&&!(s.value.type==="TextNode"&&(s.value.chars===""||s.value.chars==="css"))))return async n=>{let i=t.chars;return i.trim()?await n(i,{parser:"css"}):""}}var Ur=us;var Rt=null;function qt(e){if(Rt!==null&&typeof Rt.property){let t=Rt;return Rt=qt.prototype=null,t}return Rt=qt.prototype=e??Object.create(null),new qt}var hs=10;for(let e=0;e<=hs;e++)qt();function ze(e){return qt(e)}function ps(e,t="type"){ze(e);function r(s){let n=s[t],i=e[n];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${n}'.`),{node:s});return i}return r}var Mr=ps;var fs=Object.freeze([]);function Yr(){return fs}var ro=Yr(),no=Yr();var Ye=Object.assign;var zr=console;function Gr(e,t="unexpected unreachable branch"){throw zr.log("unreachable",e),zr.log(`${t} :: ${JSON.stringify(e)} (${e})`),new Error("code reached unreachable")}var ms=(function(){var e=function(X,b,S,y){for(S=S||{},y=X.length;y--;S[X[y]]=b);return S},t=[2,52],r=[1,20],s=[5,14,15,19,29,34,39,44,47,48,53,57,61],n=[1,44],i=[1,40],a=[1,43],o=[1,33],c=[1,34],h=[1,35],f=[1,36],p=[1,37],g=[1,42],E=[1,46],T=[14,15,19,29,34,39,44,47,48,53,57,61],D=[14,15,19,29,34,44,47,48,53,57,61],B=[15,18],O=[14,15,19,29,34,47,48,53,57,61],z=[33,67,73,75,84,85,86,87,88,89],P=[23,33,56,67,68,73,75,77,79,84,85,86,87,88,89],U=[1,62],C=[1,63],$=[23,33,56,68,73,79],W=[23,33,56,67,68,73,75,77,79,84,85,86,87,88,89,92,93],kr=[2,51],Er=[1,64],vr=[67,73,75,77,84,85,86,87,88,89],wr=[56,67,73,75,84,85,86,87,88,89],Tr=[1,75],we=[1,76],Te=[1,83],dt=[33,67,73,75,79,84,85,86,87,88,89],xr=[23,67,73,75,84,85,86,87,88,89],Nr=[67,68,73,75,84,85,86,87,88,89],gt=[33,79],xe=[1,134],Ar=[73,81],Ne={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,hash:49,expr:50,mustache_repetition0:51,mustache_option0:52,OPEN_UNESCAPED:53,mustache_repetition1:54,mustache_option1:55,CLOSE_UNESCAPED:56,OPEN_PARTIAL:57,partial_repetition0:58,partial_option0:59,openPartialBlock:60,OPEN_PARTIAL_BLOCK:61,openPartialBlock_repetition0:62,openPartialBlock_option0:63,exprHead:64,arrayLiteral:65,sexpr:66,OPEN_SEXPR:67,CLOSE_SEXPR:68,sexpr_repetition0:69,sexpr_option0:70,hash_repetition_plus0:71,hashSegment:72,ID:73,EQUALS:74,OPEN_ARRAY:75,arrayLiteral_repetition0:76,CLOSE_ARRAY:77,blockParams:78,OPEN_BLOCK_PARAMS:79,blockParams_repetition_plus0:80,CLOSE_BLOCK_PARAMS:81,path:82,dataName:83,STRING:84,NUMBER:85,BOOLEAN:86,UNDEFINED:87,NULL:88,DATA:89,pathSegments:90,sep:91,SEP:92,PRIVATE_SEP:93,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",53:"OPEN_UNESCAPED",56:"CLOSE_UNESCAPED",57:"OPEN_PARTIAL",61:"OPEN_PARTIAL_BLOCK",67:"OPEN_SEXPR",68:"CLOSE_SEXPR",73:"ID",74:"EQUALS",75:"OPEN_ARRAY",77:"CLOSE_ARRAY",79:"OPEN_BLOCK_PARAMS",81:"CLOSE_BLOCK_PARAMS",84:"STRING",85:"NUMBER",86:"BOOLEAN",87:"UNDEFINED",88:"NULL",89:"DATA",92:"SEP",93:"PRIVATE_SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,3],[8,5],[8,5],[11,5],[12,3],[60,5],[50,1],[50,1],[64,1],[64,1],[66,3],[66,5],[49,1],[72,3],[65,3],[78,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[83,2],[91,1],[91,1],[82,3],[82,1],[90,3],[90,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[51,0],[51,2],[52,0],[52,1],[54,0],[54,2],[55,0],[55,1],[58,0],[58,2],[59,0],[59,1],[62,0],[62,2],[63,0],[63,1],[69,0],[69,2],[70,0],[70,1],[71,1],[71,2],[76,0],[76,2],[80,1],[80,2]],performAction:function(b,S,y,m,w,l,bt){var u=l.length-1;switch(w){case 1:return l[u-1];case 2:this.$=m.prepareProgram(l[u]);break;case 3:case 4:case 5:case 6:case 7:case 8:case 20:case 28:case 29:case 30:case 31:case 38:case 39:case 46:case 47:this.$=l[u];break;case 9:this.$={type:"CommentStatement",value:m.stripComment(l[u]),strip:m.stripFlags(l[u],l[u]),loc:m.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[u],value:l[u],loc:m.locInfo(this._$)};break;case 11:this.$=m.prepareRawBlock(l[u-2],l[u-1],l[u],this._$);break;case 12:this.$={path:l[u-3],params:l[u-2],hash:l[u-1]};break;case 13:this.$=m.prepareBlock(l[u-3],l[u-2],l[u-1],l[u],!1,this._$);break;case 14:this.$=m.prepareBlock(l[u-3],l[u-2],l[u-1],l[u],!0,this._$);break;case 15:this.$={open:l[u-5],path:l[u-4],params:l[u-3],hash:l[u-2],blockParams:l[u-1],strip:m.stripFlags(l[u-5],l[u])};break;case 16:case 17:this.$={path:l[u-4],params:l[u-3],hash:l[u-2],blockParams:l[u-1],strip:m.stripFlags(l[u-5],l[u])};break;case 18:this.$={strip:m.stripFlags(l[u-1],l[u-1]),program:l[u]};break;case 19:var Z=m.prepareBlock(l[u-2],l[u-1],l[u],l[u],!1,this._$),Lt=m.prepareProgram([Z],l[u-1].loc);Lt.chained=!0,this.$={strip:l[u-2].strip,program:Lt,chain:!0};break;case 21:this.$={path:l[u-1],strip:m.stripFlags(l[u-2],l[u])};break;case 22:this.$=m.prepareMustache(m.syntax.hash(l[u-1],m.locInfo(this._$),{yy:m,syntax:"expr"}),[],void 0,l[u-2],m.stripFlags(l[u-2],l[u]),this._$);break;case 23:case 24:this.$=m.prepareMustache(l[u-3],l[u-2],l[u-1],l[u-4],m.stripFlags(l[u-4],l[u]),this._$);break;case 25:this.$={type:"PartialStatement",name:l[u-3],params:l[u-2],hash:l[u-1],indent:"",strip:m.stripFlags(l[u-4],l[u]),loc:m.locInfo(this._$)};break;case 26:this.$=m.preparePartialBlock(l[u-2],l[u-1],l[u],this._$);break;case 27:this.$={path:l[u-3],params:l[u-2],hash:l[u-1],strip:m.stripFlags(l[u-4],l[u])};break;case 32:this.$=m.syntax.hash(l[u-1],m.locInfo(this._$),{yy:m,syntax:"expr"});break;case 33:this.$={type:"SubExpression",path:l[u-3],params:l[u-2],hash:l[u-1],loc:m.locInfo(this._$)};break;case 34:this.$={type:"Hash",pairs:l[u],loc:m.locInfo(this._$)};break;case 35:this.$={type:"HashPair",key:m.id(l[u-2]),value:l[u],loc:m.locInfo(this._$)};break;case 36:this.$=m.syntax.square(l[u-1],m.locInfo(this._$),{yy:m,syntax:"expr"});break;case 37:this.$=m.id(l[u-1]);break;case 40:this.$={type:"StringLiteral",value:l[u],original:l[u],loc:m.locInfo(this._$)};break;case 41:this.$={type:"NumberLiteral",value:Number(l[u]),original:Number(l[u]),loc:m.locInfo(this._$)};break;case 42:this.$={type:"BooleanLiteral",value:l[u]==="true",original:l[u]==="true",loc:m.locInfo(this._$)};break;case 43:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:m.locInfo(this._$)};break;case 44:this.$={type:"NullLiteral",original:null,value:null,loc:m.locInfo(this._$)};break;case 45:this.$=m.preparePath(!0,!1,l[u],this._$);break;case 48:this.$=m.preparePath(!1,l[u-2],l[u],this._$);break;case 49:this.$=m.preparePath(!1,!1,l[u],this._$);break;case 50:l[u-2].push({part:m.id(l[u]),original:l[u],separator:l[u-1]}),this.$=l[u-2];break;case 51:this.$=[{part:m.id(l[u]),original:l[u]}];break;case 52:case 54:case 56:case 64:case 70:case 76:case 84:case 88:case 92:case 96:case 100:case 106:this.$=[];break;case 53:case 55:case 57:case 65:case 71:case 77:case 85:case 89:case 93:case 97:case 101:case 105:case 107:case 109:l[u-1].push(l[u]);break;case 104:case 108:this.$=[l[u]];break}},table:[e([5,14,15,19,29,34,48,53,57,61],t,{3:1,4:2,6:3}),{1:[3]},{5:[1,4]},e([5,39,44,47],[2,2],{7:5,8:6,9:7,10:8,11:9,12:10,13:11,24:15,27:16,16:17,60:19,14:[1,12],15:r,19:[1,23],29:[1,21],34:[1,22],48:[1,13],53:[1,14],57:[1,18],61:[1,24]}),{1:[2,1]},e(s,[2,53]),e(s,[2,3]),e(s,[2,4]),e(s,[2,5]),e(s,[2,6]),e(s,[2,7]),e(s,[2,8]),e(s,[2,9]),{20:28,49:25,50:26,64:29,65:38,66:39,67:n,71:27,72:30,73:i,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},{20:28,50:45,64:29,65:38,66:39,67:n,73:E,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},e(T,t,{6:3,4:47}),e(D,t,{6:3,4:48}),e(B,[2,54],{17:49}),{20:28,50:50,64:29,65:38,66:39,67:n,73:E,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},e(O,t,{6:3,4:51}),e([5,14,15,18,19,29,34,39,44,47,48,53,57,61],[2,10]),{20:52,64:53,65:38,66:39,67:n,73:E,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},{20:54,64:53,65:38,66:39,67:n,73:E,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},{20:55,64:53,65:38,66:39,67:n,73:E,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},{20:28,50:56,64:29,65:38,66:39,67:n,73:E,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},{33:[1,57]},e(z,[2,84],{51:58}),e([23,33,56,68,79],[2,34],{72:59,73:[1,60]}),e(P,[2,28]),e(P,[2,29],{91:61,92:U,93:C}),e($,[2,104]),e(P,[2,38]),e(P,[2,39]),e(P,[2,40]),e(P,[2,41]),e(P,[2,42]),e(P,[2,43]),e(P,[2,44]),e(W,[2,30]),e(W,[2,31]),e([23,33,56,67,68,73,75,79,84,85,86,87,88,89,92,93],kr,{74:Er}),e(P,[2,49],{91:65,92:U,93:C}),{73:E,90:66},e(vr,[2,106],{76:67}),{20:28,49:68,50:69,64:29,65:38,66:39,67:n,71:27,72:30,73:i,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},e(wr,[2,88],{54:70}),e(W,kr),{25:71,38:73,39:Tr,43:74,44:we,45:72,47:[2,60]},{28:77,43:78,44:we,47:[2,62]},{13:80,15:r,18:[1,79]},e(z,[2,92],{58:81}),{26:82,47:Te},e(dt,[2,64],{30:84}),{91:61,92:U,93:C},e(dt,[2,70],{35:85}),e(xr,[2,56],{21:86}),e(z,[2,96],{62:87}),e(s,[2,22]),{20:28,33:[2,86],49:90,50:89,52:88,64:29,65:38,66:39,67:n,71:27,72:30,73:i,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},e($,[2,105]),{74:Er},{73:E,90:91},{73:[2,46]},{73:[2,47]},{20:28,50:92,64:29,65:38,66:39,67:n,73:E,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},{73:[1,93]},e(P,[2,45],{91:65,92:U,93:C}),{20:28,50:95,64:29,65:38,66:39,67:n,73:E,75:a,77:[1,94],82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},{68:[1,96]},e(Nr,[2,100],{69:97}),{20:28,49:100,50:99,55:98,56:[2,90],64:29,65:38,66:39,67:n,71:27,72:30,73:i,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},{26:101,47:Te},{47:[2,61]},e(T,t,{6:3,4:102}),{47:[2,20]},{20:103,64:53,65:38,66:39,67:n,73:E,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},e(O,t,{6:3,4:104}),{26:105,47:Te},{47:[2,63]},e(s,[2,11]),e(B,[2,55]),{20:28,33:[2,94],49:108,50:107,59:106,64:29,65:38,66:39,67:n,71:27,72:30,73:i,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},e(s,[2,26]),{20:109,64:53,65:38,66:39,67:n,73:E,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},e(gt,[2,66],{71:27,20:28,64:29,72:30,82:31,83:32,65:38,66:39,90:41,31:110,50:111,49:112,67:n,73:i,75:a,84:o,85:c,86:h,87:f,88:p,89:g}),e(gt,[2,72],{71:27,20:28,64:29,72:30,82:31,83:32,65:38,66:39,90:41,36:113,50:114,49:115,67:n,73:i,75:a,84:o,85:c,86:h,87:f,88:p,89:g}),{20:28,22:116,23:[2,58],49:118,50:117,64:29,65:38,66:39,67:n,71:27,72:30,73:i,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},{20:28,33:[2,98],49:121,50:120,63:119,64:29,65:38,66:39,67:n,71:27,72:30,73:i,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},{33:[1,122]},e(z,[2,85]),{33:[2,87]},e(P,[2,48],{91:65,92:U,93:C}),e($,[2,35]),e(W,[2,50]),e(W,[2,36]),e(vr,[2,107]),e(W,[2,32]),{20:28,49:125,50:124,64:29,65:38,66:39,67:n,68:[2,102],70:123,71:27,72:30,73:i,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},{56:[1,126]},e(wr,[2,89]),{56:[2,91]},e(s,[2,13]),{38:73,39:Tr,43:74,44:we,45:128,46:127,47:[2,82]},e(dt,[2,76],{40:129}),{47:[2,18]},e(s,[2,14]),{33:[1,130]},e(z,[2,93]),{33:[2,95]},{33:[1,131]},{32:132,33:[2,68],78:133,79:xe},e(dt,[2,65]),e(gt,[2,67]),{33:[2,74],37:135,78:136,79:xe},e(dt,[2,71]),e(gt,[2,73]),{23:[1,137]},e(xr,[2,57]),{23:[2,59]},{33:[1,138]},e(z,[2,97]),{33:[2,99]},e(s,[2,23]),{68:[1,139]},e(Nr,[2,101]),{68:[2,103]},e(s,[2,24]),{47:[2,19]},{47:[2,83]},e(gt,[2,78],{71:27,20:28,64:29,72:30,82:31,83:32,65:38,66:39,90:41,41:140,50:141,49:142,67:n,73:i,75:a,84:o,85:c,86:h,87:f,88:p,89:g}),e(s,[2,25]),e(s,[2,21]),{33:[1,143]},{33:[2,69]},{73:[1,145],80:144},{33:[1,146]},{33:[2,75]},e(B,[2,12]),e(O,[2,27]),e(W,[2,33]),{33:[2,80],42:147,78:148,79:xe},e(dt,[2,77]),e(gt,[2,79]),e(T,[2,15]),{73:[1,150],81:[1,149]},e(Ar,[2,108]),e(D,[2,16]),{33:[1,151]},{33:[2,81]},{33:[2,37]},e(Ar,[2,109]),e(T,[2,17])],defaultActions:{4:[2,1],62:[2,46],63:[2,47],72:[2,61],74:[2,20],78:[2,63],90:[2,87],100:[2,91],104:[2,18],108:[2,95],118:[2,59],121:[2,99],125:[2,103],127:[2,19],128:[2,83],133:[2,69],136:[2,75],148:[2,81],149:[2,37]},parseError:function(b,S){if(S.recoverable)this.trace(b);else{var y=new Error(b);throw y.hash=S,y}},parse:function(b){var S=this,y=[0],m=[],w=[null],l=[],bt=this.table,u="",Z=0,Lt=0,Pr=0,qn=2,Cr=1,Vn=l.slice.call(arguments,1),x=Object.create(this.lexer),ot={yy:{}};for(var Pe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Pe)&&(ot.yy[Pe]=this.yy[Pe]);x.setInput(b,ot.yy),ot.yy.lexer=x,ot.yy.parser=this,typeof x.yylloc>"u"&&(x.yylloc={});var Ce=x.yylloc;l.push(Ce);var Fn=x.options&&x.options.ranges;typeof ot.yy.parseError=="function"?this.parseError=ot.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Oi(Y){y.length=y.length-2*Y,w.length=w.length-Y,l.length=l.length-Y}for(var Hn=function(){var Y;return Y=x.lex()||Cr,typeof Y!="number"&&(Y=S.symbols_[Y]||Y),Y},L,_e,lt,q,Ii,Le,yt={},jt,j,_r,Qt;;){if(lt=y[y.length-1],this.defaultActions[lt]?q=this.defaultActions[lt]:((L===null||typeof L>"u")&&(L=Hn()),q=bt[lt]&&bt[lt][L]),typeof q>"u"||!q.length||!q[0]){var De="";Qt=[];for(jt in bt[lt])this.terminals_[jt]&&jt>qn&&Qt.push("'"+this.terminals_[jt]+"'");x.showPosition?De="Parse error on line "+(Z+1)+`: +`+x.showPosition()+` +Expecting `+Qt.join(", ")+", got '"+(this.terminals_[L]||L)+"'":De="Parse error on line "+(Z+1)+": Unexpected "+(L==Cr?"end of input":"'"+(this.terminals_[L]||L)+"'"),this.parseError(De,{text:x.match,token:this.terminals_[L]||L,line:x.yylineno,loc:Ce,expected:Qt})}if(q[0]instanceof Array&&q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+lt+", token: "+L);switch(q[0]){case 1:y.push(L),w.push(x.yytext),l.push(x.yylloc),y.push(q[1]),L=null,_e?(L=_e,_e=null):(Lt=x.yyleng,u=x.yytext,Z=x.yylineno,Ce=x.yylloc,Pr>0&&Pr--);break;case 2:if(j=this.productions_[q[1]][1],yt.$=w[w.length-j],yt._$={first_line:l[l.length-(j||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(j||1)].first_column,last_column:l[l.length-1].last_column},Fn&&(yt._$.range=[l[l.length-(j||1)].range[0],l[l.length-1].range[1]]),Le=this.performAction.apply(yt,[u,Lt,Z,ot.yy,q[1],w,l].concat(Vn)),typeof Le<"u")return Le;j&&(y=y.slice(0,-1*j*2),w=w.slice(0,-1*j),l=l.slice(0,-1*j)),y.push(this.productions_[q[1]][0]),w.push(yt.$),l.push(yt._$),_r=bt[y[y.length-2]][y[y.length-1]],y.push(_r);break;case 3:return!0}}return!0}},Rn=(function(){var X={EOF:1,parseError:function(S,y){if(this.yy.parser)this.yy.parser.parseError(S,y);else throw new Error(S)},setInput:function(b,S){return this.yy=S||this.yy||{},this._input=b,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var b=this._input[0];this.yytext+=b,this.yyleng++,this.offset++,this.match+=b,this.matched+=b;var S=b.match(/(?:\r\n?|\n).*/g);return S?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),b},unput:function(b){var S=b.length,y=b.split(/(?:\r\n?|\n)/g);this._input=b+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-S),this.offset-=S;var m=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),y.length-1&&(this.yylineno-=y.length-1);var w=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:y?(y.length===m.length?this.yylloc.first_column:0)+m[m.length-y.length].length-y[0].length:this.yylloc.first_column-S},this.options.ranges&&(this.yylloc.range=[w[0],w[0]+this.yyleng-S]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(b){this.unput(this.match.slice(b))},pastInput:function(){var b=this.matched.substr(0,this.matched.length-this.match.length);return(b.length>20?"...":"")+b.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var b=this.match;return b.length<20&&(b+=this._input.substr(0,20-b.length)),(b.substr(0,20)+(b.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var b=this.pastInput(),S=new Array(b.length+1).join("-");return b+this.upcomingInput()+` +`+S+"^"},test_match:function(b,S){var y,m,w;if(this.options.backtrack_lexer&&(w={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(w.yylloc.range=this.yylloc.range.slice(0))),m=b[0].match(/(?:\r\n?|\n).*/g),m&&(this.yylineno+=m.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:m?m[m.length-1].length-m[m.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+b[0].length},this.yytext+=b[0],this.match+=b[0],this.matches=b,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(b[0].length),this.matched+=b[0],y=this.performAction.call(this,this.yy,this,S,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),y)return y;if(this._backtrack){for(var l in w)this[l]=w[l];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var b,S,y,m;this._more||(this.yytext="",this.match="");for(var w=this._currentRules(),l=0;lS[0].length)){if(S=y,m=l,this.options.backtrack_lexer){if(b=this.test_match(y,w[l]),b!==!1)return b;if(this._backtrack){S=!1;continue}else return!1}else if(!this.options.flex)break}return S?(b=this.test_match(S,w[m]),b!==!1?b:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var S=this.next();return S||this.lex()},begin:function(S){this.conditionStack.push(S)},popState:function(){var S=this.conditionStack.length-1;return S>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(S){return S=this.conditionStack.length-1-Math.abs(S||0),S>=0?this.conditionStack[S]:"INITIAL"},pushState:function(S){this.begin(S)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(S,y,m,w){function l(u,Z){return y.yytext=y.yytext.substring(u,y.yyleng-Z+u)}var bt=w;switch(m){case 0:if(y.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):y.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),y.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(l(5,9),18);case 5:return 15;case 6:return this.popState(),14;break;case 7:return 67;case 8:return 68;case 9:if(S.syntax.square==="string")this.unput(y.yytext),this.begin("escl");else return 75;break;case 10:return 77;case 11:return 19;case 12:return this.popState(),this.begin("raw"),23;break;case 13:return 57;case 14:return 61;case 15:return 29;case 16:return 47;case 17:return this.popState(),44;break;case 18:return this.popState(),44;break;case 19:return 34;case 20:return 39;case 21:return 53;case 22:return 48;case 23:this.unput(y.yytext),this.popState(),this.begin("com");break;case 24:return this.popState(),14;break;case 25:return 48;case 26:return 74;case 27:return 73;case 28:return 73;case 29:return 93;case 30:return 92;case 31:break;case 32:return this.popState(),56;break;case 33:return this.popState(),33;break;case 34:return y.yytext=l(1,2).replace(/\\"/g,'"'),84;break;case 35:return y.yytext=l(1,2).replace(/\\'/g,"'"),84;break;case 36:return 89;case 37:return 86;case 38:return 86;case 39:return 87;case 40:return 88;case 41:return 85;case 42:return 79;case 43:return 81;case 44:return 73;case 45:return y.yytext=y.yytext.replace(/\\([\\\]])/g,"$1"),this.popState(),73;break;case 46:return"INVALID";case 47:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\[)/,/^(?:\])/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)\]|])))/,/^(?:\.#)/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)\]])))/,/^(?:false(?=([~}\s)\]])))/,/^(?:undefined(?=([~}\s)\]])))/,/^(?:null(?=([~}\s)\]])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)\]])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)\]|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,46,47],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},escl:{rules:[45],inclusive:!1},INITIAL:{rules:[0,1,47],inclusive:!0}}};return X})();Ne.lexer=Rn;function Ae(){this.yy={}}return Ae.prototype=Ne,Ne.Parser=Ae,new Ae})(),Vt=ms;var Ge=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function Ke(e,t){var r=t&&t.loc,s,n,i,a;r&&(s=r.start.line,n=r.end.line,i=r.start.column,a=r.end.column,e+=" - "+s+":"+i);for(var o=Error.prototype.constructor.call(this,e),c=0;cJe,id:()=>gs,prepareBlock:()=>vs,prepareMustache:()=>ks,preparePartialBlock:()=>Ts,preparePath:()=>Ss,prepareProgram:()=>ws,prepareRawBlock:()=>Es,stripComment:()=>ys,stripFlags:()=>bs});var ds=function(e,t,r){if(r||arguments.length===2)for(var s=0,n=t.length,i;s0)throw new tt("Invalid path: "+n,{loc:s});h===".."&&a++}else i.push("".concat(g).concat(h))}var E=t||i.shift();return{type:"PathExpression",this:n.startsWith("this."),data:e,depth:a,head:E,tail:i,parts:E?ds([E],i,!0):i,original:n,loc:s}}function ks(e,t,r,s,n,i){var a=s.charAt(3)||s.charAt(2),o=a!=="{"&&a!=="&",c=/\*/.test(s);return{type:c?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:o,strip:n,loc:this.locInfo(i)}}function Es(e,t,r,s){Qe(e,r),s=this.locInfo(s);var n={type:"Program",body:t,strip:{},loc:s};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:n,openStrip:{},inverseStrip:{},closeStrip:{},loc:s}}function vs(e,t,r,s,n,i){s&&s.path&&Qe(e,s);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var o,c;if(r){if(a)throw new tt("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=s.strip),c=r.strip,o=r.program}return n&&(n=o,o=t,t=n),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:o,openStrip:e.strip,inverseStrip:c,closeStrip:s&&s.strip,loc:this.locInfo(i)}}function ws(e,t){if(!t&&e.length){var r=e[0].loc,s=e[e.length-1].loc;r&&s&&(t={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:s.end.line,column:s.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}function Ts(e,t,r,s){return Qe(e,r),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:r&&r.strip,loc:this.locInfo(s)}}var Jr={};for(ue in Ft)Object.prototype.hasOwnProperty.call(Ft,ue)&&(Jr[ue]=Ft[ue]);var ue;function he(e,t){var r,s,n;if(e.type==="Program")return e;Vt.yy=Jr,Vt.yy.locInfo=function(o){return new Je(t&&t.srcName,o)};var i;typeof((r=t?.syntax)===null||r===void 0?void 0:r.square)=="function"?i=t.syntax.square:((s=t?.syntax)===null||s===void 0?void 0:s.square)==="node"?i=xs:i="string";var a;return typeof((n=t?.syntax)===null||n===void 0?void 0:n.hash)=="function"?a=t.syntax.hash:a=Ns,Vt.yy.syntax={square:i,hash:a},Vt.parse(e)}function xs(e,t){return{type:"ArrayLiteral",items:e,loc:t}}function Ns(e,t){return{type:"HashLiteral",pairs:e.pairs,loc:t}}function $e(e,t){var r=he(e,t),s=new Qr(t);return s.accept(r)}var Xr={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` +`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"},As=/^#[xX]([A-Fa-f0-9]+)$/,Ps=/^#([0-9]+)$/,Cs=/^([A-Za-z0-9]+)$/,Xe=(function(){function e(t){this.named=t}return e.prototype.parse=function(t){if(t){var r=t.match(As);if(r)return String.fromCharCode(parseInt(r[1],16));if(r=t.match(Ps),r)return String.fromCharCode(parseInt(r[1],10));if(r=t.match(Cs),r)return this.named[r[1]]}},e})(),_s=/[\t\n\f ]/,Ls=/[A-Za-z]/,Ds=/\r\n?/g;function _(e){return _s.test(e)}function $r(e){return Ls.test(e)}function Os(e){return e.replace(Ds,` +`)}var Ze=(function(){function e(t,r,s){s===void 0&&(s="precompile"),this.delegate=t,this.entityParser=r,this.mode=s,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var n=this.peek();if(n==="<"&&!this.isIgnoredEndTag())this.transitionTo("tagOpen"),this.markTagStart(),this.consume();else{if(this.mode==="precompile"&&n===` +`){var i=this.tagNameBuffer.toLowerCase();(i==="pre"||i==="textarea")&&this.consume()}this.transitionTo("data"),this.delegate.beginData()}},data:function(){var n=this.peek(),i=this.tagNameBuffer;n==="<"&&!this.isIgnoredEndTag()?(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume()):n==="&"&&i!=="script"&&i!=="style"?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(n))},tagOpen:function(){var n=this.consume();n==="!"?this.transitionTo("markupDeclarationOpen"):n==="/"?this.transitionTo("endTagOpen"):(n==="@"||n===":"||$r(n))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(n))},markupDeclarationOpen:function(){var n=this.consume();if(n==="-"&&this.peek()==="-")this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment();else{var i=n.toUpperCase()+this.input.substring(this.index,this.index+6).toUpperCase();i==="DOCTYPE"&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.transitionTo("doctype"),this.delegate.beginDoctype&&this.delegate.beginDoctype())}},doctype:function(){var n=this.consume();_(n)&&this.transitionTo("beforeDoctypeName")},beforeDoctypeName:function(){var n=this.consume();_(n)||(this.transitionTo("doctypeName"),this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(n.toLowerCase()))},doctypeName:function(){var n=this.consume();_(n)?this.transitionTo("afterDoctypeName"):n===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(n.toLowerCase())},afterDoctypeName:function(){var n=this.consume();if(!_(n))if(n===">")this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData");else{var i=n.toUpperCase()+this.input.substring(this.index,this.index+5).toUpperCase(),a=i.toUpperCase()==="PUBLIC",o=i.toUpperCase()==="SYSTEM";(a||o)&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume()),a?this.transitionTo("afterDoctypePublicKeyword"):o&&this.transitionTo("afterDoctypeSystemKeyword")}},afterDoctypePublicKeyword:function(){var n=this.peek();_(n)?(this.transitionTo("beforeDoctypePublicIdentifier"),this.consume()):n==='"'?(this.transitionTo("doctypePublicIdentifierDoubleQuoted"),this.consume()):n==="'"?(this.transitionTo("doctypePublicIdentifierSingleQuoted"),this.consume()):n===">"&&(this.consume(),this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},doctypePublicIdentifierDoubleQuoted:function(){var n=this.consume();n==='"'?this.transitionTo("afterDoctypePublicIdentifier"):n===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(n)},doctypePublicIdentifierSingleQuoted:function(){var n=this.consume();n==="'"?this.transitionTo("afterDoctypePublicIdentifier"):n===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(n)},afterDoctypePublicIdentifier:function(){var n=this.consume();_(n)?this.transitionTo("betweenDoctypePublicAndSystemIdentifiers"):n===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):n==='"'?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):n==="'"&&this.transitionTo("doctypeSystemIdentifierSingleQuoted")},betweenDoctypePublicAndSystemIdentifiers:function(){var n=this.consume();_(n)||(n===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):n==='"'?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):n==="'"&&this.transitionTo("doctypeSystemIdentifierSingleQuoted"))},doctypeSystemIdentifierDoubleQuoted:function(){var n=this.consume();n==='"'?this.transitionTo("afterDoctypeSystemIdentifier"):n===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(n)},doctypeSystemIdentifierSingleQuoted:function(){var n=this.consume();n==="'"?this.transitionTo("afterDoctypeSystemIdentifier"):n===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(n)},afterDoctypeSystemIdentifier:function(){var n=this.consume();_(n)||n===">"&&(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},commentStart:function(){var n=this.consume();n==="-"?this.transitionTo("commentStartDash"):n===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(n),this.transitionTo("comment"))},commentStartDash:function(){var n=this.consume();n==="-"?this.transitionTo("commentEnd"):n===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var n=this.consume();n==="-"?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(n)},commentEndDash:function(){var n=this.consume();n==="-"?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+n),this.transitionTo("comment"))},commentEnd:function(){var n=this.consume();n===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+n),this.transitionTo("comment"))},tagName:function(){var n=this.consume();_(n)?this.transitionTo("beforeAttributeName"):n==="/"?this.transitionTo("selfClosingStartTag"):n===">"?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(n)},endTagName:function(){var n=this.consume();_(n)?(this.transitionTo("beforeAttributeName"),this.tagNameBuffer=""):n==="/"?(this.transitionTo("selfClosingStartTag"),this.tagNameBuffer=""):n===">"?(this.delegate.finishTag(),this.transitionTo("beforeData"),this.tagNameBuffer=""):this.appendToTagName(n)},beforeAttributeName:function(){var n=this.peek();if(_(n)){this.consume();return}else n==="/"?(this.transitionTo("selfClosingStartTag"),this.consume()):n===">"?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):n==="="?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(n)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var n=this.peek();_(n)?(this.transitionTo("afterAttributeName"),this.consume()):n==="/"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):n==="="?(this.transitionTo("beforeAttributeValue"),this.consume()):n===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):n==='"'||n==="'"||n==="<"?(this.delegate.reportSyntaxError(n+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(n)):(this.consume(),this.delegate.appendToAttributeName(n))},afterAttributeName:function(){var n=this.peek();if(_(n)){this.consume();return}else n==="/"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):n==="="?(this.consume(),this.transitionTo("beforeAttributeValue")):n===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(n))},beforeAttributeValue:function(){var n=this.peek();_(n)?this.consume():n==='"'?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):n==="'"?(this.transitionTo("attributeValueSingleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):n===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.transitionTo("attributeValueUnquoted"),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(n))},attributeValueDoubleQuoted:function(){var n=this.consume();n==='"'?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):n==="&"?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(n)},attributeValueSingleQuoted:function(){var n=this.consume();n==="'"?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):n==="&"?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(n)},attributeValueUnquoted:function(){var n=this.peek();_(n)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("beforeAttributeName")):n==="/"?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):n==="&"?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||"&")):n===">"?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.consume(),this.delegate.appendToAttributeValue(n))},afterAttributeValueQuoted:function(){var n=this.peek();_(n)?(this.consume(),this.transitionTo("beforeAttributeName")):n==="/"?(this.consume(),this.transitionTo("selfClosingStartTag")):n===">"?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},selfClosingStartTag:function(){var n=this.peek();n===">"?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},endTagOpen:function(){var n=this.consume();(n==="@"||n===":"||$r(n))&&(this.transitionTo("endTagName"),this.tagNameBuffer="",this.delegate.beginEndTag(),this.appendToTagName(n))}},this.reset()}return e.prototype.reset=function(){this.transitionTo("beforeData"),this.input="",this.tagNameBuffer="",this.index=0,this.line=1,this.column=0,this.delegate.reset()},e.prototype.transitionTo=function(t){this.state=t},e.prototype.tokenize=function(t){this.reset(),this.tokenizePart(t),this.tokenizeEOF()},e.prototype.tokenizePart=function(t){for(this.input+=Os(t);this.index"||t==="style"&&this.input.substring(this.index,this.index+8)!==""||t==="script"&&this.input.substring(this.index,this.index+9)!=="<\/script>"},e})(),go=(function(){function e(t,r){r===void 0&&(r={}),this.options=r,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new Ze(this,t,r.mode),this._currentAttribute=void 0}return e.prototype.tokenize=function(t){return this.tokens=[],this.tokenizer.tokenize(t),this.tokens},e.prototype.tokenizePart=function(t){return this.tokens=[],this.tokenizer.tokenizePart(t),this.tokens},e.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},e.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},e.prototype.current=function(){var t=this.token;if(t===null)throw new Error("token was unexpectedly null");if(arguments.length===0)return t;for(var r=0;r\xa0]/u,Po=new RegExp(Rs.source,"gu");var de=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function ln(){return[...de]}function qs(e){return de.has(e.toLowerCase())&&e[0]?.toLowerCase()===e[0]}function Yt(e){return!!e&&e.length>0}function mr(e){return e.length===0?void 0:e[e.length-1]}function Vs(e){return e.length===0?void 0:e[0]}var st=Object.freeze({line:1,column:0}),Fs=Object.freeze({source:"(synthetic)",start:st,end:st}),ir=Object.freeze({source:"(nonexistent)",start:st,end:st}),nt=Object.freeze({source:"(broken)",start:st,end:st}),ar=class{constructor(t){this._whens=t}first(t){for(let r of this._whens){let s=r.match(t);if(Yt(s))return s[0]}return null}},ge=class{get(t,r){let s=this._map.get(t);return s||(s=r(),this._map.set(t,s),s)}add(t,r){this._map.set(t,r)}match(t){let r=(function(a){switch(a){case"Broken":case"InternalsSynthetic":case"NonExistent":return"IS_INVISIBLE";default:return a}})(t),s=[],n=this._map.get(r),i=this._map.get("MATCH_ANY");return n&&s.push(n),i&&s.push(i),s}constructor(){this._map=new Map}};function cn(e){return e(new or).validate()}var or=class{validate(){return(t,r)=>this.matchFor(t.kind,r.kind)(t,r)}matchFor(t,r){let s=this._whens.match(t);return Yt(s),new ar(s).first(r)}when(t,r,s){return this._whens.get(t,(()=>new ge)).add(r,s),this}constructor(){this._whens=new ge}},lr=class e{static synthetic(t){let r=A.synthetic(t);return new e({loc:r,chars:t})}static load(t,r){return new e({loc:A.load(t,r[1]),chars:r[0]})}constructor(t){this.loc=t.loc,this.chars=t.chars}getString(){return this.chars}serialize(){return[this.chars,this.loc.serialize()]}},A=class e{static get NON_EXISTENT(){return new J("NonExistent",ir).wrap()}static load(t,r){return typeof r=="number"?e.forCharPositions(t,r,r):typeof r=="string"?e.synthetic(r):Array.isArray(r)?e.forCharPositions(t,r[0],r[1]):r==="NonExistent"?e.NON_EXISTENT:r==="Broken"?e.broken(nt):void Gr(r)}static forHbsLoc(t,r){let s=new at(t,r.start),n=new at(t,r.end);return new Mt(t,{start:s,end:n},r).wrap()}static forCharPositions(t,r,s){let n=new ft(t,r),i=new ft(t,s);return new Ut(t,{start:n,end:i}).wrap()}static synthetic(t){return new J("InternalsSynthetic",ir,t).wrap()}static broken(t=nt){return new J("Broken",t).wrap()}constructor(t){var r;this.data=t,this.isInvisible=(r=t.kind)!=="CharPosition"&&r!=="HbsPosition"}getStart(){return this.data.getStart().wrap()}getEnd(){return this.data.getEnd().wrap()}get loc(){let t=this.data.toHbsSpan();return t===null?nt:t.toHbsLoc()}get module(){return this.data.getModule()}get startPosition(){return this.loc.start}get endPosition(){return this.loc.end}toJSON(){return this.loc}withStart(t){return K(t.data,this.data.getEnd())}withEnd(t){return K(this.data.getStart(),t.data)}asString(){return this.data.asString()}toSlice(t){let r=this.data.asString();return JSON.stringify(r),JSON.stringify(t),new lr({loc:this,chars:t||r})}get start(){return this.loc.start}set start(t){this.data.locDidUpdate({start:t})}get end(){return this.loc.end}set end(t){this.data.locDidUpdate({end:t})}get source(){return this.module}collapse(t){switch(t){case"start":return this.getStart().collapsed();case"end":return this.getEnd().collapsed()}}extend(t){return K(this.data.getStart(),t.data.getEnd())}serialize(){return this.data.serialize()}slice({skipStart:t=0,skipEnd:r=0}){return K(this.getStart().move(t).data,this.getEnd().move(-r).data)}sliceStartChars({skipStart:t=0,chars:r}){return K(this.getStart().move(t).data,this.getStart().move(t+r).data)}sliceEndChars({skipEnd:t=0,chars:r}){return K(this.getEnd().move(t-r).data,this.getStart().move(-t).data)}},Ut=class{#t;constructor(t,r){this.source=t,this.charPositions=r,this.kind="CharPosition",this.#t=null}wrap(){return new A(this)}asString(){return this.source.slice(this.charPositions.start.charPos,this.charPositions.end.charPos)}getModule(){return this.source.module}getStart(){return this.charPositions.start}getEnd(){return this.charPositions.end}locDidUpdate(){}toHbsSpan(){let t=this.#t;if(t===null){let r=this.charPositions.start.toHbsPos(),s=this.charPositions.end.toHbsPos();t=this.#t=r===null||s===null?it:new Mt(this.source,{start:r,end:s})}return t===it?null:t}serialize(){let{start:{charPos:t},end:{charPos:r}}=this.charPositions;return t===r?t:[t,r]}toCharPosSpan(){return this}},Mt=class{#t;#e;constructor(t,r,s=null){this.source=t,this.hbsPositions=r,this.kind="HbsPosition",this.#t=null,this.#e=s}serialize(){let t=this.toCharPosSpan();return t===null?"Broken":t.wrap().serialize()}wrap(){return new A(this)}updateProvided(t,r){this.#e&&(this.#e[r]=t),this.#t=null,this.#e={start:t,end:t}}locDidUpdate({start:t,end:r}){t!==void 0&&(this.updateProvided(t,"start"),this.hbsPositions.start=new at(this.source,t,null)),r!==void 0&&(this.updateProvided(r,"end"),this.hbsPositions.end=new at(this.source,r,null))}asString(){let t=this.toCharPosSpan();return t===null?"":t.asString()}getModule(){return this.source.module}getStart(){return this.hbsPositions.start}getEnd(){return this.hbsPositions.end}toHbsLoc(){return{start:this.hbsPositions.start.hbsPos,end:this.hbsPositions.end.hbsPos}}toHbsSpan(){return this}toCharPosSpan(){let t=this.#t;if(t===null){let r=this.hbsPositions.start.toCharPos(),s=this.hbsPositions.end.toCharPos();if(!r||!s)return t=this.#t=it,null;t=this.#t=new Ut(this.source,{start:r,end:s})}return t===it?null:t}},J=class{constructor(t,r,s=null){this.kind=t,this.loc=r,this.string=s}serialize(){switch(this.kind){case"Broken":case"NonExistent":return this.kind;case"InternalsSynthetic":return this.string||""}}wrap(){return new A(this)}asString(){return this.string||""}locDidUpdate({start:t,end:r}){t!==void 0&&(this.loc.start=t),r!==void 0&&(this.loc.end=r)}getModule(){return"an unknown module"}getStart(){return new zt(this.kind,this.loc.start)}getEnd(){return new zt(this.kind,this.loc.end)}toCharPosSpan(){return this}toHbsSpan(){return null}toHbsLoc(){return nt}},K=cn((e=>e.when("HbsPosition","HbsPosition",((t,r)=>new Mt(t.source,{start:t,end:r}).wrap())).when("CharPosition","CharPosition",((t,r)=>new Ut(t.source,{start:t,end:r}).wrap())).when("CharPosition","HbsPosition",((t,r)=>{let s=r.toCharPos();return s===null?new J("Broken",nt).wrap():K(t,s)})).when("HbsPosition","CharPosition",((t,r)=>{let s=t.toCharPos();return s===null?new J("Broken",nt).wrap():K(s,r)})).when("IS_INVISIBLE","MATCH_ANY",(t=>new J(t.kind,nt).wrap())).when("MATCH_ANY","IS_INVISIBLE",((t,r)=>new J(r.kind,nt).wrap())))),it="BROKEN",Pt=class e{static forHbsPos(t,r){return new at(t,r,null).wrap()}static broken(t=st){return new zt("Broken",t).wrap()}constructor(t){this.data=t}get offset(){let t=this.data.toCharPos();return t===null?null:t.offset}eql(t){return Hs(this.data,t.data)}until(t){return K(this.data,t.data)}move(t){let r=this.data.toCharPos();if(r===null)return e.broken();{let s=r.offset+t;return r.source.validate(s)?new ft(r.source,s).wrap():e.broken()}}collapsed(){return K(this.data,this.data)}toJSON(){return this.data.toJSON()}},ft=class{constructor(t,r){this.source=t,this.charPos=r,this.kind="CharPosition",this._locPos=null}toCharPos(){return this}toJSON(){let t=this.toHbsPos();return t===null?st:t.toJSON()}wrap(){return new Pt(this)}get offset(){return this.charPos}toHbsPos(){let t=this._locPos;if(t===null){let r=this.source.hbsPosFor(this.charPos);this._locPos=t=r===null?it:new at(this.source,r,this.charPos)}return t===it?null:t}},at=class{constructor(t,r,s=null){this.source=t,this.hbsPos=r,this.kind="HbsPosition",this._charPos=s===null?null:new ft(t,s)}toCharPos(){let t=this._charPos;if(t===null){let r=this.source.charPosFor(this.hbsPos);this._charPos=t=r===null?it:new ft(this.source,r)}return t===it?null:t}toJSON(){return this.hbsPos}wrap(){return new Pt(this)}toHbsPos(){return this}},zt=class{constructor(t,r){this.kind=t,this.pos=r}toCharPos(){return null}toJSON(){return this.pos}wrap(){return new Pt(this)}get offset(){return null}},Hs=cn((e=>e.when("HbsPosition","HbsPosition",(({hbsPos:t},{hbsPos:r})=>t.column===r.column&&t.line===r.line)).when("CharPosition","CharPosition",(({charPos:t},{charPos:r})=>t===r)).when("CharPosition","HbsPosition",(({offset:t},r)=>t===r.toCharPos()?.offset)).when("HbsPosition","CharPosition",((t,{offset:r})=>t.toCharPos()?.offset===r)).when("MATCH_ANY","MATCH_ANY",(()=>!1)))),pt=class e{static from(t,r={}){return new e(t,r.meta?.moduleName)}constructor(t,r="an unknown module"){this.source=t,this.module=r}validate(t){return t>=0&&t<=this.source.length}slice(t,r){return this.source.slice(t,r)}offsetFor(t,r){return Pt.forHbsPos(this,{line:t,column:r})}spanFor({start:t,end:r}){return A.forHbsLoc(this,{start:{line:t.line,column:t.column},end:{line:r.line,column:r.column}})}hbsPosFor(t){let r=0,s=0;if(t>this.source.length)return null;for(;;){let n=this.source.indexOf(` +`,s);if(t<=n||n===-1)return{line:r+1,column:t-s};r+=1,s=n+1}}charPosFor(t){let{line:r,column:s}=t,n=this.source.length,i=0,a=0;for(;ao)return o;if(Is){let c=this.hbsPosFor(a+s);c.line,c.column}return a+s}if(o===-1)return 0;i+=1,a=o+1}return n}};function k(e,t){let{module:r,loc:s}=t,{line:n,column:i}=s.start,a=t.asString(),o=a?` + +| +| ${a.split(` +`).join(` +| `)} +| + +`:"",c=new Error(`${e}: ${o}(error occurred in '${r}' @ line ${n} : column ${i})`);return c.name="SyntaxError",c.location=t,c.code=a,c}var be={Template:["body"],Block:["body"],MustacheStatement:["path","params","hash"],BlockStatement:["path","params","hash","program","inverse"],ElementModifierStatement:["path","params","hash"],CommentStatement:[],MustacheCommentStatement:[],ElementNode:["attributes","modifiers","children","comments"],AttrNode:["value"],TextNode:[],ConcatStatement:["parts"],SubExpression:["path","params","hash"],PathExpression:[],StringLiteral:[],BooleanLiteral:[],NumberLiteral:[],NullLiteral:[],UndefinedLiteral:[],Hash:["pairs"],HashPair:["value"]},dr=(function(){function e(t,r,s,n){let i=Error.call(this,t);this.key=n,this.message=t,this.node=r,this.parent=s,i.stack&&(this.stack=i.stack)}return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e})();function tn(e,t,r){return new dr("Cannot remove a node unless it is part of an array",e,t,r)}function Us(e,t,r){return new dr("Cannot replace a node with multiple nodes unless it is part of an array",e,t,r)}function en(e,t){return new dr("Replacing and removing in key handlers is not yet supported.",e,null,t)}var Ct=class{constructor(t,r=null,s=null){this.node=t,this.parent=r,this.parentKey=s}get parentNode(){return this.parent?this.parent.node:null}parents(){return{[Symbol.iterator]:()=>new cr(this)}}},cr=class{constructor(t){this.path=t}next(){return this.path.parent?(this.path=this.path.parent,{done:!1,value:this.path}):{done:!0,value:null}}};function un(e){return typeof e=="function"?e:e.enter}function hn(e){return typeof e=="function"?void 0:e.exit}function ye(e,t){let r,s,n,{node:i,parent:a,parentKey:o}=t,c=(function(h,f){if(h.Program&&(f==="Template"&&!h.Template||f==="Block"&&!h.Block))return h.Program;let p=h[f];return p!==void 0?p:h.All})(e,i.type);if(c!==void 0&&(r=un(c),s=hn(c)),r!==void 0&&(n=r(i,t)),n!=null){if(JSON.stringify(i)!==JSON.stringify(n))return Array.isArray(n)?(pn(e,n,a,o),n):ye(e,new Ct(n,a,o))||n;n=void 0}if(n===void 0){let h=be[i.type];for(let f=0;ftypeof t=="string"?d.var({name:t,loc:A.synthetic(t)}):t))}function sn(e=[],t=[],r=!1,s){return d.blockItself({body:e,params:mn(t),chained:r,loc:v(s||null)})}function an(e=[],t=[],r){return d.template({body:e,blockParams:t,loc:v(r||null)})}function v(...e){if(e.length===1){let t=e[0];return t&&typeof t=="object"?A.forHbsLoc(er(),t):A.forHbsLoc(er(),Fs)}{let[t,r,s,n,i]=e,a=i?new pt("",i):er();return A.forHbsLoc(a,{start:{line:t,column:r},end:{line:s||t,column:n||r}})}}var Gs={mustache:function(e,t=[],r=Ht([]),s=!1,n,i){return d.mustache({path:rt(e),params:t,hash:r,trusting:s,strip:i,loc:v(n||null)})},block:function(e,t,r,s,n=null,i,a,o,c){let h,f=null;return h=s.type==="Template"?d.blockItself({params:mn(s.blockParams),body:s.body,loc:s.loc}):s,n?.type==="Template"?(n.blockParams.length,f=d.blockItself({params:[],body:n.body,loc:n.loc})):f=n,d.block({path:rt(e),params:t||[],hash:r||Ht([]),defaultBlock:h,elseBlock:f,loc:v(i||null),openStrip:a,inverseStrip:o,closeStrip:c})},comment:function(e,t){return d.comment({value:e,loc:v(t||null)})},mustacheComment:function(e,t){return d.mustacheComment({value:e,loc:v(t||null)})},element:function(e,t={}){let r,s,{attrs:n,blockParams:i,modifiers:a,comments:o,children:c,openTag:h,closeTag:f,loc:p}=t;typeof e=="string"?e.endsWith("/")?(r=rt(e.slice(0,-1)),s=!0):r=rt(e):"type"in e?(e.type,e.type,r=e):"path"in e?(e.path.type,e.path.type,r=e.path,s=e.selfClosing):(r=rt(e.name),s=e.selfClosing);let g=i?.map((T=>typeof T=="string"?nn(T):T)),E=null;return f?E=v(f):f===void 0&&(E=s||qs(r.original)?null:v(null)),d.element({path:r,selfClosing:s||!1,attributes:n||[],params:g||[],modifiers:a||[],comments:o||[],children:c||[],openTag:v(h||null),closeTag:E,loc:v(p||null)})},elementModifier:function(e,t,r,s){return d.elementModifier({path:rt(e),params:t||[],hash:r||Ht([]),loc:v(s||null)})},attr:function(e,t,r){return d.attr({name:e,value:t,loc:v(r||null)})},text:function(e="",t){return d.text({chars:e,loc:v(t||null)})},sexpr:function(e,t=[],r=Ht([]),s){return d.sexpr({path:rt(e),params:t,hash:r,loc:v(s||null)})},concat:function(e,t){if(!Yt(e))throw new Error("b.concat requires at least one part");return d.concat({parts:e,loc:v(t||null)})},hash:Ht,pair:function(e,t,r){return d.pair({key:e,value:t,loc:v(r||null)})},literal:me,program:function(e,t,r){return t&&t.length?sn(e,t,!1,r):an(e,[],r)},blockItself:sn,template:an,loc:v,pos:function(e,t){return d.pos({line:e,column:t})},path:rt,fullPath:function(e,t=[],r){return d.path({head:e,tail:t,loc:v(r||null)})},head:function(e,t){return d.head({original:e,loc:v(t||null)})},at:function(e,t){return d.atName({name:e,loc:v(t||null)})},var:nn,this:function(e){return d.this({loc:v(e||null)})},string:rr("StringLiteral"),boolean:rr("BooleanLiteral"),number:rr("NumberLiteral"),undefined:()=>me("UndefinedLiteral",void 0),null:()=>me("NullLiteral",null)};function rr(e){return function(t,r){return me(e,t,r)}}var fe={close:!1,open:!1},d=new class{pos({line:e,column:t}){return{line:e,column:t}}blockItself({body:e,params:t,chained:r=!1,loc:s}){return{type:"Block",body:e,params:t,get blockParams(){return this.params.map((n=>n.name))},set blockParams(n){this.params=n.map((i=>d.var({name:i,loc:A.synthetic(i)})))},chained:r,loc:s}}template({body:e,blockParams:t,loc:r}){return{type:"Template",body:e,blockParams:t,loc:r}}mustache({path:e,params:t,hash:r,trusting:s,loc:n,strip:i=fe}){return(function({path:a,params:o,hash:c,trusting:h,strip:f,loc:p}){let g={type:"MustacheStatement",path:a,params:o,hash:c,trusting:h,strip:f,loc:p};return Object.defineProperty(g,"escaped",{enumerable:!1,get(){return!this.trusting},set(E){this.trusting=!E}}),g})({path:e,params:t,hash:r,trusting:s,strip:i,loc:n})}block({path:e,params:t,hash:r,defaultBlock:s,elseBlock:n=null,loc:i,openStrip:a=fe,inverseStrip:o=fe,closeStrip:c=fe}){return{type:"BlockStatement",path:e,params:t,hash:r,program:s,inverse:n,loc:i,openStrip:a,inverseStrip:o,closeStrip:c}}comment({value:e,loc:t}){return{type:"CommentStatement",value:e,loc:t}}mustacheComment({value:e,loc:t}){return{type:"MustacheCommentStatement",value:e,loc:t}}concat({parts:e,loc:t}){return{type:"ConcatStatement",parts:e,loc:t}}element({path:e,selfClosing:t,attributes:r,modifiers:s,params:n,comments:i,children:a,openTag:o,closeTag:c,loc:h}){let f=t;return{type:"ElementNode",path:e,attributes:r,modifiers:s,params:n,comments:i,children:a,openTag:o,closeTag:c,loc:h,get tag(){return this.path.original},set tag(p){this.path.original=p},get blockParams(){return this.params.map((p=>p.name))},set blockParams(p){this.params=p.map((g=>d.var({name:g,loc:A.synthetic(g)})))},get selfClosing(){return f},set selfClosing(p){f=p,this.closeTag=p?null:A.synthetic(``)}}}elementModifier({path:e,params:t,hash:r,loc:s}){return{type:"ElementModifierStatement",path:e,params:t,hash:r,loc:s}}attr({name:e,value:t,loc:r}){return{type:"AttrNode",name:e,value:t,loc:r}}text({chars:e,loc:t}){return{type:"TextNode",chars:e,loc:t}}sexpr({path:e,params:t,hash:r,loc:s}){return{type:"SubExpression",path:e,params:t,hash:r,loc:s}}path({head:e,tail:t,loc:r}){return(function({head:s,tail:n,loc:i}){let a={type:"PathExpression",head:s,tail:n,get original(){return[this.head.original,...this.tail].join(".")},set original(o){let[c,...h]=o.split(".");this.head=Gs.head(c,this.head.loc),this.tail=h},loc:i};return Object.defineProperty(a,"parts",{enumerable:!1,get(){let o=this.original.split(".");return o[0]==="this"?o.shift():o[0].startsWith("@")&&(o[0]=o[0].slice(1)),Object.freeze(o)},set(o){let c=[...o];c[0]==="this"||c[0]?.startsWith("@")||(this.head.type==="ThisHead"?c.unshift("this"):this.head.type==="AtHead"&&(c[0]=`@${c[0]}`)),this.original=c.join(".")}}),Object.defineProperty(a,"this",{enumerable:!1,get(){return this.head.type==="ThisHead"}}),Object.defineProperty(a,"data",{enumerable:!1,get(){return this.head.type==="AtHead"}}),a})({head:e,tail:t,loc:r})}head({original:e,loc:t}){return e==="this"?this.this({loc:t}):e[0]==="@"?this.atName({name:e,loc:t}):this.var({name:e,loc:t})}this({loc:e}){return{type:"ThisHead",get original(){return"this"},loc:e}}atName({name:e,loc:t}){let r="",s={type:"AtHead",get name(){return r},set name(n){n[0],n.indexOf("."),r=n},get original(){return this.name},set original(n){this.name=n},loc:t};return s.name=e,s}var({name:e,loc:t}){let r="",s={type:"VarHead",get name(){return r},set name(n){n[0],n.indexOf("."),r=n},get original(){return this.name},set original(n){this.name=n},loc:t};return s.name=e,s}hash({pairs:e,loc:t}){return{type:"Hash",pairs:e,loc:t}}pair({key:e,value:t,loc:r}){return{type:"HashPair",key:e,value:t,loc:r}}literal({type:e,value:t,loc:r}){return(function({type:s,value:n,loc:i}){let a={type:s,value:n,loc:i};return Object.defineProperty(a,"original",{enumerable:!1,get(){return this.value},set(o){this.value=o}}),a})({type:e,value:t,loc:r})}},ur=class{constructor(t,r=new Xe(Xr),s="precompile"){this.elementStack=[],this.currentAttribute=null,this.currentNode=null,this.source=t,this.lines=t.source.split(/\r\n?|\n/u),this.tokenizer=new Ze(this,r,s)}offset(){let{line:t,column:r}=this.tokenizer;return this.source.offsetFor(t,r)}pos({line:t,column:r}){return this.source.offsetFor(t,r)}finish(t){return Ye({},t,{loc:t.start.until(this.offset())})}get currentAttr(){return this.currentAttribute}get currentTag(){let t=this.currentNode;return t&&(t.type==="StartTag"||t.type),t}get currentStartTag(){let t=this.currentNode;return t&&t.type,t}get currentEndTag(){let t=this.currentNode;return t&&t.type,t}get currentComment(){let t=this.currentNode;return t&&t.type,t}get currentData(){let t=this.currentNode;return t&&t.type,t}acceptNode(t){return this[t.type](t)}currentElement(){return mr(this.elementStack)}sourceForNode(t,r){let s,n,i,a=t.loc.start.line-1,o=a-1,c=t.loc.start.column,h=[];for(r?(n=r.loc.end.line-1,i=r.loc.end.column):(n=t.loc.end.line-1,i=t.loc.end.column);o=T?-1:g.indexOf(D,E),B===-1||B+D.length>T?(E=T,O=this.source.spanFor(ir)):(E=B,O=p.sliceStartChars({skipStart:E,chars:D.length}),E+=D.length),o.push(d.var({name:D,loc:O}))}}else a=on(this.source,t,i);let c=this.Program(a.program,o),h=a.inverse?this.Program(a.inverse,[]):null,f=d.block({path:r,params:s,hash:n,defaultBlock:c,elseBlock:h,loc:this.source.spanFor(t.loc),openStrip:t.openStrip,inverseStrip:t.inverseStrip,closeStrip:t.closeStrip});At(this.currentElement(),f)}MustacheStatement(t){this.pendingError?.mustache(this.source.spanFor(t.loc));let{tokenizer:r}=this;if(r.state==="comment")return void this.appendToCommentData(this.sourceForNode(t));let s,{escaped:n,loc:i,strip:a}=t;if("original"in t.path&&t.path.original==="...attributes")throw k("Illegal use of ...attributes",this.source.spanFor(t.loc));if(fn(t.path))s=d.mustache({path:this.acceptNode(t.path),params:[],hash:d.hash({pairs:[],loc:this.source.spanFor(t.path.loc).collapse("end")}),trusting:!n,loc:this.source.spanFor(i),strip:a});else{let{path:o,params:c,hash:h}=nr(this,t);s=d.mustache({path:o,params:c,hash:h,trusting:!n,loc:this.source.spanFor(i),strip:a})}switch(r.state){case"tagOpen":case"tagName":throw k("Cannot use mustaches in an elements tagname",s.loc);case"beforeAttributeName":sr(this.currentStartTag,s);break;case"attributeName":case"afterAttributeName":this.beginAttributeValue(!1),this.finishAttributeValue(),sr(this.currentStartTag,s),r.transitionTo("beforeAttributeName");break;case"afterAttributeValueQuoted":sr(this.currentStartTag,s),r.transitionTo("beforeAttributeName");break;case"beforeAttributeValue":this.beginAttributeValue(!1),this.appendDynamicAttributeValuePart(s),r.transitionTo("attributeValueUnquoted");break;case"attributeValueDoubleQuoted":case"attributeValueSingleQuoted":case"attributeValueUnquoted":this.appendDynamicAttributeValuePart(s);break;default:At(this.currentElement(),s)}return s}appendDynamicAttributeValuePart(t){this.finalizeTextPart();let r=this.currentAttr;r.isDynamic=!0,r.parts.push(t)}finalizeTextPart(){let t=this.currentAttr.currentPart;t!==null&&(this.currentAttr.parts.push(t),this.startTextPart())}startTextPart(){this.currentAttr.currentPart=null}ContentStatement(t){(function(r,s){let n=s.loc.start.line,i=s.loc.start.column,a=(function(o,c){if(c==="")return{lines:o.split(` +`).length-1,columns:0};let[h]=o.split(c),f=h.split(/\n/u),p=f.length-1;return{lines:p,columns:f[p].length}})(s.original,s.value);n+=a.lines,a.lines?i=a.columns:i+=a.columns,r.line=n,r.column=i})(this.tokenizer,t),this.tokenizer.tokenizePart(t.value),this.tokenizer.flushData()}CommentStatement(t){let{tokenizer:r}=this;if(r.state==="comment")return this.appendToCommentData(this.sourceForNode(t)),null;let{value:s,loc:n}=t,i=d.mustacheComment({value:s,loc:this.source.spanFor(n)});switch(r.state){case"beforeAttributeName":case"afterAttributeName":this.currentStartTag.comments.push(i);break;case"beforeData":case"data":At(this.currentElement(),i);break;default:throw k(`Using a Handlebars comment when in the \`${r.state}\` state is not supported`,this.source.spanFor(t.loc))}return i}PartialStatement(t){throw k("Handlebars partials are not supported",this.source.spanFor(t.loc))}PartialBlockStatement(t){throw k("Handlebars partial blocks are not supported",this.source.spanFor(t.loc))}Decorator(t){throw k("Handlebars decorators are not supported",this.source.spanFor(t.loc))}DecoratorBlock(t){throw k("Handlebars decorator blocks are not supported",this.source.spanFor(t.loc))}SubExpression(t){let{path:r,params:s,hash:n}=nr(this,t);return d.sexpr({path:r,params:s,hash:n,loc:this.source.spanFor(t.loc)})}PathExpression(t){let{original:r}=t,s;if(r.indexOf("/")!==-1){if(r.slice(0,2)==="./")throw k('Using "./" is not supported in Glimmer and unnecessary',this.source.spanFor(t.loc));if(r.slice(0,3)==="../")throw k('Changing context using "../" is not supported in Glimmer',this.source.spanFor(t.loc));if(r.indexOf(".")!==-1)throw k("Mixing '.' and '/' in paths is not supported in Glimmer; use only '.' to separate property paths",this.source.spanFor(t.loc));s=[t.parts.join("/")]}else{if(r===".")throw k("'.' is not a supported path in Glimmer; check for a path with a trailing '.'",this.source.spanFor(t.loc));s=t.parts}let n,i=!1;if(/^this(?:\..+)?$/u.test(r)&&(i=!0),i)n=d.this({loc:this.source.spanFor({start:t.loc.start,end:{line:t.loc.start.line,column:t.loc.start.column+4}})});else if(t.data){let a=s.shift();if(a===void 0)throw k("Attempted to parse a path expression, but it was not valid. Paths beginning with @ must start with a-z.",this.source.spanFor(t.loc));n=d.atName({name:`@${a}`,loc:this.source.spanFor({start:t.loc.start,end:{line:t.loc.start.line,column:t.loc.start.column+a.length+1}})})}else{let a=s.shift();if(a===void 0)throw k("Attempted to parse a path expression, but it was not valid. Paths must start with a-z or A-Z.",this.source.spanFor(t.loc));n=d.var({name:a,loc:this.source.spanFor({start:t.loc.start,end:{line:t.loc.start.line,column:t.loc.start.column+a.length}})})}return d.path({head:n,tail:s,loc:this.source.spanFor(t.loc)})}Hash(t){let r=t.pairs.map((s=>d.pair({key:s.key,value:this.acceptNode(s.value),loc:this.source.spanFor(s.loc)})));return d.hash({pairs:r,loc:this.source.spanFor(t.loc)})}StringLiteral(t){return d.literal({type:"StringLiteral",value:t.value,loc:this.source.spanFor(t.loc)})}BooleanLiteral(t){return d.literal({type:"BooleanLiteral",value:t.value,loc:this.source.spanFor(t.loc)})}NumberLiteral(t){return d.literal({type:"NumberLiteral",value:t.value,loc:this.source.spanFor(t.loc)})}UndefinedLiteral(t){return d.literal({type:"UndefinedLiteral",value:void 0,loc:this.source.spanFor(t.loc)})}NullLiteral(t){return d.literal({type:"NullLiteral",value:null,loc:this.source.spanFor(t.loc)})}constructor(...t){super(...t),this.pendingError=null}};function nr(e,t){let r;switch(t.path.type){case"PathExpression":r=e.PathExpression(t.path);break;case"SubExpression":r=e.SubExpression(t.path);break;case"StringLiteral":case"UndefinedLiteral":case"NullLiteral":case"NumberLiteral":case"BooleanLiteral":{let i;throw i=t.path.type==="BooleanLiteral"?t.path.original.toString():t.path.type==="StringLiteral"?`"${t.path.original}"`:t.path.type==="NullLiteral"?"null":t.path.type==="NumberLiteral"?t.path.value.toString():"undefined",k(`${t.path.type} "${t.path.type==="StringLiteral"?t.path.original:i}" cannot be called as a sub-expression, replace (${i}) with ${i}`,e.source.spanFor(t.path.loc))}}let s=t.params.map((i=>e.acceptNode(i))),n=Yt(s)?mr(s).loc:r.loc;return{path:r,params:s,hash:t.hash?e.Hash(t.hash):d.hash({pairs:[],loc:e.source.spanFor(n).collapse("end")})}}function sr(e,t){let{path:r,params:s,hash:n,loc:i}=t;if(fn(r)){let o=`{{${(function(c){return c.type==="UndefinedLiteral"?"undefined":JSON.stringify(c.value)})(r)}}}`;throw k(`In <${e.name} ... ${o} ..., ${o} is not a valid modifier`,t.loc)}let a=d.elementModifier({path:r,params:s,hash:n,loc:i});e.modifiers.push(a)}function on(e,t,r){if(!t.program.loc){let n=V(0,t.program.body,0),i=V(0,t.program.body,-1);if(n&&i)t.program.loc={...n.loc,end:i.loc.end};else{let a=e.spanFor(t.loc);t.program.loc=r.withEnd(a.getEnd())}}let s=e.spanFor(t.program.loc).getEnd();return t.inverse&&!t.inverse.loc&&(t.inverse.loc=s.collapsed()),t}function Nt(e){return/[\t\n\f ]/u.test(e)}var pr=class extends hr{reset(){this.currentNode=null}beginComment(){this.currentNode={type:"CommentStatement",value:"",start:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}appendToCommentData(t){this.currentComment.value+=t}finishComment(){At(this.currentElement(),d.comment(this.finish(this.currentComment)))}beginData(){this.currentNode={type:"TextNode",chars:"",start:this.offset()}}appendToData(t){this.currentData.chars+=t}finishData(){At(this.currentElement(),d.text(this.finish(this.currentData)))}tagOpen(){this.tagOpenLine=this.tokenizer.line,this.tagOpenColumn=this.tokenizer.column}beginStartTag(){this.currentNode={type:"StartTag",name:"",nameStart:null,nameEnd:null,attributes:[],modifiers:[],comments:[],params:[],selfClosing:!1,start:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}beginEndTag(){this.currentNode={type:"EndTag",name:"",start:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}finishTag(){let t=this.finish(this.currentTag);if(t.type==="StartTag"){if(this.finishStartTag(),t.name===":")throw k("Invalid named block named detected, you may have created a named block without a name, or you may have began your name with a number. Named blocks must have names that are at least one character long, and begin with a lower case letter",this.source.spanFor({start:this.currentTag.start.toJSON(),end:this.offset().toJSON()}));(de.has(t.name)||t.selfClosing)&&this.finishEndTag(!0)}else t.type,t.type,this.finishEndTag(!1)}finishStartTag(){let{name:t,nameStart:r,nameEnd:s}=this.currentStartTag,n=r.until(s),[i,...a]=t.split("."),o=d.path({head:d.head({original:i,loc:n.sliceStartChars({chars:i.length})}),tail:a,loc:n}),{attributes:c,modifiers:h,comments:f,params:p,selfClosing:g,loc:E}=this.finish(this.currentStartTag),T=d.element({path:o,selfClosing:g,attributes:c,modifiers:h,comments:f,params:p,children:[],openTag:E,closeTag:g?null:A.broken(),loc:E});this.elementStack.push(T)}finishEndTag(t){let{start:r}=this.currentTag,s=this.finish(this.currentTag),n=this.elementStack.pop();this.validateEndTag(s,n,t);let i=this.currentElement();t?n.closeTag=null:n.selfClosing?n.closeTag:n.closeTag=r.until(this.offset()),n.loc=n.loc.withEnd(this.offset()),At(i,d.element(n))}markTagAsSelfClosing(){let t=this.currentTag;if(t.type!=="StartTag")throw k("Invalid end tag: closing tag must not be self-closing",this.source.spanFor({start:t.start.toJSON(),end:this.offset().toJSON()}));t.selfClosing=!0}appendToTagName(t){let r=this.currentTag;if(r.name+=t,r.type==="StartTag"){let s=this.offset();r.nameStart===null&&(r.nameEnd,r.nameStart=s.move(-1)),r.nameEnd=s}}beginAttribute(){let t=this.offset();this.currentAttribute={name:"",parts:[],currentPart:null,isQuoted:!1,isDynamic:!1,start:t,valueSpan:t.collapsed()}}appendToAttributeName(t){this.currentAttr.name+=t,this.currentAttr.name==="as"&&this.parsePossibleBlockParams()}beginAttributeValue(t){this.currentAttr.isQuoted=t,this.startTextPart(),this.currentAttr.valueSpan=this.offset().collapsed()}appendToAttributeValue(t){let r=this.currentAttr.parts,s=r[r.length-1],n=this.currentAttr.currentPart;if(n)n.chars+=t,n.loc=n.loc.withEnd(this.offset());else{let i=this.offset();i=t===` +`?s?s.loc.getEnd():this.currentAttr.valueSpan.getStart():i.move(-1),this.currentAttr.currentPart=d.text({chars:t,loc:i.collapsed()})}}finishAttributeValue(){this.finalizeTextPart();let t=this.currentTag,r=this.offset();if(t.type==="EndTag")throw k("Invalid end tag: closing tag must not have attributes",this.source.spanFor({start:t.start.toJSON(),end:r.toJSON()}));let{name:s,parts:n,start:i,isQuoted:a,isDynamic:o,valueSpan:c}=this.currentAttr;if(s.startsWith("|")&&n.length===0&&!a&&!o)throw k("Invalid block parameters syntax: block parameters must be preceded by the `as` keyword",i.until(i.move(s.length)));let h=this.assembleAttributeValue(n,a,o,i.until(r));h.loc=c.withEnd(r);let f=d.attr({name:s,value:h,loc:i.until(r)});this.currentStartTag.attributes.push(f)}parsePossibleBlockParams(){let t=/[!"#%&'()*+./;<=>@[\\\]^`{|}~]/u;this.tokenizer.state;let r=this.currentStartTag,s=this.currentAttr,n={state:"PossibleAs"},i={PossibleAs:o=>{if(n.state,Nt(o))n={state:"BeforeStartPipe"},this.tokenizer.transitionTo("afterAttributeName"),this.tokenizer.consume();else{if(o==="|")throw k('Invalid block parameters syntax: expecting at least one space character between "as" and "|"',s.start.until(this.offset().move(1)));n={state:"Done"}}},BeforeStartPipe:o=>{n.state,Nt(o)?this.tokenizer.consume():o==="|"?(n={state:"BeforeBlockParamName"},this.tokenizer.transitionTo("beforeAttributeName"),this.tokenizer.consume()):n={state:"Done"}},BeforeBlockParamName:o=>{if(n.state,Nt(o))this.tokenizer.consume();else if(o==="")n={state:"Done"},this.pendingError={mustache(c){throw k("Invalid block parameters syntax: mustaches cannot be used inside parameters list",c)},eof(c){throw k('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',s.start.until(c))}};else if(o==="|"){if(r.params.length===0)throw k("Invalid block parameters syntax: empty parameters list, expecting at least one identifier",s.start.until(this.offset().move(1)));n={state:"AfterEndPipe"},this.tokenizer.consume()}else{if(o===">"||o==="/")throw k('Invalid block parameters syntax: incomplete parameters list, expecting "|" but the tag was closed prematurely',s.start.until(this.offset().move(1)));n={state:"BlockParamName",name:o,start:this.offset()},this.tokenizer.consume()}},BlockParamName:o=>{if(n.state,o==="")n={state:"Done"},this.pendingError={mustache(c){throw k("Invalid block parameters syntax: mustaches cannot be used inside parameters list",c)},eof(c){throw k('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',s.start.until(c))}};else if(o==="|"||Nt(o)){let c=n.start.until(this.offset());if(n.name==="this"||t.test(n.name))throw k(`Invalid block parameters syntax: invalid identifier name \`${n.name}\``,c);r.params.push(d.var({name:n.name,loc:c})),n=o==="|"?{state:"AfterEndPipe"}:{state:"BeforeBlockParamName"},this.tokenizer.consume()}else{if(o===">"||o==="/")throw k('Invalid block parameters syntax: expecting "|" but the tag was closed prematurely',s.start.until(this.offset().move(1)));n.name+=o,this.tokenizer.consume()}},AfterEndPipe:o=>{n.state,Nt(o)?this.tokenizer.consume():o===""?(n={state:"Done"},this.pendingError={mustache(c){throw k("Invalid block parameters syntax: modifiers cannot follow parameters list",c)},eof(c){throw k('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',s.start.until(c))}}):o===">"||o==="/"?n={state:"Done"}:(n={state:"Error",message:'Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',start:this.offset()},this.tokenizer.consume())},Error:o=>{if(n.state,o===""||o==="/"||o===">"||Nt(o))throw k(n.message,n.start.until(this.offset()));this.tokenizer.consume()},Done:()=>{}},a;do a=this.tokenizer.peek(),i[n.state](a);while(n.state!=="Done"&&a!=="");n.state}reportSyntaxError(t){throw k(t,this.offset().collapsed())}assembleConcatenatedValue(t){let r=Vs(t),s=mr(t);return d.concat({parts:t,loc:this.source.spanFor(r.loc).extend(this.source.spanFor(s.loc))})}validateEndTag(t,r,s){if(de.has(t.name)&&!s)throw k(`<${t.name}> elements do not need end tags. You should remove it`,t.loc);if(r.type!=="ElementNode")throw k(`Closing tag without an open tag`,t.loc);if(r.tag!==t.name)throw k(`Closing tag did not match last open tag <${r.tag}> (on line ${r.loc.startPosition.line})`,t.loc)}assembleAttributeValue(t,r,s,n){if(s){if(r)return this.assembleConcatenatedValue(t);{let[i,a]=t;if(a===void 0||a.type==="TextNode"&&a.chars==="/")return i;throw k("An unquoted attribute value must be a string or a mustache, preceded by whitespace or a '=' character, and followed by whitespace, a '>' character, or '/>'",n)}}return Yt(t)?t[0]:d.text({chars:"",loc:n})}constructor(...t){super(...t),this.tagOpenLine=0,this.tagOpenColumn=0}},Ks={},fr=class extends Xe{constructor(){super({})}parse(){}};function dn(e,t={}){let r,s,n,i=t.mode||"precompile";typeof e=="string"?(r=new pt(e,t.meta?.moduleName),s=i==="codemod"?he(e,t.parseOptions):$e(e,t.parseOptions)):e instanceof pt?(r=e,s=i==="codemod"?he(e.source,t.parseOptions):$e(e.source,t.parseOptions)):(r=new pt("",t.meta?.moduleName),s=e),i==="codemod"&&(n=new fr);let a=A.forCharPositions(r,0,r.source.length);s.loc={source:"(program)",start:a.startPosition,end:a.endPosition};let o=new pr(r,n,i).parse(s,t.locals??[]);if(t.plugins?.ast)for(let c of t.plugins.ast)Ys(o,c(Ye({},t,{syntax:Ks},{plugins:void 0})).visitor);return o}var Ws={resolution:()=>pe.GetStrictKeyword,serialize:()=>"Strict",isAngleBracket:!1},Co={...Ws,isAngleBracket:!0};var js=Mr(be),gn=js;var mt=e=>e.loc.start.offset,Gt=e=>e.loc.end.offset;var Qs=new Set(ln());function yn(e){return e.toUpperCase()===e}function Js(e){return e.type==="ElementNode"&&typeof e.tag=="string"&&!e.tag.startsWith(":")&&(yn(e.tag[0])||e.tag.includes("."))}function $s(e){return Qs.has(e.toLowerCase())&&!yn(e[0])}function gr(e){return e.selfClosing===!0||$s(e.tag)||Js(e)&&e.children.every(t=>Se(t))}function Se(e){return e.type==="TextNode"&&!/\S/u.test(e.chars)}function bn(e){return e?.type==="MustacheCommentStatement"&&typeof e.value=="string"&&e.value.trim()==="prettier-ignore"}function Sn(e){return bn(e.node)||e.isInArray&&(e.key==="children"||e.key==="body"||e.key==="parts")&&bn(e.siblings[e.index-2])}var Nn=2;function Xs(e,t,r){let{node:s}=e;switch(s.type){case"Block":case"Program":case"Template":return I(e.map(r,"body"));case"ElementNode":{let n=t.htmlWhitespaceSensitivity!=="ignore",i=[!n&&e.previous?.type==="ElementNode"?H:"",I([ti(e,r)])];if(gr(s))return[i];let a=[""],o=s.tag==="style";if(s.children.length===0||(!n||o)&&s.children.every(h=>Se(h)))return[i,a];let c=e.map(r,"children");return o||!n?[i,F([H,...c]),H,a]:[i,F(I(c)),a]}case"BlockStatement":return Cn(e)?[oi(e,r),vn(e,t,r),wn(e,t,r)]:[si(e,r),I([vn(e,t,r),wn(e,t,r),li(e,t,r)])];case"ElementModifierStatement":return I(["{{",xn(e,r),"}}"]);case"MustacheStatement":return I([ke(s),xn(e,r),Ee(s)]);case"SubExpression":return I(["(",mi(e,r),H,")"]);case"AttrNode":{let{name:n,value:i}=s,a=i.type==="TextNode";if(a&&i.chars===""&&mt(i)===Gt(i))return n;let c=a?oe(i.chars,t.singleQuote):i.type==="ConcatStatement"?oe(i.parts.map(f=>f.type==="TextNode"?f.chars:"").join(""),t.singleQuote):"",h=r("value");return[n,"=",c,n==="class"&&c?I(F(h)):h,c]}case"ConcatStatement":return e.map(r,"parts");case"Hash":return ct(N,e.map(r,"pairs"));case"HashPair":return[s.key,"=",r("value")];case"TextNode":{let n=s.chars,{parent:i}=e;if(i.type==="ElementNode"){if(i.tag==="pre")return ie(n);if(i.tag==="style")return n=St(0,n,/^\n+/gu,""),n=R.trimEnd(n),n=R.dedentString(n),ie(n,ut)}n=St(0,n,"{{","\\{{");let a=ci(e);if(a){if(a==="class"){let D=n.trim().split(/\s+/u).join(" "),B=!1,O=!1;return e.parent.type==="ConcatStatement"&&(e.previous?.type==="MustacheStatement"&&/^\s/u.test(n)&&(B=!0),e.next?.type==="MustacheStatement"&&/\s$/u.test(n)&&D!==""&&(O=!0)),[B?N:"",D,O?N:""]}return ie(n)}let o=R.isWhitespaceOnly(n),{isFirst:c,isLast:h}=e;if(t.htmlWhitespaceSensitivity!=="ignore"){let D=h&&e.parent.type==="Template",B=c&&e.parent.type==="Template";if(o){if(B||D)return"";let C=[N],$=_t(n);return $&&(C=Kt($)),h&&(C=C.map(W=>Re(W))),C}let O=R.getLeadingWhitespace(n),z=[];if(O){z=[N];let C=_t(O);C&&(z=Kt(C)),n=n.slice(O.length)}let P=R.getTrailingWhitespace(n),U=[];if(P){if(!D){U=[N];let C=_t(P);C&&(U=Kt(C)),h&&(U=U.map($=>Re($)))}n=n.slice(0,-P.length)}return[...z,Ve(Tn(n)),...U]}let f=_t(n),p=ui(n),g=hi(n);if((c||h)&&o&&(e.parent.type==="Block"||e.parent.type==="ElementNode"||e.parent.type==="Template"))return"";o&&f?(p=Math.min(f,Nn),g=0):((e.next?.type==="BlockStatement"||e.next?.type==="ElementNode")&&(g=Math.max(g,1)),(e.previous?.type==="BlockStatement"||e.previous?.type==="ElementNode")&&(p=Math.max(p,1)));let E="",T="";return g===0&&e.next?.type==="MustacheStatement"&&(T=" "),p===0&&e.previous?.type==="MustacheStatement"&&(E=" "),c&&(p=0,E=""),h&&(g=0,T=""),R.hasLeadingWhitespace(n)&&(n=E+R.trimStart(n)),R.hasTrailingWhitespace(n)&&(n=R.trimEnd(n)+T),[...Kt(p),Ve(Tn(n)),...Kt(g)]}case"MustacheCommentStatement":{let n=mt(s),i=Gt(s),a=t.originalText.charAt(n+2)==="~",o=t.originalText.charAt(i-3)==="~",c=s.value.includes("}}")?"--":"";return["{{",a?"~":"","!",c,s.value,c,o?"~":"","}}"]}case"PathExpression":return yi(s);case"BooleanLiteral":return String(s.value);case"CommentStatement":return[""];case"StringLiteral":return pi(e,t);case"NumberLiteral":return String(s.value);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";case"FrontMatter":case"AtHead":case"VarHead":case"ThisHead":default:throw new Vr(s,"Handlebars")}}function Zs(e,t){return mt(e)-mt(t)}function ti(e,t){let{node:r}=e,s=["attributes","modifiers","comments"].filter(i=>Bt(r[i])),n=s.flatMap(i=>r[i]).sort(Zs);for(let i of s)e.each(({node:a})=>{let o=n.indexOf(a);n.splice(o,1,[N,t()])},i);return Bt(r.blockParams)&&n.push(N,yr(r)),["<",r.tag,F(n),ei(r)]}function ei(e){return gr(e)?Fe([H,"/>"],[" />",H]):Fe([H,">"],">")}function ke(e){let t=e.trusting?"{{{":"{{",r=e.strip?.open?"~":"";return[t,r]}function Ee(e){let t=e.trusting?"}}}":"}}";return[e.strip?.close?"~":"",t]}function ri(e){let t=ke(e),r=e.openStrip.open?"~":"";return[t,r,"#"]}function ni(e){let t=Ee(e);return[e.openStrip.close?"~":"",t]}function kn(e){let t=ke(e),r=e.closeStrip.open?"~":"";return[t,r,"/"]}function En(e){let t=Ee(e);return[e.closeStrip.close?"~":"",t]}function An(e){let t=ke(e),r=e.inverseStrip.open?"~":"";return[t,r]}function Pn(e){let t=Ee(e);return[e.inverseStrip.close?"~":"",t]}function si(e,t){let{node:r}=e,s=[],n=ve(e,t);return n&&s.push(I(n)),Bt(r.program.blockParams)&&s.push(yr(r.program)),I([ri(r),br(e,t),s.length>0?F([N,ct(N,s)]):"",H,ni(r)])}function ii(e,t){return[t.htmlWhitespaceSensitivity==="ignore"?ut:"",An(e),"else",Pn(e)]}var ai=({path:e},{path:t})=>[e,t].every(r=>r.type==="PathExpression"&&r.head.type==="VarHead")&&e.head.name===t.head.name;function Cn(e){if(!e.match(r=>r.type==="BlockStatement",(r,s)=>s==="body"&&r.type==="Block"&&r.body.length===1,(r,s)=>s==="inverse"&&r.type==="BlockStatement"))return!1;let{node:t}=e;return t.path.type==="PathExpression"&&t.path.head.type==="VarHead"&&t.path.head.name==="if"||ai(t,e.grandparent)}function oi(e,t){let{node:r,grandparent:s}=e;return I([An(s),["else"," ",s.inverse.body[0].path.head.name],F([N,I(ve(e,t)),...Bt(r.program.blockParams)?[N,yr(r.program)]:[]]),H,Pn(s)])}function li(e,t,r){let{node:s}=e;return t.htmlWhitespaceSensitivity==="ignore"?[_n(s)?H:ut,kn(s),r("path"),En(s)]:[kn(s),r("path"),En(s)]}function _n(e){return e.type==="BlockStatement"&&e.program.body.every(t=>Se(t))}function vn(e,t,r){let{node:s}=e;if(_n(s))return"";let n=r("program");return t.htmlWhitespaceSensitivity==="ignore"?F([ut,n]):F(n)}function wn(e,t,r){let{node:s}=e;if(!s.inverse)return"";let n=r("inverse"),i=t.htmlWhitespaceSensitivity==="ignore"?[ut,n]:n;return e.call(Cn,"inverse","body",0)?i:[ii(s,t),F(i)]}function Tn(e){return ct(N,R.split(e))}function ci(e){for(let t=0;t<2;t++){let r=e.getParentNode(t);if(r?.type==="AttrNode")return r.name.toLowerCase()}}function _t(e){return e=typeof e=="string"?e:"",e.split(` +`).length-1}function ui(e){e=typeof e=="string"?e:"";let t=(e.match(/^([^\S\n\r]*[\n\r])+/gu)||[])[0]||"";return _t(t)}function hi(e){e=typeof e=="string"?e:"";let t=(e.match(/([\n\r][^\S\n\r]*)+$/gu)||[])[0]||"";return _t(t)}function Kt(e=0){return Array.from({length:Math.min(e,Nn)}).fill(ut)}function pi(e,t){let{node:{value:r}}=e,s=oe(r,fi(e)?!t.singleQuote:t.singleQuote);return[s,St(0,r,s,`\\${s}`),s]}function fi(e){let{ancestors:t}=e,r=t.findIndex(s=>s.type!=="SubExpression");return r!==-1&&t[r+1].type==="ConcatStatement"&&t[r+2].type==="AttrNode"}function mi(e,t){let r=br(e,t),s=ve(e,t);return s?F([r,N,I(s)]):r}function xn(e,t){let r=br(e,t),s=ve(e,t);return s?[F([r,N,s]),H]:r}function br(e,t){return t("path")}function ve(e,t){let{node:r}=e,s=[];return r.params.length>0&&s.push(...e.map(t,"params")),r.hash?.pairs.length>0&&s.push(t("hash")),s.length===0?"":ct(N,s)}function yr(e){return["as |",e.blockParams.join(" "),"|"]}var di=new Set("!\"#%&'()*+,./;<=>@[\\]^`{|}~"),gi=new Set(["true","false","null","undefined"]),bi=(e,t)=>t===0&&e.startsWith("@")?!1:t!==0&&gi.has(e)||/\s/u.test(e)||/^\d/u.test(e)||Array.prototype.some.call(e,r=>di.has(r));function yi(e){return e.tail.length===0&&e.original.includes("/")?e.original:[e.head.original,...e.tail].map((r,s)=>bi(r,s)?`[${r}]`:r).join(".")}var Si={features:{experimental_frontMatterSupport:{massageAstNode:!0,embed:!0,print:!0}},print:Xs,massageAstNode:Hr,hasPrettierIgnore:Sn,getVisitorKeys:gn,embed:Ur},Ln=Si;var Dn=[{name:"Handlebars",type:"markup",aceMode:"handlebars",extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aliases:["hbs","htmlbars"],parsers:["glimmer"],vscodeLanguageIds:["handlebars"],linguistLanguageId:155}];var Sr={};Ie(Sr,{glimmer:()=>_i});function ki(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}var On=ki;var In=Symbol.for("PRETTIER_IS_FRONT_MATTER");var Wt=3;function Ei(e){let t=e.slice(0,Wt);if(t!=="---"&&t!=="+++")return;let r=e.indexOf(` +`,Wt);if(r===-1)return;let s=e.slice(Wt,r).trim(),n=e.indexOf(` +${t}`,r),i=s;if(i||(i=t==="+++"?"toml":"yaml"),n===-1&&t==="---"&&i==="yaml"&&(n=e.indexOf(` +...`,r)),n===-1)return;let a=n+1+Wt,o=e.charAt(a+1);if(!/\s?/u.test(o))return;let c=e.slice(0,a),h;return{language:i,explicitLanguage:s||null,value:e.slice(r+1,n),startDelimiter:t,endDelimiter:c.slice(-Wt),raw:c,start:{line:1,column:0,index:0},end:{index:c.length,get line(){return h??(h=c.split(` +`)),h.length},get column(){return h??(h=c.split(` +`)),V(0,h,-1).length}},[In]:!0}}function vi(e){let t=Ei(e);return t?{frontMatter:t,get content(){let{raw:r}=t;return St(0,r,/[^\n]/gu," ")+e.slice(r.length)}}:{content:e}}var Bn=vi;function wi(e){let t=e.children??e.body;if(t)for(let r=0;r{let{start:t,end:r}=e.loc;t.offset=e.loc.getStart().offset,r.offset=e.loc.getEnd().offset},xi=()=>({name:"glimmerPrettierParsePlugin",visitor:{All(e){Ti(e),wi(e)}}}),Ni={mode:"codemod",plugins:{ast:[xi]}};function Ai(e){let{frontMatter:t,content:r}=Bn(e),s;try{s=dn(r,Ni)}catch(n){let i=Ci(n);if(i){let a=Pi(n);throw On(a,{loc:i,cause:n})}throw n}if(t){let n={...t,type:"FrontMatter",loc:{start:{...t.start,offset:t.start.index},end:{...t.end,offset:t.end.index}}};s.body.unshift(n)}return s}function Pi(e){let{message:t}=e,r=t.split(` +`);return r.length>=4&&/^Parse error on line \d+:$/u.test(r[0])&&/^-*\^$/u.test(V(0,r,-2))?V(0,r,-1):r.length>=4&&/:\s?$/u.test(r[0])&&/^\(error occurred in '.*?' @ line \d+ : column \d+\)$/u.test(V(0,r,-1))&&r[1]===""&&V(0,r,-2)===""&&r.slice(2,-2).every(s=>s.startsWith("|"))?r[0].trim().slice(0,-1):t}function Ci(e){let{location:t,hash:r}=e;if(t){let{start:s,end:n}=t;return typeof n.line!="number"?{start:s}:t}if(r){let{loc:{last_line:s,last_column:n}}=r;return{start:{line:s,column:n+1}}}}var _i={parse:Ai,astFormat:"glimmer",locStart:mt,locEnd:Gt};var Li={glimmer:Ln};return Gn(Di);}); \ No newline at end of file diff --git a/node_modules/prettier/plugins/glimmer.mjs b/node_modules/prettier/plugins/glimmer.mjs new file mode 100644 index 0000000000000000000000000000000000000000..26e266d8f52161c1e39ecf88844557d4ca1cd85e --- /dev/null +++ b/node_modules/prettier/plugins/glimmer.mjs @@ -0,0 +1,37 @@ +var Un=Object.defineProperty;var Oe=(e,t)=>{for(var r in t)Un(e,r,{get:t[r],enumerable:!0})};var Bn={};Oe(Bn,{languages:()=>Ln,parsers:()=>yr,printers:()=>Ai});var Jt=(e,t)=>(r,s,...n)=>r|1&&s==null?void 0:(t.call(s)??s[e]).apply(s,n);var Mn=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},zn=Jt("replaceAll",function(){if(typeof this=="string")return Mn}),St=zn;function Yn(e){return this[e<0?this.length+e:e]}var Gn=Jt("at",function(){if(Array.isArray(this)||typeof this=="string")return Yn}),V=Gn;var Kn=()=>{},Dt=Kn;var Ot="string",It="array",$t="cursor",kt="indent",Et="align",Xt="trim",vt="group",wt="fill",Tt="if-break",Zt="indent-if-break",te="line-suffix",ee="line-suffix-boundary",Q="line",re="label",xt="break-parent",ne=new Set([$t,kt,Et,Xt,vt,wt,Tt,Zt,te,ee,Q,re,xt]);function Wn(e){if(typeof e=="string")return Ot;if(Array.isArray(e))return It;if(!e)return;let{type:t}=e;if(ne.has(t))return t}var se=Wn;var jn=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function Qn(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', +Expected it to be 'string' or 'object'.`;if(se(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let s=jn([...ne].map(n=>`'${n}'`));return`Unexpected doc.type '${e.type}'. +Expected it to be ${s}.`}var Ie=class extends Error{name="InvalidDocError";constructor(t){super(Qn(t)),this.doc=t}},_r=Ie;function Jn(e,t){if(typeof e=="string")return t(e);let r=new Map;return s(e);function s(i){if(r.has(i))return r.get(i);let a=n(i);return r.set(i,a),a}function n(i){switch(se(i)){case It:return t(i.map(s));case wt:return t({...i,parts:i.parts.map(s)});case Tt:return t({...i,breakContents:s(i.breakContents),flatContents:s(i.flatContents)});case vt:{let{expandedStates:a,contents:o}=i;return a?(a=a.map(s),o=a[0]):o=s(o),t({...i,contents:o,expandedStates:a})}case Et:case kt:case Zt:case re:case te:return t({...i,contents:s(i.contents)});case Ot:case $t:case Xt:case ee:case Q:case xt:return t(i);default:throw new _r(i)}}}function ie(e,t=Lr){return Jn(e,r=>typeof r=="string"?ct(t,r.split(` +`)):r)}var M=Dt,ae=Dt,Dr=Dt,Or=Dt;function F(e){return M(e),{type:kt,contents:e}}function $n(e,t){return Or(e),M(t),{type:Et,contents:t,n:e}}function Be(e){return $n(-1,e)}var Re={type:xt};function qe(e){return Dr(e),{type:wt,parts:e}}function I(e,t={}){return M(e),ae(t.expandedStates,!0),{type:vt,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Ve(e,t="",r={}){return M(e),t!==""&&M(t),{type:Tt,breakContents:e,flatContents:t,groupId:r.groupId}}function ct(e,t){M(e),ae(t);let r=[];for(let s=0;sa?s:r).character}var oe=rs;function Fe(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var He=class{#t;constructor(t){this.#t=new Set(t)}getLeadingWhitespaceCount(t){let r=this.#t,s=0;for(let n=0;n=0&&r.has(t.charAt(n));n--)s++;return s}getLeadingWhitespace(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(0,r)}getTrailingWhitespace(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(t.length-r)}hasLeadingWhitespace(t){return this.#t.has(t.charAt(0))}hasTrailingWhitespace(t){return this.#t.has(V(0,t,-1))}trimStart(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(r)}trimEnd(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(0,t.length-r)}trim(t){return this.trimEnd(this.trimStart(t))}split(t,r=!1){let s=`[${Fe([...this.#t].join(""))}]+`,n=new RegExp(r?`(${s})`:s,"u");return t.split(n)}hasWhitespaceCharacter(t){let r=this.#t;return Array.prototype.some.call(t,s=>r.has(s))}hasNonWhitespaceCharacter(t){let r=this.#t;return Array.prototype.some.call(t,s=>!r.has(s))}isWhitespaceOnly(t){let r=this.#t;return Array.prototype.every.call(t,s=>r.has(s))}#e(t){let r=Number.POSITIVE_INFINITY;for(let s of t.split(` +`)){if(s.length===0)continue;let n=this.getLeadingWhitespaceCount(s);if(n===0)return 0;s.length!==n&&ns.slice(r)).join(` +`)}},Rr=He;var ns=[" ",` +`,"\f","\r"," "],ss=new Rr(ns),R=ss;function is(e){return Array.isArray(e)&&e.length>0}var Bt=is;var Ue=class extends Error{name="UnexpectedNodeError";constructor(t,r,s="type"){super(`Unexpected ${r} node ${s}: ${JSON.stringify(t[s])}.`),this.node=t}},qr=Ue;function Vr(e,t,r){if(e.type==="TextNode"){let s=e.chars.trim();if(!s)return null;r.tag==="style"&&r.children.length===1&&r.children[0]===e?t.chars="":t.chars=R.split(s).join(" ")}e.type==="ElementNode"&&(delete t.startTag,delete t.openTag,delete t.parts,delete t.endTag,delete t.closeTag,delete t.nameNode,delete t.body,delete t.blockParamNodes,delete t.params,delete t.path),e.type==="Block"&&(delete t.blockParamNodes,delete t.params),e.type==="AttrNode"&&e.name.toLowerCase()==="class"&&delete t.value,e.type==="PathExpression"&&(t.head=e.head.original)}Vr.ignoredProperties=new Set(["loc","selfClosing"]);var Fr=Vr;function as(e){let{node:t}=e;if(t.type!=="TextNode")return;let{parent:r}=e;if(!(r.type==="ElementNode"&&r.tag==="style"&&r.children.length===1&&r.children[0]===t))return;let s=r.attributes.find(n=>n.type==="AttrNode"&&n.name==="lang");if(!(s&&!(s.value.type==="TextNode"&&(s.value.chars===""||s.value.chars==="css"))))return async n=>{let i=t.chars;return i.trim()?await n(i,{parser:"css"}):""}}var Hr=as;var Rt=null;function qt(e){if(Rt!==null&&typeof Rt.property){let t=Rt;return Rt=qt.prototype=null,t}return Rt=qt.prototype=e??Object.create(null),new qt}var os=10;for(let e=0;e<=os;e++)qt();function Me(e){return qt(e)}function ls(e,t="type"){Me(e);function r(s){let n=s[t],i=e[n];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${n}'.`),{node:s});return i}return r}var Ur=ls;var cs=Object.freeze([]);function zr(){return cs}var $a=zr(),Xa=zr();var ze=Object.assign;var Mr=console;function Yr(e,t="unexpected unreachable branch"){throw Mr.log("unreachable",e),Mr.log(`${t} :: ${JSON.stringify(e)} (${e})`),new Error("code reached unreachable")}var us=(function(){var e=function(X,b,S,y){for(S=S||{},y=X.length;y--;S[X[y]]=b);return S},t=[2,52],r=[1,20],s=[5,14,15,19,29,34,39,44,47,48,53,57,61],n=[1,44],i=[1,40],a=[1,43],o=[1,33],c=[1,34],h=[1,35],f=[1,36],p=[1,37],g=[1,42],E=[1,46],T=[14,15,19,29,34,39,44,47,48,53,57,61],D=[14,15,19,29,34,44,47,48,53,57,61],B=[15,18],O=[14,15,19,29,34,47,48,53,57,61],z=[33,67,73,75,84,85,86,87,88,89],P=[23,33,56,67,68,73,75,77,79,84,85,86,87,88,89],U=[1,62],C=[1,63],$=[23,33,56,68,73,79],W=[23,33,56,67,68,73,75,77,79,84,85,86,87,88,89,92,93],Sr=[2,51],kr=[1,64],Er=[67,73,75,77,84,85,86,87,88,89],vr=[56,67,73,75,84,85,86,87,88,89],wr=[1,75],we=[1,76],Te=[1,83],dt=[33,67,73,75,79,84,85,86,87,88,89],Tr=[23,67,73,75,84,85,86,87,88,89],xr=[67,68,73,75,84,85,86,87,88,89],gt=[33,79],xe=[1,134],Nr=[73,81],Ne={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,hash:49,expr:50,mustache_repetition0:51,mustache_option0:52,OPEN_UNESCAPED:53,mustache_repetition1:54,mustache_option1:55,CLOSE_UNESCAPED:56,OPEN_PARTIAL:57,partial_repetition0:58,partial_option0:59,openPartialBlock:60,OPEN_PARTIAL_BLOCK:61,openPartialBlock_repetition0:62,openPartialBlock_option0:63,exprHead:64,arrayLiteral:65,sexpr:66,OPEN_SEXPR:67,CLOSE_SEXPR:68,sexpr_repetition0:69,sexpr_option0:70,hash_repetition_plus0:71,hashSegment:72,ID:73,EQUALS:74,OPEN_ARRAY:75,arrayLiteral_repetition0:76,CLOSE_ARRAY:77,blockParams:78,OPEN_BLOCK_PARAMS:79,blockParams_repetition_plus0:80,CLOSE_BLOCK_PARAMS:81,path:82,dataName:83,STRING:84,NUMBER:85,BOOLEAN:86,UNDEFINED:87,NULL:88,DATA:89,pathSegments:90,sep:91,SEP:92,PRIVATE_SEP:93,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",53:"OPEN_UNESCAPED",56:"CLOSE_UNESCAPED",57:"OPEN_PARTIAL",61:"OPEN_PARTIAL_BLOCK",67:"OPEN_SEXPR",68:"CLOSE_SEXPR",73:"ID",74:"EQUALS",75:"OPEN_ARRAY",77:"CLOSE_ARRAY",79:"OPEN_BLOCK_PARAMS",81:"CLOSE_BLOCK_PARAMS",84:"STRING",85:"NUMBER",86:"BOOLEAN",87:"UNDEFINED",88:"NULL",89:"DATA",92:"SEP",93:"PRIVATE_SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,3],[8,5],[8,5],[11,5],[12,3],[60,5],[50,1],[50,1],[64,1],[64,1],[66,3],[66,5],[49,1],[72,3],[65,3],[78,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[83,2],[91,1],[91,1],[82,3],[82,1],[90,3],[90,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[51,0],[51,2],[52,0],[52,1],[54,0],[54,2],[55,0],[55,1],[58,0],[58,2],[59,0],[59,1],[62,0],[62,2],[63,0],[63,1],[69,0],[69,2],[70,0],[70,1],[71,1],[71,2],[76,0],[76,2],[80,1],[80,2]],performAction:function(b,S,y,m,w,l,bt){var u=l.length-1;switch(w){case 1:return l[u-1];case 2:this.$=m.prepareProgram(l[u]);break;case 3:case 4:case 5:case 6:case 7:case 8:case 20:case 28:case 29:case 30:case 31:case 38:case 39:case 46:case 47:this.$=l[u];break;case 9:this.$={type:"CommentStatement",value:m.stripComment(l[u]),strip:m.stripFlags(l[u],l[u]),loc:m.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[u],value:l[u],loc:m.locInfo(this._$)};break;case 11:this.$=m.prepareRawBlock(l[u-2],l[u-1],l[u],this._$);break;case 12:this.$={path:l[u-3],params:l[u-2],hash:l[u-1]};break;case 13:this.$=m.prepareBlock(l[u-3],l[u-2],l[u-1],l[u],!1,this._$);break;case 14:this.$=m.prepareBlock(l[u-3],l[u-2],l[u-1],l[u],!0,this._$);break;case 15:this.$={open:l[u-5],path:l[u-4],params:l[u-3],hash:l[u-2],blockParams:l[u-1],strip:m.stripFlags(l[u-5],l[u])};break;case 16:case 17:this.$={path:l[u-4],params:l[u-3],hash:l[u-2],blockParams:l[u-1],strip:m.stripFlags(l[u-5],l[u])};break;case 18:this.$={strip:m.stripFlags(l[u-1],l[u-1]),program:l[u]};break;case 19:var Z=m.prepareBlock(l[u-2],l[u-1],l[u],l[u],!1,this._$),Lt=m.prepareProgram([Z],l[u-1].loc);Lt.chained=!0,this.$={strip:l[u-2].strip,program:Lt,chain:!0};break;case 21:this.$={path:l[u-1],strip:m.stripFlags(l[u-2],l[u])};break;case 22:this.$=m.prepareMustache(m.syntax.hash(l[u-1],m.locInfo(this._$),{yy:m,syntax:"expr"}),[],void 0,l[u-2],m.stripFlags(l[u-2],l[u]),this._$);break;case 23:case 24:this.$=m.prepareMustache(l[u-3],l[u-2],l[u-1],l[u-4],m.stripFlags(l[u-4],l[u]),this._$);break;case 25:this.$={type:"PartialStatement",name:l[u-3],params:l[u-2],hash:l[u-1],indent:"",strip:m.stripFlags(l[u-4],l[u]),loc:m.locInfo(this._$)};break;case 26:this.$=m.preparePartialBlock(l[u-2],l[u-1],l[u],this._$);break;case 27:this.$={path:l[u-3],params:l[u-2],hash:l[u-1],strip:m.stripFlags(l[u-4],l[u])};break;case 32:this.$=m.syntax.hash(l[u-1],m.locInfo(this._$),{yy:m,syntax:"expr"});break;case 33:this.$={type:"SubExpression",path:l[u-3],params:l[u-2],hash:l[u-1],loc:m.locInfo(this._$)};break;case 34:this.$={type:"Hash",pairs:l[u],loc:m.locInfo(this._$)};break;case 35:this.$={type:"HashPair",key:m.id(l[u-2]),value:l[u],loc:m.locInfo(this._$)};break;case 36:this.$=m.syntax.square(l[u-1],m.locInfo(this._$),{yy:m,syntax:"expr"});break;case 37:this.$=m.id(l[u-1]);break;case 40:this.$={type:"StringLiteral",value:l[u],original:l[u],loc:m.locInfo(this._$)};break;case 41:this.$={type:"NumberLiteral",value:Number(l[u]),original:Number(l[u]),loc:m.locInfo(this._$)};break;case 42:this.$={type:"BooleanLiteral",value:l[u]==="true",original:l[u]==="true",loc:m.locInfo(this._$)};break;case 43:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:m.locInfo(this._$)};break;case 44:this.$={type:"NullLiteral",original:null,value:null,loc:m.locInfo(this._$)};break;case 45:this.$=m.preparePath(!0,!1,l[u],this._$);break;case 48:this.$=m.preparePath(!1,l[u-2],l[u],this._$);break;case 49:this.$=m.preparePath(!1,!1,l[u],this._$);break;case 50:l[u-2].push({part:m.id(l[u]),original:l[u],separator:l[u-1]}),this.$=l[u-2];break;case 51:this.$=[{part:m.id(l[u]),original:l[u]}];break;case 52:case 54:case 56:case 64:case 70:case 76:case 84:case 88:case 92:case 96:case 100:case 106:this.$=[];break;case 53:case 55:case 57:case 65:case 71:case 77:case 85:case 89:case 93:case 97:case 101:case 105:case 107:case 109:l[u-1].push(l[u]);break;case 104:case 108:this.$=[l[u]];break}},table:[e([5,14,15,19,29,34,48,53,57,61],t,{3:1,4:2,6:3}),{1:[3]},{5:[1,4]},e([5,39,44,47],[2,2],{7:5,8:6,9:7,10:8,11:9,12:10,13:11,24:15,27:16,16:17,60:19,14:[1,12],15:r,19:[1,23],29:[1,21],34:[1,22],48:[1,13],53:[1,14],57:[1,18],61:[1,24]}),{1:[2,1]},e(s,[2,53]),e(s,[2,3]),e(s,[2,4]),e(s,[2,5]),e(s,[2,6]),e(s,[2,7]),e(s,[2,8]),e(s,[2,9]),{20:28,49:25,50:26,64:29,65:38,66:39,67:n,71:27,72:30,73:i,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},{20:28,50:45,64:29,65:38,66:39,67:n,73:E,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},e(T,t,{6:3,4:47}),e(D,t,{6:3,4:48}),e(B,[2,54],{17:49}),{20:28,50:50,64:29,65:38,66:39,67:n,73:E,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},e(O,t,{6:3,4:51}),e([5,14,15,18,19,29,34,39,44,47,48,53,57,61],[2,10]),{20:52,64:53,65:38,66:39,67:n,73:E,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},{20:54,64:53,65:38,66:39,67:n,73:E,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},{20:55,64:53,65:38,66:39,67:n,73:E,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},{20:28,50:56,64:29,65:38,66:39,67:n,73:E,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},{33:[1,57]},e(z,[2,84],{51:58}),e([23,33,56,68,79],[2,34],{72:59,73:[1,60]}),e(P,[2,28]),e(P,[2,29],{91:61,92:U,93:C}),e($,[2,104]),e(P,[2,38]),e(P,[2,39]),e(P,[2,40]),e(P,[2,41]),e(P,[2,42]),e(P,[2,43]),e(P,[2,44]),e(W,[2,30]),e(W,[2,31]),e([23,33,56,67,68,73,75,79,84,85,86,87,88,89,92,93],Sr,{74:kr}),e(P,[2,49],{91:65,92:U,93:C}),{73:E,90:66},e(Er,[2,106],{76:67}),{20:28,49:68,50:69,64:29,65:38,66:39,67:n,71:27,72:30,73:i,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},e(vr,[2,88],{54:70}),e(W,Sr),{25:71,38:73,39:wr,43:74,44:we,45:72,47:[2,60]},{28:77,43:78,44:we,47:[2,62]},{13:80,15:r,18:[1,79]},e(z,[2,92],{58:81}),{26:82,47:Te},e(dt,[2,64],{30:84}),{91:61,92:U,93:C},e(dt,[2,70],{35:85}),e(Tr,[2,56],{21:86}),e(z,[2,96],{62:87}),e(s,[2,22]),{20:28,33:[2,86],49:90,50:89,52:88,64:29,65:38,66:39,67:n,71:27,72:30,73:i,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},e($,[2,105]),{74:kr},{73:E,90:91},{73:[2,46]},{73:[2,47]},{20:28,50:92,64:29,65:38,66:39,67:n,73:E,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},{73:[1,93]},e(P,[2,45],{91:65,92:U,93:C}),{20:28,50:95,64:29,65:38,66:39,67:n,73:E,75:a,77:[1,94],82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},{68:[1,96]},e(xr,[2,100],{69:97}),{20:28,49:100,50:99,55:98,56:[2,90],64:29,65:38,66:39,67:n,71:27,72:30,73:i,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},{26:101,47:Te},{47:[2,61]},e(T,t,{6:3,4:102}),{47:[2,20]},{20:103,64:53,65:38,66:39,67:n,73:E,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},e(O,t,{6:3,4:104}),{26:105,47:Te},{47:[2,63]},e(s,[2,11]),e(B,[2,55]),{20:28,33:[2,94],49:108,50:107,59:106,64:29,65:38,66:39,67:n,71:27,72:30,73:i,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},e(s,[2,26]),{20:109,64:53,65:38,66:39,67:n,73:E,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},e(gt,[2,66],{71:27,20:28,64:29,72:30,82:31,83:32,65:38,66:39,90:41,31:110,50:111,49:112,67:n,73:i,75:a,84:o,85:c,86:h,87:f,88:p,89:g}),e(gt,[2,72],{71:27,20:28,64:29,72:30,82:31,83:32,65:38,66:39,90:41,36:113,50:114,49:115,67:n,73:i,75:a,84:o,85:c,86:h,87:f,88:p,89:g}),{20:28,22:116,23:[2,58],49:118,50:117,64:29,65:38,66:39,67:n,71:27,72:30,73:i,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},{20:28,33:[2,98],49:121,50:120,63:119,64:29,65:38,66:39,67:n,71:27,72:30,73:i,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},{33:[1,122]},e(z,[2,85]),{33:[2,87]},e(P,[2,48],{91:65,92:U,93:C}),e($,[2,35]),e(W,[2,50]),e(W,[2,36]),e(Er,[2,107]),e(W,[2,32]),{20:28,49:125,50:124,64:29,65:38,66:39,67:n,68:[2,102],70:123,71:27,72:30,73:i,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},{56:[1,126]},e(vr,[2,89]),{56:[2,91]},e(s,[2,13]),{38:73,39:wr,43:74,44:we,45:128,46:127,47:[2,82]},e(dt,[2,76],{40:129}),{47:[2,18]},e(s,[2,14]),{33:[1,130]},e(z,[2,93]),{33:[2,95]},{33:[1,131]},{32:132,33:[2,68],78:133,79:xe},e(dt,[2,65]),e(gt,[2,67]),{33:[2,74],37:135,78:136,79:xe},e(dt,[2,71]),e(gt,[2,73]),{23:[1,137]},e(Tr,[2,57]),{23:[2,59]},{33:[1,138]},e(z,[2,97]),{33:[2,99]},e(s,[2,23]),{68:[1,139]},e(xr,[2,101]),{68:[2,103]},e(s,[2,24]),{47:[2,19]},{47:[2,83]},e(gt,[2,78],{71:27,20:28,64:29,72:30,82:31,83:32,65:38,66:39,90:41,41:140,50:141,49:142,67:n,73:i,75:a,84:o,85:c,86:h,87:f,88:p,89:g}),e(s,[2,25]),e(s,[2,21]),{33:[1,143]},{33:[2,69]},{73:[1,145],80:144},{33:[1,146]},{33:[2,75]},e(B,[2,12]),e(O,[2,27]),e(W,[2,33]),{33:[2,80],42:147,78:148,79:xe},e(dt,[2,77]),e(gt,[2,79]),e(T,[2,15]),{73:[1,150],81:[1,149]},e(Nr,[2,108]),e(D,[2,16]),{33:[1,151]},{33:[2,81]},{33:[2,37]},e(Nr,[2,109]),e(T,[2,17])],defaultActions:{4:[2,1],62:[2,46],63:[2,47],72:[2,61],74:[2,20],78:[2,63],90:[2,87],100:[2,91],104:[2,18],108:[2,95],118:[2,59],121:[2,99],125:[2,103],127:[2,19],128:[2,83],133:[2,69],136:[2,75],148:[2,81],149:[2,37]},parseError:function(b,S){if(S.recoverable)this.trace(b);else{var y=new Error(b);throw y.hash=S,y}},parse:function(b){var S=this,y=[0],m=[],w=[null],l=[],bt=this.table,u="",Z=0,Lt=0,Ar=0,qn=2,Pr=1,Vn=l.slice.call(arguments,1),x=Object.create(this.lexer),ot={yy:{}};for(var Pe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Pe)&&(ot.yy[Pe]=this.yy[Pe]);x.setInput(b,ot.yy),ot.yy.lexer=x,ot.yy.parser=this,typeof x.yylloc>"u"&&(x.yylloc={});var Ce=x.yylloc;l.push(Ce);var Fn=x.options&&x.options.ranges;typeof ot.yy.parseError=="function"?this.parseError=ot.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Pi(Y){y.length=y.length-2*Y,w.length=w.length-Y,l.length=l.length-Y}for(var Hn=function(){var Y;return Y=x.lex()||Pr,typeof Y!="number"&&(Y=S.symbols_[Y]||Y),Y},L,_e,lt,q,Ci,Le,yt={},jt,j,Cr,Qt;;){if(lt=y[y.length-1],this.defaultActions[lt]?q=this.defaultActions[lt]:((L===null||typeof L>"u")&&(L=Hn()),q=bt[lt]&&bt[lt][L]),typeof q>"u"||!q.length||!q[0]){var De="";Qt=[];for(jt in bt[lt])this.terminals_[jt]&&jt>qn&&Qt.push("'"+this.terminals_[jt]+"'");x.showPosition?De="Parse error on line "+(Z+1)+`: +`+x.showPosition()+` +Expecting `+Qt.join(", ")+", got '"+(this.terminals_[L]||L)+"'":De="Parse error on line "+(Z+1)+": Unexpected "+(L==Pr?"end of input":"'"+(this.terminals_[L]||L)+"'"),this.parseError(De,{text:x.match,token:this.terminals_[L]||L,line:x.yylineno,loc:Ce,expected:Qt})}if(q[0]instanceof Array&&q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+lt+", token: "+L);switch(q[0]){case 1:y.push(L),w.push(x.yytext),l.push(x.yylloc),y.push(q[1]),L=null,_e?(L=_e,_e=null):(Lt=x.yyleng,u=x.yytext,Z=x.yylineno,Ce=x.yylloc,Ar>0&&Ar--);break;case 2:if(j=this.productions_[q[1]][1],yt.$=w[w.length-j],yt._$={first_line:l[l.length-(j||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(j||1)].first_column,last_column:l[l.length-1].last_column},Fn&&(yt._$.range=[l[l.length-(j||1)].range[0],l[l.length-1].range[1]]),Le=this.performAction.apply(yt,[u,Lt,Z,ot.yy,q[1],w,l].concat(Vn)),typeof Le<"u")return Le;j&&(y=y.slice(0,-1*j*2),w=w.slice(0,-1*j),l=l.slice(0,-1*j)),y.push(this.productions_[q[1]][0]),w.push(yt.$),l.push(yt._$),Cr=bt[y[y.length-2]][y[y.length-1]],y.push(Cr);break;case 3:return!0}}return!0}},Rn=(function(){var X={EOF:1,parseError:function(S,y){if(this.yy.parser)this.yy.parser.parseError(S,y);else throw new Error(S)},setInput:function(b,S){return this.yy=S||this.yy||{},this._input=b,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var b=this._input[0];this.yytext+=b,this.yyleng++,this.offset++,this.match+=b,this.matched+=b;var S=b.match(/(?:\r\n?|\n).*/g);return S?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),b},unput:function(b){var S=b.length,y=b.split(/(?:\r\n?|\n)/g);this._input=b+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-S),this.offset-=S;var m=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),y.length-1&&(this.yylineno-=y.length-1);var w=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:y?(y.length===m.length?this.yylloc.first_column:0)+m[m.length-y.length].length-y[0].length:this.yylloc.first_column-S},this.options.ranges&&(this.yylloc.range=[w[0],w[0]+this.yyleng-S]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(b){this.unput(this.match.slice(b))},pastInput:function(){var b=this.matched.substr(0,this.matched.length-this.match.length);return(b.length>20?"...":"")+b.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var b=this.match;return b.length<20&&(b+=this._input.substr(0,20-b.length)),(b.substr(0,20)+(b.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var b=this.pastInput(),S=new Array(b.length+1).join("-");return b+this.upcomingInput()+` +`+S+"^"},test_match:function(b,S){var y,m,w;if(this.options.backtrack_lexer&&(w={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(w.yylloc.range=this.yylloc.range.slice(0))),m=b[0].match(/(?:\r\n?|\n).*/g),m&&(this.yylineno+=m.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:m?m[m.length-1].length-m[m.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+b[0].length},this.yytext+=b[0],this.match+=b[0],this.matches=b,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(b[0].length),this.matched+=b[0],y=this.performAction.call(this,this.yy,this,S,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),y)return y;if(this._backtrack){for(var l in w)this[l]=w[l];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var b,S,y,m;this._more||(this.yytext="",this.match="");for(var w=this._currentRules(),l=0;lS[0].length)){if(S=y,m=l,this.options.backtrack_lexer){if(b=this.test_match(y,w[l]),b!==!1)return b;if(this._backtrack){S=!1;continue}else return!1}else if(!this.options.flex)break}return S?(b=this.test_match(S,w[m]),b!==!1?b:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var S=this.next();return S||this.lex()},begin:function(S){this.conditionStack.push(S)},popState:function(){var S=this.conditionStack.length-1;return S>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(S){return S=this.conditionStack.length-1-Math.abs(S||0),S>=0?this.conditionStack[S]:"INITIAL"},pushState:function(S){this.begin(S)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(S,y,m,w){function l(u,Z){return y.yytext=y.yytext.substring(u,y.yyleng-Z+u)}var bt=w;switch(m){case 0:if(y.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):y.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),y.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(l(5,9),18);case 5:return 15;case 6:return this.popState(),14;break;case 7:return 67;case 8:return 68;case 9:if(S.syntax.square==="string")this.unput(y.yytext),this.begin("escl");else return 75;break;case 10:return 77;case 11:return 19;case 12:return this.popState(),this.begin("raw"),23;break;case 13:return 57;case 14:return 61;case 15:return 29;case 16:return 47;case 17:return this.popState(),44;break;case 18:return this.popState(),44;break;case 19:return 34;case 20:return 39;case 21:return 53;case 22:return 48;case 23:this.unput(y.yytext),this.popState(),this.begin("com");break;case 24:return this.popState(),14;break;case 25:return 48;case 26:return 74;case 27:return 73;case 28:return 73;case 29:return 93;case 30:return 92;case 31:break;case 32:return this.popState(),56;break;case 33:return this.popState(),33;break;case 34:return y.yytext=l(1,2).replace(/\\"/g,'"'),84;break;case 35:return y.yytext=l(1,2).replace(/\\'/g,"'"),84;break;case 36:return 89;case 37:return 86;case 38:return 86;case 39:return 87;case 40:return 88;case 41:return 85;case 42:return 79;case 43:return 81;case 44:return 73;case 45:return y.yytext=y.yytext.replace(/\\([\\\]])/g,"$1"),this.popState(),73;break;case 46:return"INVALID";case 47:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\[)/,/^(?:\])/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)\]|])))/,/^(?:\.#)/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)\]])))/,/^(?:false(?=([~}\s)\]])))/,/^(?:undefined(?=([~}\s)\]])))/,/^(?:null(?=([~}\s)\]])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)\]])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)\]|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,46,47],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},escl:{rules:[45],inclusive:!1},INITIAL:{rules:[0,1,47],inclusive:!0}}};return X})();Ne.lexer=Rn;function Ae(){this.yy={}}return Ae.prototype=Ne,Ne.Parser=Ae,new Ae})(),Vt=us;var Ye=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function Ge(e,t){var r=t&&t.loc,s,n,i,a;r&&(s=r.start.line,n=r.end.line,i=r.start.column,a=r.end.column,e+=" - "+s+":"+i);for(var o=Error.prototype.constructor.call(this,e),c=0;cQe,id:()=>ps,prepareBlock:()=>ys,prepareMustache:()=>gs,preparePartialBlock:()=>ks,preparePath:()=>ds,prepareProgram:()=>Ss,prepareRawBlock:()=>bs,stripComment:()=>ms,stripFlags:()=>fs});var hs=function(e,t,r){if(r||arguments.length===2)for(var s=0,n=t.length,i;s0)throw new tt("Invalid path: "+n,{loc:s});h===".."&&a++}else i.push("".concat(g).concat(h))}var E=t||i.shift();return{type:"PathExpression",this:n.startsWith("this."),data:e,depth:a,head:E,tail:i,parts:E?hs([E],i,!0):i,original:n,loc:s}}function gs(e,t,r,s,n,i){var a=s.charAt(3)||s.charAt(2),o=a!=="{"&&a!=="&",c=/\*/.test(s);return{type:c?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:o,strip:n,loc:this.locInfo(i)}}function bs(e,t,r,s){je(e,r),s=this.locInfo(s);var n={type:"Program",body:t,strip:{},loc:s};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:n,openStrip:{},inverseStrip:{},closeStrip:{},loc:s}}function ys(e,t,r,s,n,i){s&&s.path&&je(e,s);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var o,c;if(r){if(a)throw new tt("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=s.strip),c=r.strip,o=r.program}return n&&(n=o,o=t,t=n),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:o,openStrip:e.strip,inverseStrip:c,closeStrip:s&&s.strip,loc:this.locInfo(i)}}function Ss(e,t){if(!t&&e.length){var r=e[0].loc,s=e[e.length-1].loc;r&&s&&(t={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:s.end.line,column:s.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}function ks(e,t,r,s){return je(e,r),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:r&&r.strip,loc:this.locInfo(s)}}var Qr={};for(ue in Ft)Object.prototype.hasOwnProperty.call(Ft,ue)&&(Qr[ue]=Ft[ue]);var ue;function he(e,t){var r,s,n;if(e.type==="Program")return e;Vt.yy=Qr,Vt.yy.locInfo=function(o){return new Qe(t&&t.srcName,o)};var i;typeof((r=t?.syntax)===null||r===void 0?void 0:r.square)=="function"?i=t.syntax.square:((s=t?.syntax)===null||s===void 0?void 0:s.square)==="node"?i=Es:i="string";var a;return typeof((n=t?.syntax)===null||n===void 0?void 0:n.hash)=="function"?a=t.syntax.hash:a=vs,Vt.yy.syntax={square:i,hash:a},Vt.parse(e)}function Es(e,t){return{type:"ArrayLiteral",items:e,loc:t}}function vs(e,t){return{type:"HashLiteral",pairs:e.pairs,loc:t}}function Je(e,t){var r=he(e,t),s=new jr(t);return s.accept(r)}var $r={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` +`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"},ws=/^#[xX]([A-Fa-f0-9]+)$/,Ts=/^#([0-9]+)$/,xs=/^([A-Za-z0-9]+)$/,$e=(function(){function e(t){this.named=t}return e.prototype.parse=function(t){if(t){var r=t.match(ws);if(r)return String.fromCharCode(parseInt(r[1],16));if(r=t.match(Ts),r)return String.fromCharCode(parseInt(r[1],10));if(r=t.match(xs),r)return this.named[r[1]]}},e})(),Ns=/[\t\n\f ]/,As=/[A-Za-z]/,Ps=/\r\n?/g;function _(e){return Ns.test(e)}function Jr(e){return As.test(e)}function Cs(e){return e.replace(Ps,` +`)}var Xe=(function(){function e(t,r,s){s===void 0&&(s="precompile"),this.delegate=t,this.entityParser=r,this.mode=s,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var n=this.peek();if(n==="<"&&!this.isIgnoredEndTag())this.transitionTo("tagOpen"),this.markTagStart(),this.consume();else{if(this.mode==="precompile"&&n===` +`){var i=this.tagNameBuffer.toLowerCase();(i==="pre"||i==="textarea")&&this.consume()}this.transitionTo("data"),this.delegate.beginData()}},data:function(){var n=this.peek(),i=this.tagNameBuffer;n==="<"&&!this.isIgnoredEndTag()?(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume()):n==="&"&&i!=="script"&&i!=="style"?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(n))},tagOpen:function(){var n=this.consume();n==="!"?this.transitionTo("markupDeclarationOpen"):n==="/"?this.transitionTo("endTagOpen"):(n==="@"||n===":"||Jr(n))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(n))},markupDeclarationOpen:function(){var n=this.consume();if(n==="-"&&this.peek()==="-")this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment();else{var i=n.toUpperCase()+this.input.substring(this.index,this.index+6).toUpperCase();i==="DOCTYPE"&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.transitionTo("doctype"),this.delegate.beginDoctype&&this.delegate.beginDoctype())}},doctype:function(){var n=this.consume();_(n)&&this.transitionTo("beforeDoctypeName")},beforeDoctypeName:function(){var n=this.consume();_(n)||(this.transitionTo("doctypeName"),this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(n.toLowerCase()))},doctypeName:function(){var n=this.consume();_(n)?this.transitionTo("afterDoctypeName"):n===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(n.toLowerCase())},afterDoctypeName:function(){var n=this.consume();if(!_(n))if(n===">")this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData");else{var i=n.toUpperCase()+this.input.substring(this.index,this.index+5).toUpperCase(),a=i.toUpperCase()==="PUBLIC",o=i.toUpperCase()==="SYSTEM";(a||o)&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume()),a?this.transitionTo("afterDoctypePublicKeyword"):o&&this.transitionTo("afterDoctypeSystemKeyword")}},afterDoctypePublicKeyword:function(){var n=this.peek();_(n)?(this.transitionTo("beforeDoctypePublicIdentifier"),this.consume()):n==='"'?(this.transitionTo("doctypePublicIdentifierDoubleQuoted"),this.consume()):n==="'"?(this.transitionTo("doctypePublicIdentifierSingleQuoted"),this.consume()):n===">"&&(this.consume(),this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},doctypePublicIdentifierDoubleQuoted:function(){var n=this.consume();n==='"'?this.transitionTo("afterDoctypePublicIdentifier"):n===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(n)},doctypePublicIdentifierSingleQuoted:function(){var n=this.consume();n==="'"?this.transitionTo("afterDoctypePublicIdentifier"):n===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(n)},afterDoctypePublicIdentifier:function(){var n=this.consume();_(n)?this.transitionTo("betweenDoctypePublicAndSystemIdentifiers"):n===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):n==='"'?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):n==="'"&&this.transitionTo("doctypeSystemIdentifierSingleQuoted")},betweenDoctypePublicAndSystemIdentifiers:function(){var n=this.consume();_(n)||(n===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):n==='"'?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):n==="'"&&this.transitionTo("doctypeSystemIdentifierSingleQuoted"))},doctypeSystemIdentifierDoubleQuoted:function(){var n=this.consume();n==='"'?this.transitionTo("afterDoctypeSystemIdentifier"):n===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(n)},doctypeSystemIdentifierSingleQuoted:function(){var n=this.consume();n==="'"?this.transitionTo("afterDoctypeSystemIdentifier"):n===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(n)},afterDoctypeSystemIdentifier:function(){var n=this.consume();_(n)||n===">"&&(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},commentStart:function(){var n=this.consume();n==="-"?this.transitionTo("commentStartDash"):n===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(n),this.transitionTo("comment"))},commentStartDash:function(){var n=this.consume();n==="-"?this.transitionTo("commentEnd"):n===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var n=this.consume();n==="-"?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(n)},commentEndDash:function(){var n=this.consume();n==="-"?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+n),this.transitionTo("comment"))},commentEnd:function(){var n=this.consume();n===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+n),this.transitionTo("comment"))},tagName:function(){var n=this.consume();_(n)?this.transitionTo("beforeAttributeName"):n==="/"?this.transitionTo("selfClosingStartTag"):n===">"?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(n)},endTagName:function(){var n=this.consume();_(n)?(this.transitionTo("beforeAttributeName"),this.tagNameBuffer=""):n==="/"?(this.transitionTo("selfClosingStartTag"),this.tagNameBuffer=""):n===">"?(this.delegate.finishTag(),this.transitionTo("beforeData"),this.tagNameBuffer=""):this.appendToTagName(n)},beforeAttributeName:function(){var n=this.peek();if(_(n)){this.consume();return}else n==="/"?(this.transitionTo("selfClosingStartTag"),this.consume()):n===">"?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):n==="="?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(n)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var n=this.peek();_(n)?(this.transitionTo("afterAttributeName"),this.consume()):n==="/"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):n==="="?(this.transitionTo("beforeAttributeValue"),this.consume()):n===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):n==='"'||n==="'"||n==="<"?(this.delegate.reportSyntaxError(n+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(n)):(this.consume(),this.delegate.appendToAttributeName(n))},afterAttributeName:function(){var n=this.peek();if(_(n)){this.consume();return}else n==="/"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):n==="="?(this.consume(),this.transitionTo("beforeAttributeValue")):n===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(n))},beforeAttributeValue:function(){var n=this.peek();_(n)?this.consume():n==='"'?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):n==="'"?(this.transitionTo("attributeValueSingleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):n===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.transitionTo("attributeValueUnquoted"),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(n))},attributeValueDoubleQuoted:function(){var n=this.consume();n==='"'?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):n==="&"?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(n)},attributeValueSingleQuoted:function(){var n=this.consume();n==="'"?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):n==="&"?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(n)},attributeValueUnquoted:function(){var n=this.peek();_(n)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("beforeAttributeName")):n==="/"?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):n==="&"?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||"&")):n===">"?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.consume(),this.delegate.appendToAttributeValue(n))},afterAttributeValueQuoted:function(){var n=this.peek();_(n)?(this.consume(),this.transitionTo("beforeAttributeName")):n==="/"?(this.consume(),this.transitionTo("selfClosingStartTag")):n===">"?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},selfClosingStartTag:function(){var n=this.peek();n===">"?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},endTagOpen:function(){var n=this.consume();(n==="@"||n===":"||Jr(n))&&(this.transitionTo("endTagName"),this.tagNameBuffer="",this.delegate.beginEndTag(),this.appendToTagName(n))}},this.reset()}return e.prototype.reset=function(){this.transitionTo("beforeData"),this.input="",this.tagNameBuffer="",this.index=0,this.line=1,this.column=0,this.delegate.reset()},e.prototype.transitionTo=function(t){this.state=t},e.prototype.tokenize=function(t){this.reset(),this.tokenizePart(t),this.tokenizeEOF()},e.prototype.tokenizePart=function(t){for(this.input+=Cs(t);this.index"||t==="style"&&this.input.substring(this.index,this.index+8)!==""||t==="script"&&this.input.substring(this.index,this.index+9)!=="<\/script>"},e})(),uo=(function(){function e(t,r){r===void 0&&(r={}),this.options=r,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new Xe(this,t,r.mode),this._currentAttribute=void 0}return e.prototype.tokenize=function(t){return this.tokens=[],this.tokenizer.tokenize(t),this.tokens},e.prototype.tokenizePart=function(t){return this.tokens=[],this.tokenizer.tokenizePart(t),this.tokens},e.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},e.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},e.prototype.current=function(){var t=this.token;if(t===null)throw new Error("token was unexpectedly null");if(arguments.length===0)return t;for(var r=0;r\xa0]/u,wo=new RegExp(Ds.source,"gu");var de=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function on(){return[...de]}function Os(e){return de.has(e.toLowerCase())&&e[0]?.toLowerCase()===e[0]}function Yt(e){return!!e&&e.length>0}function fr(e){return e.length===0?void 0:e[e.length-1]}function Is(e){return e.length===0?void 0:e[0]}var st=Object.freeze({line:1,column:0}),Bs=Object.freeze({source:"(synthetic)",start:st,end:st}),sr=Object.freeze({source:"(nonexistent)",start:st,end:st}),nt=Object.freeze({source:"(broken)",start:st,end:st}),ir=class{constructor(t){this._whens=t}first(t){for(let r of this._whens){let s=r.match(t);if(Yt(s))return s[0]}return null}},ge=class{get(t,r){let s=this._map.get(t);return s||(s=r(),this._map.set(t,s),s)}add(t,r){this._map.set(t,r)}match(t){let r=(function(a){switch(a){case"Broken":case"InternalsSynthetic":case"NonExistent":return"IS_INVISIBLE";default:return a}})(t),s=[],n=this._map.get(r),i=this._map.get("MATCH_ANY");return n&&s.push(n),i&&s.push(i),s}constructor(){this._map=new Map}};function ln(e){return e(new ar).validate()}var ar=class{validate(){return(t,r)=>this.matchFor(t.kind,r.kind)(t,r)}matchFor(t,r){let s=this._whens.match(t);return Yt(s),new ir(s).first(r)}when(t,r,s){return this._whens.get(t,(()=>new ge)).add(r,s),this}constructor(){this._whens=new ge}},or=class e{static synthetic(t){let r=A.synthetic(t);return new e({loc:r,chars:t})}static load(t,r){return new e({loc:A.load(t,r[1]),chars:r[0]})}constructor(t){this.loc=t.loc,this.chars=t.chars}getString(){return this.chars}serialize(){return[this.chars,this.loc.serialize()]}},A=class e{static get NON_EXISTENT(){return new J("NonExistent",sr).wrap()}static load(t,r){return typeof r=="number"?e.forCharPositions(t,r,r):typeof r=="string"?e.synthetic(r):Array.isArray(r)?e.forCharPositions(t,r[0],r[1]):r==="NonExistent"?e.NON_EXISTENT:r==="Broken"?e.broken(nt):void Yr(r)}static forHbsLoc(t,r){let s=new at(t,r.start),n=new at(t,r.end);return new Mt(t,{start:s,end:n},r).wrap()}static forCharPositions(t,r,s){let n=new ft(t,r),i=new ft(t,s);return new Ut(t,{start:n,end:i}).wrap()}static synthetic(t){return new J("InternalsSynthetic",sr,t).wrap()}static broken(t=nt){return new J("Broken",t).wrap()}constructor(t){var r;this.data=t,this.isInvisible=(r=t.kind)!=="CharPosition"&&r!=="HbsPosition"}getStart(){return this.data.getStart().wrap()}getEnd(){return this.data.getEnd().wrap()}get loc(){let t=this.data.toHbsSpan();return t===null?nt:t.toHbsLoc()}get module(){return this.data.getModule()}get startPosition(){return this.loc.start}get endPosition(){return this.loc.end}toJSON(){return this.loc}withStart(t){return K(t.data,this.data.getEnd())}withEnd(t){return K(this.data.getStart(),t.data)}asString(){return this.data.asString()}toSlice(t){let r=this.data.asString();return JSON.stringify(r),JSON.stringify(t),new or({loc:this,chars:t||r})}get start(){return this.loc.start}set start(t){this.data.locDidUpdate({start:t})}get end(){return this.loc.end}set end(t){this.data.locDidUpdate({end:t})}get source(){return this.module}collapse(t){switch(t){case"start":return this.getStart().collapsed();case"end":return this.getEnd().collapsed()}}extend(t){return K(this.data.getStart(),t.data.getEnd())}serialize(){return this.data.serialize()}slice({skipStart:t=0,skipEnd:r=0}){return K(this.getStart().move(t).data,this.getEnd().move(-r).data)}sliceStartChars({skipStart:t=0,chars:r}){return K(this.getStart().move(t).data,this.getStart().move(t+r).data)}sliceEndChars({skipEnd:t=0,chars:r}){return K(this.getEnd().move(t-r).data,this.getStart().move(-t).data)}},Ut=class{#t;constructor(t,r){this.source=t,this.charPositions=r,this.kind="CharPosition",this.#t=null}wrap(){return new A(this)}asString(){return this.source.slice(this.charPositions.start.charPos,this.charPositions.end.charPos)}getModule(){return this.source.module}getStart(){return this.charPositions.start}getEnd(){return this.charPositions.end}locDidUpdate(){}toHbsSpan(){let t=this.#t;if(t===null){let r=this.charPositions.start.toHbsPos(),s=this.charPositions.end.toHbsPos();t=this.#t=r===null||s===null?it:new Mt(this.source,{start:r,end:s})}return t===it?null:t}serialize(){let{start:{charPos:t},end:{charPos:r}}=this.charPositions;return t===r?t:[t,r]}toCharPosSpan(){return this}},Mt=class{#t;#e;constructor(t,r,s=null){this.source=t,this.hbsPositions=r,this.kind="HbsPosition",this.#t=null,this.#e=s}serialize(){let t=this.toCharPosSpan();return t===null?"Broken":t.wrap().serialize()}wrap(){return new A(this)}updateProvided(t,r){this.#e&&(this.#e[r]=t),this.#t=null,this.#e={start:t,end:t}}locDidUpdate({start:t,end:r}){t!==void 0&&(this.updateProvided(t,"start"),this.hbsPositions.start=new at(this.source,t,null)),r!==void 0&&(this.updateProvided(r,"end"),this.hbsPositions.end=new at(this.source,r,null))}asString(){let t=this.toCharPosSpan();return t===null?"":t.asString()}getModule(){return this.source.module}getStart(){return this.hbsPositions.start}getEnd(){return this.hbsPositions.end}toHbsLoc(){return{start:this.hbsPositions.start.hbsPos,end:this.hbsPositions.end.hbsPos}}toHbsSpan(){return this}toCharPosSpan(){let t=this.#t;if(t===null){let r=this.hbsPositions.start.toCharPos(),s=this.hbsPositions.end.toCharPos();if(!r||!s)return t=this.#t=it,null;t=this.#t=new Ut(this.source,{start:r,end:s})}return t===it?null:t}},J=class{constructor(t,r,s=null){this.kind=t,this.loc=r,this.string=s}serialize(){switch(this.kind){case"Broken":case"NonExistent":return this.kind;case"InternalsSynthetic":return this.string||""}}wrap(){return new A(this)}asString(){return this.string||""}locDidUpdate({start:t,end:r}){t!==void 0&&(this.loc.start=t),r!==void 0&&(this.loc.end=r)}getModule(){return"an unknown module"}getStart(){return new zt(this.kind,this.loc.start)}getEnd(){return new zt(this.kind,this.loc.end)}toCharPosSpan(){return this}toHbsSpan(){return null}toHbsLoc(){return nt}},K=ln((e=>e.when("HbsPosition","HbsPosition",((t,r)=>new Mt(t.source,{start:t,end:r}).wrap())).when("CharPosition","CharPosition",((t,r)=>new Ut(t.source,{start:t,end:r}).wrap())).when("CharPosition","HbsPosition",((t,r)=>{let s=r.toCharPos();return s===null?new J("Broken",nt).wrap():K(t,s)})).when("HbsPosition","CharPosition",((t,r)=>{let s=t.toCharPos();return s===null?new J("Broken",nt).wrap():K(s,r)})).when("IS_INVISIBLE","MATCH_ANY",(t=>new J(t.kind,nt).wrap())).when("MATCH_ANY","IS_INVISIBLE",((t,r)=>new J(r.kind,nt).wrap())))),it="BROKEN",Pt=class e{static forHbsPos(t,r){return new at(t,r,null).wrap()}static broken(t=st){return new zt("Broken",t).wrap()}constructor(t){this.data=t}get offset(){let t=this.data.toCharPos();return t===null?null:t.offset}eql(t){return Rs(this.data,t.data)}until(t){return K(this.data,t.data)}move(t){let r=this.data.toCharPos();if(r===null)return e.broken();{let s=r.offset+t;return r.source.validate(s)?new ft(r.source,s).wrap():e.broken()}}collapsed(){return K(this.data,this.data)}toJSON(){return this.data.toJSON()}},ft=class{constructor(t,r){this.source=t,this.charPos=r,this.kind="CharPosition",this._locPos=null}toCharPos(){return this}toJSON(){let t=this.toHbsPos();return t===null?st:t.toJSON()}wrap(){return new Pt(this)}get offset(){return this.charPos}toHbsPos(){let t=this._locPos;if(t===null){let r=this.source.hbsPosFor(this.charPos);this._locPos=t=r===null?it:new at(this.source,r,this.charPos)}return t===it?null:t}},at=class{constructor(t,r,s=null){this.source=t,this.hbsPos=r,this.kind="HbsPosition",this._charPos=s===null?null:new ft(t,s)}toCharPos(){let t=this._charPos;if(t===null){let r=this.source.charPosFor(this.hbsPos);this._charPos=t=r===null?it:new ft(this.source,r)}return t===it?null:t}toJSON(){return this.hbsPos}wrap(){return new Pt(this)}toHbsPos(){return this}},zt=class{constructor(t,r){this.kind=t,this.pos=r}toCharPos(){return null}toJSON(){return this.pos}wrap(){return new Pt(this)}get offset(){return null}},Rs=ln((e=>e.when("HbsPosition","HbsPosition",(({hbsPos:t},{hbsPos:r})=>t.column===r.column&&t.line===r.line)).when("CharPosition","CharPosition",(({charPos:t},{charPos:r})=>t===r)).when("CharPosition","HbsPosition",(({offset:t},r)=>t===r.toCharPos()?.offset)).when("HbsPosition","CharPosition",((t,{offset:r})=>t.toCharPos()?.offset===r)).when("MATCH_ANY","MATCH_ANY",(()=>!1)))),pt=class e{static from(t,r={}){return new e(t,r.meta?.moduleName)}constructor(t,r="an unknown module"){this.source=t,this.module=r}validate(t){return t>=0&&t<=this.source.length}slice(t,r){return this.source.slice(t,r)}offsetFor(t,r){return Pt.forHbsPos(this,{line:t,column:r})}spanFor({start:t,end:r}){return A.forHbsLoc(this,{start:{line:t.line,column:t.column},end:{line:r.line,column:r.column}})}hbsPosFor(t){let r=0,s=0;if(t>this.source.length)return null;for(;;){let n=this.source.indexOf(` +`,s);if(t<=n||n===-1)return{line:r+1,column:t-s};r+=1,s=n+1}}charPosFor(t){let{line:r,column:s}=t,n=this.source.length,i=0,a=0;for(;ao)return o;if(_s){let c=this.hbsPosFor(a+s);c.line,c.column}return a+s}if(o===-1)return 0;i+=1,a=o+1}return n}};function k(e,t){let{module:r,loc:s}=t,{line:n,column:i}=s.start,a=t.asString(),o=a?` + +| +| ${a.split(` +`).join(` +| `)} +| + +`:"",c=new Error(`${e}: ${o}(error occurred in '${r}' @ line ${n} : column ${i})`);return c.name="SyntaxError",c.location=t,c.code=a,c}var be={Template:["body"],Block:["body"],MustacheStatement:["path","params","hash"],BlockStatement:["path","params","hash","program","inverse"],ElementModifierStatement:["path","params","hash"],CommentStatement:[],MustacheCommentStatement:[],ElementNode:["attributes","modifiers","children","comments"],AttrNode:["value"],TextNode:[],ConcatStatement:["parts"],SubExpression:["path","params","hash"],PathExpression:[],StringLiteral:[],BooleanLiteral:[],NumberLiteral:[],NullLiteral:[],UndefinedLiteral:[],Hash:["pairs"],HashPair:["value"]},mr=(function(){function e(t,r,s,n){let i=Error.call(this,t);this.key=n,this.message=t,this.node=r,this.parent=s,i.stack&&(this.stack=i.stack)}return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e})();function Zr(e,t,r){return new mr("Cannot remove a node unless it is part of an array",e,t,r)}function qs(e,t,r){return new mr("Cannot replace a node with multiple nodes unless it is part of an array",e,t,r)}function tn(e,t){return new mr("Replacing and removing in key handlers is not yet supported.",e,null,t)}var Ct=class{constructor(t,r=null,s=null){this.node=t,this.parent=r,this.parentKey=s}get parentNode(){return this.parent?this.parent.node:null}parents(){return{[Symbol.iterator]:()=>new lr(this)}}},lr=class{constructor(t){this.path=t}next(){return this.path.parent?(this.path=this.path.parent,{done:!1,value:this.path}):{done:!0,value:null}}};function cn(e){return typeof e=="function"?e:e.enter}function un(e){return typeof e=="function"?void 0:e.exit}function ye(e,t){let r,s,n,{node:i,parent:a,parentKey:o}=t,c=(function(h,f){if(h.Program&&(f==="Template"&&!h.Template||f==="Block"&&!h.Block))return h.Program;let p=h[f];return p!==void 0?p:h.All})(e,i.type);if(c!==void 0&&(r=cn(c),s=un(c)),r!==void 0&&(n=r(i,t)),n!=null){if(JSON.stringify(i)!==JSON.stringify(n))return Array.isArray(n)?(hn(e,n,a,o),n):ye(e,new Ct(n,a,o))||n;n=void 0}if(n===void 0){let h=be[i.type];for(let f=0;ftypeof t=="string"?d.var({name:t,loc:A.synthetic(t)}):t))}function nn(e=[],t=[],r=!1,s){return d.blockItself({body:e,params:fn(t),chained:r,loc:v(s||null)})}function sn(e=[],t=[],r){return d.template({body:e,blockParams:t,loc:v(r||null)})}function v(...e){if(e.length===1){let t=e[0];return t&&typeof t=="object"?A.forHbsLoc(tr(),t):A.forHbsLoc(tr(),Bs)}{let[t,r,s,n,i]=e,a=i?new pt("",i):tr();return A.forHbsLoc(a,{start:{line:t,column:r},end:{line:s||t,column:n||r}})}}var Us={mustache:function(e,t=[],r=Ht([]),s=!1,n,i){return d.mustache({path:rt(e),params:t,hash:r,trusting:s,strip:i,loc:v(n||null)})},block:function(e,t,r,s,n=null,i,a,o,c){let h,f=null;return h=s.type==="Template"?d.blockItself({params:fn(s.blockParams),body:s.body,loc:s.loc}):s,n?.type==="Template"?(n.blockParams.length,f=d.blockItself({params:[],body:n.body,loc:n.loc})):f=n,d.block({path:rt(e),params:t||[],hash:r||Ht([]),defaultBlock:h,elseBlock:f,loc:v(i||null),openStrip:a,inverseStrip:o,closeStrip:c})},comment:function(e,t){return d.comment({value:e,loc:v(t||null)})},mustacheComment:function(e,t){return d.mustacheComment({value:e,loc:v(t||null)})},element:function(e,t={}){let r,s,{attrs:n,blockParams:i,modifiers:a,comments:o,children:c,openTag:h,closeTag:f,loc:p}=t;typeof e=="string"?e.endsWith("/")?(r=rt(e.slice(0,-1)),s=!0):r=rt(e):"type"in e?(e.type,e.type,r=e):"path"in e?(e.path.type,e.path.type,r=e.path,s=e.selfClosing):(r=rt(e.name),s=e.selfClosing);let g=i?.map((T=>typeof T=="string"?rn(T):T)),E=null;return f?E=v(f):f===void 0&&(E=s||Os(r.original)?null:v(null)),d.element({path:r,selfClosing:s||!1,attributes:n||[],params:g||[],modifiers:a||[],comments:o||[],children:c||[],openTag:v(h||null),closeTag:E,loc:v(p||null)})},elementModifier:function(e,t,r,s){return d.elementModifier({path:rt(e),params:t||[],hash:r||Ht([]),loc:v(s||null)})},attr:function(e,t,r){return d.attr({name:e,value:t,loc:v(r||null)})},text:function(e="",t){return d.text({chars:e,loc:v(t||null)})},sexpr:function(e,t=[],r=Ht([]),s){return d.sexpr({path:rt(e),params:t,hash:r,loc:v(s||null)})},concat:function(e,t){if(!Yt(e))throw new Error("b.concat requires at least one part");return d.concat({parts:e,loc:v(t||null)})},hash:Ht,pair:function(e,t,r){return d.pair({key:e,value:t,loc:v(r||null)})},literal:me,program:function(e,t,r){return t&&t.length?nn(e,t,!1,r):sn(e,[],r)},blockItself:nn,template:sn,loc:v,pos:function(e,t){return d.pos({line:e,column:t})},path:rt,fullPath:function(e,t=[],r){return d.path({head:e,tail:t,loc:v(r||null)})},head:function(e,t){return d.head({original:e,loc:v(t||null)})},at:function(e,t){return d.atName({name:e,loc:v(t||null)})},var:rn,this:function(e){return d.this({loc:v(e||null)})},string:er("StringLiteral"),boolean:er("BooleanLiteral"),number:er("NumberLiteral"),undefined:()=>me("UndefinedLiteral",void 0),null:()=>me("NullLiteral",null)};function er(e){return function(t,r){return me(e,t,r)}}var fe={close:!1,open:!1},d=new class{pos({line:e,column:t}){return{line:e,column:t}}blockItself({body:e,params:t,chained:r=!1,loc:s}){return{type:"Block",body:e,params:t,get blockParams(){return this.params.map((n=>n.name))},set blockParams(n){this.params=n.map((i=>d.var({name:i,loc:A.synthetic(i)})))},chained:r,loc:s}}template({body:e,blockParams:t,loc:r}){return{type:"Template",body:e,blockParams:t,loc:r}}mustache({path:e,params:t,hash:r,trusting:s,loc:n,strip:i=fe}){return(function({path:a,params:o,hash:c,trusting:h,strip:f,loc:p}){let g={type:"MustacheStatement",path:a,params:o,hash:c,trusting:h,strip:f,loc:p};return Object.defineProperty(g,"escaped",{enumerable:!1,get(){return!this.trusting},set(E){this.trusting=!E}}),g})({path:e,params:t,hash:r,trusting:s,strip:i,loc:n})}block({path:e,params:t,hash:r,defaultBlock:s,elseBlock:n=null,loc:i,openStrip:a=fe,inverseStrip:o=fe,closeStrip:c=fe}){return{type:"BlockStatement",path:e,params:t,hash:r,program:s,inverse:n,loc:i,openStrip:a,inverseStrip:o,closeStrip:c}}comment({value:e,loc:t}){return{type:"CommentStatement",value:e,loc:t}}mustacheComment({value:e,loc:t}){return{type:"MustacheCommentStatement",value:e,loc:t}}concat({parts:e,loc:t}){return{type:"ConcatStatement",parts:e,loc:t}}element({path:e,selfClosing:t,attributes:r,modifiers:s,params:n,comments:i,children:a,openTag:o,closeTag:c,loc:h}){let f=t;return{type:"ElementNode",path:e,attributes:r,modifiers:s,params:n,comments:i,children:a,openTag:o,closeTag:c,loc:h,get tag(){return this.path.original},set tag(p){this.path.original=p},get blockParams(){return this.params.map((p=>p.name))},set blockParams(p){this.params=p.map((g=>d.var({name:g,loc:A.synthetic(g)})))},get selfClosing(){return f},set selfClosing(p){f=p,this.closeTag=p?null:A.synthetic(``)}}}elementModifier({path:e,params:t,hash:r,loc:s}){return{type:"ElementModifierStatement",path:e,params:t,hash:r,loc:s}}attr({name:e,value:t,loc:r}){return{type:"AttrNode",name:e,value:t,loc:r}}text({chars:e,loc:t}){return{type:"TextNode",chars:e,loc:t}}sexpr({path:e,params:t,hash:r,loc:s}){return{type:"SubExpression",path:e,params:t,hash:r,loc:s}}path({head:e,tail:t,loc:r}){return(function({head:s,tail:n,loc:i}){let a={type:"PathExpression",head:s,tail:n,get original(){return[this.head.original,...this.tail].join(".")},set original(o){let[c,...h]=o.split(".");this.head=Us.head(c,this.head.loc),this.tail=h},loc:i};return Object.defineProperty(a,"parts",{enumerable:!1,get(){let o=this.original.split(".");return o[0]==="this"?o.shift():o[0].startsWith("@")&&(o[0]=o[0].slice(1)),Object.freeze(o)},set(o){let c=[...o];c[0]==="this"||c[0]?.startsWith("@")||(this.head.type==="ThisHead"?c.unshift("this"):this.head.type==="AtHead"&&(c[0]=`@${c[0]}`)),this.original=c.join(".")}}),Object.defineProperty(a,"this",{enumerable:!1,get(){return this.head.type==="ThisHead"}}),Object.defineProperty(a,"data",{enumerable:!1,get(){return this.head.type==="AtHead"}}),a})({head:e,tail:t,loc:r})}head({original:e,loc:t}){return e==="this"?this.this({loc:t}):e[0]==="@"?this.atName({name:e,loc:t}):this.var({name:e,loc:t})}this({loc:e}){return{type:"ThisHead",get original(){return"this"},loc:e}}atName({name:e,loc:t}){let r="",s={type:"AtHead",get name(){return r},set name(n){n[0],n.indexOf("."),r=n},get original(){return this.name},set original(n){this.name=n},loc:t};return s.name=e,s}var({name:e,loc:t}){let r="",s={type:"VarHead",get name(){return r},set name(n){n[0],n.indexOf("."),r=n},get original(){return this.name},set original(n){this.name=n},loc:t};return s.name=e,s}hash({pairs:e,loc:t}){return{type:"Hash",pairs:e,loc:t}}pair({key:e,value:t,loc:r}){return{type:"HashPair",key:e,value:t,loc:r}}literal({type:e,value:t,loc:r}){return(function({type:s,value:n,loc:i}){let a={type:s,value:n,loc:i};return Object.defineProperty(a,"original",{enumerable:!1,get(){return this.value},set(o){this.value=o}}),a})({type:e,value:t,loc:r})}},cr=class{constructor(t,r=new $e($r),s="precompile"){this.elementStack=[],this.currentAttribute=null,this.currentNode=null,this.source=t,this.lines=t.source.split(/\r\n?|\n/u),this.tokenizer=new Xe(this,r,s)}offset(){let{line:t,column:r}=this.tokenizer;return this.source.offsetFor(t,r)}pos({line:t,column:r}){return this.source.offsetFor(t,r)}finish(t){return ze({},t,{loc:t.start.until(this.offset())})}get currentAttr(){return this.currentAttribute}get currentTag(){let t=this.currentNode;return t&&(t.type==="StartTag"||t.type),t}get currentStartTag(){let t=this.currentNode;return t&&t.type,t}get currentEndTag(){let t=this.currentNode;return t&&t.type,t}get currentComment(){let t=this.currentNode;return t&&t.type,t}get currentData(){let t=this.currentNode;return t&&t.type,t}acceptNode(t){return this[t.type](t)}currentElement(){return fr(this.elementStack)}sourceForNode(t,r){let s,n,i,a=t.loc.start.line-1,o=a-1,c=t.loc.start.column,h=[];for(r?(n=r.loc.end.line-1,i=r.loc.end.column):(n=t.loc.end.line-1,i=t.loc.end.column);o=T?-1:g.indexOf(D,E),B===-1||B+D.length>T?(E=T,O=this.source.spanFor(sr)):(E=B,O=p.sliceStartChars({skipStart:E,chars:D.length}),E+=D.length),o.push(d.var({name:D,loc:O}))}}else a=an(this.source,t,i);let c=this.Program(a.program,o),h=a.inverse?this.Program(a.inverse,[]):null,f=d.block({path:r,params:s,hash:n,defaultBlock:c,elseBlock:h,loc:this.source.spanFor(t.loc),openStrip:t.openStrip,inverseStrip:t.inverseStrip,closeStrip:t.closeStrip});At(this.currentElement(),f)}MustacheStatement(t){this.pendingError?.mustache(this.source.spanFor(t.loc));let{tokenizer:r}=this;if(r.state==="comment")return void this.appendToCommentData(this.sourceForNode(t));let s,{escaped:n,loc:i,strip:a}=t;if("original"in t.path&&t.path.original==="...attributes")throw k("Illegal use of ...attributes",this.source.spanFor(t.loc));if(pn(t.path))s=d.mustache({path:this.acceptNode(t.path),params:[],hash:d.hash({pairs:[],loc:this.source.spanFor(t.path.loc).collapse("end")}),trusting:!n,loc:this.source.spanFor(i),strip:a});else{let{path:o,params:c,hash:h}=rr(this,t);s=d.mustache({path:o,params:c,hash:h,trusting:!n,loc:this.source.spanFor(i),strip:a})}switch(r.state){case"tagOpen":case"tagName":throw k("Cannot use mustaches in an elements tagname",s.loc);case"beforeAttributeName":nr(this.currentStartTag,s);break;case"attributeName":case"afterAttributeName":this.beginAttributeValue(!1),this.finishAttributeValue(),nr(this.currentStartTag,s),r.transitionTo("beforeAttributeName");break;case"afterAttributeValueQuoted":nr(this.currentStartTag,s),r.transitionTo("beforeAttributeName");break;case"beforeAttributeValue":this.beginAttributeValue(!1),this.appendDynamicAttributeValuePart(s),r.transitionTo("attributeValueUnquoted");break;case"attributeValueDoubleQuoted":case"attributeValueSingleQuoted":case"attributeValueUnquoted":this.appendDynamicAttributeValuePart(s);break;default:At(this.currentElement(),s)}return s}appendDynamicAttributeValuePart(t){this.finalizeTextPart();let r=this.currentAttr;r.isDynamic=!0,r.parts.push(t)}finalizeTextPart(){let t=this.currentAttr.currentPart;t!==null&&(this.currentAttr.parts.push(t),this.startTextPart())}startTextPart(){this.currentAttr.currentPart=null}ContentStatement(t){(function(r,s){let n=s.loc.start.line,i=s.loc.start.column,a=(function(o,c){if(c==="")return{lines:o.split(` +`).length-1,columns:0};let[h]=o.split(c),f=h.split(/\n/u),p=f.length-1;return{lines:p,columns:f[p].length}})(s.original,s.value);n+=a.lines,a.lines?i=a.columns:i+=a.columns,r.line=n,r.column=i})(this.tokenizer,t),this.tokenizer.tokenizePart(t.value),this.tokenizer.flushData()}CommentStatement(t){let{tokenizer:r}=this;if(r.state==="comment")return this.appendToCommentData(this.sourceForNode(t)),null;let{value:s,loc:n}=t,i=d.mustacheComment({value:s,loc:this.source.spanFor(n)});switch(r.state){case"beforeAttributeName":case"afterAttributeName":this.currentStartTag.comments.push(i);break;case"beforeData":case"data":At(this.currentElement(),i);break;default:throw k(`Using a Handlebars comment when in the \`${r.state}\` state is not supported`,this.source.spanFor(t.loc))}return i}PartialStatement(t){throw k("Handlebars partials are not supported",this.source.spanFor(t.loc))}PartialBlockStatement(t){throw k("Handlebars partial blocks are not supported",this.source.spanFor(t.loc))}Decorator(t){throw k("Handlebars decorators are not supported",this.source.spanFor(t.loc))}DecoratorBlock(t){throw k("Handlebars decorator blocks are not supported",this.source.spanFor(t.loc))}SubExpression(t){let{path:r,params:s,hash:n}=rr(this,t);return d.sexpr({path:r,params:s,hash:n,loc:this.source.spanFor(t.loc)})}PathExpression(t){let{original:r}=t,s;if(r.indexOf("/")!==-1){if(r.slice(0,2)==="./")throw k('Using "./" is not supported in Glimmer and unnecessary',this.source.spanFor(t.loc));if(r.slice(0,3)==="../")throw k('Changing context using "../" is not supported in Glimmer',this.source.spanFor(t.loc));if(r.indexOf(".")!==-1)throw k("Mixing '.' and '/' in paths is not supported in Glimmer; use only '.' to separate property paths",this.source.spanFor(t.loc));s=[t.parts.join("/")]}else{if(r===".")throw k("'.' is not a supported path in Glimmer; check for a path with a trailing '.'",this.source.spanFor(t.loc));s=t.parts}let n,i=!1;if(/^this(?:\..+)?$/u.test(r)&&(i=!0),i)n=d.this({loc:this.source.spanFor({start:t.loc.start,end:{line:t.loc.start.line,column:t.loc.start.column+4}})});else if(t.data){let a=s.shift();if(a===void 0)throw k("Attempted to parse a path expression, but it was not valid. Paths beginning with @ must start with a-z.",this.source.spanFor(t.loc));n=d.atName({name:`@${a}`,loc:this.source.spanFor({start:t.loc.start,end:{line:t.loc.start.line,column:t.loc.start.column+a.length+1}})})}else{let a=s.shift();if(a===void 0)throw k("Attempted to parse a path expression, but it was not valid. Paths must start with a-z or A-Z.",this.source.spanFor(t.loc));n=d.var({name:a,loc:this.source.spanFor({start:t.loc.start,end:{line:t.loc.start.line,column:t.loc.start.column+a.length}})})}return d.path({head:n,tail:s,loc:this.source.spanFor(t.loc)})}Hash(t){let r=t.pairs.map((s=>d.pair({key:s.key,value:this.acceptNode(s.value),loc:this.source.spanFor(s.loc)})));return d.hash({pairs:r,loc:this.source.spanFor(t.loc)})}StringLiteral(t){return d.literal({type:"StringLiteral",value:t.value,loc:this.source.spanFor(t.loc)})}BooleanLiteral(t){return d.literal({type:"BooleanLiteral",value:t.value,loc:this.source.spanFor(t.loc)})}NumberLiteral(t){return d.literal({type:"NumberLiteral",value:t.value,loc:this.source.spanFor(t.loc)})}UndefinedLiteral(t){return d.literal({type:"UndefinedLiteral",value:void 0,loc:this.source.spanFor(t.loc)})}NullLiteral(t){return d.literal({type:"NullLiteral",value:null,loc:this.source.spanFor(t.loc)})}constructor(...t){super(...t),this.pendingError=null}};function rr(e,t){let r;switch(t.path.type){case"PathExpression":r=e.PathExpression(t.path);break;case"SubExpression":r=e.SubExpression(t.path);break;case"StringLiteral":case"UndefinedLiteral":case"NullLiteral":case"NumberLiteral":case"BooleanLiteral":{let i;throw i=t.path.type==="BooleanLiteral"?t.path.original.toString():t.path.type==="StringLiteral"?`"${t.path.original}"`:t.path.type==="NullLiteral"?"null":t.path.type==="NumberLiteral"?t.path.value.toString():"undefined",k(`${t.path.type} "${t.path.type==="StringLiteral"?t.path.original:i}" cannot be called as a sub-expression, replace (${i}) with ${i}`,e.source.spanFor(t.path.loc))}}let s=t.params.map((i=>e.acceptNode(i))),n=Yt(s)?fr(s).loc:r.loc;return{path:r,params:s,hash:t.hash?e.Hash(t.hash):d.hash({pairs:[],loc:e.source.spanFor(n).collapse("end")})}}function nr(e,t){let{path:r,params:s,hash:n,loc:i}=t;if(pn(r)){let o=`{{${(function(c){return c.type==="UndefinedLiteral"?"undefined":JSON.stringify(c.value)})(r)}}}`;throw k(`In <${e.name} ... ${o} ..., ${o} is not a valid modifier`,t.loc)}let a=d.elementModifier({path:r,params:s,hash:n,loc:i});e.modifiers.push(a)}function an(e,t,r){if(!t.program.loc){let n=V(0,t.program.body,0),i=V(0,t.program.body,-1);if(n&&i)t.program.loc={...n.loc,end:i.loc.end};else{let a=e.spanFor(t.loc);t.program.loc=r.withEnd(a.getEnd())}}let s=e.spanFor(t.program.loc).getEnd();return t.inverse&&!t.inverse.loc&&(t.inverse.loc=s.collapsed()),t}function Nt(e){return/[\t\n\f ]/u.test(e)}var hr=class extends ur{reset(){this.currentNode=null}beginComment(){this.currentNode={type:"CommentStatement",value:"",start:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}appendToCommentData(t){this.currentComment.value+=t}finishComment(){At(this.currentElement(),d.comment(this.finish(this.currentComment)))}beginData(){this.currentNode={type:"TextNode",chars:"",start:this.offset()}}appendToData(t){this.currentData.chars+=t}finishData(){At(this.currentElement(),d.text(this.finish(this.currentData)))}tagOpen(){this.tagOpenLine=this.tokenizer.line,this.tagOpenColumn=this.tokenizer.column}beginStartTag(){this.currentNode={type:"StartTag",name:"",nameStart:null,nameEnd:null,attributes:[],modifiers:[],comments:[],params:[],selfClosing:!1,start:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}beginEndTag(){this.currentNode={type:"EndTag",name:"",start:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}finishTag(){let t=this.finish(this.currentTag);if(t.type==="StartTag"){if(this.finishStartTag(),t.name===":")throw k("Invalid named block named detected, you may have created a named block without a name, or you may have began your name with a number. Named blocks must have names that are at least one character long, and begin with a lower case letter",this.source.spanFor({start:this.currentTag.start.toJSON(),end:this.offset().toJSON()}));(de.has(t.name)||t.selfClosing)&&this.finishEndTag(!0)}else t.type,t.type,this.finishEndTag(!1)}finishStartTag(){let{name:t,nameStart:r,nameEnd:s}=this.currentStartTag,n=r.until(s),[i,...a]=t.split("."),o=d.path({head:d.head({original:i,loc:n.sliceStartChars({chars:i.length})}),tail:a,loc:n}),{attributes:c,modifiers:h,comments:f,params:p,selfClosing:g,loc:E}=this.finish(this.currentStartTag),T=d.element({path:o,selfClosing:g,attributes:c,modifiers:h,comments:f,params:p,children:[],openTag:E,closeTag:g?null:A.broken(),loc:E});this.elementStack.push(T)}finishEndTag(t){let{start:r}=this.currentTag,s=this.finish(this.currentTag),n=this.elementStack.pop();this.validateEndTag(s,n,t);let i=this.currentElement();t?n.closeTag=null:n.selfClosing?n.closeTag:n.closeTag=r.until(this.offset()),n.loc=n.loc.withEnd(this.offset()),At(i,d.element(n))}markTagAsSelfClosing(){let t=this.currentTag;if(t.type!=="StartTag")throw k("Invalid end tag: closing tag must not be self-closing",this.source.spanFor({start:t.start.toJSON(),end:this.offset().toJSON()}));t.selfClosing=!0}appendToTagName(t){let r=this.currentTag;if(r.name+=t,r.type==="StartTag"){let s=this.offset();r.nameStart===null&&(r.nameEnd,r.nameStart=s.move(-1)),r.nameEnd=s}}beginAttribute(){let t=this.offset();this.currentAttribute={name:"",parts:[],currentPart:null,isQuoted:!1,isDynamic:!1,start:t,valueSpan:t.collapsed()}}appendToAttributeName(t){this.currentAttr.name+=t,this.currentAttr.name==="as"&&this.parsePossibleBlockParams()}beginAttributeValue(t){this.currentAttr.isQuoted=t,this.startTextPart(),this.currentAttr.valueSpan=this.offset().collapsed()}appendToAttributeValue(t){let r=this.currentAttr.parts,s=r[r.length-1],n=this.currentAttr.currentPart;if(n)n.chars+=t,n.loc=n.loc.withEnd(this.offset());else{let i=this.offset();i=t===` +`?s?s.loc.getEnd():this.currentAttr.valueSpan.getStart():i.move(-1),this.currentAttr.currentPart=d.text({chars:t,loc:i.collapsed()})}}finishAttributeValue(){this.finalizeTextPart();let t=this.currentTag,r=this.offset();if(t.type==="EndTag")throw k("Invalid end tag: closing tag must not have attributes",this.source.spanFor({start:t.start.toJSON(),end:r.toJSON()}));let{name:s,parts:n,start:i,isQuoted:a,isDynamic:o,valueSpan:c}=this.currentAttr;if(s.startsWith("|")&&n.length===0&&!a&&!o)throw k("Invalid block parameters syntax: block parameters must be preceded by the `as` keyword",i.until(i.move(s.length)));let h=this.assembleAttributeValue(n,a,o,i.until(r));h.loc=c.withEnd(r);let f=d.attr({name:s,value:h,loc:i.until(r)});this.currentStartTag.attributes.push(f)}parsePossibleBlockParams(){let t=/[!"#%&'()*+./;<=>@[\\\]^`{|}~]/u;this.tokenizer.state;let r=this.currentStartTag,s=this.currentAttr,n={state:"PossibleAs"},i={PossibleAs:o=>{if(n.state,Nt(o))n={state:"BeforeStartPipe"},this.tokenizer.transitionTo("afterAttributeName"),this.tokenizer.consume();else{if(o==="|")throw k('Invalid block parameters syntax: expecting at least one space character between "as" and "|"',s.start.until(this.offset().move(1)));n={state:"Done"}}},BeforeStartPipe:o=>{n.state,Nt(o)?this.tokenizer.consume():o==="|"?(n={state:"BeforeBlockParamName"},this.tokenizer.transitionTo("beforeAttributeName"),this.tokenizer.consume()):n={state:"Done"}},BeforeBlockParamName:o=>{if(n.state,Nt(o))this.tokenizer.consume();else if(o==="")n={state:"Done"},this.pendingError={mustache(c){throw k("Invalid block parameters syntax: mustaches cannot be used inside parameters list",c)},eof(c){throw k('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',s.start.until(c))}};else if(o==="|"){if(r.params.length===0)throw k("Invalid block parameters syntax: empty parameters list, expecting at least one identifier",s.start.until(this.offset().move(1)));n={state:"AfterEndPipe"},this.tokenizer.consume()}else{if(o===">"||o==="/")throw k('Invalid block parameters syntax: incomplete parameters list, expecting "|" but the tag was closed prematurely',s.start.until(this.offset().move(1)));n={state:"BlockParamName",name:o,start:this.offset()},this.tokenizer.consume()}},BlockParamName:o=>{if(n.state,o==="")n={state:"Done"},this.pendingError={mustache(c){throw k("Invalid block parameters syntax: mustaches cannot be used inside parameters list",c)},eof(c){throw k('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',s.start.until(c))}};else if(o==="|"||Nt(o)){let c=n.start.until(this.offset());if(n.name==="this"||t.test(n.name))throw k(`Invalid block parameters syntax: invalid identifier name \`${n.name}\``,c);r.params.push(d.var({name:n.name,loc:c})),n=o==="|"?{state:"AfterEndPipe"}:{state:"BeforeBlockParamName"},this.tokenizer.consume()}else{if(o===">"||o==="/")throw k('Invalid block parameters syntax: expecting "|" but the tag was closed prematurely',s.start.until(this.offset().move(1)));n.name+=o,this.tokenizer.consume()}},AfterEndPipe:o=>{n.state,Nt(o)?this.tokenizer.consume():o===""?(n={state:"Done"},this.pendingError={mustache(c){throw k("Invalid block parameters syntax: modifiers cannot follow parameters list",c)},eof(c){throw k('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',s.start.until(c))}}):o===">"||o==="/"?n={state:"Done"}:(n={state:"Error",message:'Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',start:this.offset()},this.tokenizer.consume())},Error:o=>{if(n.state,o===""||o==="/"||o===">"||Nt(o))throw k(n.message,n.start.until(this.offset()));this.tokenizer.consume()},Done:()=>{}},a;do a=this.tokenizer.peek(),i[n.state](a);while(n.state!=="Done"&&a!=="");n.state}reportSyntaxError(t){throw k(t,this.offset().collapsed())}assembleConcatenatedValue(t){let r=Is(t),s=fr(t);return d.concat({parts:t,loc:this.source.spanFor(r.loc).extend(this.source.spanFor(s.loc))})}validateEndTag(t,r,s){if(de.has(t.name)&&!s)throw k(`<${t.name}> elements do not need end tags. You should remove it`,t.loc);if(r.type!=="ElementNode")throw k(`Closing tag without an open tag`,t.loc);if(r.tag!==t.name)throw k(`Closing tag did not match last open tag <${r.tag}> (on line ${r.loc.startPosition.line})`,t.loc)}assembleAttributeValue(t,r,s,n){if(s){if(r)return this.assembleConcatenatedValue(t);{let[i,a]=t;if(a===void 0||a.type==="TextNode"&&a.chars==="/")return i;throw k("An unquoted attribute value must be a string or a mustache, preceded by whitespace or a '=' character, and followed by whitespace, a '>' character, or '/>'",n)}}return Yt(t)?t[0]:d.text({chars:"",loc:n})}constructor(...t){super(...t),this.tagOpenLine=0,this.tagOpenColumn=0}},Ms={},pr=class extends $e{constructor(){super({})}parse(){}};function mn(e,t={}){let r,s,n,i=t.mode||"precompile";typeof e=="string"?(r=new pt(e,t.meta?.moduleName),s=i==="codemod"?he(e,t.parseOptions):Je(e,t.parseOptions)):e instanceof pt?(r=e,s=i==="codemod"?he(e.source,t.parseOptions):Je(e.source,t.parseOptions)):(r=new pt("",t.meta?.moduleName),s=e),i==="codemod"&&(n=new pr);let a=A.forCharPositions(r,0,r.source.length);s.loc={source:"(program)",start:a.startPosition,end:a.endPosition};let o=new hr(r,n,i).parse(s,t.locals??[]);if(t.plugins?.ast)for(let c of t.plugins.ast)Hs(o,c(ze({},t,{syntax:Ms},{plugins:void 0})).visitor);return o}var zs={resolution:()=>pe.GetStrictKeyword,serialize:()=>"Strict",isAngleBracket:!1},To={...zs,isAngleBracket:!0};var Ys=Ur(be),dn=Ys;var mt=e=>e.loc.start.offset,Gt=e=>e.loc.end.offset;var Gs=new Set(on());function bn(e){return e.toUpperCase()===e}function Ks(e){return e.type==="ElementNode"&&typeof e.tag=="string"&&!e.tag.startsWith(":")&&(bn(e.tag[0])||e.tag.includes("."))}function Ws(e){return Gs.has(e.toLowerCase())&&!bn(e[0])}function dr(e){return e.selfClosing===!0||Ws(e.tag)||Ks(e)&&e.children.every(t=>Se(t))}function Se(e){return e.type==="TextNode"&&!/\S/u.test(e.chars)}function gn(e){return e?.type==="MustacheCommentStatement"&&typeof e.value=="string"&&e.value.trim()==="prettier-ignore"}function yn(e){return gn(e.node)||e.isInArray&&(e.key==="children"||e.key==="body"||e.key==="parts")&&gn(e.siblings[e.index-2])}var xn=2;function js(e,t,r){let{node:s}=e;switch(s.type){case"Block":case"Program":case"Template":return I(e.map(r,"body"));case"ElementNode":{let n=t.htmlWhitespaceSensitivity!=="ignore",i=[!n&&e.previous?.type==="ElementNode"?H:"",I([Js(e,r)])];if(dr(s))return[i];let a=[""],o=s.tag==="style";if(s.children.length===0||(!n||o)&&s.children.every(h=>Se(h)))return[i,a];let c=e.map(r,"children");return o||!n?[i,F([H,...c]),H,a]:[i,F(I(c)),a]}case"BlockStatement":return Pn(e)?[ni(e,r),En(e,t,r),vn(e,t,r)]:[ti(e,r),I([En(e,t,r),vn(e,t,r),si(e,t,r)])];case"ElementModifierStatement":return I(["{{",Tn(e,r),"}}"]);case"MustacheStatement":return I([ke(s),Tn(e,r),Ee(s)]);case"SubExpression":return I(["(",ui(e,r),H,")"]);case"AttrNode":{let{name:n,value:i}=s,a=i.type==="TextNode";if(a&&i.chars===""&&mt(i)===Gt(i))return n;let c=a?oe(i.chars,t.singleQuote):i.type==="ConcatStatement"?oe(i.parts.map(f=>f.type==="TextNode"?f.chars:"").join(""),t.singleQuote):"",h=r("value");return[n,"=",c,n==="class"&&c?I(F(h)):h,c]}case"ConcatStatement":return e.map(r,"parts");case"Hash":return ct(N,e.map(r,"pairs"));case"HashPair":return[s.key,"=",r("value")];case"TextNode":{let n=s.chars,{parent:i}=e;if(i.type==="ElementNode"){if(i.tag==="pre")return ie(n);if(i.tag==="style")return n=St(0,n,/^\n+/gu,""),n=R.trimEnd(n),n=R.dedentString(n),ie(n,ut)}n=St(0,n,"{{","\\{{");let a=ii(e);if(a){if(a==="class"){let D=n.trim().split(/\s+/u).join(" "),B=!1,O=!1;return e.parent.type==="ConcatStatement"&&(e.previous?.type==="MustacheStatement"&&/^\s/u.test(n)&&(B=!0),e.next?.type==="MustacheStatement"&&/\s$/u.test(n)&&D!==""&&(O=!0)),[B?N:"",D,O?N:""]}return ie(n)}let o=R.isWhitespaceOnly(n),{isFirst:c,isLast:h}=e;if(t.htmlWhitespaceSensitivity!=="ignore"){let D=h&&e.parent.type==="Template",B=c&&e.parent.type==="Template";if(o){if(B||D)return"";let C=[N],$=_t(n);return $&&(C=Kt($)),h&&(C=C.map(W=>Be(W))),C}let O=R.getLeadingWhitespace(n),z=[];if(O){z=[N];let C=_t(O);C&&(z=Kt(C)),n=n.slice(O.length)}let P=R.getTrailingWhitespace(n),U=[];if(P){if(!D){U=[N];let C=_t(P);C&&(U=Kt(C)),h&&(U=U.map($=>Be($)))}n=n.slice(0,-P.length)}return[...z,qe(wn(n)),...U]}let f=_t(n),p=ai(n),g=oi(n);if((c||h)&&o&&(e.parent.type==="Block"||e.parent.type==="ElementNode"||e.parent.type==="Template"))return"";o&&f?(p=Math.min(f,xn),g=0):((e.next?.type==="BlockStatement"||e.next?.type==="ElementNode")&&(g=Math.max(g,1)),(e.previous?.type==="BlockStatement"||e.previous?.type==="ElementNode")&&(p=Math.max(p,1)));let E="",T="";return g===0&&e.next?.type==="MustacheStatement"&&(T=" "),p===0&&e.previous?.type==="MustacheStatement"&&(E=" "),c&&(p=0,E=""),h&&(g=0,T=""),R.hasLeadingWhitespace(n)&&(n=E+R.trimStart(n)),R.hasTrailingWhitespace(n)&&(n=R.trimEnd(n)+T),[...Kt(p),qe(wn(n)),...Kt(g)]}case"MustacheCommentStatement":{let n=mt(s),i=Gt(s),a=t.originalText.charAt(n+2)==="~",o=t.originalText.charAt(i-3)==="~",c=s.value.includes("}}")?"--":"";return["{{",a?"~":"","!",c,s.value,c,o?"~":"","}}"]}case"PathExpression":return mi(s);case"BooleanLiteral":return String(s.value);case"CommentStatement":return[""];case"StringLiteral":return li(e,t);case"NumberLiteral":return String(s.value);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";case"FrontMatter":case"AtHead":case"VarHead":case"ThisHead":default:throw new qr(s,"Handlebars")}}function Qs(e,t){return mt(e)-mt(t)}function Js(e,t){let{node:r}=e,s=["attributes","modifiers","comments"].filter(i=>Bt(r[i])),n=s.flatMap(i=>r[i]).sort(Qs);for(let i of s)e.each(({node:a})=>{let o=n.indexOf(a);n.splice(o,1,[N,t()])},i);return Bt(r.blockParams)&&n.push(N,br(r)),["<",r.tag,F(n),$s(r)]}function $s(e){return dr(e)?Ve([H,"/>"],[" />",H]):Ve([H,">"],">")}function ke(e){let t=e.trusting?"{{{":"{{",r=e.strip?.open?"~":"";return[t,r]}function Ee(e){let t=e.trusting?"}}}":"}}";return[e.strip?.close?"~":"",t]}function Xs(e){let t=ke(e),r=e.openStrip.open?"~":"";return[t,r,"#"]}function Zs(e){let t=Ee(e);return[e.openStrip.close?"~":"",t]}function Sn(e){let t=ke(e),r=e.closeStrip.open?"~":"";return[t,r,"/"]}function kn(e){let t=Ee(e);return[e.closeStrip.close?"~":"",t]}function Nn(e){let t=ke(e),r=e.inverseStrip.open?"~":"";return[t,r]}function An(e){let t=Ee(e);return[e.inverseStrip.close?"~":"",t]}function ti(e,t){let{node:r}=e,s=[],n=ve(e,t);return n&&s.push(I(n)),Bt(r.program.blockParams)&&s.push(br(r.program)),I([Xs(r),gr(e,t),s.length>0?F([N,ct(N,s)]):"",H,Zs(r)])}function ei(e,t){return[t.htmlWhitespaceSensitivity==="ignore"?ut:"",Nn(e),"else",An(e)]}var ri=({path:e},{path:t})=>[e,t].every(r=>r.type==="PathExpression"&&r.head.type==="VarHead")&&e.head.name===t.head.name;function Pn(e){if(!e.match(r=>r.type==="BlockStatement",(r,s)=>s==="body"&&r.type==="Block"&&r.body.length===1,(r,s)=>s==="inverse"&&r.type==="BlockStatement"))return!1;let{node:t}=e;return t.path.type==="PathExpression"&&t.path.head.type==="VarHead"&&t.path.head.name==="if"||ri(t,e.grandparent)}function ni(e,t){let{node:r,grandparent:s}=e;return I([Nn(s),["else"," ",s.inverse.body[0].path.head.name],F([N,I(ve(e,t)),...Bt(r.program.blockParams)?[N,br(r.program)]:[]]),H,An(s)])}function si(e,t,r){let{node:s}=e;return t.htmlWhitespaceSensitivity==="ignore"?[Cn(s)?H:ut,Sn(s),r("path"),kn(s)]:[Sn(s),r("path"),kn(s)]}function Cn(e){return e.type==="BlockStatement"&&e.program.body.every(t=>Se(t))}function En(e,t,r){let{node:s}=e;if(Cn(s))return"";let n=r("program");return t.htmlWhitespaceSensitivity==="ignore"?F([ut,n]):F(n)}function vn(e,t,r){let{node:s}=e;if(!s.inverse)return"";let n=r("inverse"),i=t.htmlWhitespaceSensitivity==="ignore"?[ut,n]:n;return e.call(Pn,"inverse","body",0)?i:[ei(s,t),F(i)]}function wn(e){return ct(N,R.split(e))}function ii(e){for(let t=0;t<2;t++){let r=e.getParentNode(t);if(r?.type==="AttrNode")return r.name.toLowerCase()}}function _t(e){return e=typeof e=="string"?e:"",e.split(` +`).length-1}function ai(e){e=typeof e=="string"?e:"";let t=(e.match(/^([^\S\n\r]*[\n\r])+/gu)||[])[0]||"";return _t(t)}function oi(e){e=typeof e=="string"?e:"";let t=(e.match(/([\n\r][^\S\n\r]*)+$/gu)||[])[0]||"";return _t(t)}function Kt(e=0){return Array.from({length:Math.min(e,xn)}).fill(ut)}function li(e,t){let{node:{value:r}}=e,s=oe(r,ci(e)?!t.singleQuote:t.singleQuote);return[s,St(0,r,s,`\\${s}`),s]}function ci(e){let{ancestors:t}=e,r=t.findIndex(s=>s.type!=="SubExpression");return r!==-1&&t[r+1].type==="ConcatStatement"&&t[r+2].type==="AttrNode"}function ui(e,t){let r=gr(e,t),s=ve(e,t);return s?F([r,N,I(s)]):r}function Tn(e,t){let r=gr(e,t),s=ve(e,t);return s?[F([r,N,s]),H]:r}function gr(e,t){return t("path")}function ve(e,t){let{node:r}=e,s=[];return r.params.length>0&&s.push(...e.map(t,"params")),r.hash?.pairs.length>0&&s.push(t("hash")),s.length===0?"":ct(N,s)}function br(e){return["as |",e.blockParams.join(" "),"|"]}var hi=new Set("!\"#%&'()*+,./;<=>@[\\]^`{|}~"),pi=new Set(["true","false","null","undefined"]),fi=(e,t)=>t===0&&e.startsWith("@")?!1:t!==0&&pi.has(e)||/\s/u.test(e)||/^\d/u.test(e)||Array.prototype.some.call(e,r=>hi.has(r));function mi(e){return e.tail.length===0&&e.original.includes("/")?e.original:[e.head.original,...e.tail].map((r,s)=>fi(r,s)?`[${r}]`:r).join(".")}var di={features:{experimental_frontMatterSupport:{massageAstNode:!0,embed:!0,print:!0}},print:js,massageAstNode:Fr,hasPrettierIgnore:yn,getVisitorKeys:dn,embed:Hr},_n=di;var Ln=[{name:"Handlebars",type:"markup",aceMode:"handlebars",extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aliases:["hbs","htmlbars"],parsers:["glimmer"],vscodeLanguageIds:["handlebars"],linguistLanguageId:155}];var yr={};Oe(yr,{glimmer:()=>Ni});function gi(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}var Dn=gi;var On=Symbol.for("PRETTIER_IS_FRONT_MATTER");var Wt=3;function bi(e){let t=e.slice(0,Wt);if(t!=="---"&&t!=="+++")return;let r=e.indexOf(` +`,Wt);if(r===-1)return;let s=e.slice(Wt,r).trim(),n=e.indexOf(` +${t}`,r),i=s;if(i||(i=t==="+++"?"toml":"yaml"),n===-1&&t==="---"&&i==="yaml"&&(n=e.indexOf(` +...`,r)),n===-1)return;let a=n+1+Wt,o=e.charAt(a+1);if(!/\s?/u.test(o))return;let c=e.slice(0,a),h;return{language:i,explicitLanguage:s||null,value:e.slice(r+1,n),startDelimiter:t,endDelimiter:c.slice(-Wt),raw:c,start:{line:1,column:0,index:0},end:{index:c.length,get line(){return h??(h=c.split(` +`)),h.length},get column(){return h??(h=c.split(` +`)),V(0,h,-1).length}},[On]:!0}}function yi(e){let t=bi(e);return t?{frontMatter:t,get content(){let{raw:r}=t;return St(0,r,/[^\n]/gu," ")+e.slice(r.length)}}:{content:e}}var In=yi;function Si(e){let t=e.children??e.body;if(t)for(let r=0;r{let{start:t,end:r}=e.loc;t.offset=e.loc.getStart().offset,r.offset=e.loc.getEnd().offset},Ei=()=>({name:"glimmerPrettierParsePlugin",visitor:{All(e){ki(e),Si(e)}}}),vi={mode:"codemod",plugins:{ast:[Ei]}};function wi(e){let{frontMatter:t,content:r}=In(e),s;try{s=mn(r,vi)}catch(n){let i=xi(n);if(i){let a=Ti(n);throw Dn(a,{loc:i,cause:n})}throw n}if(t){let n={...t,type:"FrontMatter",loc:{start:{...t.start,offset:t.start.index},end:{...t.end,offset:t.end.index}}};s.body.unshift(n)}return s}function Ti(e){let{message:t}=e,r=t.split(` +`);return r.length>=4&&/^Parse error on line \d+:$/u.test(r[0])&&/^-*\^$/u.test(V(0,r,-2))?V(0,r,-1):r.length>=4&&/:\s?$/u.test(r[0])&&/^\(error occurred in '.*?' @ line \d+ : column \d+\)$/u.test(V(0,r,-1))&&r[1]===""&&V(0,r,-2)===""&&r.slice(2,-2).every(s=>s.startsWith("|"))?r[0].trim().slice(0,-1):t}function xi(e){let{location:t,hash:r}=e;if(t){let{start:s,end:n}=t;return typeof n.line!="number"?{start:s}:t}if(r){let{loc:{last_line:s,last_column:n}}=r;return{start:{line:s,column:n+1}}}}var Ni={parse:wi,astFormat:"glimmer",locStart:mt,locEnd:Gt};var Ai={glimmer:_n};export{Bn as default,Ln as languages,yr as parsers,Ai as printers}; diff --git a/node_modules/prettier/plugins/graphql.d.ts b/node_modules/prettier/plugins/graphql.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..5eff90eb993484c33c005051754dc724ac87fa57 --- /dev/null +++ b/node_modules/prettier/plugins/graphql.d.ts @@ -0,0 +1,9 @@ +import { Parser, Printer } from "../index.js"; + +export declare const parsers: { + graphql: Parser; +}; + +export declare const printers: { + graphql: Printer; +}; diff --git a/node_modules/prettier/plugins/graphql.js b/node_modules/prettier/plugins/graphql.js new file mode 100644 index 0000000000000000000000000000000000000000..8e98212dbfe7e1634b8a7026bf95bcdd7a7f2914 --- /dev/null +++ b/node_modules/prettier/plugins/graphql.js @@ -0,0 +1,28 @@ +(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.graphql=e()}})(function(){"use strict";var ie=Object.defineProperty;var pt=Object.getOwnPropertyDescriptor;var lt=Object.getOwnPropertyNames;var ft=Object.prototype.hasOwnProperty;var me=(e,t)=>{for(var n in t)ie(e,n,{get:t[n],enumerable:!0})},ht=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of lt(t))!ft.call(e,r)&&r!==n&&ie(e,r,{get:()=>t[r],enumerable:!(i=pt(t,r))||i.enumerable});return e};var dt=e=>ht(ie({},"__esModule",{value:!0}),e);var cn={};me(cn,{languages:()=>je,options:()=>Xe,parsers:()=>de,printers:()=>an});var Ee=(e,t)=>(n,i,...r)=>n|1&&i==null?void 0:(t.call(i)??i[e]).apply(i,r);var mt=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},Et=Ee("replaceAll",function(){if(typeof this=="string")return mt}),U=Et;var Tt=()=>{},se=Tt;var Te="indent";var Ne="group";var xe="if-break";var G="line";var _e="break-parent";var S=se,Y=se;function x(e){return S(e),{type:Te,contents:e}}var ye={type:_e};function y(e,t={}){return S(e),Y(t.expandedStates,!0),{type:Ne,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function I(e,t="",n={}){return S(e),t!==""&&S(t),{type:xe,breakContents:e,flatContents:t,groupId:n.groupId}}function E(e,t){S(e),Y(t);let n=[];for(let i=0;i{let r=!!i?.backwards;if(n===!1)return!1;let{length:s}=t,a=n;for(;a>=0&&ae===` +`||e==="\r"||e==="\u2028"||e==="\u2029";function xt(e,t,n){let i=!!n?.backwards;if(t===!1)return!1;let r=e.charAt(t);if(i){if(e.charAt(t-1)==="\r"&&r===` +`)return t-2;if(Ie(r))return t-1}else{if(r==="\r"&&e.charAt(t+1)===` +`)return t+2;if(Ie(r))return t+1}return t}var X=xt;function _t(e,t,n={}){let i=$(e,n.backwards?t-1:t,n),r=X(e,i,n);return i!==r}var De=_t;function yt(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let n=t+2;n0}var oe=It;var ae=class extends Error{name="UnexpectedNodeError";constructor(t,n,i="type"){super(`Unexpected ${n} node ${i}: ${JSON.stringify(t[i])}.`),this.node=t}},Ce=ae;var P=null;function w(e){if(P!==null&&typeof P.property){let t=P;return P=w.prototype=null,t}return P=w.prototype=e??Object.create(null),new w}var Dt=10;for(let e=0;e<=Dt;e++)w();function ce(e){return w(e)}function gt(e,t="type"){ce(e);function n(i){let r=i[t],s=e[r];if(!Array.isArray(s))throw Object.assign(new Error(`Missing visitor keys for '${r}'.`),{node:i});return s}return n}var Re=gt;var H=class{constructor(t,n,i){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=i}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},F=class{constructor(t,n,i,r,s,a){this.kind=t,this.start=n,this.end=i,this.line=r,this.column=s,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},ue={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},Zn=new Set(Object.keys(ue));var C;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(C||(C={}));var ve={...ue};for(let e of["ArgumentCoordinate","DirectiveArgumentCoordinate","DirectiveCoordinate","MemberCoordinate","TypeCoordinate"])delete ve[e];var be=ve;var St=Re(be,"kind"),Le=St;var J=e=>e.loc.start,q=e=>e.loc.end;var Pe="format",we=/^\s*#[^\S\n]*@(?:noformat|noprettier)\s*(?:\n|$)/u,Fe=/^\s*#[^\S\n]*@(?:format|prettier)\s*(?:\n|$)/u;var Me=e=>Fe.test(e),Ve=e=>we.test(e),Be=e=>`# @${Pe} + +${e}`;function kt(e,t,n){let{node:i}=e;if(!i.description)return"";let r=[n("description")];return i.kind==="InputValueDefinition"&&!i.description.block?r.push(k):r.push(f),r}var A=kt;function Ct(e,t,n){let{node:i}=e;switch(i.kind){case"Document":return[...E(f,g(e,t,n,"definitions")),f];case"OperationDefinition":{let r=t.originalText[J(i)]!=="{",s=!!i.name;return[A(e,t,n),r?i.operation:"",r&&s?[" ",n("name")]:"",r&&!s&&oe(i.variableDefinitions)?" ":"",Ue(e,n),_(e,n,i),!r&&!s?"":" ",n("selectionSet")]}case"FragmentDefinition":return[A(e,t,n),"fragment ",n("name"),Ue(e,n)," on ",n("typeCondition"),_(e,n,i)," ",n("selectionSet")];case"SelectionSet":return["{",x([f,E(f,g(e,t,n,"selections"))]),f,"}"];case"Field":return y([i.alias?[n("alias"),": "]:"",n("name"),i.arguments.length>0?y(["(",x([l,E([I("",", "),l],g(e,t,n,"arguments"))]),l,")"]):"",_(e,n,i),i.selectionSet?" ":"",n("selectionSet")]);case"Name":return i.value;case"StringValue":if(i.block){let r=U(0,i.value,'"""','\\"""').split(` +`);return r.length===1&&(r[0]=r[0].trim()),r.every(s=>s==="")&&(r.length=0),E(f,['"""',...r,'"""'])}return['"',U(0,U(0,i.value,/["\\]/gu,"\\$&"),` +`,"\\n"),'"'];case"IntValue":case"FloatValue":case"EnumValue":return i.value;case"BooleanValue":return i.value?"true":"false";case"NullValue":return"null";case"Variable":return["$",n("name")];case"ListValue":return y(["[",x([l,E([I("",", "),l],e.map(n,"values"))]),l,"]"]);case"ObjectValue":{let r=t.bracketSpacing&&i.fields.length>0?" ":"";return y(["{",r,x([l,E([I("",", "),l],e.map(n,"fields"))]),l,I("",r),"}"])}case"ObjectField":case"Argument":return[n("name"),": ",n("value")];case"Directive":return["@",n("name"),i.arguments.length>0?y(["(",x([l,E([I("",", "),l],g(e,t,n,"arguments"))]),l,")"]):""];case"NamedType":return n("name");case"VariableDefinition":return[A(e,t,n),n("variable"),": ",n("type"),i.defaultValue?[" = ",n("defaultValue")]:"",_(e,n,i)];case"ObjectTypeExtension":case"ObjectTypeDefinition":case"InputObjectTypeExtension":case"InputObjectTypeDefinition":case"InterfaceTypeExtension":case"InterfaceTypeDefinition":{let{kind:r}=i,s=[];return r.endsWith("TypeDefinition")?s.push(A(e,t,n)):s.push("extend "),r.startsWith("ObjectType")?s.push("type"):r.startsWith("InputObjectType")?s.push("input"):s.push("interface"),s.push(" ",n("name")),!r.startsWith("InputObjectType")&&i.interfaces.length>0&&s.push(" implements ",...bt(e,t,n)),s.push(_(e,n,i)),i.fields.length>0&&s.push([" {",x([f,E(f,g(e,t,n,"fields"))]),f,"}"]),s}case"FieldDefinition":return[A(e,t,n),n("name"),i.arguments.length>0?y(["(",x([l,E([I("",", "),l],g(e,t,n,"arguments"))]),l,")"]):"",": ",n("type"),_(e,n,i)];case"DirectiveDefinition":return[A(e,t,n),"directive ","@",n("name"),i.arguments.length>0?y(["(",x([l,E([I("",", "),l],g(e,t,n,"arguments"))]),l,")"]):"",i.repeatable?" repeatable":""," on ",...E(" | ",e.map(n,"locations"))];case"EnumTypeExtension":case"EnumTypeDefinition":return[A(e,t,n),i.kind==="EnumTypeExtension"?"extend ":"","enum ",n("name"),_(e,n,i),i.values.length>0?[" {",x([f,E(f,g(e,t,n,"values"))]),f,"}"]:""];case"EnumValueDefinition":return[A(e,t,n),n("name"),_(e,n,i)];case"InputValueDefinition":return[A(e,t,n),n("name"),": ",n("type"),i.defaultValue?[" = ",n("defaultValue")]:"",_(e,n,i)];case"SchemaExtension":return["extend schema",_(e,n,i),...i.operationTypes.length>0?[" {",x([f,E(f,g(e,t,n,"operationTypes"))]),f,"}"]:[]];case"SchemaDefinition":return[A(e,t,n),"schema",_(e,n,i)," {",i.operationTypes.length>0?x([f,E(f,g(e,t,n,"operationTypes"))]):"",f,"}"];case"OperationTypeDefinition":return[i.operation,": ",n("type")];case"FragmentSpread":return["...",n("name"),_(e,n,i)];case"InlineFragment":return["...",i.typeCondition?[" on ",n("typeCondition")]:"",_(e,n,i)," ",n("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return y([A(e,t,n),y([i.kind==="UnionTypeExtension"?"extend ":"","union ",n("name"),_(e,n,i),i.types.length>0?[" =",I(""," "),x([I([k,"| "]),E([k,"| "],e.map(n,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[A(e,t,n),i.kind==="ScalarTypeExtension"?"extend ":"","scalar ",n("name"),_(e,n,i)];case"NonNullType":return[n("type"),"!"];case"ListType":return["[",n("type"),"]"];default:throw new Ce(i,"Graphql","kind")}}function _(e,t,n){if(n.directives.length===0)return"";let i=E(k,e.map(t,"directives"));return n.kind==="FragmentDefinition"||n.kind==="OperationDefinition"?y([k,i]):[" ",y(x([l,i]))]}function g(e,t,n,i){return e.map(({isLast:r,node:s})=>{let a=n();return!r&&ke(t.originalText,q(s))?[a,f]:a},i)}function Rt(e){return e.kind!=="Comment"}function vt({node:e}){if(e.kind==="Comment")return"#"+e.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(e))}function bt(e,t,n){let{node:i}=e,r=[],{interfaces:s}=i,a=e.map(n,"interfaces");for(let u=0;un.value.trim()==="prettier-ignore")}var Pt={print:Ct,massageAstNode:Ge,hasPrettierIgnore:Lt,insertPragma:Be,printComment:vt,canAttachComment:Rt,getVisitorKeys:Le},Ye=Pt;var je=[{name:"GraphQL",type:"data",aceMode:"graphqlschema",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",parsers:["graphql"],vscodeLanguageIds:["graphql"],linguistLanguageId:139}];var $e={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var wt={bracketSpacing:$e.bracketSpacing},Xe=wt;var de={};me(de,{graphql:()=>on});function He(e){return typeof e=="object"&&e!==null}function Je(e,t){if(!!!e)throw new Error(t??"Unexpected invariant triggered.")}var Ft=/\r\n|[\n\r]/g;function M(e,t){let n=0,i=1;for(let r of e.body.matchAll(Ft)){if(typeof r.index=="number"||Je(!1),r.index>=t)break;n=r.index+r[0].length,i+=1}return{line:i,column:t+1-n}}function Qe(e){return pe(e.source,M(e.source,e.start))}function pe(e,t){let n=e.locationOffset.column-1,i="".padStart(n)+e.body,r=t.line-1,s=e.locationOffset.line-1,a=t.line+s,u=t.line===1?n:0,p=t.column+u,T=`${e.name}:${a}:${p} +`,d=i.split(/\r\n|[\n\r]/g),D=d[r];if(D.length>120){let O=Math.floor(p/80),re=p%80,N=[];for(let v=0;v["|",v]),["|","^".padStart(re)],["|",N[O+1]]])}return T+qe([[`${a-1} |`,d[r-1]],[`${a} |`,D],["|","^".padStart(p)],[`${a+1} |`,d[r+1]]])}function qe(e){let t=e.filter(([i,r])=>r!==void 0),n=Math.max(...t.map(([i])=>i.length));return t.map(([i,r])=>i.padStart(n)+(r?" "+r:"")).join(` +`)}function Mt(e){let t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}var Q=class e extends Error{constructor(t,...n){var i,r,s;let{nodes:a,source:u,positions:p,path:T,originalError:d,extensions:D}=Mt(n);super(t),this.name="GraphQLError",this.path=T??void 0,this.originalError=d??void 0,this.nodes=We(Array.isArray(a)?a:a?[a]:void 0);let O=We((i=this.nodes)===null||i===void 0?void 0:i.map(N=>N.loc).filter(N=>N!=null));this.source=u??(O==null||(r=O[0])===null||r===void 0?void 0:r.source),this.positions=p??O?.map(N=>N.start),this.locations=p&&u?p.map(N=>M(u,N)):O?.map(N=>M(N.source,N.start));let re=He(d?.extensions)?d?.extensions:void 0;this.extensions=(s=D??re)!==null&&s!==void 0?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),d!=null&&d.stack?Object.defineProperty(this,"stack",{value:d.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(let n of this.nodes)n.loc&&(t+=` + +`+Qe(n.loc));else if(this.source&&this.locations)for(let n of this.locations)t+=` + +`+pe(this.source,n);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}};function We(e){return e===void 0||e.length===0?void 0:e}function h(e,t,n){return new Q(`Syntax Error: ${n}`,{source:e,positions:[t]})}var W;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(W||(W={}));var c;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",e.TYPE_COORDINATE="TypeCoordinate",e.MEMBER_COORDINATE="MemberCoordinate",e.ARGUMENT_COORDINATE="ArgumentCoordinate",e.DIRECTIVE_COORDINATE="DirectiveCoordinate",e.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"})(c||(c={}));function ze(e){return e===9||e===32}function b(e){return e>=48&&e<=57}function Ke(e){return e>=97&&e<=122||e>=65&&e<=90}function le(e){return Ke(e)||e===95}function Ze(e){return Ke(e)||b(e)||e===95}function et(e){var t;let n=Number.MAX_SAFE_INTEGER,i=null,r=-1;for(let a=0;au===0?a:a.slice(n)).slice((t=i)!==null&&t!==void 0?t:0,r+1)}function Vt(e){let t=0;for(;t=0&&e<=55295||e>=57344&&e<=1114111}function K(e,t){return rt(e.charCodeAt(t))&&it(e.charCodeAt(t+1))}function rt(e){return e>=55296&&e<=56319}function it(e){return e>=56320&&e<=57343}function R(e,t){let n=e.source.body.codePointAt(t);if(n===void 0)return o.EOF;if(n>=32&&n<=126){let i=String.fromCodePoint(n);return i==='"'?`'"'`:`"${i}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function m(e,t,n,i,r){let s=e.line,a=1+n-e.lineStart;return new F(t,n,i,s,a,r)}function Bt(e,t){let n=e.source.body,i=n.length,r=t;for(;r=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Xt(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:` +`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw h(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function Ht(e,t){let n=e.source.body,i=n.length,r=e.lineStart,s=t+3,a=s,u="",p=[];for(;s2?"["+Kt(e)+"]":"{ "+n.map(([r,s])=>r+": "+te(s,t)).join(", ")+" }"}function zt(e,t){if(e.length===0)return"[]";if(t.length>2)return"[Array]";let n=Math.min(10,e.length),i=e.length-n,r=[];for(let s=0;s1&&r.push(`... ${i} more items`),"["+r.join(", ")+"]"}function Kt(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){let n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}var Zt=globalThis.process&&!0,st=Zt?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var i;let r=n.prototype[Symbol.toStringTag],s=Symbol.toStringTag in t?t[Symbol.toStringTag]:(i=t.constructor)===null||i===void 0?void 0:i.name;if(r===s){let a=ee(t);throw new Error(`Cannot use ${r} "${a}" from another module or realm. + +Ensure that there is only one instance of "graphql" in the node_modules +directory. If different versions of "graphql" are the dependencies of other +relied on modules, use "resolutions" to ensure only one version is installed. + +https://yarnpkg.com/en/docs/selective-version-resolutions + +Duplicate "graphql" modules cannot be used at the same time since different +versions may have different capabilities and behavior. The data from one +version used in the function from another could produce confusing and +spurious results.`)}}return!1};var B=class{constructor(t,n="GraphQL request",i={line:1,column:1}){typeof t=="string"||Z(!1,`Body must be a string. Received: ${ee(t)}.`),this.body=t,this.name=n,this.locationOffset=i,this.locationOffset.line>0||Z(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Z(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};function ot(e){return st(e,B)}function at(e,t){let n=new he(e,t),i=n.parseDocument();return Object.defineProperty(i,"tokenCount",{enumerable:!1,value:n.tokenCount}),i}var he=class{constructor(t,n={}){let{lexer:i,...r}=n;if(i)this._lexer=i;else{let s=ot(t)?t:new B(t);this._lexer=new z(s)}this._options=r,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let t=this.expectToken(o.NAME);return this.node(t,{kind:c.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:c.DOCUMENT,definitions:this.many(o.SOF,this.parseDefinition,o.EOF)})}parseDefinition(){if(this.peek(o.BRACE_L))return this.parseOperationDefinition();let t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(t&&n.kind===o.BRACE_L)throw h(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(n.kind===o.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(t)throw h(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");switch(n.value){case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){let t=this._lexer.token;if(this.peek(o.BRACE_L))return this.node(t,{kind:c.OPERATION_DEFINITION,operation:C.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseDescription(),i=this.parseOperationType(),r;return this.peek(o.NAME)&&(r=this.parseName()),this.node(t,{kind:c.OPERATION_DEFINITION,operation:i,description:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let t=this.expectToken(o.NAME);switch(t.value){case"query":return C.QUERY;case"mutation":return C.MUTATION;case"subscription":return C.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(o.PAREN_L,this.parseVariableDefinition,o.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:c.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(o.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(o.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let t=this._lexer.token;return this.expectToken(o.DOLLAR),this.node(t,{kind:c.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:c.SELECTION_SET,selections:this.many(o.BRACE_L,this.parseSelection,o.BRACE_R)})}parseSelection(){return this.peek(o.SPREAD)?this.parseFragment():this.parseField()}parseField(){let t=this._lexer.token,n=this.parseName(),i,r;return this.expectOptionalToken(o.COLON)?(i=n,r=this.parseName()):r=n,this.node(t,{kind:c.FIELD,alias:i,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(o.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){let n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(o.PAREN_L,n,o.PAREN_R)}parseArgument(t=!1){let n=this._lexer.token,i=this.parseName();return this.expectToken(o.COLON),this.node(n,{kind:c.ARGUMENT,name:i,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let t=this._lexer.token;this.expectToken(o.SPREAD);let n=this.expectOptionalKeyword("on");return!n&&this.peek(o.NAME)?this.node(t,{kind:c.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:c.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let t=this._lexer.token,n=this.parseDescription();return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:c.FRAGMENT_DEFINITION,description:n,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:c.FRAGMENT_DEFINITION,description:n,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){let n=this._lexer.token;switch(n.kind){case o.BRACKET_L:return this.parseList(t);case o.BRACE_L:return this.parseObject(t);case o.INT:return this.advanceLexer(),this.node(n,{kind:c.INT,value:n.value});case o.FLOAT:return this.advanceLexer(),this.node(n,{kind:c.FLOAT,value:n.value});case o.STRING:case o.BLOCK_STRING:return this.parseStringLiteral();case o.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:c.BOOLEAN,value:!0});case"false":return this.node(n,{kind:c.BOOLEAN,value:!1});case"null":return this.node(n,{kind:c.NULL});default:return this.node(n,{kind:c.ENUM,value:n.value})}case o.DOLLAR:if(t)if(this.expectToken(o.DOLLAR),this._lexer.token.kind===o.NAME){let i=this._lexer.token.value;throw h(this._lexer.source,n.start,`Unexpected variable "$${i}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:c.STRING,value:t.value,block:t.kind===o.BLOCK_STRING})}parseList(t){let n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:c.LIST,values:this.any(o.BRACKET_L,n,o.BRACKET_R)})}parseObject(t){let n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:c.OBJECT,fields:this.any(o.BRACE_L,n,o.BRACE_R)})}parseObjectField(t){let n=this._lexer.token,i=this.parseName();return this.expectToken(o.COLON),this.node(n,{kind:c.OBJECT_FIELD,name:i,value:this.parseValueLiteral(t)})}parseDirectives(t){let n=[];for(;this.peek(o.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){let n=this._lexer.token;return this.expectToken(o.AT),this.node(n,{kind:c.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){let t=this._lexer.token,n;if(this.expectOptionalToken(o.BRACKET_L)){let i=this.parseTypeReference();this.expectToken(o.BRACKET_R),n=this.node(t,{kind:c.LIST_TYPE,type:i})}else n=this.parseNamedType();return this.expectOptionalToken(o.BANG)?this.node(t,{kind:c.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:c.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(o.STRING)||this.peek(o.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");let i=this.parseConstDirectives(),r=this.many(o.BRACE_L,this.parseOperationTypeDefinition,o.BRACE_R);return this.node(t,{kind:c.SCHEMA_DEFINITION,description:n,directives:i,operationTypes:r})}parseOperationTypeDefinition(){let t=this._lexer.token,n=this.parseOperationType();this.expectToken(o.COLON);let i=this.parseNamedType();return this.node(t,{kind:c.OPERATION_TYPE_DEFINITION,operation:n,type:i})}parseScalarTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");let i=this.parseName(),r=this.parseConstDirectives();return this.node(t,{kind:c.SCALAR_TYPE_DEFINITION,description:n,name:i,directives:r})}parseObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");let i=this.parseName(),r=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:c.OBJECT_TYPE_DEFINITION,description:n,name:i,interfaces:r,directives:s,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(o.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(o.BRACE_L,this.parseFieldDefinition,o.BRACE_R)}parseFieldDefinition(){let t=this._lexer.token,n=this.parseDescription(),i=this.parseName(),r=this.parseArgumentDefs();this.expectToken(o.COLON);let s=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(t,{kind:c.FIELD_DEFINITION,description:n,name:i,arguments:r,type:s,directives:a})}parseArgumentDefs(){return this.optionalMany(o.PAREN_L,this.parseInputValueDef,o.PAREN_R)}parseInputValueDef(){let t=this._lexer.token,n=this.parseDescription(),i=this.parseName();this.expectToken(o.COLON);let r=this.parseTypeReference(),s;this.expectOptionalToken(o.EQUALS)&&(s=this.parseConstValueLiteral());let a=this.parseConstDirectives();return this.node(t,{kind:c.INPUT_VALUE_DEFINITION,description:n,name:i,type:r,defaultValue:s,directives:a})}parseInterfaceTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");let i=this.parseName(),r=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:c.INTERFACE_TYPE_DEFINITION,description:n,name:i,interfaces:r,directives:s,fields:a})}parseUnionTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");let i=this.parseName(),r=this.parseConstDirectives(),s=this.parseUnionMemberTypes();return this.node(t,{kind:c.UNION_TYPE_DEFINITION,description:n,name:i,directives:r,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(o.EQUALS)?this.delimitedMany(o.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");let i=this.parseName(),r=this.parseConstDirectives(),s=this.parseEnumValuesDefinition();return this.node(t,{kind:c.ENUM_TYPE_DEFINITION,description:n,name:i,directives:r,values:s})}parseEnumValuesDefinition(){return this.optionalMany(o.BRACE_L,this.parseEnumValueDefinition,o.BRACE_R)}parseEnumValueDefinition(){let t=this._lexer.token,n=this.parseDescription(),i=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(t,{kind:c.ENUM_VALUE_DEFINITION,description:n,name:i,directives:r})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw h(this._lexer.source,this._lexer.token.start,`${ne(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");let i=this.parseName(),r=this.parseConstDirectives(),s=this.parseInputFieldsDefinition();return this.node(t,{kind:c.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:i,directives:r,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(o.BRACE_L,this.parseInputValueDef,o.BRACE_R)}parseTypeSystemExtension(){let t=this._lexer.lookahead();if(t.kind===o.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let n=this.parseConstDirectives(),i=this.optionalMany(o.BRACE_L,this.parseOperationTypeDefinition,o.BRACE_R);if(n.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:c.SCHEMA_EXTENSION,directives:n,operationTypes:i})}parseScalarTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let n=this.parseName(),i=this.parseConstDirectives();if(i.length===0)throw this.unexpected();return this.node(t,{kind:c.SCALAR_TYPE_EXTENSION,name:n,directives:i})}parseObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(i.length===0&&r.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:c.OBJECT_TYPE_EXTENSION,name:n,interfaces:i,directives:r,fields:s})}parseInterfaceTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(i.length===0&&r.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:c.INTERFACE_TYPE_EXTENSION,name:n,interfaces:i,directives:r,fields:s})}parseUnionTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let n=this.parseName(),i=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(i.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:c.UNION_TYPE_EXTENSION,name:n,directives:i,types:r})}parseEnumTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let n=this.parseName(),i=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(i.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:c.ENUM_TYPE_EXTENSION,name:n,directives:i,values:r})}parseInputObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let n=this.parseName(),i=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(i.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:c.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:i,fields:r})}parseDirectiveDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(o.AT);let i=this.parseName(),r=this.parseArgumentDefs(),s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let a=this.parseDirectiveLocations();return this.node(t,{kind:c.DIRECTIVE_DEFINITION,description:n,name:i,arguments:r,repeatable:s,locations:a})}parseDirectiveLocations(){return this.delimitedMany(o.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(W,n.value))return n;throw this.unexpected(t)}parseSchemaCoordinate(){let t=this._lexer.token,n=this.expectOptionalToken(o.AT),i=this.parseName(),r;!n&&this.expectOptionalToken(o.DOT)&&(r=this.parseName());let s;return(n||r)&&this.expectOptionalToken(o.PAREN_L)&&(s=this.parseName(),this.expectToken(o.COLON),this.expectToken(o.PAREN_R)),n?s?this.node(t,{kind:c.DIRECTIVE_ARGUMENT_COORDINATE,name:i,argumentName:s}):this.node(t,{kind:c.DIRECTIVE_COORDINATE,name:i}):r?s?this.node(t,{kind:c.ARGUMENT_COORDINATE,name:i,fieldName:r,argumentName:s}):this.node(t,{kind:c.MEMBER_COORDINATE,name:i,memberName:r}):this.node(t,{kind:c.TYPE_COORDINATE,name:i})}node(t,n){return this._options.noLocation!==!0&&(n.loc=new H(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){let n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw h(this._lexer.source,n.start,`Expected ${ct(t)}, found ${ne(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){let n=this._lexer.token;if(n.kind===o.NAME&&n.value===t)this.advanceLexer();else throw h(this._lexer.source,n.start,`Expected "${t}", found ${ne(n)}.`)}expectOptionalKeyword(t){let n=this._lexer.token;return n.kind===o.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){let n=t??this._lexer.token;return h(this._lexer.source,n.start,`Unexpected ${ne(n)}.`)}any(t,n,i){this.expectToken(t);let r=[];for(;!this.expectOptionalToken(i);)r.push(n.call(this));return r}optionalMany(t,n,i){if(this.expectOptionalToken(t)){let r=[];do r.push(n.call(this));while(!this.expectOptionalToken(i));return r}return[]}many(t,n,i){this.expectToken(t);let r=[];do r.push(n.call(this));while(!this.expectOptionalToken(i));return r}delimitedMany(t,n){this.expectOptionalToken(t);let i=[];do i.push(n.call(this));while(this.expectOptionalToken(t));return i}advanceLexer(){let{maxTokens:t}=this._options,n=this._lexer.advance();if(n.kind!==o.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw h(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}};function ne(e){let t=e.value;return ct(e.kind)+(t!=null?` "${t}"`:"")}function ct(e){return nt(e)?`"${e}"`:e}function en(e,t){let n=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(n,t)}var ut=en;function tn(e){let t=[],{startToken:n,endToken:i}=e.loc;for(let r=n;r!==i;r=r.next)r.kind==="Comment"&&t.push({...r,loc:{start:r.start,end:r.end}});return t}var nn={allowLegacyFragmentVariables:!0};function rn(e){if(e?.name==="GraphQLError"){let{message:t,locations:[n]}=e;return ut(t,{loc:{start:n},cause:e})}return e}function sn(e){let t;try{t=at(e,nn)}catch(n){throw rn(n)}return t.comments=tn(t),t}var on={parse:sn,astFormat:"graphql",hasPragma:Me,hasIgnorePragma:Ve,locStart:J,locEnd:q};var an={graphql:Ye};return dt(cn);}); \ No newline at end of file diff --git a/node_modules/prettier/plugins/graphql.mjs b/node_modules/prettier/plugins/graphql.mjs new file mode 100644 index 0000000000000000000000000000000000000000..1ba2d40d3ddeefebb435b0163b1a2bc8ae1f438d --- /dev/null +++ b/node_modules/prettier/plugins/graphql.mjs @@ -0,0 +1,28 @@ +var pt=Object.defineProperty;var de=(e,t)=>{for(var n in t)pt(e,n,{get:t[n],enumerable:!0})};var ut={};de(ut,{languages:()=>Ye,options:()=>$e,parsers:()=>he,printers:()=>nn});var me=(e,t)=>(n,i,...r)=>n|1&&i==null?void 0:(t.call(i)??i[e]).apply(i,r);var lt=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},ft=me("replaceAll",function(){if(typeof this=="string")return lt}),U=ft;var ht=()=>{},ie=ht;var Ee="indent";var Te="group";var Ne="if-break";var G="line";var xe="break-parent";var S=ie,Y=ie;function x(e){return S(e),{type:Ee,contents:e}}var _e={type:xe};function y(e,t={}){return S(e),Y(t.expandedStates,!0),{type:Te,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function I(e,t="",n={}){return S(e),t!==""&&S(t),{type:Ne,breakContents:e,flatContents:t,groupId:n.groupId}}function E(e,t){S(e),Y(t);let n=[];for(let i=0;i{let r=!!i?.backwards;if(n===!1)return!1;let{length:s}=t,a=n;for(;a>=0&&ae===` +`||e==="\r"||e==="\u2028"||e==="\u2029";function mt(e,t,n){let i=!!n?.backwards;if(t===!1)return!1;let r=e.charAt(t);if(i){if(e.charAt(t-1)==="\r"&&r===` +`)return t-2;if(Oe(r))return t-1}else{if(r==="\r"&&e.charAt(t+1)===` +`)return t+2;if(Oe(r))return t+1}return t}var X=mt;function Et(e,t,n={}){let i=$(e,n.backwards?t-1:t,n),r=X(e,i,n);return i!==r}var Ie=Et;function Tt(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let n=t+2;n0}var se=_t;var oe=class extends Error{name="UnexpectedNodeError";constructor(t,n,i="type"){super(`Unexpected ${n} node ${i}: ${JSON.stringify(t[i])}.`),this.node=t}},ke=oe;var P=null;function w(e){if(P!==null&&typeof P.property){let t=P;return P=w.prototype=null,t}return P=w.prototype=e??Object.create(null),new w}var yt=10;for(let e=0;e<=yt;e++)w();function ae(e){return w(e)}function At(e,t="type"){ae(e);function n(i){let r=i[t],s=e[r];if(!Array.isArray(s))throw Object.assign(new Error(`Missing visitor keys for '${r}'.`),{node:i});return s}return n}var Ce=At;var H=class{constructor(t,n,i){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=i}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},F=class{constructor(t,n,i,r,s,a){this.kind=t,this.start=n,this.end=i,this.line=r,this.column=s,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},ce={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},qn=new Set(Object.keys(ce));var C;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(C||(C={}));var Re={...ce};for(let e of["ArgumentCoordinate","DirectiveArgumentCoordinate","DirectiveCoordinate","MemberCoordinate","TypeCoordinate"])delete Re[e];var ve=Re;var Ot=Ce(ve,"kind"),be=Ot;var J=e=>e.loc.start,q=e=>e.loc.end;var Le="format",Pe=/^\s*#[^\S\n]*@(?:noformat|noprettier)\s*(?:\n|$)/u,we=/^\s*#[^\S\n]*@(?:format|prettier)\s*(?:\n|$)/u;var Fe=e=>we.test(e),Me=e=>Pe.test(e),Ve=e=>`# @${Le} + +${e}`;function It(e,t,n){let{node:i}=e;if(!i.description)return"";let r=[n("description")];return i.kind==="InputValueDefinition"&&!i.description.block?r.push(k):r.push(f),r}var A=It;function Dt(e,t,n){let{node:i}=e;switch(i.kind){case"Document":return[...E(f,g(e,t,n,"definitions")),f];case"OperationDefinition":{let r=t.originalText[J(i)]!=="{",s=!!i.name;return[A(e,t,n),r?i.operation:"",r&&s?[" ",n("name")]:"",r&&!s&&se(i.variableDefinitions)?" ":"",Be(e,n),_(e,n,i),!r&&!s?"":" ",n("selectionSet")]}case"FragmentDefinition":return[A(e,t,n),"fragment ",n("name"),Be(e,n)," on ",n("typeCondition"),_(e,n,i)," ",n("selectionSet")];case"SelectionSet":return["{",x([f,E(f,g(e,t,n,"selections"))]),f,"}"];case"Field":return y([i.alias?[n("alias"),": "]:"",n("name"),i.arguments.length>0?y(["(",x([l,E([I("",", "),l],g(e,t,n,"arguments"))]),l,")"]):"",_(e,n,i),i.selectionSet?" ":"",n("selectionSet")]);case"Name":return i.value;case"StringValue":if(i.block){let r=U(0,i.value,'"""','\\"""').split(` +`);return r.length===1&&(r[0]=r[0].trim()),r.every(s=>s==="")&&(r.length=0),E(f,['"""',...r,'"""'])}return['"',U(0,U(0,i.value,/["\\]/gu,"\\$&"),` +`,"\\n"),'"'];case"IntValue":case"FloatValue":case"EnumValue":return i.value;case"BooleanValue":return i.value?"true":"false";case"NullValue":return"null";case"Variable":return["$",n("name")];case"ListValue":return y(["[",x([l,E([I("",", "),l],e.map(n,"values"))]),l,"]"]);case"ObjectValue":{let r=t.bracketSpacing&&i.fields.length>0?" ":"";return y(["{",r,x([l,E([I("",", "),l],e.map(n,"fields"))]),l,I("",r),"}"])}case"ObjectField":case"Argument":return[n("name"),": ",n("value")];case"Directive":return["@",n("name"),i.arguments.length>0?y(["(",x([l,E([I("",", "),l],g(e,t,n,"arguments"))]),l,")"]):""];case"NamedType":return n("name");case"VariableDefinition":return[A(e,t,n),n("variable"),": ",n("type"),i.defaultValue?[" = ",n("defaultValue")]:"",_(e,n,i)];case"ObjectTypeExtension":case"ObjectTypeDefinition":case"InputObjectTypeExtension":case"InputObjectTypeDefinition":case"InterfaceTypeExtension":case"InterfaceTypeDefinition":{let{kind:r}=i,s=[];return r.endsWith("TypeDefinition")?s.push(A(e,t,n)):s.push("extend "),r.startsWith("ObjectType")?s.push("type"):r.startsWith("InputObjectType")?s.push("input"):s.push("interface"),s.push(" ",n("name")),!r.startsWith("InputObjectType")&&i.interfaces.length>0&&s.push(" implements ",...kt(e,t,n)),s.push(_(e,n,i)),i.fields.length>0&&s.push([" {",x([f,E(f,g(e,t,n,"fields"))]),f,"}"]),s}case"FieldDefinition":return[A(e,t,n),n("name"),i.arguments.length>0?y(["(",x([l,E([I("",", "),l],g(e,t,n,"arguments"))]),l,")"]):"",": ",n("type"),_(e,n,i)];case"DirectiveDefinition":return[A(e,t,n),"directive ","@",n("name"),i.arguments.length>0?y(["(",x([l,E([I("",", "),l],g(e,t,n,"arguments"))]),l,")"]):"",i.repeatable?" repeatable":""," on ",...E(" | ",e.map(n,"locations"))];case"EnumTypeExtension":case"EnumTypeDefinition":return[A(e,t,n),i.kind==="EnumTypeExtension"?"extend ":"","enum ",n("name"),_(e,n,i),i.values.length>0?[" {",x([f,E(f,g(e,t,n,"values"))]),f,"}"]:""];case"EnumValueDefinition":return[A(e,t,n),n("name"),_(e,n,i)];case"InputValueDefinition":return[A(e,t,n),n("name"),": ",n("type"),i.defaultValue?[" = ",n("defaultValue")]:"",_(e,n,i)];case"SchemaExtension":return["extend schema",_(e,n,i),...i.operationTypes.length>0?[" {",x([f,E(f,g(e,t,n,"operationTypes"))]),f,"}"]:[]];case"SchemaDefinition":return[A(e,t,n),"schema",_(e,n,i)," {",i.operationTypes.length>0?x([f,E(f,g(e,t,n,"operationTypes"))]):"",f,"}"];case"OperationTypeDefinition":return[i.operation,": ",n("type")];case"FragmentSpread":return["...",n("name"),_(e,n,i)];case"InlineFragment":return["...",i.typeCondition?[" on ",n("typeCondition")]:"",_(e,n,i)," ",n("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return y([A(e,t,n),y([i.kind==="UnionTypeExtension"?"extend ":"","union ",n("name"),_(e,n,i),i.types.length>0?[" =",I(""," "),x([I([k,"| "]),E([k,"| "],e.map(n,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[A(e,t,n),i.kind==="ScalarTypeExtension"?"extend ":"","scalar ",n("name"),_(e,n,i)];case"NonNullType":return[n("type"),"!"];case"ListType":return["[",n("type"),"]"];default:throw new ke(i,"Graphql","kind")}}function _(e,t,n){if(n.directives.length===0)return"";let i=E(k,e.map(t,"directives"));return n.kind==="FragmentDefinition"||n.kind==="OperationDefinition"?y([k,i]):[" ",y(x([l,i]))]}function g(e,t,n,i){return e.map(({isLast:r,node:s})=>{let a=n();return!r&&Se(t.originalText,q(s))?[a,f]:a},i)}function gt(e){return e.kind!=="Comment"}function St({node:e}){if(e.kind==="Comment")return"#"+e.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(e))}function kt(e,t,n){let{node:i}=e,r=[],{interfaces:s}=i,a=e.map(n,"interfaces");for(let u=0;un.value.trim()==="prettier-ignore")}var Rt={print:Dt,massageAstNode:Ue,hasPrettierIgnore:Ct,insertPragma:Ve,printComment:St,canAttachComment:gt,getVisitorKeys:be},Ge=Rt;var Ye=[{name:"GraphQL",type:"data",aceMode:"graphqlschema",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",parsers:["graphql"],vscodeLanguageIds:["graphql"],linguistLanguageId:139}];var je={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var vt={bracketSpacing:je.bracketSpacing},$e=vt;var he={};de(he,{graphql:()=>tn});function Xe(e){return typeof e=="object"&&e!==null}function He(e,t){if(!!!e)throw new Error(t??"Unexpected invariant triggered.")}var bt=/\r\n|[\n\r]/g;function M(e,t){let n=0,i=1;for(let r of e.body.matchAll(bt)){if(typeof r.index=="number"||He(!1),r.index>=t)break;n=r.index+r[0].length,i+=1}return{line:i,column:t+1-n}}function qe(e){return ue(e.source,M(e.source,e.start))}function ue(e,t){let n=e.locationOffset.column-1,i="".padStart(n)+e.body,r=t.line-1,s=e.locationOffset.line-1,a=t.line+s,u=t.line===1?n:0,p=t.column+u,T=`${e.name}:${a}:${p} +`,d=i.split(/\r\n|[\n\r]/g),D=d[r];if(D.length>120){let O=Math.floor(p/80),re=p%80,N=[];for(let v=0;v["|",v]),["|","^".padStart(re)],["|",N[O+1]]])}return T+Je([[`${a-1} |`,d[r-1]],[`${a} |`,D],["|","^".padStart(p)],[`${a+1} |`,d[r+1]]])}function Je(e){let t=e.filter(([i,r])=>r!==void 0),n=Math.max(...t.map(([i])=>i.length));return t.map(([i,r])=>i.padStart(n)+(r?" "+r:"")).join(` +`)}function Lt(e){let t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}var Q=class e extends Error{constructor(t,...n){var i,r,s;let{nodes:a,source:u,positions:p,path:T,originalError:d,extensions:D}=Lt(n);super(t),this.name="GraphQLError",this.path=T??void 0,this.originalError=d??void 0,this.nodes=Qe(Array.isArray(a)?a:a?[a]:void 0);let O=Qe((i=this.nodes)===null||i===void 0?void 0:i.map(N=>N.loc).filter(N=>N!=null));this.source=u??(O==null||(r=O[0])===null||r===void 0?void 0:r.source),this.positions=p??O?.map(N=>N.start),this.locations=p&&u?p.map(N=>M(u,N)):O?.map(N=>M(N.source,N.start));let re=Xe(d?.extensions)?d?.extensions:void 0;this.extensions=(s=D??re)!==null&&s!==void 0?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),d!=null&&d.stack?Object.defineProperty(this,"stack",{value:d.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(let n of this.nodes)n.loc&&(t+=` + +`+qe(n.loc));else if(this.source&&this.locations)for(let n of this.locations)t+=` + +`+ue(this.source,n);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}};function Qe(e){return e===void 0||e.length===0?void 0:e}function h(e,t,n){return new Q(`Syntax Error: ${n}`,{source:e,positions:[t]})}var W;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(W||(W={}));var c;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",e.TYPE_COORDINATE="TypeCoordinate",e.MEMBER_COORDINATE="MemberCoordinate",e.ARGUMENT_COORDINATE="ArgumentCoordinate",e.DIRECTIVE_COORDINATE="DirectiveCoordinate",e.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"})(c||(c={}));function We(e){return e===9||e===32}function b(e){return e>=48&&e<=57}function ze(e){return e>=97&&e<=122||e>=65&&e<=90}function pe(e){return ze(e)||e===95}function Ke(e){return ze(e)||b(e)||e===95}function Ze(e){var t;let n=Number.MAX_SAFE_INTEGER,i=null,r=-1;for(let a=0;au===0?a:a.slice(n)).slice((t=i)!==null&&t!==void 0?t:0,r+1)}function Pt(e){let t=0;for(;t=0&&e<=55295||e>=57344&&e<=1114111}function K(e,t){return nt(e.charCodeAt(t))&&rt(e.charCodeAt(t+1))}function nt(e){return e>=55296&&e<=56319}function rt(e){return e>=56320&&e<=57343}function R(e,t){let n=e.source.body.codePointAt(t);if(n===void 0)return o.EOF;if(n>=32&&n<=126){let i=String.fromCodePoint(n);return i==='"'?`'"'`:`"${i}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function m(e,t,n,i,r){let s=e.line,a=1+n-e.lineStart;return new F(t,n,i,s,a,r)}function wt(e,t){let n=e.source.body,i=n.length,r=t;for(;r=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Gt(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:` +`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw h(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function Yt(e,t){let n=e.source.body,i=n.length,r=e.lineStart,s=t+3,a=s,u="",p=[];for(;s2?"["+qt(e)+"]":"{ "+n.map(([r,s])=>r+": "+te(s,t)).join(", ")+" }"}function Jt(e,t){if(e.length===0)return"[]";if(t.length>2)return"[Array]";let n=Math.min(10,e.length),i=e.length-n,r=[];for(let s=0;s1&&r.push(`... ${i} more items`),"["+r.join(", ")+"]"}function qt(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){let n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}var Qt=globalThis.process&&!0,it=Qt?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var i;let r=n.prototype[Symbol.toStringTag],s=Symbol.toStringTag in t?t[Symbol.toStringTag]:(i=t.constructor)===null||i===void 0?void 0:i.name;if(r===s){let a=ee(t);throw new Error(`Cannot use ${r} "${a}" from another module or realm. + +Ensure that there is only one instance of "graphql" in the node_modules +directory. If different versions of "graphql" are the dependencies of other +relied on modules, use "resolutions" to ensure only one version is installed. + +https://yarnpkg.com/en/docs/selective-version-resolutions + +Duplicate "graphql" modules cannot be used at the same time since different +versions may have different capabilities and behavior. The data from one +version used in the function from another could produce confusing and +spurious results.`)}}return!1};var B=class{constructor(t,n="GraphQL request",i={line:1,column:1}){typeof t=="string"||Z(!1,`Body must be a string. Received: ${ee(t)}.`),this.body=t,this.name=n,this.locationOffset=i,this.locationOffset.line>0||Z(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Z(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};function st(e){return it(e,B)}function ot(e,t){let n=new fe(e,t),i=n.parseDocument();return Object.defineProperty(i,"tokenCount",{enumerable:!1,value:n.tokenCount}),i}var fe=class{constructor(t,n={}){let{lexer:i,...r}=n;if(i)this._lexer=i;else{let s=st(t)?t:new B(t);this._lexer=new z(s)}this._options=r,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let t=this.expectToken(o.NAME);return this.node(t,{kind:c.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:c.DOCUMENT,definitions:this.many(o.SOF,this.parseDefinition,o.EOF)})}parseDefinition(){if(this.peek(o.BRACE_L))return this.parseOperationDefinition();let t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(t&&n.kind===o.BRACE_L)throw h(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(n.kind===o.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(t)throw h(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");switch(n.value){case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){let t=this._lexer.token;if(this.peek(o.BRACE_L))return this.node(t,{kind:c.OPERATION_DEFINITION,operation:C.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseDescription(),i=this.parseOperationType(),r;return this.peek(o.NAME)&&(r=this.parseName()),this.node(t,{kind:c.OPERATION_DEFINITION,operation:i,description:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let t=this.expectToken(o.NAME);switch(t.value){case"query":return C.QUERY;case"mutation":return C.MUTATION;case"subscription":return C.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(o.PAREN_L,this.parseVariableDefinition,o.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:c.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(o.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(o.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let t=this._lexer.token;return this.expectToken(o.DOLLAR),this.node(t,{kind:c.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:c.SELECTION_SET,selections:this.many(o.BRACE_L,this.parseSelection,o.BRACE_R)})}parseSelection(){return this.peek(o.SPREAD)?this.parseFragment():this.parseField()}parseField(){let t=this._lexer.token,n=this.parseName(),i,r;return this.expectOptionalToken(o.COLON)?(i=n,r=this.parseName()):r=n,this.node(t,{kind:c.FIELD,alias:i,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(o.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){let n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(o.PAREN_L,n,o.PAREN_R)}parseArgument(t=!1){let n=this._lexer.token,i=this.parseName();return this.expectToken(o.COLON),this.node(n,{kind:c.ARGUMENT,name:i,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let t=this._lexer.token;this.expectToken(o.SPREAD);let n=this.expectOptionalKeyword("on");return!n&&this.peek(o.NAME)?this.node(t,{kind:c.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:c.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let t=this._lexer.token,n=this.parseDescription();return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:c.FRAGMENT_DEFINITION,description:n,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:c.FRAGMENT_DEFINITION,description:n,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){let n=this._lexer.token;switch(n.kind){case o.BRACKET_L:return this.parseList(t);case o.BRACE_L:return this.parseObject(t);case o.INT:return this.advanceLexer(),this.node(n,{kind:c.INT,value:n.value});case o.FLOAT:return this.advanceLexer(),this.node(n,{kind:c.FLOAT,value:n.value});case o.STRING:case o.BLOCK_STRING:return this.parseStringLiteral();case o.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:c.BOOLEAN,value:!0});case"false":return this.node(n,{kind:c.BOOLEAN,value:!1});case"null":return this.node(n,{kind:c.NULL});default:return this.node(n,{kind:c.ENUM,value:n.value})}case o.DOLLAR:if(t)if(this.expectToken(o.DOLLAR),this._lexer.token.kind===o.NAME){let i=this._lexer.token.value;throw h(this._lexer.source,n.start,`Unexpected variable "$${i}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:c.STRING,value:t.value,block:t.kind===o.BLOCK_STRING})}parseList(t){let n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:c.LIST,values:this.any(o.BRACKET_L,n,o.BRACKET_R)})}parseObject(t){let n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:c.OBJECT,fields:this.any(o.BRACE_L,n,o.BRACE_R)})}parseObjectField(t){let n=this._lexer.token,i=this.parseName();return this.expectToken(o.COLON),this.node(n,{kind:c.OBJECT_FIELD,name:i,value:this.parseValueLiteral(t)})}parseDirectives(t){let n=[];for(;this.peek(o.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){let n=this._lexer.token;return this.expectToken(o.AT),this.node(n,{kind:c.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){let t=this._lexer.token,n;if(this.expectOptionalToken(o.BRACKET_L)){let i=this.parseTypeReference();this.expectToken(o.BRACKET_R),n=this.node(t,{kind:c.LIST_TYPE,type:i})}else n=this.parseNamedType();return this.expectOptionalToken(o.BANG)?this.node(t,{kind:c.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:c.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(o.STRING)||this.peek(o.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");let i=this.parseConstDirectives(),r=this.many(o.BRACE_L,this.parseOperationTypeDefinition,o.BRACE_R);return this.node(t,{kind:c.SCHEMA_DEFINITION,description:n,directives:i,operationTypes:r})}parseOperationTypeDefinition(){let t=this._lexer.token,n=this.parseOperationType();this.expectToken(o.COLON);let i=this.parseNamedType();return this.node(t,{kind:c.OPERATION_TYPE_DEFINITION,operation:n,type:i})}parseScalarTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");let i=this.parseName(),r=this.parseConstDirectives();return this.node(t,{kind:c.SCALAR_TYPE_DEFINITION,description:n,name:i,directives:r})}parseObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");let i=this.parseName(),r=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:c.OBJECT_TYPE_DEFINITION,description:n,name:i,interfaces:r,directives:s,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(o.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(o.BRACE_L,this.parseFieldDefinition,o.BRACE_R)}parseFieldDefinition(){let t=this._lexer.token,n=this.parseDescription(),i=this.parseName(),r=this.parseArgumentDefs();this.expectToken(o.COLON);let s=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(t,{kind:c.FIELD_DEFINITION,description:n,name:i,arguments:r,type:s,directives:a})}parseArgumentDefs(){return this.optionalMany(o.PAREN_L,this.parseInputValueDef,o.PAREN_R)}parseInputValueDef(){let t=this._lexer.token,n=this.parseDescription(),i=this.parseName();this.expectToken(o.COLON);let r=this.parseTypeReference(),s;this.expectOptionalToken(o.EQUALS)&&(s=this.parseConstValueLiteral());let a=this.parseConstDirectives();return this.node(t,{kind:c.INPUT_VALUE_DEFINITION,description:n,name:i,type:r,defaultValue:s,directives:a})}parseInterfaceTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");let i=this.parseName(),r=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:c.INTERFACE_TYPE_DEFINITION,description:n,name:i,interfaces:r,directives:s,fields:a})}parseUnionTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");let i=this.parseName(),r=this.parseConstDirectives(),s=this.parseUnionMemberTypes();return this.node(t,{kind:c.UNION_TYPE_DEFINITION,description:n,name:i,directives:r,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(o.EQUALS)?this.delimitedMany(o.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");let i=this.parseName(),r=this.parseConstDirectives(),s=this.parseEnumValuesDefinition();return this.node(t,{kind:c.ENUM_TYPE_DEFINITION,description:n,name:i,directives:r,values:s})}parseEnumValuesDefinition(){return this.optionalMany(o.BRACE_L,this.parseEnumValueDefinition,o.BRACE_R)}parseEnumValueDefinition(){let t=this._lexer.token,n=this.parseDescription(),i=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(t,{kind:c.ENUM_VALUE_DEFINITION,description:n,name:i,directives:r})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw h(this._lexer.source,this._lexer.token.start,`${ne(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");let i=this.parseName(),r=this.parseConstDirectives(),s=this.parseInputFieldsDefinition();return this.node(t,{kind:c.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:i,directives:r,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(o.BRACE_L,this.parseInputValueDef,o.BRACE_R)}parseTypeSystemExtension(){let t=this._lexer.lookahead();if(t.kind===o.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let n=this.parseConstDirectives(),i=this.optionalMany(o.BRACE_L,this.parseOperationTypeDefinition,o.BRACE_R);if(n.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:c.SCHEMA_EXTENSION,directives:n,operationTypes:i})}parseScalarTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let n=this.parseName(),i=this.parseConstDirectives();if(i.length===0)throw this.unexpected();return this.node(t,{kind:c.SCALAR_TYPE_EXTENSION,name:n,directives:i})}parseObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(i.length===0&&r.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:c.OBJECT_TYPE_EXTENSION,name:n,interfaces:i,directives:r,fields:s})}parseInterfaceTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(i.length===0&&r.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:c.INTERFACE_TYPE_EXTENSION,name:n,interfaces:i,directives:r,fields:s})}parseUnionTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let n=this.parseName(),i=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(i.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:c.UNION_TYPE_EXTENSION,name:n,directives:i,types:r})}parseEnumTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let n=this.parseName(),i=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(i.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:c.ENUM_TYPE_EXTENSION,name:n,directives:i,values:r})}parseInputObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let n=this.parseName(),i=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(i.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:c.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:i,fields:r})}parseDirectiveDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(o.AT);let i=this.parseName(),r=this.parseArgumentDefs(),s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let a=this.parseDirectiveLocations();return this.node(t,{kind:c.DIRECTIVE_DEFINITION,description:n,name:i,arguments:r,repeatable:s,locations:a})}parseDirectiveLocations(){return this.delimitedMany(o.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(W,n.value))return n;throw this.unexpected(t)}parseSchemaCoordinate(){let t=this._lexer.token,n=this.expectOptionalToken(o.AT),i=this.parseName(),r;!n&&this.expectOptionalToken(o.DOT)&&(r=this.parseName());let s;return(n||r)&&this.expectOptionalToken(o.PAREN_L)&&(s=this.parseName(),this.expectToken(o.COLON),this.expectToken(o.PAREN_R)),n?s?this.node(t,{kind:c.DIRECTIVE_ARGUMENT_COORDINATE,name:i,argumentName:s}):this.node(t,{kind:c.DIRECTIVE_COORDINATE,name:i}):r?s?this.node(t,{kind:c.ARGUMENT_COORDINATE,name:i,fieldName:r,argumentName:s}):this.node(t,{kind:c.MEMBER_COORDINATE,name:i,memberName:r}):this.node(t,{kind:c.TYPE_COORDINATE,name:i})}node(t,n){return this._options.noLocation!==!0&&(n.loc=new H(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){let n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw h(this._lexer.source,n.start,`Expected ${at(t)}, found ${ne(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){let n=this._lexer.token;if(n.kind===o.NAME&&n.value===t)this.advanceLexer();else throw h(this._lexer.source,n.start,`Expected "${t}", found ${ne(n)}.`)}expectOptionalKeyword(t){let n=this._lexer.token;return n.kind===o.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){let n=t??this._lexer.token;return h(this._lexer.source,n.start,`Unexpected ${ne(n)}.`)}any(t,n,i){this.expectToken(t);let r=[];for(;!this.expectOptionalToken(i);)r.push(n.call(this));return r}optionalMany(t,n,i){if(this.expectOptionalToken(t)){let r=[];do r.push(n.call(this));while(!this.expectOptionalToken(i));return r}return[]}many(t,n,i){this.expectToken(t);let r=[];do r.push(n.call(this));while(!this.expectOptionalToken(i));return r}delimitedMany(t,n){this.expectOptionalToken(t);let i=[];do i.push(n.call(this));while(this.expectOptionalToken(t));return i}advanceLexer(){let{maxTokens:t}=this._options,n=this._lexer.advance();if(n.kind!==o.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw h(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}};function ne(e){let t=e.value;return at(e.kind)+(t!=null?` "${t}"`:"")}function at(e){return tt(e)?`"${e}"`:e}function Wt(e,t){let n=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(n,t)}var ct=Wt;function zt(e){let t=[],{startToken:n,endToken:i}=e.loc;for(let r=n;r!==i;r=r.next)r.kind==="Comment"&&t.push({...r,loc:{start:r.start,end:r.end}});return t}var Kt={allowLegacyFragmentVariables:!0};function Zt(e){if(e?.name==="GraphQLError"){let{message:t,locations:[n]}=e;return ct(t,{loc:{start:n},cause:e})}return e}function en(e){let t;try{t=ot(e,Kt)}catch(n){throw Zt(n)}return t.comments=zt(t),t}var tn={parse:en,astFormat:"graphql",hasPragma:Fe,hasIgnorePragma:Me,locStart:J,locEnd:q};var nn={graphql:Ge};export{ut as default,Ye as languages,$e as options,he as parsers,nn as printers}; diff --git a/node_modules/prettier/plugins/html.d.ts b/node_modules/prettier/plugins/html.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..f8a6c5a1fb789216c70ffb5bc5221e101f34e706 --- /dev/null +++ b/node_modules/prettier/plugins/html.d.ts @@ -0,0 +1,13 @@ +import { Parser, Printer } from "../index.js"; + +export declare const parsers: { + angular: Parser; + html: Parser; + lwc: Parser; + mjml: Parser; + vue: Parser; +}; + +export declare const printers: { + html: Printer; +}; diff --git a/node_modules/prettier/plugins/html.js b/node_modules/prettier/plugins/html.js new file mode 100644 index 0000000000000000000000000000000000000000..b8113bb3d772cb6d0324becfe7d57b19b689be60 --- /dev/null +++ b/node_modules/prettier/plugins/html.js @@ -0,0 +1,25 @@ +(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.html=e()}})(function(){"use strict";var lt=Object.defineProperty;var Ji=Object.getOwnPropertyDescriptor;var Zi=Object.getOwnPropertyNames;var es=Object.prototype.hasOwnProperty;var Pr=e=>{throw TypeError(e)};var ts=(e,t,r)=>t in e?lt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Or=(e,t)=>{for(var r in t)lt(e,r,{get:t[r],enumerable:!0})},rs=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Zi(t))!es.call(e,i)&&i!==r&<(e,i,{get:()=>t[i],enumerable:!(n=Ji(t,i))||n.enumerable});return e};var ns=e=>rs(lt({},"__esModule",{value:!0}),e);var Wt=(e,t,r)=>ts(e,typeof t!="symbol"?t+"":t,r),is=(e,t,r)=>t.has(e)||Pr("Cannot "+r);var Fe=(e,t,r)=>(is(e,t,"read from private field"),r?r.call(e):t.get(e)),Dr=(e,t,r)=>t.has(e)?Pr("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r);var Wo={};Or(Wo,{languages:()=>Vi,options:()=>Wi,parsers:()=>Lr,printers:()=>Uo});var ve=(e,t)=>(r,n,...i)=>r|1&&n==null?void 0:(t.call(n)??n[e]).apply(n,i);var ss=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},as=ve("replaceAll",function(){if(typeof this=="string")return ss}),w=as;function os(e){return this[e<0?this.length+e:e]}var ls=ve("at",function(){if(Array.isArray(this)||typeof this=="string")return os}),M=ls;var cs=()=>{},He=cs;var Ve="string",Ue="array",ct="cursor",Te="indent",be="align",ut="trim",we="group",ke="fill",xe="if-break",ye="indent-if-break",pt="line-suffix",ht="line-suffix-boundary",$="line",mt="label",Ae="break-parent",ft=new Set([ct,Te,be,ut,we,ke,xe,ye,pt,ht,$,mt,Ae]);function us(e){if(typeof e=="string")return Ve;if(Array.isArray(e))return Ue;if(!e)return;let{type:t}=e;if(ft.has(t))return t}var dt=us;var ps=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function hs(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', +Expected it to be 'string' or 'object'.`;if(dt(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=ps([...ft].map(i=>`'${i}'`));return`Unexpected doc.type '${e.type}'. +Expected it to be ${n}.`}var Gt=class extends Error{name="InvalidDocError";constructor(t){super(hs(t)),this.doc=t}},Ir=Gt;function zt(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(s){if(r.has(s))return r.get(s);let a=i(s);return r.set(s,a),a}function i(s){switch(dt(s)){case Ue:return t(s.map(n));case ke:return t({...s,parts:s.parts.map(n)});case xe:return t({...s,breakContents:n(s.breakContents),flatContents:n(s.flatContents)});case we:{let{expandedStates:a,contents:o}=s;return a?(a=a.map(n),o=a[0]):o=n(o),t({...s,contents:o,expandedStates:a})}case be:case Te:case ye:case mt:case pt:return t({...s,contents:n(s.contents)});case Ve:case ct:case ut:case ht:case $:case Ae:return t(s);default:throw new Ir(s)}}}function L(e,t=Rr){return zt(e,r=>typeof r=="string"?B(t,r.split(` +`)):r)}var D=He,gt=He,Mr=He,Br=He;function A(e){return D(e),{type:Te,contents:e}}function ms(e,t){return Br(e),D(t),{type:be,contents:t,n:e}}function qr(e){return ms(Number.NEGATIVE_INFINITY,e)}var Y={type:Ae};function _t(e){return Mr(e),{type:ke,parts:e}}function E(e,t={}){return D(e),gt(t.expandedStates,!0),{type:we,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function j(e,t="",r={}){return D(e),t!==""&&D(t),{type:xe,breakContents:e,flatContents:t,groupId:r.groupId}}function Fr(e,t){return D(e),{type:ye,contents:e,groupId:t.groupId,negate:t.negate}}function B(e,t){D(e),gt(t);let r=[];for(let n=0;na?n:r).character}var Ur=Ss;function $t(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Yt=class{#e;constructor(t){this.#e=new Set(t)}getLeadingWhitespaceCount(t){let r=this.#e,n=0;for(let i=0;i=0&&r.has(t.charAt(i));i--)n++;return n}getLeadingWhitespace(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(0,r)}getTrailingWhitespace(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(t.length-r)}hasLeadingWhitespace(t){return this.#e.has(t.charAt(0))}hasTrailingWhitespace(t){return this.#e.has(M(0,t,-1))}trimStart(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(r)}trimEnd(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(0,t.length-r)}trim(t){return this.trimEnd(this.trimStart(t))}split(t,r=!1){let n=`[${$t([...this.#e].join(""))}]+`,i=new RegExp(r?`(${n})`:n,"u");return t.split(i)}hasWhitespaceCharacter(t){let r=this.#e;return Array.prototype.some.call(t,n=>r.has(n))}hasNonWhitespaceCharacter(t){let r=this.#e;return Array.prototype.some.call(t,n=>!r.has(n))}isWhitespaceOnly(t){let r=this.#e;return Array.prototype.every.call(t,n=>r.has(n))}#t(t){let r=Number.POSITIVE_INFINITY;for(let n of t.split(` +`)){if(n.length===0)continue;let i=this.getLeadingWhitespaceCount(n);if(i===0)return 0;n.length!==i&&in.slice(r)).join(` +`)}},Wr=Yt;var Es=[" ",` +`,"\f","\r"," "],Cs=new Wr(Es),N=Cs;var jt=class extends Error{name="UnexpectedNodeError";constructor(t,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(t[n])}.`),this.node=t}},Gr=jt;var vs=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens","switchValueSourceSpan","expSourceSpan","valueSourceSpan"]),Ts=new Set(["if","else if","for","switch","case"]);function zr(e,t,r){if(e.kind==="text"||e.kind==="comment")return null;if(e.kind==="yaml"&&delete t.value,e.kind==="attribute"){let{fullName:n,value:i}=e;n==="style"||n==="class"||n==="srcset"&&(r.fullName==="img"||r.fullName==="source")||n==="allow"&&r.fullName==="iframe"||n.startsWith("on")||n.startsWith("@")||n.startsWith(":")||n.startsWith(".")||n.startsWith("#")||n.startsWith("v-")||n==="vars"&&r.fullName==="style"||(n==="setup"||n==="generic")&&r.fullName==="script"||n==="slot-scope"||n.startsWith("(")||n.startsWith("[")||n.startsWith("*")||n.startsWith("bind")||n.startsWith("i18n")||n.startsWith("on-")||n.startsWith("ng-")||i?.includes("{{")?delete t.value:i&&(t.value=w(0,i,/'|"|'/gu,'"'))}if(e.kind==="docType"&&(t.value=w(0,e.value.toLowerCase(),/\s+/gu," ")),e.kind==="angularControlFlowBlock"&&e.parameters?.children)for(let n of t.parameters.children)Ts.has(e.name)?delete n.expression:n.expression=n.expression.trim();e.kind==="angularIcuExpression"&&(t.switchValue=e.switchValue.trim()),e.kind==="angularLetDeclarationInitializer"&&delete t.value,e.kind==="element"&&e.isVoid&&!e.isSelfClosing&&(t.isSelfClosing=!0)}zr.ignoredProperties=vs;var $r=zr;function X(e,t=!0){return[A([k,e]),t?k:""]}function V(e,t){let r=e.type==="NGRoot"?e.node.type==="NGMicrosyntax"&&e.node.body.length===1&&e.node.body[0].type==="NGMicrosyntaxExpression"?e.node.body[0].expression:e.node:e.type==="JsExpressionRoot"?e.node:e;return r&&(r.type==="ObjectExpression"||r.type==="ArrayExpression"||(t.parser==="__vue_expression"||t.parser==="__vue_ts_expression"||t.parser==="__ng_binding"||t.parser==="__ng_directive")&&(r.type==="TemplateLiteral"||r.type==="StringLiteral"))}async function x(e,t,r,n){r={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...r};let i=!0;n&&(r.__onHtmlBindingRoot=(a,o)=>{i=n(a,o)});let s=await t(e,r,t);return i?E(s):X(s)}function bs(e,t,r,n){let{node:i}=r,s=n.originalText.slice(i.sourceSpan.start.offset,i.sourceSpan.end.offset);return/^\s*$/u.test(s)?"":x(s,e,{parser:"__ng_directive",__isInHtmlAttribute:!1},V)}var Yr=bs;var ws=Array.prototype.toReversed??function(){return[...this].reverse()},ks=ve("toReversed",function(){if(Array.isArray(this))return ws}),jr=ks;function xs(){let e=globalThis,t=e.Deno?.build?.os;return typeof t=="string"?t==="windows":e.navigator?.platform?.startsWith("Win")??e.process?.platform?.startsWith("win")??!1}var ys=xs();function Xr(e){if(e=e instanceof URL?e:new URL(e),e.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function As(e){return e=Xr(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function Ns(e){e=Xr(e);let t=decodeURIComponent(e.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return e.hostname!==""&&(t=`\\\\${e.hostname}${t}`),t}function Xt(e){return ys?Ns(e):As(e)}var Kr=e=>String(e).split(/[/\\]/u).pop(),Qr=e=>String(e).startsWith("file:");function Ls(e){return Array.isArray(e)&&e.length>0}var Ne=Ls;function Jr(e,t){if(!t)return;let r=Kr(t).toLowerCase();return e.find(({filenames:n})=>n?.some(i=>i.toLowerCase()===r))??e.find(({extensions:n})=>n?.some(i=>r.endsWith(i)))}function Ps(e,t){if(t)return e.find(({name:r})=>r.toLowerCase()===t)??e.find(({aliases:r})=>r?.includes(t))??e.find(({extensions:r})=>r?.includes(`.${t}`))}var Os=void 0;function Zr(e,t){if(t){if(Qr(t))try{t=Xt(t)}catch{return}if(typeof t=="string")return e.find(({isSupported:r})=>r?.({filepath:t}))}}function Ds(e,t){let r=jr(0,e.plugins).flatMap(i=>i.languages??[]);return(Ps(r,t.language)??Jr(r,t.physicalFile)??Jr(r,t.file)??Zr(r,t.physicalFile)??Zr(r,t.file)??Os?.(r,t.physicalFile))?.parsers[0]}var St=Ds;var Et=Symbol.for("PRETTIER_IS_FRONT_MATTER");function Is(e){return!!e?.[Et]}var ie=Is;var We=3;function Rs(e){let t=e.slice(0,We);if(t!=="---"&&t!=="+++")return;let r=e.indexOf(` +`,We);if(r===-1)return;let n=e.slice(We,r).trim(),i=e.indexOf(` +${t}`,r),s=n;if(s||(s=t==="+++"?"toml":"yaml"),i===-1&&t==="---"&&s==="yaml"&&(i=e.indexOf(` +...`,r)),i===-1)return;let a=i+1+We,o=e.charAt(a+1);if(!/\s?/u.test(o))return;let c=e.slice(0,a),u;return{language:s,explicitLanguage:n||null,value:e.slice(r+1,i),startDelimiter:t,endDelimiter:c.slice(-We),raw:c,start:{line:1,column:0,index:0},end:{index:c.length,get line(){return u??(u=c.split(` +`)),u.length},get column(){return u??(u=c.split(` +`)),M(0,u,-1).length}},[Et]:!0}}function Ms(e){let t=Rs(e);return t?{frontMatter:t,get content(){let{raw:r}=t;return w(0,r,/[^\n]/gu," ")+e.slice(r.length)}}:{content:e}}var Kt=Ms;var en="inline",Qt={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",style:"none",template:"inline",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",dialog:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",search:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",menu:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",input:"inline-block",button:"inline-block",fieldset:"block",details:"block",summary:"block",marquee:"inline-block",select:"inline-block",source:"block",track:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",option:"block",optgroup:"block"},tn="normal",Jt={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function Bs(e){return e.kind==="element"&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}var se=Bs;var qs=e=>w(0,e,/^[\t\f\r ]*\n/gu,""),Zt=e=>qs(N.trimEnd(e)),rn=e=>{let t=e,r=N.getLeadingWhitespace(t);r&&(t=t.slice(r.length));let n=N.getTrailingWhitespace(t);return n&&(t=t.slice(0,-n.length)),{leadingWhitespace:r,trailingWhitespace:n,text:t}};function Ct(e,t){return!!(e.kind==="ieConditionalComment"&&e.lastChild&&!e.lastChild.isSelfClosing&&!e.lastChild.endSourceSpan||e.kind==="ieConditionalComment"&&!e.complete||ae(e)&&e.children.some(r=>r.kind!=="text"&&r.kind!=="interpolation")||bt(e,t)&&!q(e,t)&&e.kind!=="interpolation")}function oe(e){return e.kind==="attribute"||!e.parent||!e.prev?!1:Fs(e.prev)}function Fs(e){return e.kind==="comment"&&e.value.trim()==="prettier-ignore"}function O(e){return e.kind==="text"||e.kind==="comment"}function q(e,t){return e.kind==="element"&&(e.fullName==="script"||e.fullName==="style"||e.fullName==="svg:style"||e.fullName==="svg:script"||e.fullName==="mj-style"&&t.parser==="mjml"||se(e)&&(e.name==="script"||e.name==="style"))}function nn(e,t){return e.children&&!q(e,t)}function sn(e,t){return q(e,t)||e.kind==="interpolation"||er(e)}function er(e){return gn(e).startsWith("pre")}function an(e,t){let r=n();if(r&&!e.prev&&e.parent?.tagDefinition?.ignoreFirstLf)return e.kind==="interpolation";return r;function n(){return ie(e)||e.kind==="angularControlFlowBlock"?!1:(e.kind==="text"||e.kind==="interpolation")&&e.prev&&(e.prev.kind==="text"||e.prev.kind==="interpolation")?!0:!e.parent||e.parent.cssDisplay==="none"?!1:ae(e.parent)?!0:!(!e.prev&&(e.parent.kind==="root"||ae(e)&&e.parent||q(e.parent,t)||$e(e.parent,t)||!zs(e.parent.cssDisplay))||e.prev&&!js(e.prev.cssDisplay))}}function on(e,t){return ie(e)||e.kind==="angularControlFlowBlock"?!1:(e.kind==="text"||e.kind==="interpolation")&&e.next&&(e.next.kind==="text"||e.next.kind==="interpolation")?!0:!e.parent||e.parent.cssDisplay==="none"?!1:ae(e.parent)?!0:!(!e.next&&(e.parent.kind==="root"||ae(e)&&e.parent||q(e.parent,t)||$e(e.parent,t)||!$s(e.parent.cssDisplay))||e.next&&!Ys(e.next.cssDisplay))}function ln(e,t){return Xs(e.cssDisplay)&&!q(e,t)}function Ge(e){return ie(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+10&&(["body","script","style"].includes(e.name)||e.children.some(t=>Vs(t)))||e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.kind!=="text"&&pn(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||hn(e.lastChild))}function tr(e){return e.kind==="element"&&e.children.length>0&&(["html","head","ul","ol","select"].includes(e.name)||e.cssDisplay.startsWith("table")&&e.cssDisplay!=="table-cell")}function vt(e){return mn(e)||e.prev&&Hs(e.prev)||un(e)}function Hs(e){return mn(e)||e.kind==="element"&&e.fullName==="br"||un(e)}function un(e){return pn(e)&&hn(e)}function pn(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.linee.sourceSpan.end.line:e.parent.kind==="root"||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function mn(e){switch(e.kind){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function Tt(e){return e.lastChild?Tt(e.lastChild):e}function Vs(e){return e.children?.some(t=>t.kind!=="text")}function fn(e){if(e)switch(e){case"module":case"text/javascript":case"text/babel":case"text/jsx":case"application/javascript":return"babel";case"application/x-typescript":return"typescript";case"text/markdown":return"markdown";case"text/html":return"html";case"text/x-handlebars-template":return"glimmer";default:if(e.endsWith("json")||e.endsWith("importmap")||e==="speculationrules")return"json"}}function Us(e,t){let{name:r,attrMap:n}=e;if(r!=="script"||Object.prototype.hasOwnProperty.call(n,"src"))return;let{type:i,lang:s}=e.attrMap;return!s&&!i?"babel":St(t,{language:s})??fn(i)}function Ws(e,t){if(!bt(e,t))return;let{attrMap:r}=e;if(Object.prototype.hasOwnProperty.call(r,"src"))return;let{type:n,lang:i}=r;return St(t,{language:i})??fn(n)}function Gs(e,t){if(e.name==="style"){let{lang:r}=e.attrMap;return r?St(t,{language:r}):"css"}if(e.name==="mj-style"&&t.parser==="mjml")return"css"}function rr(e,t){return Us(e,t)??Gs(e,t)??Ws(e,t)}function ze(e){return e==="block"||e==="list-item"||e.startsWith("table")}function zs(e){return!ze(e)&&e!=="inline-block"}function $s(e){return!ze(e)&&e!=="inline-block"}function Ys(e){return!ze(e)}function js(e){return!ze(e)}function Xs(e){return!ze(e)&&e!=="inline-block"}function ae(e){return gn(e).startsWith("pre")}function Ks(e,t){let r=e;for(;r;){if(t(r))return!0;r=r.parent}return!1}function dn(e,t){if(le(e,t))return"block";if(e.prev?.kind==="comment"){let n=e.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/u);if(n)return n[1]}let r=!1;if(e.kind==="element"&&e.namespace==="svg")if(Ks(e,n=>n.fullName==="svg:foreignObject"))r=!0;else return e.name==="svg"?"inline-block":"block";switch(t.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:if(e.kind==="element"&&(!e.namespace||r||se(e))&&Object.prototype.hasOwnProperty.call(Qt,e.name))return Qt[e.name]}return en}function gn(e){return e.kind==="element"&&(!e.namespace||se(e))&&Object.prototype.hasOwnProperty.call(Jt,e.name)?Jt[e.name]:tn}function nr(e){return w(0,w(0,e,"'","'"),""",'"')}function b(e){return nr(e.value)}var Qs=new Set(["template","style","script"]);function $e(e,t){return le(e,t)&&!Qs.has(e.fullName)}function le(e,t){return t.parser==="vue"&&e.kind==="element"&&e.parent.kind==="root"&&e.fullName.toLowerCase()!=="html"}function bt(e,t){return le(e,t)&&($e(e,t)||e.attrMap.lang&&e.attrMap.lang!=="html")}function _n(e){let t=e.fullName;return t.charAt(0)==="#"||t==="slot-scope"||t==="v-slot"||t.startsWith("v-slot:")}function Sn(e,t){let r=e.parent;if(!le(r,t))return!1;let n=r.fullName,i=e.fullName;return n==="script"&&i==="setup"||n==="style"&&i==="vars"}function wt(e,t=e.value){return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?L(t):L(N.dedentString(Zt(t)),C):B(S,N.split(t))}function kt(e,t){return le(e,t)&&e.name==="script"}function Js(e){let{valueSpan:t,value:r}=e;return t.end.offset-t.start.offset===r.length+2}function xt(e,t){if(Js(e))return!1;let{value:r}=e;return/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(r)||t.parser==="lwc"&&r.startsWith("{")&&r.endsWith("}")}var En=/\{\{(.+?)\}\}/su,Cn=({node:{value:e}})=>En.test(e);async function vn(e,t,r){let n=b(r.node),i=[];for(let[s,a]of n.split(En).entries())if(s%2===0)i.push(L(a));else try{i.push(E(["{{",A([S,await x(a,e,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),S,"}}"]))}catch{i.push("{{",L(a),"}}")}return i}var ir=e=>(t,r,n)=>x(b(n.node),t,{parser:e},V),Zs=[{test(e){let t=e.node.fullName;return t.startsWith("(")&&t.endsWith(")")||t.startsWith("on-")},print:ir("__ng_action")},{test(e){let t=e.node.fullName;return t.startsWith("[")&&t.endsWith("]")||/^bind(?:on)?-/u.test(t)||/^ng-(?:if|show|hide|class|style)$/u.test(t)},print:ir("__ng_binding")},{test:e=>e.node.fullName.startsWith("*"),print:ir("__ng_directive")},{test:e=>/^i18n(?:-.+)?$/u.test(e.node.fullName),print:ea},{test:Cn,print:vn}].map(({test:e,print:t})=>({test:(r,n)=>n.parser==="angular"&&e(r),print:t}));function ea(e,t,{node:r}){let n=b(r);return X(_t(wt(r,n.trim())),!n.includes("@@"))}var Tn=Zs;var bn=({node:e},t)=>!t.parentParser&&e.fullName==="class"&&!e.value.includes("{{"),wn=(e,t,r)=>b(r.node).trim().split(/\s+/u).join(" ");var sr=["onabort","onafterprint","onauxclick","onbeforeinput","onbeforematch","onbeforeprint","onbeforetoggle","onbeforeunload","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncommand","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpagereveal","onpageshow","onpageswap","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onrejectionhandled","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"];var ra=new Set(sr),kn=({node:e},t)=>ra.has(e.fullName)&&!t.parentParser&&!e.value.includes("{{"),xn=(e,t,r)=>x(b(r.node),e,{parser:"babel",__isHtmlInlineEventHandler:!0},()=>!1);function na(e){let t=[];for(let r of e.split(";")){if(r=N.trim(r),!r)continue;let[n,...i]=N.split(r);t.push({name:n,value:i})}return t}var yn=na;var An=({node:e},t)=>e.fullName==="allow"&&!t.parentParser&&e.parent.fullName==="iframe"&&!e.value.includes("{{");function Nn(e,t,r){let{node:n}=r,i=yn(b(n));return i.length===0?[""]:X(i.map(({name:s,value:a},o)=>[[s,...a].join(" "),o===i.length-1?j(";"):[";",S]]))}function Ln(e){return e===" "||e===` +`||e==="\f"||e==="\r"||e===" "}var ia=/^[ \t\n\r\u000c]+/,sa=/^[, \t\n\r\u000c]+/,aa=/^[^ \t\n\r\u000c]+/,oa=/[,]+$/,Pn=/^\d+$/,la=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function ca(e){let t=e.length,r,n,i,s,a,o=0,c;function u(m){let _,T=m.exec(e.substring(o));if(T)return[_]=T,o+=_.length,_}let p=[];for(;;){if(u(sa),o>=t){if(p.length===0)throw new Error("Must contain one or more image candidate strings.");return p}c=o,r=u(aa),n=[],r.slice(-1)===","?(r=r.replace(oa,""),g()):d()}function d(){for(u(ia),i="",s="in descriptor";;){if(a=e.charAt(o),s==="in descriptor")if(Ln(a))i&&(n.push(i),i="",s="after descriptor");else if(a===","){o+=1,i&&n.push(i),g();return}else if(a==="(")i+=a,s="in parens";else if(a===""){i&&n.push(i),g();return}else i+=a;else if(s==="in parens")if(a===")")i+=a,s="in descriptor";else if(a===""){n.push(i),g();return}else i+=a;else if(s==="after descriptor"&&!Ln(a))if(a===""){g();return}else s="in descriptor",o-=1;o+=1}}function g(){let m=!1,_,T,P,z,ne={},Q,ot,Ce,qe,Ut;for(z=0;ze.node.fullName==="srcset"&&(e.parent.fullName==="img"||e.parent.fullName==="source"),In={width:"w",height:"h",density:"x"},ua=Object.keys(In);function Rn(e,t,r){let n=b(r.node),i=On(n),s=ua.filter(m=>i.some(_=>Object.prototype.hasOwnProperty.call(_,m)));if(s.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[a]=s,o=In[a],c=i.map(m=>m.source.value),u=Math.max(...c.map(m=>m.length)),p=i.map(m=>m[a]?String(m[a].value):""),d=p.map(m=>{let _=m.indexOf(".");return _===-1?m.length:_}),g=Math.max(...d);return X(B([",",S],c.map((m,_)=>{let T=[m],P=p[_];if(P){let z=u-m.length+1,ne=g-d[_],Q=" ".repeat(z+ne);T.push(j(Q," "),P+o)}return T})))}var Mn=({node:e},t)=>e.fullName==="style"&&!t.parentParser&&!e.value.includes("{{"),Bn=async(e,t,r)=>X(await e(b(r.node),{parser:"css",__isHTMLStyleAttribute:!0}));var ar=new WeakMap;function pa(e,t){let{root:r}=e;return ar.has(r)||ar.set(r,r.children.some(n=>kt(n,t)&&["ts","typescript"].includes(n.attrMap.lang))),ar.get(r)}var U=pa;function qn(e,t,r){let n=b(r.node);return x(`type T<${n}> = any`,e,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},V)}function Fn(e,t,r,n){let i=b(r.node),s=U(r,n)?"babel-ts":"babel";return x(`function _(${i}) {}`,e,{parser:s,__isVueBindings:!0})}async function Hn(e,t,r,n){let i=b(r.node),{left:s,operator:a,right:o}=ha(i),c=U(r,n);return[E(await x(`function _(${s}) {}`,e,{parser:c?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",a," ",await x(o,e,{parser:c?"__ts_expression":"__js_expression"})]}function ha(e){let t=/(.*?)\s+(in|of)\s+(.*)/su,r=/,([^,\]}]*)(?:,([^,\]}]*))?$/u,n=/^\(|\)$/gu,i=e.match(t);if(!i)return;let s={for:i[3].trim()};if(!s.for)return;let a=w(0,i[1].trim(),n,""),o=a.match(r);o?(s.alias=a.replace(r,""),s.iterator1=o[1].trim(),o[2]&&(s.iterator2=o[2].trim())):s.alias=a;let c=[s.alias,s.iterator1,s.iterator2];if(!c.some((u,p)=>!u&&(p===0||c.slice(p+1).some(Boolean))))return{left:c.filter(Boolean).join(","),operator:i[2],right:s.for}}var ma=[{test:e=>e.node.fullName==="v-for",print:Hn},{test:(e,t)=>e.node.fullName==="generic"&&kt(e.parent,t),print:qn},{test:({node:e},t)=>_n(e)||Sn(e,t),print:Fn},{test(e){let t=e.node.fullName;return t.startsWith("@")||t.startsWith("v-on:")},print:fa},{test(e){let t=e.node.fullName;return t.startsWith(":")||t.startsWith(".")||t.startsWith("v-bind:")},print:da},{test:e=>e.node.fullName.startsWith("v-"),print:Vn}].map(({test:e,print:t})=>({test:(r,n)=>n.parser==="vue"&&e(r,n),print:t}));async function fa(e,t,r,n){try{return await Vn(e,t,r,n)}catch(a){if(a.cause?.code!=="BABEL_PARSER_SYNTAX_ERROR")throw a}let i=b(r.node),s=U(r,n)?"__vue_ts_event_binding":"__vue_event_binding";return x(i,e,{parser:s},V)}function da(e,t,r,n){let i=b(r.node),s=U(r,n)?"__vue_ts_expression":"__vue_expression";return x(i,e,{parser:s},V)}function Vn(e,t,r,n){let i=b(r.node),s=U(r,n)?"__ts_expression":"__js_expression";return x(i,e,{parser:s},V)}var Un=ma;var ga=[{test:Dn,print:Rn},{test:Mn,print:Bn},{test:kn,print:xn},{test:bn,print:wn},{test:An,print:Nn},...Un,...Tn].map(({test:e,print:t})=>({test:e,print:Sa(t)}));function _a(e,t){let{node:r}=e,{value:n}=r;if(n)return xt(r,t)?[r.rawName,"=",n]:ga.find(({test:i})=>i(e,t))?.print}function Sa(e){return async(t,r,n,i)=>{let s=await e(t,r,n,i);if(s)return s=zt(s,a=>typeof a=="string"?w(0,a,'"',"""):a),[n.node.rawName,'="',E(s),'"']}}var Wn=_a;var K=e=>e.sourceSpan.start.offset,J=e=>e.sourceSpan.end.offset;function Ye(e,t){return[e.isSelfClosing?"":Ea(e,t),ce(e,t)]}function Ea(e,t){return e.lastChild&&he(e.lastChild)?"":[Ca(e,t),yt(e,t)]}function ce(e,t){return(e.next?W(e.next):pe(e.parent))?"":[ue(e,t),F(e,t)]}function Ca(e,t){return pe(e)?ue(e.lastChild,t):""}function F(e,t){return he(e)?yt(e.parent,t):je(e)?At(e.next,t):""}function yt(e,t){if(zn(e,t))return"";switch(e.kind){case"ieConditionalComment":return"";case"ieConditionalStartComment":return"]>";case"interpolation":return"}}";case"angularIcuExpression":return"}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function zn(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(oe(e)||Ct(e.parent,t))}function W(e){return e.prev&&e.prev.kind!=="docType"&&e.kind!=="angularControlFlowBlock"&&!O(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function pe(e){return e.lastChild?.isTrailingSpaceSensitive&&!e.lastChild.hasTrailingSpaces&&!O(Tt(e.lastChild))&&!ae(e)}function he(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&O(Tt(e))}function je(e){return e.next&&!O(e.next)&&O(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function va(e){let t=e.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return t?t[1]?t[1].split(/\s+/u):!0:!1}function Xe(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function Ta(e,t,r){let{node:n}=e;if(!Ne(n.attrs))return n.isSelfClosing?" ":"";let i=n.prev?.kind==="comment"&&va(n.prev.value),s=typeof i=="boolean"?()=>i:Array.isArray(i)?d=>i.includes(d.rawName):()=>!1,a=e.map(({node:d})=>s(d)?L(t.originalText.slice(K(d),J(d))):r(),"attrs"),o=n.kind==="element"&&n.fullName==="script"&&n.attrs.length===1&&n.attrs[0].fullName==="src"&&n.children.length===0,u=t.singleAttributePerLine&&n.attrs.length>1&&!le(n,t)?C:S,p=[A([o?" ":S,B(u,a)])];return n.firstChild&&Xe(n.firstChild)||n.isSelfClosing&&pe(n.parent)||o?p.push(n.isSelfClosing?" ":""):p.push(t.bracketSameLine?n.isSelfClosing?" ":"":n.isSelfClosing?S:k),p}function ba(e){return e.firstChild&&Xe(e.firstChild)?"":Nt(e)}function Ke(e,t,r){let{node:n}=e;return[me(n,t),Ta(e,t,r),n.isSelfClosing?"":ba(n)]}function me(e,t){return e.prev&&je(e.prev)?"":[H(e,t),At(e,t)]}function H(e,t){return Xe(e)?Nt(e.parent):W(e)?ue(e.prev,t):""}var Gn="<${e.rawName}`;default:return`<${e.rawName}`}}function Nt(e){switch(e.kind){case"ieConditionalComment":return"]>";case"element":if(e.condition)return">";default:return">"}}function wa(e,t){if(!e.endSourceSpan)return"";let r=e.startSourceSpan.end.offset;e.firstChild&&Xe(e.firstChild)&&(r-=Nt(e).length);let n=e.endSourceSpan.start.offset;return e.lastChild&&he(e.lastChild)?n+=yt(e,t).length:pe(e)&&(n-=ue(e.lastChild,t).length),t.originalText.slice(r,n)}var Lt=wa;var ka=new Set(["if","else if","for","switch","case"]);function xa(e,t){let{node:r}=e;switch(r.kind){case"element":if(q(r,t)||r.kind==="interpolation")return;if(!r.isSelfClosing&&bt(r,t)){let n=rr(r,t);return n?async(i,s)=>{let a=Lt(r,t),o=/^\s*$/u.test(a),c="";return o||(c=await i(Zt(a),{parser:n,__embeddedInHtml:!0}),o=c===""),[H(r,t),E(Ke(e,t,s)),o?"":C,c,o?"":C,Ye(r,t),F(r,t)]}:void 0}break;case"text":if(q(r.parent,t)){let n=rr(r.parent,t);if(n)return async i=>{let s=n==="markdown"?N.dedentString(r.value.replace(/^[^\S\n]*\n/u,"")):r.value,a={parser:n,__embeddedInHtml:!0};if(t.parser==="html"&&n==="babel"){let o="script",{attrMap:c}=r.parent;c&&(c.type==="module"||(c.type==="text/babel"||c.type==="text/jsx")&&c["data-type"]==="module")&&(o="module"),a.__babelSourceType=o}return[Y,H(r,t),await i(s,a),F(r,t)]}}else if(r.parent.kind==="interpolation")return async n=>{let i={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return t.parser==="angular"?i.parser="__ng_interpolation":t.parser==="vue"?i.parser=U(e,t)?"__vue_ts_expression":"__vue_expression":i.parser="__js_expression",[A([S,await n(r.value,i)]),r.parent.next&&W(r.parent.next)?" ":S]};break;case"attribute":return Wn(e,t);case"angularControlFlowBlockParameters":return ka.has(e.parent.name)?Yr:void 0;case"angularLetDeclarationInitializer":return n=>x(r.value,n,{parser:"__ng_binding",__isInHtmlAttribute:!1})}}var $n=xa;var Qe=null;function Je(e){if(Qe!==null&&typeof Qe.property){let t=Qe;return Qe=Je.prototype=null,t}return Qe=Je.prototype=e??Object.create(null),new Je}var ya=10;for(let e=0;e<=ya;e++)Je();function or(e){return Je(e)}function Aa(e,t="type"){or(e);function r(n){let i=n[t],s=e[i];if(!Array.isArray(s))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:n});return s}return r}var Yn=Aa;var I=[["children"],[]],jn={root:I[0],element:["attrs","children"],ieConditionalComment:I[0],ieConditionalStartComment:I[1],ieConditionalEndComment:I[1],interpolation:I[0],text:I[0],docType:I[1],comment:I[1],attribute:I[1],cdata:I[1],angularControlFlowBlock:["children","parameters"],angularControlFlowBlockParameters:I[0],angularControlFlowBlockParameter:I[1],angularLetDeclaration:["init"],angularLetDeclarationInitializer:I[1],angularIcuExpression:["cases"],angularIcuCase:["expression"]};var Na=Yn(jn,"kind"),Xn=Na;var Kn="format";var Qn=/^\s*/u,Jn=/^\s*/u;var Zn=e=>Jn.test(e),ei=e=>Qn.test(e),ti=e=>` + +${e}`;var ri=new Map([["if",new Set(["else if","else"])],["else if",new Set(["else if","else"])],["for",new Set(["empty"])],["defer",new Set(["placeholder","error","loading"])],["placeholder",new Set(["placeholder","error","loading"])],["error",new Set(["placeholder","error","loading"])],["loading",new Set(["placeholder","error","loading"])]]);function ni(e){let t=J(e);return e.kind==="element"&&!e.endSourceSpan&&Ne(e.children)?Math.max(t,ni(M(0,e.children,-1))):t}function Ze(e,t,r){let n=e.node;if(oe(n)){let i=ni(n);return[H(n,t),L(N.trimEnd(t.originalText.slice(K(n)+(n.prev&&je(n.prev)?At(n).length:0),i-(n.next&&W(n.next)?ue(n,t).length:0)))),F(n,t)]}return r()}function Pt(e,t){return O(e)&&O(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?vt(t)?C:S:"":vt(t)?C:k:je(e)&&(oe(t)||t.firstChild||t.isSelfClosing||t.kind==="element"&&t.attrs.length>0)||e.kind==="element"&&e.isSelfClosing&&W(t)?"":!t.isLeadingSpaceSensitive||vt(t)||W(t)&&e.lastChild&&he(e.lastChild)&&e.lastChild.lastChild&&he(e.lastChild.lastChild)?C:t.hasLeadingSpaces?S:k}function Le(e,t,r){let{node:n}=e;if(tr(n))return[Y,...e.map(()=>{let s=e.node,a=s.prev?Pt(s.prev,s):"";return[a?[a,Ge(s.prev)?C:""]:"",Ze(e,t,r)]},"children")];let i=n.children.map(()=>Symbol(""));return e.map(({node:s,index:a})=>{if(O(s)){if(s.prev&&O(s.prev)){let m=Pt(s.prev,s);if(m)return Ge(s.prev)?[C,C,Ze(e,t,r)]:[m,Ze(e,t,r)]}return Ze(e,t,r)}let o=[],c=[],u=[],p=[],d=s.prev?Pt(s.prev,s):"",g=s.next?Pt(s,s.next):"";return d&&(Ge(s.prev)?o.push(C,C):d===C?o.push(C):O(s.prev)?c.push(d):c.push(j("",k,{groupId:i[a-1]}))),g&&(Ge(s)?O(s.next)&&p.push(C,C):g===C?O(s.next)&&p.push(C):u.push(g)),[...o,E([...c,E([Ze(e,t,r),...u],{id:i[a]})]),...p]},"children")}function ii(e,t,r){let{node:n}=e,i=[];if(Da(e)&&i.push("} "),i.push("@",n.name),Pa(n))return i.push(";"),i;if(n.parameters&&i.push(" (",E(r("parameters")),")"),!Oa(n)){i.push(" {");let s=si(n);n.children.length>0?(n.firstChild.hasLeadingSpaces=!0,n.lastChild.hasTrailingSpaces=!0,i.push(A([C,Le(e,t,r)])),s&&i.push(C,"}")):s&&i.push("}")}return E(i,{shouldBreak:!0})}function si(e){return!(e.next?.kind==="angularControlFlowBlock"&&ri.get(e.name)?.has(e.next.name))}var La=e=>e?.kind==="angularControlFlowBlock"&&(e.name==="case"||e.name==="default"),Pa=e=>e?.kind==="angularControlFlowBlock"&&e.name==="default never";function Oa(e){return La(e)&&e.endSourceSpan&&e.endSourceSpan.start.offset===e.endSourceSpan.end.offset}function Da(e){let{previous:t}=e;return t?.kind==="angularControlFlowBlock"&&!oe(t)&&!si(t)}function ai(e,t,r){return[A([k,B([";",S],e.map(r,"children"))]),k]}function oi(e,t,r){let{node:n}=e;return[me(n,t),E([n.switchValue.trim(),", ",n.type,n.cases.length>0?[",",A([S,B(S,e.map(r,"cases"))])]:"",k]),ce(n,t)]}function li(e,t,r){let{node:n}=e;return[n.value," {",E([A([k,e.map(({node:i,isLast:s})=>{let a=[r()];return i.kind==="text"&&(i.hasLeadingSpaces&&a.unshift(S),i.hasTrailingSpaces&&!s&&a.push(S)),a},"expression")]),k]),"}"]}function ci(e,t,r){let{node:n}=e;if(Ct(n,t))return[H(n,t),E(Ke(e,t,r)),L(Lt(n,t)),...Ye(n,t),F(n,t)];let i=n.children.length===1&&(n.firstChild.kind==="interpolation"||n.firstChild.kind==="angularIcuExpression")&&n.firstChild.isLeadingSpaceSensitive&&!n.firstChild.hasLeadingSpaces&&n.lastChild.isTrailingSpaceSensitive&&!n.lastChild.hasTrailingSpaces,s=Symbol("element-attr-group-id"),a=p=>E([E(Ke(e,t,r),{id:s}),p,Ye(n,t)]),o=p=>i?Fr(p,{groupId:s}):(q(n,t)||$e(n,t))&&n.parent.kind==="root"&&t.parser==="vue"&&!t.vueIndentScriptAndStyle?p:A(p),c=()=>i?j(k,"",{groupId:s}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?S:n.firstChild.kind==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive?qr(k):k,u=()=>(n.next?W(n.next):pe(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":i?j(k,"",{groupId:s}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?S:(n.lastChild.kind==="comment"||n.lastChild.kind==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${t.tabWidth*(e.ancestors.length-1)}}$`,"u").test(n.lastChild.value)?"":k;return n.children.length===0?a(n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?S:""):a([cn(n)?Y:"",o([c(),Le(e,t,r)]),u()])}var R=(function(e){return e[e.RAW_TEXT=0]="RAW_TEXT",e[e.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",e[e.PARSABLE_DATA=2]="PARSABLE_DATA",e})({});function et(e,t=!0){if(e[0]!=":")return[null,e];let r=e.indexOf(":",1);if(r===-1){if(t)throw new Error(`Unsupported format "${e}" expecting ":namespace:name"`);return[null,e]}return[e.slice(1,r),e.slice(r+1)]}function lr(e){return et(e)[1]==="ng-container"}function cr(e){return et(e)[1]==="ng-content"}function Pe(e){return e===null?null:et(e)[0]}function fe(e,t){return e?`:${e}:${t}`:t}var ur={name:"custom-elements"},pr={name:"no-errors-schema"},Z=(function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e[e.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",e})({});var Ia=/-+([a-z0-9])/g;function ui(e){return e.replace(Ia,(...t)=>t[1].toUpperCase())}var Ot;function hr(){return Ot||(Ot={},tt(Z.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),tt(Z.STYLE,["*|style"]),tt(Z.URL,["*|formAction","area|href","a|href","a|xlink:href","form|action","annotation|href","annotation|xlink:href","annotation-xml|href","annotation-xml|xlink:href","maction|href","maction|xlink:href","malignmark|href","malignmark|xlink:href","math|href","math|xlink:href","mroot|href","mroot|xlink:href","msqrt|href","msqrt|xlink:href","merror|href","merror|xlink:href","mfrac|href","mfrac|xlink:href","mglyph|href","mglyph|xlink:href","msub|href","msub|xlink:href","msup|href","msup|xlink:href","msubsup|href","msubsup|xlink:href","mmultiscripts|href","mmultiscripts|xlink:href","mprescripts|href","mprescripts|xlink:href","mi|href","mi|xlink:href","mn|href","mn|xlink:href","mo|href","mo|xlink:href","mpadded|href","mpadded|xlink:href","mphantom|href","mphantom|xlink:href","mrow|href","mrow|xlink:href","ms|href","ms|xlink:href","mspace|href","mspace|xlink:href","mstyle|href","mstyle|xlink:href","mtable|href","mtable|xlink:href","mtd|href","mtd|xlink:href","mtr|href","mtr|xlink:href","mtext|href","mtext|xlink:href","mover|href","mover|xlink:href","munder|href","munder|xlink:href","munderover|href","munderover|xlink:href","semantics|href","semantics|xlink:href","none|href","none|xlink:href","img|src","video|src"]),tt(Z.RESOURCE_URL,["base|href","embed|src","frame|src","iframe|src","link|href","object|codebase","object|data","script|src","script|href","script|xlink:href"]),tt(Z.ATTRIBUTE_NO_BINDING,["animate|attributeName","animate|values","animate|to","animate|from","set|to","set|attributeName","animateMotion|attributeName","animateTransform|attributeName","unknown|attributeName","unknown|values","unknown|to","unknown|from","iframe|sandbox","iframe|allow","iframe|allowFullscreen","iframe|referrerPolicy","iframe|csp","iframe|fetchPriority","unknown|sandbox","unknown|allow","unknown|allowFullscreen","unknown|referrerPolicy","unknown|csp","unknown|fetchPriority"])),Ot}function tt(e,t){for(let r of t)Ot[r.toLowerCase()]=e}var pi=class{};var Ra="boolean",Ma="number",Ba="string",qa="object",Fa=["[Element]|textContent,%ariaActiveDescendantElement,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColIndexText,%ariaColSpan,%ariaControlsElements,%ariaCurrent,%ariaDescribedByElements,%ariaDescription,%ariaDetailsElements,%ariaDisabled,%ariaErrorMessageElements,%ariaExpanded,%ariaFlowToElements,%ariaHasPopup,%ariaHidden,%ariaInvalid,%ariaKeyShortcuts,%ariaLabel,%ariaLabelledByElements,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaOwnsElements,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowIndexText,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,search,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","geolocation^[HTMLElement]|accuracymode,!autolocate,*location,*promptaction,*promptdismiss,*validationstatuschange,!watch","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","selectedcontent^[HTMLElement]|","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","search^[HTMLELement]|","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|",":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":math:math^:math:|",":math:maction^:math:|",":math:menclose^:math:|",":math:merror^:math:|",":math:mfenced^:math:|",":math:mfrac^:math:|",":math:mi^:math:|",":math:mmultiscripts^:math:|",":math:mn^:math:|",":math:mo^:math:|",":math:mover^:math:|",":math:mpadded^:math:|",":math:mphantom^:math:|",":math:mroot^:math:|",":math:mrow^:math:|",":math:ms^:math:|",":math:mspace^:math:|",":math:msqrt^:math:|",":math:mstyle^:math:|",":math:msub^:math:|",":math:msubsup^:math:|",":math:msup^:math:|",":math:mtable^:math:|",":math:mtd^:math:|",":math:mtext^:math:|",":math:mtr^:math:|",":math:munder^:math:|",":math:munderover^:math:|",":math:semantics^:math:|"],hi=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex","aria-activedescendant":"ariaActiveDescendantElement","aria-atomic":"ariaAtomic","aria-autocomplete":"ariaAutoComplete","aria-busy":"ariaBusy","aria-checked":"ariaChecked","aria-colcount":"ariaColCount","aria-colindex":"ariaColIndex","aria-colindextext":"ariaColIndexText","aria-colspan":"ariaColSpan","aria-controls":"ariaControlsElements","aria-current":"ariaCurrent","aria-describedby":"ariaDescribedByElements","aria-description":"ariaDescription","aria-details":"ariaDetailsElements","aria-disabled":"ariaDisabled","aria-errormessage":"ariaErrorMessageElements","aria-expanded":"ariaExpanded","aria-flowto":"ariaFlowToElements","aria-haspopup":"ariaHasPopup","aria-hidden":"ariaHidden","aria-invalid":"ariaInvalid","aria-keyshortcuts":"ariaKeyShortcuts","aria-label":"ariaLabel","aria-labelledby":"ariaLabelledByElements","aria-level":"ariaLevel","aria-live":"ariaLive","aria-modal":"ariaModal","aria-multiline":"ariaMultiLine","aria-multiselectable":"ariaMultiSelectable","aria-orientation":"ariaOrientation","aria-owns":"ariaOwnsElements","aria-placeholder":"ariaPlaceholder","aria-posinset":"ariaPosInSet","aria-pressed":"ariaPressed","aria-readonly":"ariaReadOnly","aria-required":"ariaRequired","aria-roledescription":"ariaRoleDescription","aria-rowcount":"ariaRowCount","aria-rowindex":"ariaRowIndex","aria-rowindextext":"ariaRowIndexText","aria-rowspan":"ariaRowSpan","aria-selected":"ariaSelected","aria-setsize":"ariaSetSize","aria-sort":"ariaSort","aria-valuemax":"ariaValueMax","aria-valuemin":"ariaValueMin","aria-valuenow":"ariaValueNow","aria-valuetext":"ariaValueText"})),Ha=Array.from(hi).reduce((e,[t,r])=>(e.set(t,r),e),new Map),mi=class extends pi{_schema=new Map;_eventSchema=new Map;constructor(){super(),Fa.forEach(e=>{let t=new Map,r=new Set,[n,i]=e.split("|"),s=i.split(","),[a,o]=n.split("^");a.split(",").forEach(u=>{this._schema.set(u.toLowerCase(),t),this._eventSchema.set(u.toLowerCase(),r)});let c=o&&this._schema.get(o.toLowerCase());if(c){for(let[u,p]of c)t.set(u,p);for(let u of this._eventSchema.get(o.toLowerCase()))r.add(u)}s.forEach(u=>{if(u.length>0)switch(u[0]){case"*":r.add(u.substring(1));break;case"!":t.set(u.substring(1),Ra);break;case"#":t.set(u.substring(1),Ma);break;case"%":t.set(u.substring(1),qa);break;default:t.set(u,Ba)}})})}hasProperty(e,t,r){if(r.some(n=>n.name===pr.name))return!0;if(e.indexOf("-")>-1){if(lr(e)||cr(e))return!1;if(r.some(n=>n.name===ur.name))return!0}return(this._schema.get(e.toLowerCase())||this._schema.get("unknown")).has(t)}hasElement(e,t){return t.some(r=>r.name===pr.name)||e.indexOf("-")>-1&&(lr(e)||cr(e)||t.some(r=>r.name===ur.name))?!0:this._schema.has(e.toLowerCase())}securityContext(e,t,r){r&&(t=this.getMappedPropName(t)),e=e.toLowerCase(),t=t.toLowerCase();let n=hr()[e+"|"+t];return n||(n=hr()["*|"+t],n||Z.NONE)}getMappedPropName(e){return hi.get(e)??e}getDefaultComponentElementName(){return"ng-component"}validateProperty(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=... +If '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let t=this._schema.get(e.toLowerCase())||this._schema.get("unknown");return Array.from(t.keys()).map(r=>Ha.get(r)??r)}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return ui(e)}normalizeAnimationStyleValue(e,t,r){let n="",i=r.toString().trim(),s=null;if(Va(e)&&r!==0&&r!=="0")if(typeof r=="number")n="px";else{let a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&(s=`Please provide a CSS unit value for ${t}:${r}`)}return{error:s,value:i+n}}};function Va(e){switch(e){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}var f=class{closedByChildren={};contentType;closedByParent=!1;implicitNamespacePrefix;isVoid;ignoreFirstLf;canSelfClose;preventNamespaceInheritance;constructor({closedByChildren:e,implicitNamespacePrefix:t,contentType:r=R.PARSABLE_DATA,closedByParent:n=!1,isVoid:i=!1,ignoreFirstLf:s=!1,preventNamespaceInheritance:a=!1,canSelfClose:o=!1}={}){e&&e.length>0&&e.forEach(c=>this.closedByChildren[c]=!0),this.isVoid=i,this.closedByParent=n||i,this.implicitNamespacePrefix=t||null,this.contentType=r,this.ignoreFirstLf=s,this.preventNamespaceInheritance=a,this.canSelfClose=o??i}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){return typeof this.contentType=="object"?(e===void 0?void 0:this.contentType[e])??this.contentType.default:this.contentType}},fi,rt;function Oe(e){return rt||(fi=new f({canSelfClose:!0}),rt=Object.assign(Object.create(null),{base:new f({isVoid:!0}),meta:new f({isVoid:!0}),area:new f({isVoid:!0}),embed:new f({isVoid:!0}),link:new f({isVoid:!0}),img:new f({isVoid:!0}),input:new f({isVoid:!0}),param:new f({isVoid:!0}),hr:new f({isVoid:!0}),br:new f({isVoid:!0}),source:new f({isVoid:!0}),track:new f({isVoid:!0}),wbr:new f({isVoid:!0}),p:new f({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new f({closedByChildren:["tbody","tfoot"]}),tbody:new f({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new f({closedByChildren:["tbody"],closedByParent:!0}),tr:new f({closedByChildren:["tr"],closedByParent:!0}),td:new f({closedByChildren:["td","th"],closedByParent:!0}),th:new f({closedByChildren:["td","th"],closedByParent:!0}),col:new f({isVoid:!0}),svg:new f({implicitNamespacePrefix:"svg"}),foreignObject:new f({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new f({implicitNamespacePrefix:"math"}),li:new f({closedByChildren:["li"],closedByParent:!0}),dt:new f({closedByChildren:["dt","dd"]}),dd:new f({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new f({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new f({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new f({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new f({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new f({closedByChildren:["optgroup"],closedByParent:!0}),option:new f({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new f({ignoreFirstLf:!0}),listing:new f({ignoreFirstLf:!0}),style:new f({contentType:R.RAW_TEXT}),script:new f({contentType:R.RAW_TEXT}),title:new f({contentType:{default:R.ESCAPABLE_RAW_TEXT,svg:R.PARSABLE_DATA}}),textarea:new f({contentType:R.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new mi().allKnownElementNames().forEach(t=>{!rt[t]&&Pe(t)===null&&(rt[t]=new f({canSelfClose:!1}))})),rt[e]??fi}var De=class gi{constructor(t,r,n,i){this.file=t,this.offset=r,this.line=n,this.col=i}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(t){let r=this.file.content,n=r.length,i=this.offset,s=this.line,a=this.col;for(;i>0&&t<0;)if(i--,t++,r.charCodeAt(i)==10){s--;let o=r.substring(0,i-1).lastIndexOf(` +`);a=o>0?i-o:i}else a--;for(;i0;){let o=r.charCodeAt(i);i++,t--,o==10?(s++,a=0):a++}return new gi(this.file,i,s,a)}getContext(t,r){let n=this.file.content,i=this.offset;if(i!=null){i>n.length-1&&(i=n.length-1);let s=i,a=0,o=0;for(;a0&&(i--,a++,!(n[i]==` +`&&++o==r)););for(a=0,o=0;a]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}};var de=class{constructor(e,t){this.sourceSpan=e,this.i18n=t}},_i=class extends de{constructor(e,t,r,n){super(t,n),this.value=e,this.tokens=r}visit(e,t){return e.visitText(this,t)}kind="text"},Si=class extends de{constructor(e,t,r,n){super(t,n),this.value=e,this.tokens=r}visit(e,t){return e.visitCdata(this,t)}kind="cdata"},Ei=class extends de{constructor(e,t,r,n,i,s){super(n,s),this.switchValue=e,this.type=t,this.cases=r,this.switchValueSourceSpan=i}visit(e,t){return e.visitExpansion(this,t)}kind="expansion"},Ci=class{constructor(e,t,r,n,i){this.value=e,this.expression=t,this.sourceSpan=r,this.valueSourceSpan=n,this.expSourceSpan=i}visit(e,t){return e.visitExpansionCase(this,t)}kind="expansionCase"},vi=class extends de{constructor(e,t,r,n,i,s,a){super(r,a),this.name=e,this.value=t,this.keySpan=n,this.valueSpan=i,this.valueTokens=s}visit(e,t){return e.visitAttribute(this,t)}kind="attribute";get nameSpan(){return this.keySpan}},te=class extends de{constructor(e,t,r,n,i,s,a,o=null,c=null,u,p){super(s,p),this.name=e,this.attrs=t,this.directives=r,this.children=n,this.isSelfClosing=i,this.startSourceSpan=a,this.endSourceSpan=o,this.nameSpan=c,this.isVoid=u}visit(e,t){return e.visitElement(this,t)}kind="element"},Ti=class{constructor(e,t){this.value=e,this.sourceSpan=t}visit(e,t){return e.visitComment(this,t)}kind="comment"},bi=class{constructor(e,t){this.value=e,this.sourceSpan=t}visit(e,t){return e.visitDocType(this,t)}kind="docType"},ge=class extends de{constructor(e,t,r,n,i,s,a=null,o){super(n,o),this.name=e,this.parameters=t,this.children=r,this.nameSpan=i,this.startSourceSpan=s,this.endSourceSpan=a}visit(e,t){return e.visitBlock(this,t)}kind="block"},G=class extends de{constructor(e,t,r,n,i,s,a,o,c,u=null,p){super(o,p),this.componentName=e,this.tagName=t,this.fullName=r,this.attrs=n,this.directives=i,this.children=s,this.isSelfClosing=a,this.startSourceSpan=c,this.endSourceSpan=u}visit(e,t){return e.visitComponent(this,t)}kind="component"},wi=class{constructor(e,t,r,n,i=null){this.name=e,this.attrs=t,this.sourceSpan=r,this.startSourceSpan=n,this.endSourceSpan=i}visit(e,t){return e.visitDirective(this,t)}kind="directive"},mr=class{constructor(e,t){this.expression=e,this.sourceSpan=t}visit(e,t){return e.visitBlockParameter(this,t)}kind="blockParameter";startSourceSpan=null;endSourceSpan=null},fr=class{constructor(e,t,r,n,i){this.name=e,this.value=t,this.sourceSpan=r,this.nameSpan=n,this.valueSpan=i}visit(e,t){return e.visitLetDeclaration(this,t)}kind="letDeclaration";startSourceSpan=null;endSourceSpan=null};function Dt(e,t,r=null){let n=[],i=e.visit?s=>e.visit(s,r)||s.visit(e,r):s=>s.visit(e,r);return t.forEach(s=>{let a=i(s);a&&n.push(a)}),n}var dr=class{constructor(){}visitElement(e,t){this.visitChildren(t,r=>{r(e.attrs),r(e.directives),r(e.children)})}visitAttribute(e,t){}visitText(e,t){}visitCdata(e,t){}visitComment(e,t){}visitDocType(e,t){}visitExpansion(e,t){return this.visitChildren(t,r=>{r(e.cases)})}visitExpansionCase(e,t){}visitBlock(e,t){this.visitChildren(t,r=>{r(e.parameters),r(e.children)})}visitBlockParameter(e,t){}visitLetDeclaration(e,t){}visitComponent(e,t){this.visitChildren(t,r=>{r(e.attrs),r(e.children)})}visitDirective(e,t){this.visitChildren(t,r=>{r(e.attrs)})}visitChildren(e,t){let r=[],n=this;function i(s){s&&r.push(Dt(n,s,e))}return t(i),Array.prototype.concat.apply([],r)}};var _e={AElig:"\xC6",AMP:"&",amp:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",af:"\u2061",Aring:"\xC5",angst:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",colone:"\u2254",coloneq:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",setminus:"\u2216",setmn:"\u2216",smallsetminus:"\u2216",ssetmn:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",doublebarwedge:"\u2306",Bcy:"\u0411",Because:"\u2235",becaus:"\u2235",because:"\u2235",Bernoullis:"\u212C",Bscr:"\u212C",bernou:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",breve:"\u02D8",Bumpeq:"\u224E",HumpDownHump:"\u224E",bump:"\u224E",CHcy:"\u0427",COPY:"\xA9",copy:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",DD:"\u2145",Cayleys:"\u212D",Cfr:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",cedil:"\xB8",CenterDot:"\xB7",centerdot:"\xB7",middot:"\xB7",Chi:"\u03A7",CircleDot:"\u2299",odot:"\u2299",CircleMinus:"\u2296",ominus:"\u2296",CirclePlus:"\u2295",oplus:"\u2295",CircleTimes:"\u2297",otimes:"\u2297",ClockwiseContourIntegral:"\u2232",cwconint:"\u2232",CloseCurlyDoubleQuote:"\u201D",rdquo:"\u201D",rdquor:"\u201D",CloseCurlyQuote:"\u2019",rsquo:"\u2019",rsquor:"\u2019",Colon:"\u2237",Proportion:"\u2237",Colone:"\u2A74",Congruent:"\u2261",equiv:"\u2261",Conint:"\u222F",DoubleContourIntegral:"\u222F",ContourIntegral:"\u222E",conint:"\u222E",oint:"\u222E",Copf:"\u2102",complexes:"\u2102",Coproduct:"\u2210",coprod:"\u2210",CounterClockwiseContourIntegral:"\u2233",awconint:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",asympeq:"\u224D",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",ddagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",DoubleLeftTee:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",nabla:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",acute:"\xB4",DiacriticalDot:"\u02D9",dot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",dblac:"\u02DD",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"\u02DC",tilde:"\u02DC",Diamond:"\u22C4",diam:"\u22C4",diamond:"\u22C4",DifferentialD:"\u2146",dd:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DoubleDot:"\xA8",die:"\xA8",uml:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",doteq:"\u2250",esdot:"\u2250",DoubleDownArrow:"\u21D3",Downarrow:"\u21D3",dArr:"\u21D3",DoubleLeftArrow:"\u21D0",Leftarrow:"\u21D0",lArr:"\u21D0",DoubleLeftRightArrow:"\u21D4",Leftrightarrow:"\u21D4",hArr:"\u21D4",iff:"\u21D4",DoubleLongLeftArrow:"\u27F8",Longleftarrow:"\u27F8",xlArr:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",Longleftrightarrow:"\u27FA",xhArr:"\u27FA",DoubleLongRightArrow:"\u27F9",Longrightarrow:"\u27F9",xrArr:"\u27F9",DoubleRightArrow:"\u21D2",Implies:"\u21D2",Rightarrow:"\u21D2",rArr:"\u21D2",DoubleRightTee:"\u22A8",vDash:"\u22A8",DoubleUpArrow:"\u21D1",Uparrow:"\u21D1",uArr:"\u21D1",DoubleUpDownArrow:"\u21D5",Updownarrow:"\u21D5",vArr:"\u21D5",DoubleVerticalBar:"\u2225",par:"\u2225",parallel:"\u2225",shortparallel:"\u2225",spar:"\u2225",DownArrow:"\u2193",ShortDownArrow:"\u2193",darr:"\u2193",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",duarr:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",leftharpoondown:"\u21BD",lhard:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",rhard:"\u21C1",rightharpoondown:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",top:"\u22A4",DownTeeArrow:"\u21A7",mapstodown:"\u21A7",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrave:"\xC8",Element:"\u2208",in:"\u2208",isin:"\u2208",isinv:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",eqsim:"\u2242",esim:"\u2242",Equilibrium:"\u21CC",rightleftharpoons:"\u21CC",rlhar:"\u21CC",Escr:"\u2130",expectation:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",exist:"\u2203",ExponentialE:"\u2147",ee:"\u2147",exponentiale:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",blacksquare:"\u25AA",squarf:"\u25AA",squf:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",forall:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",gt:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",ggg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",ge:"\u2265",geq:"\u2265",GreaterEqualLess:"\u22DB",gel:"\u22DB",gtreqless:"\u22DB",GreaterFullEqual:"\u2267",gE:"\u2267",geqq:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",gl:"\u2277",gtrless:"\u2277",GreaterSlantEqual:"\u2A7E",geqslant:"\u2A7E",ges:"\u2A7E",GreaterTilde:"\u2273",gsim:"\u2273",gtrsim:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",NestedGreaterGreater:"\u226B",gg:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",caron:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",Poincareplane:"\u210C",HilbertSpace:"\u210B",Hscr:"\u210B",hamilt:"\u210B",Hopf:"\u210D",quaternions:"\u210D",HorizontalLine:"\u2500",boxh:"\u2500",Hstrok:"\u0126",HumpEqual:"\u224F",bumpe:"\u224F",bumpeq:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Im:"\u2111",image:"\u2111",imagpart:"\u2111",Igrave:"\xCC",Imacr:"\u012A",ImaginaryI:"\u2148",ii:"\u2148",Int:"\u222C",Integral:"\u222B",int:"\u222B",Intersection:"\u22C2",bigcap:"\u22C2",xcap:"\u22C2",InvisibleComma:"\u2063",ic:"\u2063",InvisibleTimes:"\u2062",it:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",imagline:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",LT:"<",lt:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Lscr:"\u2112",lagran:"\u2112",Larr:"\u219E",twoheadleftarrow:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",lang:"\u27E8",langle:"\u27E8",LeftArrow:"\u2190",ShortLeftArrow:"\u2190",larr:"\u2190",leftarrow:"\u2190",slarr:"\u2190",LeftArrowBar:"\u21E4",larrb:"\u21E4",LeftArrowRightArrow:"\u21C6",leftrightarrows:"\u21C6",lrarr:"\u21C6",LeftCeiling:"\u2308",lceil:"\u2308",LeftDoubleBracket:"\u27E6",lobrk:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",dharl:"\u21C3",downharpoonleft:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",lfloor:"\u230A",LeftRightArrow:"\u2194",harr:"\u2194",leftrightarrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",dashv:"\u22A3",LeftTeeArrow:"\u21A4",mapstoleft:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",vartriangleleft:"\u22B2",vltri:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",ltrie:"\u22B4",trianglelefteq:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",uharl:"\u21BF",upharpoonleft:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",leftharpoonup:"\u21BC",lharu:"\u21BC",LeftVectorBar:"\u2952",LessEqualGreater:"\u22DA",leg:"\u22DA",lesseqgtr:"\u22DA",LessFullEqual:"\u2266",lE:"\u2266",leqq:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",lg:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",leqslant:"\u2A7D",les:"\u2A7D",LessTilde:"\u2272",lesssim:"\u2272",lsim:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",lAarr:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",longleftarrow:"\u27F5",xlarr:"\u27F5",LongLeftRightArrow:"\u27F7",longleftrightarrow:"\u27F7",xharr:"\u27F7",LongRightArrow:"\u27F6",longrightarrow:"\u27F6",xrarr:"\u27F6",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",swarr:"\u2199",swarrow:"\u2199",LowerRightArrow:"\u2198",searr:"\u2198",searrow:"\u2198",Lsh:"\u21B0",lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",NestedLessLess:"\u226A",ll:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mscr:"\u2133",phmmat:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",mnplus:"\u2213",mp:"\u2213",Mopf:"\u{1D544}",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",ZeroWidthSpace:"\u200B",NewLine:` +`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nbsp:"\xA0",Nopf:"\u2115",naturals:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",nequiv:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",npar:"\u2226",nparallel:"\u2226",nshortparallel:"\u2226",nspar:"\u2226",NotElement:"\u2209",notin:"\u2209",notinva:"\u2209",NotEqual:"\u2260",ne:"\u2260",NotEqualTilde:"\u2242\u0338",nesim:"\u2242\u0338",NotExists:"\u2204",nexist:"\u2204",nexists:"\u2204",NotGreater:"\u226F",ngt:"\u226F",ngtr:"\u226F",NotGreaterEqual:"\u2271",nge:"\u2271",ngeq:"\u2271",NotGreaterFullEqual:"\u2267\u0338",ngE:"\u2267\u0338",ngeqq:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",nGtv:"\u226B\u0338",NotGreaterLess:"\u2279",ntgl:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",NotGreaterTilde:"\u2275",ngsim:"\u2275",NotHumpDownHump:"\u224E\u0338",nbump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",nbumpe:"\u224F\u0338",NotLeftTriangle:"\u22EA",nltri:"\u22EA",ntriangleleft:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",nltrie:"\u22EC",ntrianglelefteq:"\u22EC",NotLess:"\u226E",nless:"\u226E",nlt:"\u226E",NotLessEqual:"\u2270",nle:"\u2270",nleq:"\u2270",NotLessGreater:"\u2278",ntlg:"\u2278",NotLessLess:"\u226A\u0338",nLtv:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",NotLessTilde:"\u2274",nlsim:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",npr:"\u2280",nprec:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",npre:"\u2AAF\u0338",npreceq:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",nprcue:"\u22E0",NotReverseElement:"\u220C",notni:"\u220C",notniva:"\u220C",NotRightTriangle:"\u22EB",nrtri:"\u22EB",ntriangleright:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",nrtrie:"\u22ED",ntrianglerighteq:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",nsqsube:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",nsqsupe:"\u22E3",NotSubset:"\u2282\u20D2",nsubset:"\u2282\u20D2",vnsub:"\u2282\u20D2",NotSubsetEqual:"\u2288",nsube:"\u2288",nsubseteq:"\u2288",NotSucceeds:"\u2281",nsc:"\u2281",nsucc:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",nsce:"\u2AB0\u0338",nsucceq:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",nsccue:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",nsupset:"\u2283\u20D2",vnsup:"\u2283\u20D2",NotSupersetEqual:"\u2289",nsupe:"\u2289",nsupseteq:"\u2289",NotTilde:"\u2241",nsim:"\u2241",NotTildeEqual:"\u2244",nsime:"\u2244",nsimeq:"\u2244",NotTildeFullEqual:"\u2247",ncong:"\u2247",NotTildeTilde:"\u2249",nap:"\u2249",napprox:"\u2249",NotVerticalBar:"\u2224",nmid:"\u2224",nshortmid:"\u2224",nsmid:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",ohm:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",ldquo:"\u201C",OpenCurlyQuote:"\u2018",lsquo:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",oline:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",tbrk:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",part:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",plusmn:"\xB1",pm:"\xB1",Popf:"\u2119",primes:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",pr:"\u227A",prec:"\u227A",PrecedesEqual:"\u2AAF",pre:"\u2AAF",preceq:"\u2AAF",PrecedesSlantEqual:"\u227C",prcue:"\u227C",preccurlyeq:"\u227C",PrecedesTilde:"\u227E",precsim:"\u227E",prsim:"\u227E",Prime:"\u2033",Product:"\u220F",prod:"\u220F",Proportional:"\u221D",prop:"\u221D",propto:"\u221D",varpropto:"\u221D",vprop:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',quot:'"',Qfr:"\u{1D514}",Qopf:"\u211A",rationals:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",drbkarow:"\u2910",REG:"\xAE",circledR:"\xAE",reg:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",twoheadrightarrow:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",Rfr:"\u211C",real:"\u211C",realpart:"\u211C",ReverseElement:"\u220B",SuchThat:"\u220B",ni:"\u220B",niv:"\u220B",ReverseEquilibrium:"\u21CB",leftrightharpoons:"\u21CB",lrhar:"\u21CB",ReverseUpEquilibrium:"\u296F",duhar:"\u296F",Rho:"\u03A1",RightAngleBracket:"\u27E9",rang:"\u27E9",rangle:"\u27E9",RightArrow:"\u2192",ShortRightArrow:"\u2192",rarr:"\u2192",rightarrow:"\u2192",srarr:"\u2192",RightArrowBar:"\u21E5",rarrb:"\u21E5",RightArrowLeftArrow:"\u21C4",rightleftarrows:"\u21C4",rlarr:"\u21C4",RightCeiling:"\u2309",rceil:"\u2309",RightDoubleBracket:"\u27E7",robrk:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",dharr:"\u21C2",downharpoonright:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rfloor:"\u230B",RightTee:"\u22A2",vdash:"\u22A2",RightTeeArrow:"\u21A6",map:"\u21A6",mapsto:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",vartriangleright:"\u22B3",vrtri:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",rtrie:"\u22B5",trianglerighteq:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",uharr:"\u21BE",upharpoonright:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",rharu:"\u21C0",rightharpoonup:"\u21C0",RightVectorBar:"\u2953",Ropf:"\u211D",reals:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",rAarr:"\u21DB",Rscr:"\u211B",realine:"\u211B",Rsh:"\u21B1",rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortUpArrow:"\u2191",UpArrow:"\u2191",uarr:"\u2191",uparrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",compfn:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",radic:"\u221A",Square:"\u25A1",squ:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",sqcap:"\u2293",SquareSubset:"\u228F",sqsub:"\u228F",sqsubset:"\u228F",SquareSubsetEqual:"\u2291",sqsube:"\u2291",sqsubseteq:"\u2291",SquareSuperset:"\u2290",sqsup:"\u2290",sqsupset:"\u2290",SquareSupersetEqual:"\u2292",sqsupe:"\u2292",sqsupseteq:"\u2292",SquareUnion:"\u2294",sqcup:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",sstarf:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",sube:"\u2286",subseteq:"\u2286",Succeeds:"\u227B",sc:"\u227B",succ:"\u227B",SucceedsEqual:"\u2AB0",sce:"\u2AB0",succeq:"\u2AB0",SucceedsSlantEqual:"\u227D",sccue:"\u227D",succcurlyeq:"\u227D",SucceedsTilde:"\u227F",scsim:"\u227F",succsim:"\u227F",Sum:"\u2211",sum:"\u2211",Sup:"\u22D1",Supset:"\u22D1",Superset:"\u2283",sup:"\u2283",supset:"\u2283",SupersetEqual:"\u2287",supe:"\u2287",supseteq:"\u2287",THORN:"\xDE",TRADE:"\u2122",trade:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",there4:"\u2234",therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",Tilde:"\u223C",sim:"\u223C",thicksim:"\u223C",thksim:"\u223C",TildeEqual:"\u2243",sime:"\u2243",simeq:"\u2243",TildeFullEqual:"\u2245",cong:"\u2245",TildeTilde:"\u2248",ap:"\u2248",approx:"\u2248",asymp:"\u2248",thickapprox:"\u2248",thkap:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",tdot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",lowbar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",bbrk:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",bigcup:"\u22C3",xcup:"\u22C3",UnionPlus:"\u228E",uplus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",udarr:"\u21C5",UpDownArrow:"\u2195",updownarrow:"\u2195",varr:"\u2195",UpEquilibrium:"\u296E",udhar:"\u296E",UpTee:"\u22A5",bot:"\u22A5",bottom:"\u22A5",perp:"\u22A5",UpTeeArrow:"\u21A5",mapstoup:"\u21A5",UpperLeftArrow:"\u2196",nwarr:"\u2196",nwarrow:"\u2196",UpperRightArrow:"\u2197",nearr:"\u2197",nearrow:"\u2197",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",bigvee:"\u22C1",xvee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",mid:"\u2223",shortmid:"\u2223",smid:"\u2223",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",wr:"\u2240",wreath:"\u2240",VeryThinSpace:"\u200A",hairsp:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",bigwedge:"\u22C0",xwedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",Zeta:"\u0396",Zfr:"\u2128",zeetrf:"\u2128",Zopf:"\u2124",integers:"\u2124",Zscr:"\u{1D4B5}",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",mstpos:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acy:"\u0430",aelig:"\xE6",afr:"\u{1D51E}",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",and:"\u2227",wedge:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",angle:"\u2220",ange:"\u29A4",angmsd:"\u2221",measuredangle:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",approxeq:"\u224A",apid:"\u224B",apos:"'",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",midast:"*",atilde:"\xE3",auml:"\xE4",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",bcong:"\u224C",backepsilon:"\u03F6",bepsi:"\u03F6",backprime:"\u2035",bprime:"\u2035",backsim:"\u223D",bsim:"\u223D",backsimeq:"\u22CD",bsime:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrktbrk:"\u23B6",bcy:"\u0431",bdquo:"\u201E",ldquor:"\u201E",bemptyv:"\u29B0",beta:"\u03B2",beth:"\u2136",between:"\u226C",twixt:"\u226C",bfr:"\u{1D51F}",bigcirc:"\u25EF",xcirc:"\u25EF",bigodot:"\u2A00",xodot:"\u2A00",bigoplus:"\u2A01",xoplus:"\u2A01",bigotimes:"\u2A02",xotime:"\u2A02",bigsqcup:"\u2A06",xsqcup:"\u2A06",bigstar:"\u2605",starf:"\u2605",bigtriangledown:"\u25BD",xdtri:"\u25BD",bigtriangleup:"\u25B3",xutri:"\u25B3",biguplus:"\u2A04",xuplus:"\u2A04",bkarow:"\u290D",rbarr:"\u290D",blacklozenge:"\u29EB",lozf:"\u29EB",blacktriangle:"\u25B4",utrif:"\u25B4",blacktriangledown:"\u25BE",dtrif:"\u25BE",blacktriangleleft:"\u25C2",ltrif:"\u25C2",blacktriangleright:"\u25B8",rtrif:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",minusb:"\u229F",boxplus:"\u229E",plusb:"\u229E",boxtimes:"\u22A0",timesb:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bumpE:"\u2AAE",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cemptyv:"\u29B2",cent:"\xA2",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",cire:"\u2257",circlearrowleft:"\u21BA",olarr:"\u21BA",circlearrowright:"\u21BB",orarr:"\u21BB",circledS:"\u24C8",oS:"\u24C8",circledast:"\u229B",oast:"\u229B",circledcirc:"\u229A",ocir:"\u229A",circleddash:"\u229D",odash:"\u229D",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",comma:",",commat:"@",comp:"\u2201",complement:"\u2201",congdot:"\u2A6D",copf:"\u{1D554}",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",curlyeqprec:"\u22DE",cuesc:"\u22DF",curlyeqsucc:"\u22DF",cularr:"\u21B6",curvearrowleft:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curvearrowright:"\u21B7",curarrm:"\u293C",curlyvee:"\u22CE",cuvee:"\u22CE",curlywedge:"\u22CF",cuwed:"\u22CF",curren:"\xA4",cwint:"\u2231",cylcty:"\u232D",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",dash:"\u2010",hyphen:"\u2010",dbkarow:"\u290F",rBarr:"\u290F",dcaron:"\u010F",dcy:"\u0434",ddarr:"\u21CA",downdownarrows:"\u21CA",ddotseq:"\u2A77",eDDot:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",diamondsuit:"\u2666",diams:"\u2666",digamma:"\u03DD",gammad:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",llcorner:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",doteqdot:"\u2251",eDot:"\u2251",dotminus:"\u2238",minusd:"\u2238",dotplus:"\u2214",plusdo:"\u2214",dotsquare:"\u22A1",sdotb:"\u22A1",drcorn:"\u231F",lrcorner:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",triangledown:"\u25BF",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",eqcirc:"\u2256",ecirc:"\xEA",ecolon:"\u2255",eqcolon:"\u2255",ecy:"\u044D",edot:"\u0117",efDot:"\u2252",fallingdotseq:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",eqslantgtr:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",eqslantless:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",varnothing:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",straightepsilon:"\u03F5",varepsilon:"\u03F5",equals:"=",equest:"\u225F",questeq:"\u225F",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",risingdotseq:"\u2253",erarr:"\u2971",escr:"\u212F",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",fork:"\u22D4",pitchfork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",half:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",sfrown:"\u2322",fscr:"\u{1D4BB}",gEl:"\u2A8C",gtreqqless:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gap:"\u2A86",gtrapprox:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gimel:"\u2137",gjcy:"\u0453",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gneqq:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gnsim:"\u22E7",gopf:"\u{1D558}",gscr:"\u210A",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtrdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrarr:"\u2978",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hardcy:"\u044A",harrcir:"\u2948",harrw:"\u21AD",leftrightsquigarrow:"\u21AD",hbar:"\u210F",hslash:"\u210F",planck:"\u210F",plankv:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",mldr:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",searhk:"\u2925",hkswarow:"\u2926",swarhk:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",larrhk:"\u21A9",hookrightarrow:"\u21AA",rarrhk:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hstrok:"\u0127",hybull:"\u2043",iacute:"\xED",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",ifr:"\u{1D526}",igrave:"\xEC",iiiint:"\u2A0C",qint:"\u2A0C",iiint:"\u222D",tint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",imath:"\u0131",inodot:"\u0131",imof:"\u22B7",imped:"\u01B5",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",intcal:"\u22BA",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iquest:"\xBF",iscr:"\u{1D4BE}",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",varkappa:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAtail:"\u291B",lBarr:"\u290E",lEg:"\u2A8B",lesseqqgtr:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lambda:"\u03BB",langd:"\u2991",lap:"\u2A85",lessapprox:"\u2A85",laquo:"\xAB",larrbfs:"\u291F",larrfs:"\u291D",larrlp:"\u21AB",looparrowleft:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",leftarrowtail:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lcy:"\u043B",ldca:"\u2936",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leq:"\u2264",leftleftarrows:"\u21C7",llarr:"\u21C7",leftthreetimes:"\u22CB",lthree:"\u22CB",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessdot:"\u22D6",ltdot:"\u22D6",lfisht:"\u297C",lfr:"\u{1D529}",lgE:"\u2A91",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lneqq:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",longmapsto:"\u27FC",xmap:"\u27FC",looparrowright:"\u21AC",rarrlp:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",loz:"\u25CA",lozenge:"\u25CA",lpar:"(",lparlt:"\u2993",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsime:"\u2A8D",lsimg:"\u2A8F",lsquor:"\u201A",sbquo:"\u201A",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",triangleleft:"\u25C3",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",strns:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midcir:"\u2AF0",minus:"\u2212",minusdu:"\u2A2A",mlcp:"\u2ADB",models:"\u22A7",mopf:"\u{1D55E}",mscr:"\u{1D4C2}",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nLeftarrow:"\u21CD",nlArr:"\u21CD",nLeftrightarrow:"\u21CE",nhArr:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nRightarrow:"\u21CF",nrArr:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nacute:"\u0144",nang:"\u2220\u20D2",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",natur:"\u266E",natural:"\u266E",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",neArr:"\u21D7",nearhk:"\u2924",nedot:"\u2250\u0338",nesear:"\u2928",toea:"\u2928",nfr:"\u{1D52B}",nharr:"\u21AE",nleftrightarrow:"\u21AE",nhpar:"\u2AF2",nis:"\u22FC",nisd:"\u22FA",njcy:"\u045A",nlE:"\u2266\u0338",nleqq:"\u2266\u0338",nlarr:"\u219A",nleftarrow:"\u219A",nldr:"\u2025",nopf:"\u{1D55F}",not:"\xAC",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinvb:"\u22F7",notinvc:"\u22F6",notnivb:"\u22FE",notnivc:"\u22FD",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",nrarr:"\u219B",nrightarrow:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nscr:"\u{1D4C3}",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsubseteqq:"\u2AC5\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupseteqq:"\u2AC6\u0338",ntilde:"\xF1",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwnear:"\u2927",oacute:"\xF3",ocirc:"\xF4",ocy:"\u043E",odblac:"\u0151",odiv:"\u2A38",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",olcir:"\u29BE",olcross:"\u29BB",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",or:"\u2228",vee:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",oscr:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",para:"\xB6",parsim:"\u2AF3",parsl:"\u2AFD",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",straightphi:"\u03D5",varphi:"\u03D5",phone:"\u260E",pi:"\u03C0",piv:"\u03D6",varpi:"\u03D6",planckh:"\u210E",plus:"+",plusacir:"\u2A23",pluscir:"\u2A22",plusdu:"\u2A25",pluse:"\u2A72",plussim:"\u2A26",plustwo:"\u2A27",pointint:"\u2A15",popf:"\u{1D561}",pound:"\xA3",prE:"\u2AB3",prap:"\u2AB7",precapprox:"\u2AB7",precnapprox:"\u2AB9",prnap:"\u2AB9",precneqq:"\u2AB5",prnE:"\u2AB5",precnsim:"\u22E8",prnsim:"\u22E8",prime:"\u2032",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quatint:"\u2A16",quest:"?",rAtail:"\u291C",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",raemptyv:"\u29B3",rangd:"\u2992",range:"\u29A5",raquo:"\xBB",rarrap:"\u2975",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rightarrowtail:"\u21A3",rarrw:"\u219D",rightsquigarrow:"\u219D",ratail:"\u291A",ratio:"\u2236",rbbrk:"\u2773",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdsh:"\u21B3",rect:"\u25AD",rfisht:"\u297D",rfr:"\u{1D52F}",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",varrho:"\u03F1",rightrightarrows:"\u21C9",rrarr:"\u21C9",rightthreetimes:"\u22CC",rthree:"\u22CC",ring:"\u02DA",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rsaquo:"\u203A",rscr:"\u{1D4C7}",rtimes:"\u22CA",rtri:"\u25B9",triangleright:"\u25B9",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",scE:"\u2AB4",scap:"\u2AB8",succapprox:"\u2AB8",scaron:"\u0161",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",succneqq:"\u2AB6",scnap:"\u2ABA",succnapprox:"\u2ABA",scnsim:"\u22E9",succnsim:"\u22E9",scpolint:"\u2A13",scy:"\u0441",sdot:"\u22C5",sdote:"\u2A66",seArr:"\u21D8",sect:"\xA7",semi:";",seswar:"\u2929",tosa:"\u2929",sext:"\u2736",sfr:"\u{1D530}",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",varsigma:"\u03C2",simdot:"\u2A6A",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",smashp:"\u2A33",smeparsl:"\u29E4",smile:"\u2323",ssmile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",sqcaps:"\u2293\uFE00",sqcups:"\u2294\uFE00",sscr:"\u{1D4C8}",star:"\u2606",sub:"\u2282",subset:"\u2282",subE:"\u2AC5",subseteqq:"\u2AC5",subdot:"\u2ABD",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subsetneqq:"\u2ACB",subne:"\u228A",subsetneq:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supE:"\u2AC6",supseteqq:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supsetneqq:"\u2ACC",supne:"\u228B",supsetneq:"\u228B",supplus:"\u2AC0",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",telrec:"\u2315",tfr:"\u{1D531}",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",vartheta:"\u03D1",thorn:"\xFE",times:"\xD7",timesbar:"\u2A31",timesd:"\u2A30",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tprime:"\u2034",triangle:"\u25B5",utri:"\u25B5",triangleq:"\u225C",trie:"\u225C",tridot:"\u25EC",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",uHar:"\u2963",uacute:"\xFA",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udblac:"\u0171",ufisht:"\u297E",ufr:"\u{1D532}",ugrave:"\xF9",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uogon:"\u0173",uopf:"\u{1D566}",upsi:"\u03C5",upsilon:"\u03C5",upuparrows:"\u21C8",uuarr:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",uuml:"\xFC",uwangle:"\u29A7",vBar:"\u2AE8",vBarv:"\u2AE9",vangrt:"\u299C",varsubsetneq:"\u228A\uFE00",vsubne:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",vsubnE:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",vsupne:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vsupnE:"\u2ACC\uFE00",vcy:"\u0432",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",vfr:"\u{1D533}",vopf:"\u{1D567}",vscr:"\u{1D4CB}",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedgeq:"\u2259",weierp:"\u2118",wp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wscr:"\u{1D4CC}",xfr:"\u{1D535}",xi:"\u03BE",xnis:"\u22FB",xopf:"\u{1D569}",xscr:"\u{1D4CD}",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"};_e.ngsp="\uE500";var l=(function(e){return e[e.TAG_OPEN_START=0]="TAG_OPEN_START",e[e.TAG_OPEN_END=1]="TAG_OPEN_END",e[e.TAG_OPEN_END_VOID=2]="TAG_OPEN_END_VOID",e[e.TAG_CLOSE=3]="TAG_CLOSE",e[e.INCOMPLETE_TAG_OPEN=4]="INCOMPLETE_TAG_OPEN",e[e.TEXT=5]="TEXT",e[e.ESCAPABLE_RAW_TEXT=6]="ESCAPABLE_RAW_TEXT",e[e.RAW_TEXT=7]="RAW_TEXT",e[e.INTERPOLATION=8]="INTERPOLATION",e[e.ENCODED_ENTITY=9]="ENCODED_ENTITY",e[e.COMMENT_START=10]="COMMENT_START",e[e.COMMENT_END=11]="COMMENT_END",e[e.CDATA_START=12]="CDATA_START",e[e.CDATA_END=13]="CDATA_END",e[e.ATTR_NAME=14]="ATTR_NAME",e[e.ATTR_QUOTE=15]="ATTR_QUOTE",e[e.ATTR_VALUE_TEXT=16]="ATTR_VALUE_TEXT",e[e.ATTR_VALUE_INTERPOLATION=17]="ATTR_VALUE_INTERPOLATION",e[e.DOC_TYPE_START=18]="DOC_TYPE_START",e[e.DOC_TYPE_END=19]="DOC_TYPE_END",e[e.EXPANSION_FORM_START=20]="EXPANSION_FORM_START",e[e.EXPANSION_CASE_VALUE=21]="EXPANSION_CASE_VALUE",e[e.EXPANSION_CASE_EXP_START=22]="EXPANSION_CASE_EXP_START",e[e.EXPANSION_CASE_EXP_END=23]="EXPANSION_CASE_EXP_END",e[e.EXPANSION_FORM_END=24]="EXPANSION_FORM_END",e[e.BLOCK_OPEN_START=25]="BLOCK_OPEN_START",e[e.BLOCK_OPEN_END=26]="BLOCK_OPEN_END",e[e.BLOCK_CLOSE=27]="BLOCK_CLOSE",e[e.BLOCK_PARAMETER=28]="BLOCK_PARAMETER",e[e.INCOMPLETE_BLOCK_OPEN=29]="INCOMPLETE_BLOCK_OPEN",e[e.LET_START=30]="LET_START",e[e.LET_VALUE=31]="LET_VALUE",e[e.LET_END=32]="LET_END",e[e.INCOMPLETE_LET=33]="INCOMPLETE_LET",e[e.COMPONENT_OPEN_START=34]="COMPONENT_OPEN_START",e[e.COMPONENT_OPEN_END=35]="COMPONENT_OPEN_END",e[e.COMPONENT_OPEN_END_VOID=36]="COMPONENT_OPEN_END_VOID",e[e.COMPONENT_CLOSE=37]="COMPONENT_CLOSE",e[e.INCOMPLETE_COMPONENT_OPEN=38]="INCOMPLETE_COMPONENT_OPEN",e[e.DIRECTIVE_NAME=39]="DIRECTIVE_NAME",e[e.DIRECTIVE_OPEN=40]="DIRECTIVE_OPEN",e[e.DIRECTIVE_CLOSE=41]="DIRECTIVE_CLOSE",e[e.EOF=42]="EOF",e})({});function it(e){return e>=9&&e<=32||e==160}function Ie(e){return 48<=e&&e<=57}function Re(e){return e>=97&&e<=122||e>=65&&e<=90}function ki(e){return e>=97&&e<=102||e>=65&&e<=70||Ie(e)}function Me(e){return e===10||e===13}function gr(e){return 48<=e&&e<=55}function It(e){return e===39||e===34||e===96}var Ua=class{constructor(e,t,r){this.tokens=e,this.errors=t,this.nonNormalizedIcuExpressions=r}};function Pi(e,t,r,n={}){let i=new $a(new nt(e,t),r,n);return i.tokenize(),new Ua(Za(i.tokens),i.errors,i.nonNormalizedIcuExpressions)}var Wa=/\r\n?/g;function Se(e){return`Unexpected character "${e===0?"EOF":String.fromCharCode(e)}"`}function xi(e){return`Unknown entity "${e}" - use the "&#;" or "&#x;" syntax`}function Ga(e,t){return`Unable to parse entity "${t}" - ${e} character reference entities must end with ";"`}var _r=(function(e){return e.HEX="hexadecimal",e.DEC="decimal",e})(_r||{}),za=["@if","@else","@for","@switch","@case","@default","@empty","@defer","@placeholder","@loading","@error"],st={start:"{{",end:"}}"},$a=class{_cursor;_tokenizeIcu;_leadingTriviaCodePoints;_canSelfClose;_allowHtmComponentClosingTags;_currentTokenStart=null;_currentTokenType=null;_expansionCaseStack=[];_openDirectiveCount=0;_inInterpolation=!1;_preserveLineEndings;_i18nNormalizeLineEndingsInICUs;_fullNameStack=[];_tokenizeBlocks;_tokenizeLet;_selectorlessEnabled;tokens=[];errors=[];nonNormalizedIcuExpressions=[];constructor(e,t,r){this._getTagContentType=t,this._tokenizeIcu=r.tokenizeExpansionForms||!1,this._leadingTriviaCodePoints=r.leadingTriviaChars&&r.leadingTriviaChars.map(i=>i.codePointAt(0)||0),this._canSelfClose=r.canSelfClose||!1,this._allowHtmComponentClosingTags=r.allowHtmComponentClosingTags||!1;let n=r.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=r.escapedString?new eo(e,n):new Oi(e,n),this._preserveLineEndings=r.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=r.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=r.tokenizeBlocks??!0,this._tokenizeLet=r.tokenizeLet??!0,this._selectorlessEnabled=r.selectorlessEnabled??!1;try{this._cursor.init()}catch(i){this.handleError(i)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(Wa,` +`)}tokenize(){for(;this._cursor.peek()!==0;){let e=this._cursor.clone();try{if(this._attemptCharCode(60))if(this._attemptCharCode(33))this._attemptStr("[CDATA[")?this._consumeCdata(e):this._attemptStr("--")?this._consumeComment(e):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(e):this._consumeBogusComment(e);else if(this._attemptCharCode(47))this._consumeTagClose(e);else{let t=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=t,this._consumeBogusComment(e)):this._consumeTagOpen(e)}else this._tokenizeLet&&this._cursor.peek()===64&&!this._inInterpolation&&this._isLetStart()?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._isBlockStart()?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(125)?this._consumeBlockEnd(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(l.TEXT,l.INTERPOLATION,()=>this._isTextEnd(),()=>this._isTagStart())}catch(t){this.handleError(t)}}this._beginToken(l.EOF),this._endToken([])}_getBlockName(){let e=!1,t=this._cursor.clone();return this._attemptCharCodeUntilFn(r=>it(r)?!e:Ja(r)?(e=!0,!1):!0),this._cursor.getChars(t).trim()}_consumeBlockStart(e){this._requireCharCode(64),this._beginToken(l.BLOCK_OPEN_START,e);let t=this._endToken([this._getBlockName()]);if(this._cursor.peek()===40)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(v),this._attemptCharCode(41))this._attemptCharCodeUntilFn(v);else{t.type=l.INCOMPLETE_BLOCK_OPEN;return}if(t.parts[0]==="default never"&&this._attemptCharCode(59)){this._beginToken(l.BLOCK_OPEN_END),this._endToken([]),this._beginToken(l.BLOCK_CLOSE),this._endToken([]);return}this._attemptCharCode(123)?(this._beginToken(l.BLOCK_OPEN_END),this._endToken([])):this._isBlockStart()&&(t.parts[0]==="case"||t.parts[0]==="default")?(this._beginToken(l.BLOCK_OPEN_END),this._endToken([]),this._beginToken(l.BLOCK_CLOSE),this._endToken([])):t.type=l.INCOMPLETE_BLOCK_OPEN}_consumeBlockEnd(e){this._beginToken(l.BLOCK_CLOSE,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(Ai);this._cursor.peek()!==41&&this._cursor.peek()!==0;){this._beginToken(l.BLOCK_PARAMETER);let e=this._cursor.clone(),t=null,r=0;for(;this._cursor.peek()!==59&&this._cursor.peek()!==0||t!==null;){let n=this._cursor.peek();if(n===92)this._cursor.advance();else if(n===t)t=null;else if(t===null&&It(n))t=n;else if(n===40&&t===null)r++;else if(n===41&&t===null){if(r===0)break;r>0&&r--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(Ai)}}_consumeLetDeclaration(e){if(this._requireStr("@let"),this._beginToken(l.LET_START,e),it(this._cursor.peek()))this._attemptCharCodeUntilFn(v);else{let r=this._endToken([this._cursor.getChars(e)]);r.type=l.INCOMPLETE_LET;return}let t=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(v),!this._attemptCharCode(61)){t.type=l.INCOMPLETE_LET;return}this._attemptCharCodeUntilFn(r=>v(r)&&!Me(r)),this._consumeLetDeclarationValue(),this._cursor.peek()===59?(this._beginToken(l.LET_END),this._endToken([]),this._cursor.advance()):(t.type=l.INCOMPLETE_LET,t.sourceSpan=this._cursor.getSpan(e))}_getLetDeclarationName(){let e=this._cursor.clone(),t=!1;return this._attemptCharCodeUntilFn(r=>Re(r)||r===36||r===95||t&&Ie(r)?(t=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();for(this._beginToken(l.LET_VALUE,e);this._cursor.peek()!==0;){let t=this._cursor.peek();if(t===59)break;It(t)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(r=>r===92?(this._cursor.advance(),!1):r===t)),this._cursor.advance()}this._endToken([this._cursor.getChars(e)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(Ka(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===125){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,t=this._cursor.clone()){this._currentTokenStart=t,this._currentTokenType=e}_endToken(e,t){if(this._currentTokenStart===null)throw new ee(this._cursor.getSpan(t),"Programming error - attempted to end a token when there was no start to the token");if(this._currentTokenType===null)throw new ee(this._cursor.getSpan(this._currentTokenStart),"Programming error - attempted to end a token which has no token type");let r={type:this._currentTokenType,parts:e,sourceSpan:(t??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(r),this._currentTokenStart=null,this._currentTokenType=null,r}_createError(e,t){this._isInExpansionForm()&&(e+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let r=new ee(t,e);return this._currentTokenStart=null,this._currentTokenType=null,r}handleError(e){if(e instanceof Cr&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof ee)this.errors.push(e);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return Qa(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let t=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(Se(this._cursor.peek()),this._cursor.getSpan(t))}_attemptStr(e){let t=e.length;if(this._cursor.charsLeft()this._peekStr(e))}_isLetStart(){return this._cursor.peek()===64&&this._peekStr("@let")}_consumeEntity(e){this._beginToken(l.ENCODED_ENTITY);let t=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(35)){let r=this._attemptCharCode(120)||this._attemptCharCode(88),n=this._cursor.clone();if(this._attemptCharCodeUntilFn(ja),this._cursor.peek()!=59){this._cursor.advance();let s=r?_r.HEX:_r.DEC;throw this._createError(Ga(s,this._cursor.getChars(t)),this._cursor.getSpan())}let i=this._cursor.getChars(n);this._cursor.advance();try{let s=parseInt(i,r?16:10);this._endToken([String.fromCodePoint(s),this._cursor.getChars(t)])}catch{throw this._createError(xi(this._cursor.getChars(t)),this._cursor.getSpan())}}else{let r=this._cursor.clone();if(this._attemptCharCodeUntilFn(Xa),this._cursor.peek()!=59)this._beginToken(e,t),this._cursor=r,this._endToken(["&"]);else{let n=this._cursor.getChars(r);this._cursor.advance();let i=_e.hasOwnProperty(n)&&_e[n];if(!i)throw this._createError(xi(n),this._cursor.getSpan(t));this._endToken([i,`&${n};`])}}}_consumeRawText(e,t){this._beginToken(e?l.ESCAPABLE_RAW_TEXT:l.RAW_TEXT);let r=[];for(;;){let n=this._cursor.clone(),i=t();if(this._cursor=n,i)break;e&&this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(r.join(""))]),r.length=0,this._consumeEntity(l.ESCAPABLE_RAW_TEXT),this._beginToken(l.ESCAPABLE_RAW_TEXT)):r.push(this._readChar())}this._endToken([this._processCarriageReturns(r.join(""))])}_consumeComment(e){this._beginToken(l.COMMENT_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("-->")),this._beginToken(l.COMMENT_END),this._requireStr("-->"),this._endToken([])}_consumeBogusComment(e){this._beginToken(l.COMMENT_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(l.COMMENT_END),this._cursor.advance(),this._endToken([])}_consumeCdata(e){this._beginToken(l.CDATA_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(l.CDATA_END),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(l.DOC_TYPE_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(l.DOC_TYPE_END),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(e){let t=this._cursor.clone(),r="";for(;this._cursor.peek()!==58&&!Ya(this._cursor.peek());)this._cursor.advance();let n;this._cursor.peek()===58?(r=this._cursor.getChars(t),this._cursor.advance(),n=this._cursor.clone()):n=t,this._requireCharCodeUntilFn(e,r===""?0:1);let i=this._cursor.getChars(n);return[r,i]}_consumeSingleLineComment(){this._attemptCharCodeUntilFn(e=>Me(e)||e===0),this._attemptCharCodeUntilFn(v)}_consumeMultiLineComment(){this._attemptCharCodeUntilFn(e=>{if(e===0)return!0;if(e===42){let t=this._cursor.clone();return t.advance(),t.peek()===47}return!1}),this._attemptStr("*/")&&this._attemptCharCodeUntilFn(v)}_consumeTagOpen(e){let t,r,n,i,s=[];try{if(this._selectorlessEnabled&&Rt(this._cursor.peek()))i=this._consumeComponentOpenStart(e),[n,r,t]=i.parts,r&&(n+=`:${r}`),t&&(n+=`:${t}`),this._attemptCharCodeUntilFn(v);else{if(!Re(this._cursor.peek()))throw this._createError(Se(this._cursor.peek()),this._cursor.getSpan(e));i=this._consumeTagOpenStart(e),r=i.parts[0],t=n=i.parts[1],this._attemptCharCodeUntilFn(v)}for(;;){if(this._attemptStr("//")){this._consumeSingleLineComment();continue}if(this._attemptStr("/*")){this._consumeMultiLineComment();continue}if(Li(this._cursor.peek()))break;if(this._selectorlessEnabled&&this._cursor.peek()===64){let o=this._cursor.clone(),c=o.clone();c.advance(),Rt(c.peek())&&this._consumeDirective(o,c)}else{let o=this._consumeAttribute();s.push(o)}}i.type===l.COMPONENT_OPEN_START?this._consumeComponentOpenEnd():this._consumeTagOpenEnd()}catch(o){if(o instanceof ee){i?i.type=i.type===l.COMPONENT_OPEN_START?l.INCOMPLETE_COMPONENT_OPEN:l.INCOMPLETE_TAG_OPEN:(this._beginToken(l.TEXT,e),this._endToken(["<"]));return}throw o}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===l.TAG_OPEN_END_VOID)return;let a=this._getTagContentType(t,r,this._fullNameStack.length>0,s);this._handleFullNameStackForTagOpen(r,t),a===R.RAW_TEXT?this._consumeRawTextWithTagClose(r,i,n,!1):a===R.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(r,i,n,!0)}_consumeRawTextWithTagClose(e,t,r,n){this._consumeRawText(n,()=>!this._attemptCharCode(60)||!this._attemptCharCode(47)||(this._attemptCharCodeUntilFn(v),!this._attemptStrCaseInsensitive(e&&t.type!==l.COMPONENT_OPEN_START?`${e}:${r}`:r))?!1:(this._attemptCharCodeUntilFn(v),this._attemptCharCode(62))),this._beginToken(t.type===l.COMPONENT_OPEN_START?l.COMPONENT_CLOSE:l.TAG_CLOSE),this._requireCharCodeUntilFn(i=>i===62,3),this._cursor.advance(),this._endToken(t.parts),this._handleFullNameStackForTagClose(e,r)}_consumeTagOpenStart(e){this._beginToken(l.TAG_OPEN_START,e);let t=this._consumePrefixAndName(Ee);return this._endToken(t)}_consumeComponentOpenStart(e){this._beginToken(l.COMPONENT_OPEN_START,e);let t=this._consumeComponentName();return this._endToken(t)}_consumeComponentName(){let e=this._cursor.clone();for(;Ni(this._cursor.peek());)this._cursor.advance();let t=this._cursor.getChars(e),r="",n="";return this._cursor.peek()===58&&(this._cursor.advance(),[r,n]=this._consumePrefixAndName(Ee)),[t,r,n]}_consumeAttribute(){let[e,t]=this._consumeAttributeName(),r;return this._attemptCharCodeUntilFn(v),this._attemptCharCode(61)&&(this._attemptCharCodeUntilFn(v),r=this._consumeAttributeValue()),this._attemptCharCodeUntilFn(v),{prefix:e,name:t,value:r}}_consumeAttributeName(){let e=this._cursor.peek();if(e===39||e===34)throw this._createError(Se(e),this._cursor.getSpan());this._beginToken(l.ATTR_NAME);let t;if(this._openDirectiveCount>0){let n=0;t=i=>{if(this._openDirectiveCount>0){if(i===40)n++;else if(i===41){if(n===0)return!0;n--}}return Ee(i)}}else if(e===91){let n=0;t=i=>(i===91?n++:i===93&&n--,n<=0?Ee(i):Me(i))}else t=Ee;let r=this._consumePrefixAndName(t);return this._endToken(r),r}_consumeAttributeValue(){let e;if(this._cursor.peek()===39||this._cursor.peek()===34){let t=this._cursor.peek();this._consumeQuote(t);let r=()=>this._cursor.peek()===t;e=this._consumeWithInterpolation(l.ATTR_VALUE_TEXT,l.ATTR_VALUE_INTERPOLATION,r,r),this._consumeQuote(t)}else{let t=()=>Ee(this._cursor.peek());e=this._consumeWithInterpolation(l.ATTR_VALUE_TEXT,l.ATTR_VALUE_INTERPOLATION,t,t)}return e}_consumeQuote(e){this._beginToken(l.ATTR_QUOTE),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(47)?l.TAG_OPEN_END_VOID:l.TAG_OPEN_END;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeComponentOpenEnd(){let e=this._attemptCharCode(47)?l.COMPONENT_OPEN_END_VOID:l.COMPONENT_OPEN_END;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeTagClose(e){if(this._selectorlessEnabled){let t=e.clone();for(;t.peek()!==62&&!Rt(t.peek());)t.advance();if(Rt(t.peek())){this._beginToken(l.COMPONENT_CLOSE,e);let r=this._consumeComponentName();this._attemptCharCodeUntilFn(v),this._requireCharCode(62),this._endToken(r);return}}if(this._beginToken(l.TAG_CLOSE,e),this._attemptCharCodeUntilFn(v),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(v),this._requireCharCode(62),this._endToken([]);else{let[t,r]=this._consumePrefixAndName(Ee);this._attemptCharCodeUntilFn(v),this._requireCharCode(62),this._endToken([t,r]),this._handleFullNameStackForTagClose(t,r)}}_consumeExpansionFormStart(){this._beginToken(l.EXPANSION_FORM_START),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(l.EXPANSION_FORM_START),this._beginToken(l.RAW_TEXT);let e=this._readUntil(44),t=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([t]);else{let n=this._endToken([e]);t!==e&&this.nonNormalizedIcuExpressions.push(n)}this._requireCharCode(44),this._attemptCharCodeUntilFn(v),this._beginToken(l.RAW_TEXT);let r=this._readUntil(44);this._endToken([r]),this._requireCharCode(44),this._attemptCharCodeUntilFn(v)}_consumeExpansionCaseStart(){this._beginToken(l.EXPANSION_CASE_VALUE);let e=this._readUntil(123).trim();this._endToken([e]),this._attemptCharCodeUntilFn(v),this._beginToken(l.EXPANSION_CASE_EXP_START),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(v),this._expansionCaseStack.push(l.EXPANSION_CASE_EXP_START)}_consumeExpansionCaseEnd(){this._beginToken(l.EXPANSION_CASE_EXP_END),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(v),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(l.EXPANSION_FORM_END),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,t,r,n){this._beginToken(e);let i=[];for(;!r();){let a=this._cursor.clone();this._attemptStr(st.start)?(this._endToken([this._processCarriageReturns(i.join(""))],a),i.length=0,this._consumeInterpolation(t,a,n),this._beginToken(e)):this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(i.join(""))]),i.length=0,this._consumeEntity(e),this._beginToken(e)):i.push(this._readChar())}this._inInterpolation=!1;let s=this._processCarriageReturns(i.join(""));return this._endToken([s]),s}_consumeInterpolation(e,t,r){let n=[];this._beginToken(e,t),n.push(st.start);let i=this._cursor.clone(),s=null,a=!1;for(;this._cursor.peek()!==0&&(r===null||!r());){let o=this._cursor.clone();if(this._isTagStart()){this._cursor=o,n.push(this._getProcessedChars(i,o)),this._endToken(n);return}if(s===null)if(this._attemptStr(st.end)){n.push(this._getProcessedChars(i,o)),n.push(st.end),this._endToken(n);return}else this._attemptStr("//")&&(a=!0);let c=this._cursor.peek();this._cursor.advance(),c===92?this._cursor.advance():c===s?s=null:!a&&s===null&&It(c)&&(s=c)}n.push(this._getProcessedChars(i,this._cursor)),this._endToken(n)}_consumeDirective(e,t){for(this._requireCharCode(64),this._cursor.advance();Ni(this._cursor.peek());)this._cursor.advance();this._beginToken(l.DIRECTIVE_NAME,e);let r=this._cursor.getChars(t);if(this._endToken([r]),this._attemptCharCodeUntilFn(v),this._cursor.peek()===40){for(this._openDirectiveCount++,this._beginToken(l.DIRECTIVE_OPEN),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(v);!Li(this._cursor.peek())&&this._cursor.peek()!==41;)this._consumeAttribute();if(this._attemptCharCodeUntilFn(v),this._openDirectiveCount--,this._cursor.peek()!==41){if(this._cursor.peek()===62||this._cursor.peek()===47)return;throw this._createError(Se(this._cursor.peek()),this._cursor.getSpan(e))}this._beginToken(l.DIRECTIVE_CLOSE),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(v)}}_getProcessedChars(e,t){return this._processCarriageReturns(t.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===0||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===125&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||this._isLetStart()||this._cursor.peek()===125))}_isTagStart(){if(this._cursor.peek()===60){let e=this._cursor.clone();e.advance();let t=e.peek();if(97<=t&&t<=122||65<=t&&t<=90||t===47||t===33)return!0}return!1}_readUntil(e){let t=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(t)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===l.EXPANSION_CASE_EXP_START}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===l.EXPANSION_FORM_START}isExpansionFormStart(){if(this._cursor.peek()!==123)return!1;let e=this._cursor.clone(),t=this._attemptStr(st.start);return this._cursor=e,!t}_handleFullNameStackForTagOpen(e,t){let r=fe(e,t);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===r)&&this._fullNameStack.push(r)}_handleFullNameStackForTagClose(e,t){let r=fe(e,t);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===r&&this._fullNameStack.pop()}};function v(e){return!it(e)||e===0}function Ee(e){return it(e)||e===62||e===60||e===47||e===39||e===34||e===61||e===0}function Ya(e){return(e<97||12257)}function ja(e){return e===59||e===0||!ki(e)}function Xa(e){return e===59||e===0||!(Re(e)||Ie(e))}function Ka(e){return e!==125}function Qa(e,t){return yi(e)===yi(t)}function yi(e){return e>=97&&e<=122?e-97+65:e}function Ja(e){return Re(e)||Ie(e)||e===95}function Ai(e){return e!==59&&v(e)}function Rt(e){return e===95||e>=65&&e<=90}function Ni(e){return Re(e)||Ie(e)||e===95}function Li(e){return e===47||e===62||e===60||e===0}function Za(e){let t=[],r;for(let n=0;n0&&r.indexOf(t.peek())!==-1;)n===t&&(t=t.clone()),t.advance();let i=this.locationFromCursor(t);return new h(i,this.locationFromCursor(this),n!==t?this.locationFromCursor(n):i)}getChars(t){return this.input.substring(t.state.offset,this.state.offset)}charAt(t){return this.input.charCodeAt(t)}advanceState(t){if(t.offset>=this.end)throw this.state=t,new Cr('Unexpected character "EOF"',this);let r=this.charAt(t.offset);r===10?(t.line++,t.column=0):Me(r)||t.column++,t.offset++,this.updatePeek(t)}updatePeek(t){t.peek=t.offset>=this.end?0:this.charAt(t.offset)}locationFromCursor(t){return new De(t.file,t.state.offset,t.state.line,t.state.column)}},eo=class Er extends Oi{internalState;constructor(t,r){t instanceof Er?(super(t),this.internalState={...t.internalState}):(super(t,r),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new Er(this)}getChars(t){let r=t.clone(),n="";for(;r.internalState.offsetthis.internalState.peek;if(t()===92)if(this.internalState={...this.state},this.advanceState(this.internalState),t()===110)this.state.peek=10;else if(t()===114)this.state.peek=13;else if(t()===118)this.state.peek=11;else if(t()===116)this.state.peek=9;else if(t()===98)this.state.peek=8;else if(t()===102)this.state.peek=12;else if(t()===117)if(this.advanceState(this.internalState),t()===123){this.advanceState(this.internalState);let r=this.clone(),n=0;for(;t()!==125;)this.advanceState(this.internalState),n++;this.state.peek=this.decodeHexDigits(r,n)}else{let r=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,4)}else if(t()===120){this.advanceState(this.internalState);let r=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,2)}else if(gr(t())){let r="",n=0,i=this.clone();for(;gr(t())&&n<3;)i=this.clone(),r+=String.fromCodePoint(t()),this.advanceState(this.internalState),n++;this.state.peek=parseInt(r,8),this.internalState=i.internalState}else Me(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(t,r){let n=this.input.slice(t.internalState.offset,t.internalState.offset+r),i=parseInt(n,16);if(isNaN(i))throw t.state=t.internalState,new Cr("Invalid hexadecimal escape sequence",t);return i}},Cr=class extends Error{constructor(e,t){super(e),this.msg=e,this.cursor=t,Object.setPrototypeOf(this,new.target.prototype)}};var y=class Ri extends ee{static create(t,r,n){return new Ri(t,r,n)}constructor(t,r,n){super(r,n),this.elementName=t}},to=class{constructor(e,t){this.rootNodes=e,this.errors=t}},Mi=class{constructor(e){this.getTagDefinition=e}parse(e,t,r,n=!1,i){let s=m=>(_,...T)=>m(_.toLowerCase(),...T),a=n?this.getTagDefinition:s(this.getTagDefinition),o=m=>a(m).getContentType(),c=n?i:s(i),u=Pi(e,t,i?(m,_,T,P)=>{let z=c(m,_,T,P);return z!==void 0?z:o(m)}:o,r),p=r&&r.canSelfClose||!1,d=r&&r.allowHtmComponentClosingTags||!1,g=new ro(u.tokens,a,p,d,n);return g.build(),new to(g.rootNodes,[...u.errors,...g.errors])}},ro=class Bi{_index=-1;_peek;_containerStack=[];rootNodes=[];errors=[];constructor(t,r,n,i,s){this.tokens=t,this.tagDefinitionResolver=r,this.canSelfClose=n,this.allowHtmComponentClosingTags=i,this.isTagNameCaseSensitive=s,this._advance()}build(){for(;this._peek.type!==l.EOF;)this._peek.type===l.TAG_OPEN_START||this._peek.type===l.INCOMPLETE_TAG_OPEN?this._consumeElementStartTag(this._advance()):this._peek.type===l.TAG_CLOSE?(this._closeVoidElement(),this._consumeElementEndTag(this._advance())):this._peek.type===l.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===l.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===l.TEXT||this._peek.type===l.RAW_TEXT||this._peek.type===l.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===l.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._peek.type===l.BLOCK_OPEN_START?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===l.BLOCK_CLOSE?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===l.INCOMPLETE_BLOCK_OPEN?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===l.LET_START?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===l.DOC_TYPE_START?this._consumeDocType(this._advance()):this._peek.type===l.INCOMPLETE_LET?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._peek.type===l.COMPONENT_OPEN_START||this._peek.type===l.INCOMPLETE_COMPONENT_OPEN?this._consumeComponentStartTag(this._advance()):this._peek.type===l.COMPONENT_CLOSE?this._consumeComponentEndTag(this._advance()):this._advance();for(let t of this._containerStack)t instanceof ge&&this.errors.push(y.create(t.name,t.sourceSpan,`Unclosed block "${t.name}"`))}_advance(){let t=this._peek;return this._index0)return this.errors=this.errors.concat(s.errors),null;let a=new h(t.sourceSpan.start,i.sourceSpan.end,t.sourceSpan.fullStart),o=new h(r.sourceSpan.start,i.sourceSpan.end,r.sourceSpan.fullStart);return new Ci(t.parts[0],s.rootNodes,a,t.sourceSpan,o)}_collectExpansionExpTokens(t){let r=[],n=[l.EXPANSION_CASE_EXP_START];for(;;){if((this._peek.type===l.EXPANSION_FORM_START||this._peek.type===l.EXPANSION_CASE_EXP_START)&&n.push(this._peek.type),this._peek.type===l.EXPANSION_CASE_EXP_END)if(Di(n,l.EXPANSION_CASE_EXP_START)){if(n.pop(),n.length===0)return r}else return this.errors.push(y.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===l.EXPANSION_FORM_END)if(Di(n,l.EXPANSION_FORM_START))n.pop();else return this.errors.push(y.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===l.EOF)return this.errors.push(y.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;r.push(this._advance())}}_getText(t){let r=t.parts[0];if(r.length>0&&r[0]==` +`){var n;let i=this._getClosestElementLikeParent();i!=null&&i.children.length==0&&(!((n=this._getTagDefinition(i))===null||n===void 0)&&n.ignoreFirstLf)&&(r=r.substring(1))}return r}_consumeText(t){let r=[t],n=t.sourceSpan,i=t.parts[0];if(i.length>0&&i[0]===` +`){var s;let a=this._getContainer();a!=null&&a.children.length===0&&(!((s=this._getTagDefinition(a))===null||s===void 0)&&s.ignoreFirstLf)&&(i=i.substring(1),r[0]={type:t.type,sourceSpan:t.sourceSpan,parts:[i]})}for(;this._peek.type===l.INTERPOLATION||this._peek.type===l.TEXT||this._peek.type===l.ENCODED_ENTITY;)t=this._advance(),r.push(t),t.type===l.INTERPOLATION?i+=t.parts.join("").replace(/&([^;]+);/g,Ii):t.type===l.ENCODED_ENTITY?i+=t.parts[0]:i+=t.parts.join("");if(i.length>0){let a=t.sourceSpan;this._addToParent(new _i(i,new h(n.start,a.end,n.fullStart,n.details),r))}}_closeVoidElement(){var t;let r=this._getContainer();r!==null&&(!((t=this._getTagDefinition(r))===null||t===void 0)&&t.isVoid)&&this._containerStack.pop()}_consumeElementStartTag(t){var r;let n=[],i=[];this._consumeAttributesAndDirectives(n,i);let s=this._getElementFullName(t,this._getClosestElementLikeParent()),a=this._getTagDefinition(s),o=!1;if(this._peek.type===l.TAG_OPEN_END_VOID){this._advance(),o=!0;let T=this._getTagDefinition(s);this.canSelfClose||T?.canSelfClose||Pe(s)!==null||T?.isVoid||this.errors.push(y.create(s,t.sourceSpan,`Only void, custom and foreign elements can be self closed "${t.parts[1]}"`))}else this._peek.type===l.TAG_OPEN_END&&(this._advance(),o=!1);let c=this._peek.sourceSpan.fullStart,u=new h(t.sourceSpan.start,c,t.sourceSpan.fullStart),p=new h(t.sourceSpan.start,c,t.sourceSpan.fullStart),d=new h(t.sourceSpan.start.moveBy(1),t.sourceSpan.end),g=new te(s,n,i,[],o,u,p,void 0,d,a?.isVoid??!1),m=this._getContainer(),_=m!==null&&!!(!((r=this._getTagDefinition(m))===null||r===void 0)&&r.isClosedByChild(g.name));this._pushContainer(g,_),o?this._popContainer(s,te,u):t.type===l.INCOMPLETE_TAG_OPEN&&(this._popContainer(s,te,null),this.errors.push(y.create(s,u,`Opening tag "${s}" not terminated.`)))}_consumeComponentStartTag(t){var r;let n=t.parts[0],i=[],s=[];this._consumeAttributesAndDirectives(i,s);let a=this._getClosestElementLikeParent(),o=this._getComponentTagName(t,a),c=this._getComponentFullName(t,a),u=this._peek.type===l.COMPONENT_OPEN_END_VOID;this._advance();let p=this._peek.sourceSpan.fullStart,d=new h(t.sourceSpan.start,p,t.sourceSpan.fullStart),g=new G(n,o,c,i,s,[],u,d,new h(t.sourceSpan.start,p,t.sourceSpan.fullStart),void 0),m=this._getContainer(),_=m!==null&&g.tagName!==null&&!!(!((r=this._getTagDefinition(m))===null||r===void 0)&&r.isClosedByChild(g.tagName));this._pushContainer(g,_),u?this._popContainer(c,G,d):t.type===l.INCOMPLETE_COMPONENT_OPEN&&(this._popContainer(c,G,null),this.errors.push(y.create(c,d,`Opening tag "${c}" not terminated.`)))}_consumeAttributesAndDirectives(t,r){for(;this._peek.type===l.ATTR_NAME||this._peek.type===l.DIRECTIVE_NAME;)this._peek.type===l.DIRECTIVE_NAME?r.push(this._consumeDirective(this._peek)):t.push(this._consumeAttr(this._advance()))}_consumeComponentEndTag(t){let r=this._getComponentFullName(t,this._getClosestElementLikeParent());if(!this._popContainer(r,G,t.sourceSpan)){let n=this._containerStack[this._containerStack.length-1],i;n instanceof G&&n.componentName===t.parts[0]?i=`, did you mean "${n.fullName}"?`:i=". It may happen when the tag has already been closed by another tag.";let s=`Unexpected closing tag "${r}"${i}`;this.errors.push(y.create(r,t.sourceSpan,s))}}_getTagDefinition(t){return typeof t=="string"?this.tagDefinitionResolver(t):t instanceof te?this.tagDefinitionResolver(t.name):t instanceof G&&t.tagName!==null?this.tagDefinitionResolver(t.tagName):null}_pushContainer(t,r){r&&this._containerStack.pop(),this._addToParent(t),this._containerStack.push(t)}_consumeElementEndTag(t){var r;let n=this.allowHtmComponentClosingTags&&t.parts.length===0?null:this._getElementFullName(t,this._getClosestElementLikeParent());if(n&&(!((r=this._getTagDefinition(n))===null||r===void 0)&&r.isVoid))this.errors.push(y.create(n,t.sourceSpan,`Void elements do not have end tags "${t.parts[1]}"`));else if(!this._popContainer(n,te,t.sourceSpan)){let i=`Unexpected closing tag "${n}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(y.create(n,t.sourceSpan,i))}}_popContainer(t,r,n){let i=!1;for(let a=this._containerStack.length-1;a>=0;a--){var s;let o=this._containerStack[a],c=o instanceof G?o.fullName:o.name;if(Pe(c)?c===t:(c===t||t===null)&&o instanceof r)return o.endSourceSpan=n,o.sourceSpan.end=n!==null?n.end:o.sourceSpan.end,this._containerStack.splice(a,this._containerStack.length-a),!i;(o instanceof ge||!(!((s=this._getTagDefinition(o))===null||s===void 0)&&s.closedByParent))&&(i=!0)}return!1}_consumeAttr(t){let r=fe(t.parts[0],t.parts[1]),n=t.sourceSpan.end,i;this._peek.type===l.ATTR_QUOTE&&(i=this._advance());let s="",a=[],o,c;if(this._peek.type===l.ATTR_VALUE_TEXT)for(o=this._peek.sourceSpan,c=this._peek.sourceSpan.end;this._peek.type===l.ATTR_VALUE_TEXT||this._peek.type===l.ATTR_VALUE_INTERPOLATION||this._peek.type===l.ENCODED_ENTITY;){let p=this._advance();a.push(p),p.type===l.ATTR_VALUE_INTERPOLATION?s+=p.parts.join("").replace(/&([^;]+);/g,Ii):p.type===l.ENCODED_ENTITY?s+=p.parts[0]:s+=p.parts.join(""),c=n=p.sourceSpan.end}this._peek.type===l.ATTR_QUOTE&&(c=n=this._advance().sourceSpan.end);let u=o&&c&&new h(i?.sourceSpan.start??o.start,c,i?.sourceSpan.fullStart??o.fullStart);return new vi(r,s,new h(t.sourceSpan.start,n,t.sourceSpan.fullStart),t.sourceSpan,u,a.length>0?a:void 0,void 0)}_consumeDirective(t){let r=[],n=t.sourceSpan.end,i=null;if(this._advance(),this._peek.type===l.DIRECTIVE_OPEN){for(n=this._peek.sourceSpan.end,this._advance();this._peek.type===l.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));this._peek.type===l.DIRECTIVE_CLOSE?(i=this._peek.sourceSpan,this._advance()):this.errors.push(y.create(null,t.sourceSpan,"Unterminated directive definition"))}let s=new h(t.sourceSpan.start,n,t.sourceSpan.fullStart),a=new h(s.start,i===null?t.sourceSpan.end:i.end,s.fullStart);return new wi(t.parts[0],r,a,s,i)}_consumeBlockOpen(t){let r=[];for(;this._peek.type===l.BLOCK_PARAMETER;){let o=this._advance();r.push(new mr(o.parts[0],o.sourceSpan))}this._peek.type===l.BLOCK_OPEN_END&&this._advance();let n=this._peek.sourceSpan.fullStart,i=new h(t.sourceSpan.start,n,t.sourceSpan.fullStart),s=new h(t.sourceSpan.start,n,t.sourceSpan.fullStart),a=new ge(t.parts[0],r,[],i,t.sourceSpan,s);this._pushContainer(a,!1)}_consumeBlockClose(t){let r=this._containerStack.length,n=this._containerStack[r-1];if(!this._popContainer(null,ge,t.sourceSpan)){if(this._containerStack.length element? If you meant to write the \`}\` character, you should use the "}" HTML entity instead.`));return}this.errors.push(y.create(null,t.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the `}` character, you should use the "}" HTML entity instead.'))}}_consumeIncompleteBlock(t){let r=[];for(;this._peek.type===l.BLOCK_PARAMETER;){let o=this._advance();r.push(new mr(o.parts[0],o.sourceSpan))}let n=this._peek.sourceSpan.fullStart,i=new h(t.sourceSpan.start,n,t.sourceSpan.fullStart),s=new h(t.sourceSpan.start,n,t.sourceSpan.fullStart),a=new ge(t.parts[0],r,[],i,t.sourceSpan,s);this._pushContainer(a,!1),this._popContainer(null,ge,null),this.errors.push(y.create(t.parts[0],i,`Incomplete block "${t.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`))}_consumeLet(t){let r=t.parts[0],n,i;if(this._peek.type!==l.LET_VALUE){this.errors.push(y.create(t.parts[0],t.sourceSpan,`Invalid @let declaration "${r}". Declaration must have a value.`));return}else n=this._advance();if(this._peek.type!==l.LET_END){this.errors.push(y.create(t.parts[0],t.sourceSpan,`Unterminated @let declaration "${r}". Declaration must be terminated with a semicolon.`));return}else i=this._advance();let s=i.sourceSpan.fullStart,a=new h(t.sourceSpan.start,s,t.sourceSpan.fullStart),o=t.sourceSpan.toString().lastIndexOf(r),c=new h(t.sourceSpan.start.moveBy(o),t.sourceSpan.end),u=new fr(r,n.parts[0],a,c,n.sourceSpan);this._addToParent(u)}_consumeIncompleteLet(t){let r=t.parts[0]??"",n=r?` "${r}"`:"";if(r.length>0){let i=t.sourceSpan.toString().lastIndexOf(r),s=new h(t.sourceSpan.start.moveBy(i),t.sourceSpan.end),a=new h(t.sourceSpan.start,t.sourceSpan.start.moveBy(0)),o=new fr(r,"",t.sourceSpan,s,a);this._addToParent(o)}this.errors.push(y.create(t.parts[0],t.sourceSpan,`Incomplete @let declaration${n}. @let declarations must be written as \`@let = ;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestElementLikeParent(){for(let t=this._containerStack.length-1;t>-1;t--){let r=this._containerStack[t];if(r instanceof te||r instanceof G)return r}return null}_addToParent(t){let r=this._getContainer();r===null?this.rootNodes.push(t):r.children.push(t)}_getElementFullName(t,r){return fe(this._getPrefix(t,r),t.parts[1])}_getComponentFullName(t,r){let n=t.parts[0],i=this._getComponentTagName(t,r);return i===null?n:i.startsWith(":")?n+i:`${n}:${i}`}_getComponentTagName(t,r){let n=this._getPrefix(t,r),i=t.parts[2];return!n&&!i?null:!n&&i?i:fe(n,i||"ng-component")}_getPrefix(t,r){var n;let i,s;if(t.type===l.COMPONENT_OPEN_START||t.type===l.INCOMPLETE_COMPONENT_OPEN||t.type===l.COMPONENT_CLOSE?(i=t.parts[1],s=t.parts[2]):(i=t.parts[0],s=t.parts[1]),i=i||((n=this._getTagDefinition(s))===null||n===void 0?void 0:n.implicitNamespacePrefix)||"",!i&&r){let a=r instanceof te?r.name:r.tagName;if(a!==null){let o=et(a)[1],c=this._getTagDefinition(o);c!==null&&!c.preventNamespaceInheritance&&(i=Pe(a))}}return i}};function Di(e,t){return e.length>0&&e[e.length-1]===t}function Ii(e,t){return _e[t]!==void 0?_e[t]||e:/^#x[a-f0-9]+$/i.test(t)?String.fromCodePoint(parseInt(t.slice(2),16)):/^#\d+$/.test(t)?String.fromCodePoint(parseInt(t.slice(1),10)):e}var qi=class extends Mi{constructor(){super(Oe)}parse(e,t,r,n=!1,i){return super.parse(e,t,r,n,i)}};var vr;function Mt(e,t={}){let{canSelfClose:r=!1,allowHtmComponentClosingTags:n=!1,isTagNameCaseSensitive:i=!1,getTagContentType:s,tokenizeAngularBlocks:a=!1,tokenizeAngularLetDeclaration:o=!1,enableAngularSelectorlessSyntax:c=!1}=t;return vr??(vr=new qi),vr.parse(e,"angular-html-parser",{tokenizeExpansionForms:a,canSelfClose:r,allowHtmComponentClosingTags:n,tokenizeBlocks:a,tokenizeLet:o,selectorlessEnabled:c},i,s)}var no=[so,ao,lo,uo,po,fo,ho,mo,go,co];function io(e,t){for(let r of no)r(e,t);return e}function so(e){e.walk(t=>{if(t.kind==="element"&&t.tagDefinition.ignoreFirstLf&&t.children.length>0&&t.children[0].kind==="text"&&t.children[0].value[0]===` +`){let r=t.children[0];r.value.length===1?t.removeChild(r):r.value=r.value.slice(1)}})}function ao(e){let t=r=>r.kind==="element"&&r.prev?.kind==="ieConditionalStartComment"&&r.prev.sourceSpan.end.offset===r.startSourceSpan.start.offset&&r.firstChild?.kind==="ieConditionalEndComment"&&r.firstChild.sourceSpan.start.offset===r.startSourceSpan.end.offset;e.walk(r=>{if(r.children)for(let n=0;n{if(n.children)for(let i=0;it.kind==="cdata",t=>``)}function co(e){let t=r=>r.kind==="element"&&r.attrs.length===0&&r.children.length===1&&r.firstChild.kind==="text"&&!N.hasWhitespaceCharacter(r.children[0].value)&&!r.firstChild.hasLeadingSpaces&&!r.firstChild.hasTrailingSpaces&&r.isLeadingSpaceSensitive&&!r.hasLeadingSpaces&&r.isTrailingSpaceSensitive&&!r.hasTrailingSpaces&&r.prev?.kind==="text"&&r.next?.kind==="text";e.walk(r=>{if(r.children)for(let n=0;n`+i.firstChild.value+``+a.value,s.sourceSpan=new h(s.sourceSpan.start,a.sourceSpan.end),s.isTrailingSpaceSensitive=a.isTrailingSpaceSensitive,s.hasTrailingSpaces=a.hasTrailingSpaces,r.removeChild(i),n--,r.removeChild(a)}})}function uo(e,t){if(t.parser==="html")return;let r=/\{\{(.+?)\}\}/su;e.walk(n=>{if(nn(n,t))for(let i of n.children){if(i.kind!=="text")continue;let s=i.sourceSpan.start,a=null,o=i.value.split(r);for(let c=0;c0&&n.insertChildBefore(i,{kind:"text",value:u,sourceSpan:new h(s,a)});continue}a=s.moveBy(u.length+4),n.insertChildBefore(i,{kind:"interpolation",sourceSpan:new h(s,a),children:u.length===0?[]:[{kind:"text",value:u,sourceSpan:new h(s.moveBy(2),a.moveBy(-2))}]})}n.removeChild(i)}})}function po(e,t){e.walk(r=>{let n=r.$children;if(!n)return;if(n.length===0||n.length===1&&n[0].kind==="text"&&N.trim(n[0].value).length===0){r.hasDanglingSpaces=n.length>0,r.$children=[];return}let i=sn(r,t),s=er(r);if(!i)for(let a=0;a{t.isSelfClosing=!t.children||t.kind==="element"&&(t.tagDefinition.isVoid||t.endSourceSpan&&t.startSourceSpan.start===t.endSourceSpan.start&&t.startSourceSpan.end===t.endSourceSpan.end)})}function mo(e,t){e.walk(r=>{r.kind==="element"&&(r.hasHtmComponentClosingTag=r.endSourceSpan&&/^<\s*\/\s*\/\s*>$/u.test(t.originalText.slice(r.endSourceSpan.start.offset,r.endSourceSpan.end.offset)))})}function fo(e,t){e.walk(r=>{r.cssDisplay=dn(r,t)})}function go(e,t){e.walk(r=>{let{children:n}=r;if(n){if(n.length===0){r.isDanglingSpaceSensitive=ln(r,t);return}for(let i of n)i.isLeadingSpaceSensitive=an(i,t),i.isTrailingSpaceSensitive=on(i,t);for(let i=0;i of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var Ui="HTML",Eo={bracketSameLine:Tr.bracketSameLine,htmlWhitespaceSensitivity:{category:Ui,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:Tr.singleAttributePerLine,vueIndentScriptAndStyle:{category:Ui,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},Wi=Eo;var Lr={};Or(Lr,{angular:()=>Fo,html:()=>Mo,lwc:()=>Vo,mjml:()=>qo,vue:()=>Ho});function Co(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}var Gi=Co;var vo={canSelfClose:!0,normalizeTagName:!1,normalizeAttributeName:!1,allowHtmComponentClosingTags:!1,isTagNameCaseSensitive:!1,shouldParseFrontMatter:!0};function Bt(e){return{...vo,...e}}function br(e){let{canSelfClose:t,allowHtmComponentClosingTags:r,isTagNameCaseSensitive:n,shouldParseAsRawText:i,tokenizeAngularBlocks:s,tokenizeAngularLetDeclaration:a}=e;return{canSelfClose:t,allowHtmComponentClosingTags:r,isTagNameCaseSensitive:n,getTagContentType:i?(...o)=>i(...o)?R.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:s,tokenizeAngularLetDeclaration:a}}var qt=new Map([["*",new Set(["accesskey","autocapitalize","autocorrect","autofocus","class","contenteditable","dir","draggable","enterkeyhint","exportparts","hidden","id","inert","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","part","popover","slot","spellcheck","style","tabindex","title","translate","writingsuggestions"])],["a",new Set(["charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","target","type"])],["applet",new Set(["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"])],["area",new Set(["alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","target","type"])],["audio",new Set(["autoplay","controls","crossorigin","loop","muted","preload","src"])],["base",new Set(["href","target"])],["basefont",new Set(["color","face","size"])],["blockquote",new Set(["cite"])],["body",new Set(["alink","background","bgcolor","link","text","vlink"])],["br",new Set(["clear"])],["button",new Set(["command","commandfor","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"])],["canvas",new Set(["height","width"])],["caption",new Set(["align"])],["col",new Set(["align","char","charoff","span","valign","width"])],["colgroup",new Set(["align","char","charoff","span","valign","width"])],["data",new Set(["value"])],["del",new Set(["cite","datetime"])],["details",new Set(["name","open"])],["dialog",new Set(["closedby","open"])],["dir",new Set(["compact"])],["div",new Set(["align"])],["dl",new Set(["compact"])],["embed",new Set(["height","src","type","width"])],["fieldset",new Set(["disabled","form","name"])],["font",new Set(["color","face","size"])],["form",new Set(["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"])],["frame",new Set(["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"])],["frameset",new Set(["cols","rows"])],["h1",new Set(["align"])],["h2",new Set(["align"])],["h3",new Set(["align"])],["h4",new Set(["align"])],["h5",new Set(["align"])],["h6",new Set(["align"])],["head",new Set(["profile"])],["hr",new Set(["align","noshade","size","width"])],["html",new Set(["manifest","version"])],["iframe",new Set(["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"])],["img",new Set(["align","alt","border","crossorigin","decoding","fetchpriority","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"])],["input",new Set(["accept","align","alpha","alt","autocomplete","checked","colorspace","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","usemap","value","width"])],["ins",new Set(["cite","datetime"])],["isindex",new Set(["prompt"])],["label",new Set(["for","form"])],["legend",new Set(["align"])],["li",new Set(["type","value"])],["link",new Set(["as","blocking","charset","color","crossorigin","disabled","fetchpriority","href","hreflang","imagesizes","imagesrcset","integrity","media","referrerpolicy","rel","rev","sizes","target","type"])],["map",new Set(["name"])],["menu",new Set(["compact"])],["meta",new Set(["charset","content","http-equiv","media","name","scheme"])],["meter",new Set(["high","low","max","min","optimum","value"])],["object",new Set(["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","type","typemustmatch","usemap","vspace","width"])],["ol",new Set(["compact","reversed","start","type"])],["optgroup",new Set(["disabled","label"])],["option",new Set(["disabled","label","selected","value"])],["output",new Set(["for","form","name"])],["p",new Set(["align"])],["param",new Set(["name","type","value","valuetype"])],["pre",new Set(["width"])],["progress",new Set(["max","value"])],["q",new Set(["cite"])],["script",new Set(["async","blocking","charset","crossorigin","defer","fetchpriority","integrity","language","nomodule","referrerpolicy","src","type"])],["select",new Set(["autocomplete","disabled","form","multiple","name","required","size"])],["slot",new Set(["name"])],["source",new Set(["height","media","sizes","src","srcset","type","width"])],["style",new Set(["blocking","media","type"])],["table",new Set(["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"])],["tbody",new Set(["align","char","charoff","valign"])],["td",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["template",new Set(["shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootmode","shadowrootserializable"])],["textarea",new Set(["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","wrap"])],["tfoot",new Set(["align","char","charoff","valign"])],["th",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["thead",new Set(["align","char","charoff","valign"])],["time",new Set(["datetime"])],["tr",new Set(["align","bgcolor","char","charoff","valign"])],["track",new Set(["default","kind","label","src","srclang"])],["ul",new Set(["compact","type"])],["video",new Set(["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"])]]);var zi=new Set(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","embed","fencedframe","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","search","section","select","selectedcontent","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]);var Ft={attrs:!0,children:!0,cases:!0,expression:!0},$i=new Set(["parent"]),re,wr,kr,Be=class Be{constructor(t={}){Dr(this,re);Wt(this,"kind");Wt(this,"parent");for(let r of new Set([...$i,...Object.keys(t)]))this.setProperty(r,t[r]);if(ie(t))for(let r of Object.getOwnPropertySymbols(t))this.setProperty(r,t[r])}setProperty(t,r){if(this[t]!==r){if(t in Ft&&(r=r.map(n=>this.createChild(n))),!$i.has(t)){this[t]=r;return}Object.defineProperty(this,t,{value:r,enumerable:!1,configurable:!0})}}map(t){let r;for(let n in Ft){let i=this[n];if(i){let s=To(i,a=>a.map(t));r!==i&&(r||(r=new Be({parent:this.parent})),r.setProperty(n,s))}}if(r)for(let n in this)n in Ft||(r[n]=this[n]);return t(r||this)}walk(t){for(let r in Ft){let n=this[r];if(n)for(let i=0;i[t.fullName,t.value]))}};re=new WeakSet,wr=function(){return this.kind==="angularIcuCase"?"expression":this.kind==="angularIcuExpression"?"cases":"children"},kr=function(){return this.parent?.$children??[]};var Ht=Be;function To(e,t){let r=e.map(t);return r.some((n,i)=>n!==e[i])?r:e}var bo=[{regex:/^(?\[if(?[^\]]*)\]>)(?.*?)[^\]]*)\]>{try{return[!0,r(s,o).children]}catch{return[!1,[{kind:"text",value:s,sourceSpan:new h(o,c)}]]}})();return{kind:"ieConditionalComment",complete:u,children:p,condition:w(0,i.trim(),/\s+/gu," "),sourceSpan:e.sourceSpan,startSourceSpan:new h(e.sourceSpan.start,o),endSourceSpan:new h(c,e.sourceSpan.end)}}function ko(e,t){let{condition:r}=t.groups;return{kind:"ieConditionalStartComment",condition:w(0,r.trim(),/\s+/gu," "),sourceSpan:e.sourceSpan}}function xo(e){return{kind:"ieConditionalEndComment",sourceSpan:e.sourceSpan}}var xr=class extends dr{visitExpansionCase(t,r){r.parseOptions.name==="angular"&&this.visitChildren(r,n=>{n(t.expression)})}visit(t,{parseOptions:r}){Lo(t),Po(t,r),Do(t,r),Oo(t)}};function Ki(e,t,r,n){Dt(new xr,e.children,{parseOptions:r}),t&&e.children.unshift(t);let i=new Ht(e);return i.walk(s=>{if(s.kind==="comment"){let a=Yi(s,n);a&&s.parent.replaceChild(s,a)}yo(s),Ao(s),No(s)}),i}function yo(e){if(e.kind==="block"){if(e.name=w(0,e.name.toLowerCase(),/\s+/gu," ").trim(),e.kind="angularControlFlowBlock",!Ne(e.parameters)){delete e.parameters;return}for(let t of e.parameters)t.kind="angularControlFlowBlockParameter";e.parameters={kind:"angularControlFlowBlockParameters",children:e.parameters,sourceSpan:new h(e.parameters[0].sourceSpan.start,M(0,e.parameters,-1).sourceSpan.end)}}}function Ao(e){e.kind==="letDeclaration"&&(e.kind="angularLetDeclaration",e.id=e.name,e.init={kind:"angularLetDeclarationInitializer",sourceSpan:new h(e.valueSpan.start,e.valueSpan.end),value:e.value},delete e.name,delete e.value)}function No(e){e.kind==="expansion"&&(e.kind="angularIcuExpression"),e.kind==="expansionCase"&&(e.kind="angularIcuCase")}function ji(e,t){let r=e.toLowerCase();return t(r)?r:e}function Xi(e){let t=e.name.startsWith(":")?e.name.slice(1).split(":")[0]:null,r=e.nameSpan.toString(),n=t!==null&&r.startsWith(`${t}:`),i=n?r.slice(t.length+1):r;e.name=i,e.namespace=t,e.hasExplicitNamespace=n}function Lo(e){switch(e.kind){case"element":Xi(e);for(let t of e.attrs)Xi(t),t.valueSpan?(t.value=t.valueSpan.toString(),/["']/u.test(t.value[0])&&(t.value=t.value.slice(1,-1))):t.value=null;break;case"comment":e.value=e.sourceSpan.toString().slice(4,-3);break;case"text":e.value=e.sourceSpan.toString();break}}function Po(e,t){if(e.kind==="element"){let r=Oe(t.isTagNameCaseSensitive?e.name:e.name.toLowerCase());!e.namespace||e.namespace===r.implicitNamespacePrefix||se(e)?e.tagDefinition=r:e.tagDefinition=Oe("")}}function Oo(e){e.sourceSpan&&e.endSourceSpan&&(e.sourceSpan=new h(e.sourceSpan.start,e.endSourceSpan.end))}function Do(e,t){if(e.kind==="element"&&(t.normalizeTagName&&(!e.namespace||e.namespace===e.tagDefinition.implicitNamespacePrefix||se(e))&&(e.name=ji(e.name,r=>zi.has(r))),t.normalizeAttributeName))for(let r of e.attrs)r.namespace||(r.name=ji(r.name,n=>qt.has(e.name)&&(qt.get("*").has(n)||qt.get(e.name).has(n))))}function Ar(e,t){let{rootNodes:r,errors:n}=Mt(e,br(t));return n.length>0&&yr(n[0]),{parseOptions:t,rootNodes:r}}function Qi(e,t){let r=br(t),{rootNodes:n,errors:i}=Mt(e,r);if(n.some(u=>u.kind==="docType"&&u.value==="html"||u.kind==="element"&&u.name.toLowerCase()==="html"))return Ar(e,Vt);let a,o=()=>a??(a=Mt(e,{...r,getTagContentType:void 0})),c=u=>{let{offset:p}=u.startSourceSpan.start;return o().rootNodes.find(d=>d.kind==="element"&&d.startSourceSpan.start.offset===p)??u};for(let[u,p]of n.entries())if(p.kind==="element"){if(p.isVoid)i=o().errors,n[u]=c(p);else if(Io(p)){let{endSourceSpan:d,startSourceSpan:g}=p,m=o().errors.find(_=>_.span.start.offset>g.start.offset&&_.span.start.offset0&&yr(i[0]),{parseOptions:t,rootNodes:n}}function Io(e){if(e.kind!=="element"||e.name!=="template")return!1;let t=e.attrs.find(r=>r.name==="lang")?.value;return!t||t==="html"}function yr(e){let{msg:t,span:{start:r,end:n}}=e;throw Gi(t,{loc:{start:{line:r.line+1,column:r.col+1},end:{line:n.line+1,column:n.col+1}},cause:e})}function Ro(e,t,r,n,i,s){let{offset:a}=n,o=w(0,t.slice(0,a),/[^\n]/gu," ")+r,c=Nr(o,e,{...i,shouldParseFrontMatter:!1},s);c.sourceSpan=new h(n,M(0,c.children,-1).sourceSpan.end);let u=c.children[0];return u.length===a?c.children.shift():(u.sourceSpan=new h(u.sourceSpan.start.moveBy(a),u.sourceSpan.end),u.value=u.value.slice(a)),c}function Nr(e,t,r,n={}){let{frontMatter:i,content:s}=r.shouldParseFrontMatter?Kt(e):{content:e},a=new nt(e,n.filepath),o=new De(a,0,0,0),c=o.moveBy(e.length),{parseOptions:u,rootNodes:p}=t(s,r),d={kind:"root",sourceSpan:new h(o,c),children:p},g;if(i){let[_,T]=[i.start,i.end].map(P=>new De(a,P.index,P.line-1,P.column));g={...i,kind:"frontMatter",sourceSpan:new h(_,T)}}return Ki(d,g,u,(_,T)=>Ro(t,e,_,T,u,n))}var Vt=Bt({name:"html",normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0});function at(e){let t=Bt(e),r=t.name==="vue"?Qi:Ar;return{parse:(n,i)=>Nr(n,r,t,i),hasPragma:Zn,hasIgnorePragma:ei,astFormat:"html",locStart:K,locEnd:J}}var Mo=at(Vt),Bo=new Set(["mj-style","mj-raw"]),qo=at({...Vt,name:"mjml",shouldParseAsRawText:e=>Bo.has(e)}),Fo=at({name:"angular",tokenizeAngularBlocks:!0,tokenizeAngularLetDeclaration:!0}),Ho=at({name:"vue",isTagNameCaseSensitive:!0,shouldParseAsRawText(e,t,r,n){return e.toLowerCase()!=="html"&&!r&&(e!=="template"||n.some(({name:i,value:s})=>i==="lang"&&s!=="html"&&s!==""&&s!==void 0))}}),Vo=at({name:"lwc",canSelfClose:!1});var Uo={html:Hi};return ns(Wo);}); \ No newline at end of file diff --git a/node_modules/prettier/plugins/html.mjs b/node_modules/prettier/plugins/html.mjs new file mode 100644 index 0000000000000000000000000000000000000000..16fad08724dd00b1c168cd1f9227d441efbefff4 --- /dev/null +++ b/node_modules/prettier/plugins/html.mjs @@ -0,0 +1,25 @@ +var Lr=Object.defineProperty;var Pr=e=>{throw TypeError(e)};var Zi=(e,t,r)=>t in e?Lr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Or=(e,t)=>{for(var r in t)Lr(e,r,{get:t[r],enumerable:!0})};var Ut=(e,t,r)=>Zi(e,typeof t!="symbol"?t+"":t,r),es=(e,t,r)=>t.has(e)||Pr("Cannot "+r);var Fe=(e,t,r)=>(es(e,t,"read from private field"),r?r.call(e):t.get(e)),Dr=(e,t,r)=>t.has(e)?Pr("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r);var Ji={};Or(Ji,{languages:()=>Vi,options:()=>Wi,parsers:()=>Nr,printers:()=>qo});var ve=(e,t)=>(r,n,...i)=>r|1&&n==null?void 0:(t.call(n)??n[e]).apply(n,i);var ts=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},rs=ve("replaceAll",function(){if(typeof this=="string")return ts}),w=rs;function ns(e){return this[e<0?this.length+e:e]}var is=ve("at",function(){if(Array.isArray(this)||typeof this=="string")return ns}),M=is;var ss=()=>{},He=ss;var Ve="string",Ue="array",lt="cursor",Te="indent",be="align",ct="trim",we="group",ke="fill",xe="if-break",ye="indent-if-break",ut="line-suffix",pt="line-suffix-boundary",$="line",ht="label",Ae="break-parent",mt=new Set([lt,Te,be,ct,we,ke,xe,ye,ut,pt,$,ht,Ae]);function as(e){if(typeof e=="string")return Ve;if(Array.isArray(e))return Ue;if(!e)return;let{type:t}=e;if(mt.has(t))return t}var ft=as;var os=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function ls(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', +Expected it to be 'string' or 'object'.`;if(ft(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=os([...mt].map(i=>`'${i}'`));return`Unexpected doc.type '${e.type}'. +Expected it to be ${n}.`}var Wt=class extends Error{name="InvalidDocError";constructor(t){super(ls(t)),this.doc=t}},Ir=Wt;function Gt(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(s){if(r.has(s))return r.get(s);let a=i(s);return r.set(s,a),a}function i(s){switch(ft(s)){case Ue:return t(s.map(n));case ke:return t({...s,parts:s.parts.map(n)});case xe:return t({...s,breakContents:n(s.breakContents),flatContents:n(s.flatContents)});case we:{let{expandedStates:a,contents:o}=s;return a?(a=a.map(n),o=a[0]):o=n(o),t({...s,contents:o,expandedStates:a})}case be:case Te:case ye:case ht:case ut:return t({...s,contents:n(s.contents)});case Ve:case lt:case ct:case pt:case $:case Ae:return t(s);default:throw new Ir(s)}}}function L(e,t=Rr){return Gt(e,r=>typeof r=="string"?B(t,r.split(` +`)):r)}var D=He,dt=He,Mr=He,Br=He;function A(e){return D(e),{type:Te,contents:e}}function cs(e,t){return Br(e),D(t),{type:be,contents:t,n:e}}function qr(e){return cs(Number.NEGATIVE_INFINITY,e)}var Y={type:Ae};function gt(e){return Mr(e),{type:ke,parts:e}}function E(e,t={}){return D(e),dt(t.expandedStates,!0),{type:we,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function j(e,t="",r={}){return D(e),t!==""&&D(t),{type:xe,breakContents:e,flatContents:t,groupId:r.groupId}}function Fr(e,t){return D(e),{type:ye,contents:e,groupId:t.groupId,negate:t.negate}}function B(e,t){D(e),dt(t);let r=[];for(let n=0;na?n:r).character}var Ur=fs;function zt(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var $t=class{#e;constructor(t){this.#e=new Set(t)}getLeadingWhitespaceCount(t){let r=this.#e,n=0;for(let i=0;i=0&&r.has(t.charAt(i));i--)n++;return n}getLeadingWhitespace(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(0,r)}getTrailingWhitespace(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(t.length-r)}hasLeadingWhitespace(t){return this.#e.has(t.charAt(0))}hasTrailingWhitespace(t){return this.#e.has(M(0,t,-1))}trimStart(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(r)}trimEnd(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(0,t.length-r)}trim(t){return this.trimEnd(this.trimStart(t))}split(t,r=!1){let n=`[${zt([...this.#e].join(""))}]+`,i=new RegExp(r?`(${n})`:n,"u");return t.split(i)}hasWhitespaceCharacter(t){let r=this.#e;return Array.prototype.some.call(t,n=>r.has(n))}hasNonWhitespaceCharacter(t){let r=this.#e;return Array.prototype.some.call(t,n=>!r.has(n))}isWhitespaceOnly(t){let r=this.#e;return Array.prototype.every.call(t,n=>r.has(n))}#t(t){let r=Number.POSITIVE_INFINITY;for(let n of t.split(` +`)){if(n.length===0)continue;let i=this.getLeadingWhitespaceCount(n);if(i===0)return 0;n.length!==i&&in.slice(r)).join(` +`)}},Wr=$t;var ds=[" ",` +`,"\f","\r"," "],gs=new Wr(ds),N=gs;var Yt=class extends Error{name="UnexpectedNodeError";constructor(t,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(t[n])}.`),this.node=t}},Gr=Yt;var _s=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens","switchValueSourceSpan","expSourceSpan","valueSourceSpan"]),Ss=new Set(["if","else if","for","switch","case"]);function zr(e,t,r){if(e.kind==="text"||e.kind==="comment")return null;if(e.kind==="yaml"&&delete t.value,e.kind==="attribute"){let{fullName:n,value:i}=e;n==="style"||n==="class"||n==="srcset"&&(r.fullName==="img"||r.fullName==="source")||n==="allow"&&r.fullName==="iframe"||n.startsWith("on")||n.startsWith("@")||n.startsWith(":")||n.startsWith(".")||n.startsWith("#")||n.startsWith("v-")||n==="vars"&&r.fullName==="style"||(n==="setup"||n==="generic")&&r.fullName==="script"||n==="slot-scope"||n.startsWith("(")||n.startsWith("[")||n.startsWith("*")||n.startsWith("bind")||n.startsWith("i18n")||n.startsWith("on-")||n.startsWith("ng-")||i?.includes("{{")?delete t.value:i&&(t.value=w(0,i,/'|"|'/gu,'"'))}if(e.kind==="docType"&&(t.value=w(0,e.value.toLowerCase(),/\s+/gu," ")),e.kind==="angularControlFlowBlock"&&e.parameters?.children)for(let n of t.parameters.children)Ss.has(e.name)?delete n.expression:n.expression=n.expression.trim();e.kind==="angularIcuExpression"&&(t.switchValue=e.switchValue.trim()),e.kind==="angularLetDeclarationInitializer"&&delete t.value,e.kind==="element"&&e.isVoid&&!e.isSelfClosing&&(t.isSelfClosing=!0)}zr.ignoredProperties=_s;var $r=zr;function X(e,t=!0){return[A([k,e]),t?k:""]}function V(e,t){let r=e.type==="NGRoot"?e.node.type==="NGMicrosyntax"&&e.node.body.length===1&&e.node.body[0].type==="NGMicrosyntaxExpression"?e.node.body[0].expression:e.node:e.type==="JsExpressionRoot"?e.node:e;return r&&(r.type==="ObjectExpression"||r.type==="ArrayExpression"||(t.parser==="__vue_expression"||t.parser==="__vue_ts_expression"||t.parser==="__ng_binding"||t.parser==="__ng_directive")&&(r.type==="TemplateLiteral"||r.type==="StringLiteral"))}async function x(e,t,r,n){r={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...r};let i=!0;n&&(r.__onHtmlBindingRoot=(a,o)=>{i=n(a,o)});let s=await t(e,r,t);return i?E(s):X(s)}function Es(e,t,r,n){let{node:i}=r,s=n.originalText.slice(i.sourceSpan.start.offset,i.sourceSpan.end.offset);return/^\s*$/u.test(s)?"":x(s,e,{parser:"__ng_directive",__isInHtmlAttribute:!1},V)}var Yr=Es;var Cs=Array.prototype.toReversed??function(){return[...this].reverse()},vs=ve("toReversed",function(){if(Array.isArray(this))return Cs}),jr=vs;function Ts(){let e=globalThis,t=e.Deno?.build?.os;return typeof t=="string"?t==="windows":e.navigator?.platform?.startsWith("Win")??e.process?.platform?.startsWith("win")??!1}var bs=Ts();function Xr(e){if(e=e instanceof URL?e:new URL(e),e.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function ws(e){return e=Xr(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function ks(e){e=Xr(e);let t=decodeURIComponent(e.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return e.hostname!==""&&(t=`\\\\${e.hostname}${t}`),t}function jt(e){return bs?ks(e):ws(e)}var Kr=e=>String(e).split(/[/\\]/u).pop(),Qr=e=>String(e).startsWith("file:");function xs(e){return Array.isArray(e)&&e.length>0}var Ne=xs;function Jr(e,t){if(!t)return;let r=Kr(t).toLowerCase();return e.find(({filenames:n})=>n?.some(i=>i.toLowerCase()===r))??e.find(({extensions:n})=>n?.some(i=>r.endsWith(i)))}function ys(e,t){if(t)return e.find(({name:r})=>r.toLowerCase()===t)??e.find(({aliases:r})=>r?.includes(t))??e.find(({extensions:r})=>r?.includes(`.${t}`))}var As=void 0;function Zr(e,t){if(t){if(Qr(t))try{t=jt(t)}catch{return}if(typeof t=="string")return e.find(({isSupported:r})=>r?.({filepath:t}))}}function Ns(e,t){let r=jr(0,e.plugins).flatMap(i=>i.languages??[]);return(ys(r,t.language)??Jr(r,t.physicalFile)??Jr(r,t.file)??Zr(r,t.physicalFile)??Zr(r,t.file)??As?.(r,t.physicalFile))?.parsers[0]}var _t=Ns;var St=Symbol.for("PRETTIER_IS_FRONT_MATTER");function Ls(e){return!!e?.[St]}var ie=Ls;var We=3;function Ps(e){let t=e.slice(0,We);if(t!=="---"&&t!=="+++")return;let r=e.indexOf(` +`,We);if(r===-1)return;let n=e.slice(We,r).trim(),i=e.indexOf(` +${t}`,r),s=n;if(s||(s=t==="+++"?"toml":"yaml"),i===-1&&t==="---"&&s==="yaml"&&(i=e.indexOf(` +...`,r)),i===-1)return;let a=i+1+We,o=e.charAt(a+1);if(!/\s?/u.test(o))return;let c=e.slice(0,a),u;return{language:s,explicitLanguage:n||null,value:e.slice(r+1,i),startDelimiter:t,endDelimiter:c.slice(-We),raw:c,start:{line:1,column:0,index:0},end:{index:c.length,get line(){return u??(u=c.split(` +`)),u.length},get column(){return u??(u=c.split(` +`)),M(0,u,-1).length}},[St]:!0}}function Os(e){let t=Ps(e);return t?{frontMatter:t,get content(){let{raw:r}=t;return w(0,r,/[^\n]/gu," ")+e.slice(r.length)}}:{content:e}}var Xt=Os;var en="inline",Kt={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",style:"none",template:"inline",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",dialog:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",search:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",menu:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",input:"inline-block",button:"inline-block",fieldset:"block",details:"block",summary:"block",marquee:"inline-block",select:"inline-block",source:"block",track:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",option:"block",optgroup:"block"},tn="normal",Qt={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function Ds(e){return e.kind==="element"&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}var se=Ds;var Is=e=>w(0,e,/^[\t\f\r ]*\n/gu,""),Jt=e=>Is(N.trimEnd(e)),rn=e=>{let t=e,r=N.getLeadingWhitespace(t);r&&(t=t.slice(r.length));let n=N.getTrailingWhitespace(t);return n&&(t=t.slice(0,-n.length)),{leadingWhitespace:r,trailingWhitespace:n,text:t}};function Et(e,t){return!!(e.kind==="ieConditionalComment"&&e.lastChild&&!e.lastChild.isSelfClosing&&!e.lastChild.endSourceSpan||e.kind==="ieConditionalComment"&&!e.complete||ae(e)&&e.children.some(r=>r.kind!=="text"&&r.kind!=="interpolation")||Tt(e,t)&&!q(e,t)&&e.kind!=="interpolation")}function oe(e){return e.kind==="attribute"||!e.parent||!e.prev?!1:Rs(e.prev)}function Rs(e){return e.kind==="comment"&&e.value.trim()==="prettier-ignore"}function O(e){return e.kind==="text"||e.kind==="comment"}function q(e,t){return e.kind==="element"&&(e.fullName==="script"||e.fullName==="style"||e.fullName==="svg:style"||e.fullName==="svg:script"||e.fullName==="mj-style"&&t.parser==="mjml"||se(e)&&(e.name==="script"||e.name==="style"))}function nn(e,t){return e.children&&!q(e,t)}function sn(e,t){return q(e,t)||e.kind==="interpolation"||Zt(e)}function Zt(e){return gn(e).startsWith("pre")}function an(e,t){let r=n();if(r&&!e.prev&&e.parent?.tagDefinition?.ignoreFirstLf)return e.kind==="interpolation";return r;function n(){return ie(e)||e.kind==="angularControlFlowBlock"?!1:(e.kind==="text"||e.kind==="interpolation")&&e.prev&&(e.prev.kind==="text"||e.prev.kind==="interpolation")?!0:!e.parent||e.parent.cssDisplay==="none"?!1:ae(e.parent)?!0:!(!e.prev&&(e.parent.kind==="root"||ae(e)&&e.parent||q(e.parent,t)||$e(e.parent,t)||!Vs(e.parent.cssDisplay))||e.prev&&!Gs(e.prev.cssDisplay))}}function on(e,t){return ie(e)||e.kind==="angularControlFlowBlock"?!1:(e.kind==="text"||e.kind==="interpolation")&&e.next&&(e.next.kind==="text"||e.next.kind==="interpolation")?!0:!e.parent||e.parent.cssDisplay==="none"?!1:ae(e.parent)?!0:!(!e.next&&(e.parent.kind==="root"||ae(e)&&e.parent||q(e.parent,t)||$e(e.parent,t)||!Us(e.parent.cssDisplay))||e.next&&!Ws(e.next.cssDisplay))}function ln(e,t){return zs(e.cssDisplay)&&!q(e,t)}function Ge(e){return ie(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+10&&(["body","script","style"].includes(e.name)||e.children.some(t=>Bs(t)))||e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.kind!=="text"&&pn(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||hn(e.lastChild))}function er(e){return e.kind==="element"&&e.children.length>0&&(["html","head","ul","ol","select"].includes(e.name)||e.cssDisplay.startsWith("table")&&e.cssDisplay!=="table-cell")}function Ct(e){return mn(e)||e.prev&&Ms(e.prev)||un(e)}function Ms(e){return mn(e)||e.kind==="element"&&e.fullName==="br"||un(e)}function un(e){return pn(e)&&hn(e)}function pn(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.linee.sourceSpan.end.line:e.parent.kind==="root"||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function mn(e){switch(e.kind){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function vt(e){return e.lastChild?vt(e.lastChild):e}function Bs(e){return e.children?.some(t=>t.kind!=="text")}function fn(e){if(e)switch(e){case"module":case"text/javascript":case"text/babel":case"text/jsx":case"application/javascript":return"babel";case"application/x-typescript":return"typescript";case"text/markdown":return"markdown";case"text/html":return"html";case"text/x-handlebars-template":return"glimmer";default:if(e.endsWith("json")||e.endsWith("importmap")||e==="speculationrules")return"json"}}function qs(e,t){let{name:r,attrMap:n}=e;if(r!=="script"||Object.prototype.hasOwnProperty.call(n,"src"))return;let{type:i,lang:s}=e.attrMap;return!s&&!i?"babel":_t(t,{language:s})??fn(i)}function Fs(e,t){if(!Tt(e,t))return;let{attrMap:r}=e;if(Object.prototype.hasOwnProperty.call(r,"src"))return;let{type:n,lang:i}=r;return _t(t,{language:i})??fn(n)}function Hs(e,t){if(e.name==="style"){let{lang:r}=e.attrMap;return r?_t(t,{language:r}):"css"}if(e.name==="mj-style"&&t.parser==="mjml")return"css"}function tr(e,t){return qs(e,t)??Hs(e,t)??Fs(e,t)}function ze(e){return e==="block"||e==="list-item"||e.startsWith("table")}function Vs(e){return!ze(e)&&e!=="inline-block"}function Us(e){return!ze(e)&&e!=="inline-block"}function Ws(e){return!ze(e)}function Gs(e){return!ze(e)}function zs(e){return!ze(e)&&e!=="inline-block"}function ae(e){return gn(e).startsWith("pre")}function $s(e,t){let r=e;for(;r;){if(t(r))return!0;r=r.parent}return!1}function dn(e,t){if(le(e,t))return"block";if(e.prev?.kind==="comment"){let n=e.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/u);if(n)return n[1]}let r=!1;if(e.kind==="element"&&e.namespace==="svg")if($s(e,n=>n.fullName==="svg:foreignObject"))r=!0;else return e.name==="svg"?"inline-block":"block";switch(t.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:if(e.kind==="element"&&(!e.namespace||r||se(e))&&Object.prototype.hasOwnProperty.call(Kt,e.name))return Kt[e.name]}return en}function gn(e){return e.kind==="element"&&(!e.namespace||se(e))&&Object.prototype.hasOwnProperty.call(Qt,e.name)?Qt[e.name]:tn}function rr(e){return w(0,w(0,e,"'","'"),""",'"')}function b(e){return rr(e.value)}var Ys=new Set(["template","style","script"]);function $e(e,t){return le(e,t)&&!Ys.has(e.fullName)}function le(e,t){return t.parser==="vue"&&e.kind==="element"&&e.parent.kind==="root"&&e.fullName.toLowerCase()!=="html"}function Tt(e,t){return le(e,t)&&($e(e,t)||e.attrMap.lang&&e.attrMap.lang!=="html")}function _n(e){let t=e.fullName;return t.charAt(0)==="#"||t==="slot-scope"||t==="v-slot"||t.startsWith("v-slot:")}function Sn(e,t){let r=e.parent;if(!le(r,t))return!1;let n=r.fullName,i=e.fullName;return n==="script"&&i==="setup"||n==="style"&&i==="vars"}function bt(e,t=e.value){return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?L(t):L(N.dedentString(Jt(t)),C):B(S,N.split(t))}function wt(e,t){return le(e,t)&&e.name==="script"}function js(e){let{valueSpan:t,value:r}=e;return t.end.offset-t.start.offset===r.length+2}function kt(e,t){if(js(e))return!1;let{value:r}=e;return/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(r)||t.parser==="lwc"&&r.startsWith("{")&&r.endsWith("}")}var En=/\{\{(.+?)\}\}/su,Cn=({node:{value:e}})=>En.test(e);async function vn(e,t,r){let n=b(r.node),i=[];for(let[s,a]of n.split(En).entries())if(s%2===0)i.push(L(a));else try{i.push(E(["{{",A([S,await x(a,e,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),S,"}}"]))}catch{i.push("{{",L(a),"}}")}return i}var nr=e=>(t,r,n)=>x(b(n.node),t,{parser:e},V),Xs=[{test(e){let t=e.node.fullName;return t.startsWith("(")&&t.endsWith(")")||t.startsWith("on-")},print:nr("__ng_action")},{test(e){let t=e.node.fullName;return t.startsWith("[")&&t.endsWith("]")||/^bind(?:on)?-/u.test(t)||/^ng-(?:if|show|hide|class|style)$/u.test(t)},print:nr("__ng_binding")},{test:e=>e.node.fullName.startsWith("*"),print:nr("__ng_directive")},{test:e=>/^i18n(?:-.+)?$/u.test(e.node.fullName),print:Ks},{test:Cn,print:vn}].map(({test:e,print:t})=>({test:(r,n)=>n.parser==="angular"&&e(r),print:t}));function Ks(e,t,{node:r}){let n=b(r);return X(gt(bt(r,n.trim())),!n.includes("@@"))}var Tn=Xs;var bn=({node:e},t)=>!t.parentParser&&e.fullName==="class"&&!e.value.includes("{{"),wn=(e,t,r)=>b(r.node).trim().split(/\s+/u).join(" ");var ir=["onabort","onafterprint","onauxclick","onbeforeinput","onbeforematch","onbeforeprint","onbeforetoggle","onbeforeunload","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncommand","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpagereveal","onpageshow","onpageswap","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onrejectionhandled","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"];var Js=new Set(ir),kn=({node:e},t)=>Js.has(e.fullName)&&!t.parentParser&&!e.value.includes("{{"),xn=(e,t,r)=>x(b(r.node),e,{parser:"babel",__isHtmlInlineEventHandler:!0},()=>!1);function Zs(e){let t=[];for(let r of e.split(";")){if(r=N.trim(r),!r)continue;let[n,...i]=N.split(r);t.push({name:n,value:i})}return t}var yn=Zs;var An=({node:e},t)=>e.fullName==="allow"&&!t.parentParser&&e.parent.fullName==="iframe"&&!e.value.includes("{{");function Nn(e,t,r){let{node:n}=r,i=yn(b(n));return i.length===0?[""]:X(i.map(({name:s,value:a},o)=>[[s,...a].join(" "),o===i.length-1?j(";"):[";",S]]))}function Ln(e){return e===" "||e===` +`||e==="\f"||e==="\r"||e===" "}var ea=/^[ \t\n\r\u000c]+/,ta=/^[, \t\n\r\u000c]+/,ra=/^[^ \t\n\r\u000c]+/,na=/[,]+$/,Pn=/^\d+$/,ia=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function sa(e){let t=e.length,r,n,i,s,a,o=0,c;function u(m){let _,T=m.exec(e.substring(o));if(T)return[_]=T,o+=_.length,_}let p=[];for(;;){if(u(ta),o>=t){if(p.length===0)throw new Error("Must contain one or more image candidate strings.");return p}c=o,r=u(ra),n=[],r.slice(-1)===","?(r=r.replace(na,""),g()):d()}function d(){for(u(ea),i="",s="in descriptor";;){if(a=e.charAt(o),s==="in descriptor")if(Ln(a))i&&(n.push(i),i="",s="after descriptor");else if(a===","){o+=1,i&&n.push(i),g();return}else if(a==="(")i+=a,s="in parens";else if(a===""){i&&n.push(i),g();return}else i+=a;else if(s==="in parens")if(a===")")i+=a,s="in descriptor";else if(a===""){n.push(i),g();return}else i+=a;else if(s==="after descriptor"&&!Ln(a))if(a===""){g();return}else s="in descriptor",o-=1;o+=1}}function g(){let m=!1,_,T,P,z,ne={},Q,ot,Ce,qe,Vt;for(z=0;ze.node.fullName==="srcset"&&(e.parent.fullName==="img"||e.parent.fullName==="source"),In={width:"w",height:"h",density:"x"},aa=Object.keys(In);function Rn(e,t,r){let n=b(r.node),i=On(n),s=aa.filter(m=>i.some(_=>Object.prototype.hasOwnProperty.call(_,m)));if(s.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[a]=s,o=In[a],c=i.map(m=>m.source.value),u=Math.max(...c.map(m=>m.length)),p=i.map(m=>m[a]?String(m[a].value):""),d=p.map(m=>{let _=m.indexOf(".");return _===-1?m.length:_}),g=Math.max(...d);return X(B([",",S],c.map((m,_)=>{let T=[m],P=p[_];if(P){let z=u-m.length+1,ne=g-d[_],Q=" ".repeat(z+ne);T.push(j(Q," "),P+o)}return T})))}var Mn=({node:e},t)=>e.fullName==="style"&&!t.parentParser&&!e.value.includes("{{"),Bn=async(e,t,r)=>X(await e(b(r.node),{parser:"css",__isHTMLStyleAttribute:!0}));var sr=new WeakMap;function oa(e,t){let{root:r}=e;return sr.has(r)||sr.set(r,r.children.some(n=>wt(n,t)&&["ts","typescript"].includes(n.attrMap.lang))),sr.get(r)}var U=oa;function qn(e,t,r){let n=b(r.node);return x(`type T<${n}> = any`,e,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},V)}function Fn(e,t,r,n){let i=b(r.node),s=U(r,n)?"babel-ts":"babel";return x(`function _(${i}) {}`,e,{parser:s,__isVueBindings:!0})}async function Hn(e,t,r,n){let i=b(r.node),{left:s,operator:a,right:o}=la(i),c=U(r,n);return[E(await x(`function _(${s}) {}`,e,{parser:c?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",a," ",await x(o,e,{parser:c?"__ts_expression":"__js_expression"})]}function la(e){let t=/(.*?)\s+(in|of)\s+(.*)/su,r=/,([^,\]}]*)(?:,([^,\]}]*))?$/u,n=/^\(|\)$/gu,i=e.match(t);if(!i)return;let s={for:i[3].trim()};if(!s.for)return;let a=w(0,i[1].trim(),n,""),o=a.match(r);o?(s.alias=a.replace(r,""),s.iterator1=o[1].trim(),o[2]&&(s.iterator2=o[2].trim())):s.alias=a;let c=[s.alias,s.iterator1,s.iterator2];if(!c.some((u,p)=>!u&&(p===0||c.slice(p+1).some(Boolean))))return{left:c.filter(Boolean).join(","),operator:i[2],right:s.for}}var ca=[{test:e=>e.node.fullName==="v-for",print:Hn},{test:(e,t)=>e.node.fullName==="generic"&&wt(e.parent,t),print:qn},{test:({node:e},t)=>_n(e)||Sn(e,t),print:Fn},{test(e){let t=e.node.fullName;return t.startsWith("@")||t.startsWith("v-on:")},print:ua},{test(e){let t=e.node.fullName;return t.startsWith(":")||t.startsWith(".")||t.startsWith("v-bind:")},print:pa},{test:e=>e.node.fullName.startsWith("v-"),print:Vn}].map(({test:e,print:t})=>({test:(r,n)=>n.parser==="vue"&&e(r,n),print:t}));async function ua(e,t,r,n){try{return await Vn(e,t,r,n)}catch(a){if(a.cause?.code!=="BABEL_PARSER_SYNTAX_ERROR")throw a}let i=b(r.node),s=U(r,n)?"__vue_ts_event_binding":"__vue_event_binding";return x(i,e,{parser:s},V)}function pa(e,t,r,n){let i=b(r.node),s=U(r,n)?"__vue_ts_expression":"__vue_expression";return x(i,e,{parser:s},V)}function Vn(e,t,r,n){let i=b(r.node),s=U(r,n)?"__ts_expression":"__js_expression";return x(i,e,{parser:s},V)}var Un=ca;var ha=[{test:Dn,print:Rn},{test:Mn,print:Bn},{test:kn,print:xn},{test:bn,print:wn},{test:An,print:Nn},...Un,...Tn].map(({test:e,print:t})=>({test:e,print:fa(t)}));function ma(e,t){let{node:r}=e,{value:n}=r;if(n)return kt(r,t)?[r.rawName,"=",n]:ha.find(({test:i})=>i(e,t))?.print}function fa(e){return async(t,r,n,i)=>{let s=await e(t,r,n,i);if(s)return s=Gt(s,a=>typeof a=="string"?w(0,a,'"',"""):a),[n.node.rawName,'="',E(s),'"']}}var Wn=ma;var K=e=>e.sourceSpan.start.offset,J=e=>e.sourceSpan.end.offset;function Ye(e,t){return[e.isSelfClosing?"":da(e,t),ce(e,t)]}function da(e,t){return e.lastChild&&he(e.lastChild)?"":[ga(e,t),xt(e,t)]}function ce(e,t){return(e.next?W(e.next):pe(e.parent))?"":[ue(e,t),F(e,t)]}function ga(e,t){return pe(e)?ue(e.lastChild,t):""}function F(e,t){return he(e)?xt(e.parent,t):je(e)?yt(e.next,t):""}function xt(e,t){if(zn(e,t))return"";switch(e.kind){case"ieConditionalComment":return"";case"ieConditionalStartComment":return"]>";case"interpolation":return"}}";case"angularIcuExpression":return"}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function zn(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(oe(e)||Et(e.parent,t))}function W(e){return e.prev&&e.prev.kind!=="docType"&&e.kind!=="angularControlFlowBlock"&&!O(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function pe(e){return e.lastChild?.isTrailingSpaceSensitive&&!e.lastChild.hasTrailingSpaces&&!O(vt(e.lastChild))&&!ae(e)}function he(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&O(vt(e))}function je(e){return e.next&&!O(e.next)&&O(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function _a(e){let t=e.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return t?t[1]?t[1].split(/\s+/u):!0:!1}function Xe(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function Sa(e,t,r){let{node:n}=e;if(!Ne(n.attrs))return n.isSelfClosing?" ":"";let i=n.prev?.kind==="comment"&&_a(n.prev.value),s=typeof i=="boolean"?()=>i:Array.isArray(i)?d=>i.includes(d.rawName):()=>!1,a=e.map(({node:d})=>s(d)?L(t.originalText.slice(K(d),J(d))):r(),"attrs"),o=n.kind==="element"&&n.fullName==="script"&&n.attrs.length===1&&n.attrs[0].fullName==="src"&&n.children.length===0,u=t.singleAttributePerLine&&n.attrs.length>1&&!le(n,t)?C:S,p=[A([o?" ":S,B(u,a)])];return n.firstChild&&Xe(n.firstChild)||n.isSelfClosing&&pe(n.parent)||o?p.push(n.isSelfClosing?" ":""):p.push(t.bracketSameLine?n.isSelfClosing?" ":"":n.isSelfClosing?S:k),p}function Ea(e){return e.firstChild&&Xe(e.firstChild)?"":At(e)}function Ke(e,t,r){let{node:n}=e;return[me(n,t),Sa(e,t,r),n.isSelfClosing?"":Ea(n)]}function me(e,t){return e.prev&&je(e.prev)?"":[H(e,t),yt(e,t)]}function H(e,t){return Xe(e)?At(e.parent):W(e)?ue(e.prev,t):""}var Gn="<${e.rawName}`;default:return`<${e.rawName}`}}function At(e){switch(e.kind){case"ieConditionalComment":return"]>";case"element":if(e.condition)return">";default:return">"}}function Ca(e,t){if(!e.endSourceSpan)return"";let r=e.startSourceSpan.end.offset;e.firstChild&&Xe(e.firstChild)&&(r-=At(e).length);let n=e.endSourceSpan.start.offset;return e.lastChild&&he(e.lastChild)?n+=xt(e,t).length:pe(e)&&(n-=ue(e.lastChild,t).length),t.originalText.slice(r,n)}var Nt=Ca;var va=new Set(["if","else if","for","switch","case"]);function Ta(e,t){let{node:r}=e;switch(r.kind){case"element":if(q(r,t)||r.kind==="interpolation")return;if(!r.isSelfClosing&&Tt(r,t)){let n=tr(r,t);return n?async(i,s)=>{let a=Nt(r,t),o=/^\s*$/u.test(a),c="";return o||(c=await i(Jt(a),{parser:n,__embeddedInHtml:!0}),o=c===""),[H(r,t),E(Ke(e,t,s)),o?"":C,c,o?"":C,Ye(r,t),F(r,t)]}:void 0}break;case"text":if(q(r.parent,t)){let n=tr(r.parent,t);if(n)return async i=>{let s=n==="markdown"?N.dedentString(r.value.replace(/^[^\S\n]*\n/u,"")):r.value,a={parser:n,__embeddedInHtml:!0};if(t.parser==="html"&&n==="babel"){let o="script",{attrMap:c}=r.parent;c&&(c.type==="module"||(c.type==="text/babel"||c.type==="text/jsx")&&c["data-type"]==="module")&&(o="module"),a.__babelSourceType=o}return[Y,H(r,t),await i(s,a),F(r,t)]}}else if(r.parent.kind==="interpolation")return async n=>{let i={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return t.parser==="angular"?i.parser="__ng_interpolation":t.parser==="vue"?i.parser=U(e,t)?"__vue_ts_expression":"__vue_expression":i.parser="__js_expression",[A([S,await n(r.value,i)]),r.parent.next&&W(r.parent.next)?" ":S]};break;case"attribute":return Wn(e,t);case"angularControlFlowBlockParameters":return va.has(e.parent.name)?Yr:void 0;case"angularLetDeclarationInitializer":return n=>x(r.value,n,{parser:"__ng_binding",__isInHtmlAttribute:!1})}}var $n=Ta;var Qe=null;function Je(e){if(Qe!==null&&typeof Qe.property){let t=Qe;return Qe=Je.prototype=null,t}return Qe=Je.prototype=e??Object.create(null),new Je}var ba=10;for(let e=0;e<=ba;e++)Je();function ar(e){return Je(e)}function wa(e,t="type"){ar(e);function r(n){let i=n[t],s=e[i];if(!Array.isArray(s))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:n});return s}return r}var Yn=wa;var I=[["children"],[]],jn={root:I[0],element:["attrs","children"],ieConditionalComment:I[0],ieConditionalStartComment:I[1],ieConditionalEndComment:I[1],interpolation:I[0],text:I[0],docType:I[1],comment:I[1],attribute:I[1],cdata:I[1],angularControlFlowBlock:["children","parameters"],angularControlFlowBlockParameters:I[0],angularControlFlowBlockParameter:I[1],angularLetDeclaration:["init"],angularLetDeclarationInitializer:I[1],angularIcuExpression:["cases"],angularIcuCase:["expression"]};var ka=Yn(jn,"kind"),Xn=ka;var Kn="format";var Qn=/^\s*/u,Jn=/^\s*/u;var Zn=e=>Jn.test(e),ei=e=>Qn.test(e),ti=e=>` + +${e}`;var ri=new Map([["if",new Set(["else if","else"])],["else if",new Set(["else if","else"])],["for",new Set(["empty"])],["defer",new Set(["placeholder","error","loading"])],["placeholder",new Set(["placeholder","error","loading"])],["error",new Set(["placeholder","error","loading"])],["loading",new Set(["placeholder","error","loading"])]]);function ni(e){let t=J(e);return e.kind==="element"&&!e.endSourceSpan&&Ne(e.children)?Math.max(t,ni(M(0,e.children,-1))):t}function Ze(e,t,r){let n=e.node;if(oe(n)){let i=ni(n);return[H(n,t),L(N.trimEnd(t.originalText.slice(K(n)+(n.prev&&je(n.prev)?yt(n).length:0),i-(n.next&&W(n.next)?ue(n,t).length:0)))),F(n,t)]}return r()}function Lt(e,t){return O(e)&&O(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?Ct(t)?C:S:"":Ct(t)?C:k:je(e)&&(oe(t)||t.firstChild||t.isSelfClosing||t.kind==="element"&&t.attrs.length>0)||e.kind==="element"&&e.isSelfClosing&&W(t)?"":!t.isLeadingSpaceSensitive||Ct(t)||W(t)&&e.lastChild&&he(e.lastChild)&&e.lastChild.lastChild&&he(e.lastChild.lastChild)?C:t.hasLeadingSpaces?S:k}function Le(e,t,r){let{node:n}=e;if(er(n))return[Y,...e.map(()=>{let s=e.node,a=s.prev?Lt(s.prev,s):"";return[a?[a,Ge(s.prev)?C:""]:"",Ze(e,t,r)]},"children")];let i=n.children.map(()=>Symbol(""));return e.map(({node:s,index:a})=>{if(O(s)){if(s.prev&&O(s.prev)){let m=Lt(s.prev,s);if(m)return Ge(s.prev)?[C,C,Ze(e,t,r)]:[m,Ze(e,t,r)]}return Ze(e,t,r)}let o=[],c=[],u=[],p=[],d=s.prev?Lt(s.prev,s):"",g=s.next?Lt(s,s.next):"";return d&&(Ge(s.prev)?o.push(C,C):d===C?o.push(C):O(s.prev)?c.push(d):c.push(j("",k,{groupId:i[a-1]}))),g&&(Ge(s)?O(s.next)&&p.push(C,C):g===C?O(s.next)&&p.push(C):u.push(g)),[...o,E([...c,E([Ze(e,t,r),...u],{id:i[a]})]),...p]},"children")}function ii(e,t,r){let{node:n}=e,i=[];if(Na(e)&&i.push("} "),i.push("@",n.name),ya(n))return i.push(";"),i;if(n.parameters&&i.push(" (",E(r("parameters")),")"),!Aa(n)){i.push(" {");let s=si(n);n.children.length>0?(n.firstChild.hasLeadingSpaces=!0,n.lastChild.hasTrailingSpaces=!0,i.push(A([C,Le(e,t,r)])),s&&i.push(C,"}")):s&&i.push("}")}return E(i,{shouldBreak:!0})}function si(e){return!(e.next?.kind==="angularControlFlowBlock"&&ri.get(e.name)?.has(e.next.name))}var xa=e=>e?.kind==="angularControlFlowBlock"&&(e.name==="case"||e.name==="default"),ya=e=>e?.kind==="angularControlFlowBlock"&&e.name==="default never";function Aa(e){return xa(e)&&e.endSourceSpan&&e.endSourceSpan.start.offset===e.endSourceSpan.end.offset}function Na(e){let{previous:t}=e;return t?.kind==="angularControlFlowBlock"&&!oe(t)&&!si(t)}function ai(e,t,r){return[A([k,B([";",S],e.map(r,"children"))]),k]}function oi(e,t,r){let{node:n}=e;return[me(n,t),E([n.switchValue.trim(),", ",n.type,n.cases.length>0?[",",A([S,B(S,e.map(r,"cases"))])]:"",k]),ce(n,t)]}function li(e,t,r){let{node:n}=e;return[n.value," {",E([A([k,e.map(({node:i,isLast:s})=>{let a=[r()];return i.kind==="text"&&(i.hasLeadingSpaces&&a.unshift(S),i.hasTrailingSpaces&&!s&&a.push(S)),a},"expression")]),k]),"}"]}function ci(e,t,r){let{node:n}=e;if(Et(n,t))return[H(n,t),E(Ke(e,t,r)),L(Nt(n,t)),...Ye(n,t),F(n,t)];let i=n.children.length===1&&(n.firstChild.kind==="interpolation"||n.firstChild.kind==="angularIcuExpression")&&n.firstChild.isLeadingSpaceSensitive&&!n.firstChild.hasLeadingSpaces&&n.lastChild.isTrailingSpaceSensitive&&!n.lastChild.hasTrailingSpaces,s=Symbol("element-attr-group-id"),a=p=>E([E(Ke(e,t,r),{id:s}),p,Ye(n,t)]),o=p=>i?Fr(p,{groupId:s}):(q(n,t)||$e(n,t))&&n.parent.kind==="root"&&t.parser==="vue"&&!t.vueIndentScriptAndStyle?p:A(p),c=()=>i?j(k,"",{groupId:s}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?S:n.firstChild.kind==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive?qr(k):k,u=()=>(n.next?W(n.next):pe(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":i?j(k,"",{groupId:s}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?S:(n.lastChild.kind==="comment"||n.lastChild.kind==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${t.tabWidth*(e.ancestors.length-1)}}$`,"u").test(n.lastChild.value)?"":k;return n.children.length===0?a(n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?S:""):a([cn(n)?Y:"",o([c(),Le(e,t,r)]),u()])}var R=(function(e){return e[e.RAW_TEXT=0]="RAW_TEXT",e[e.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",e[e.PARSABLE_DATA=2]="PARSABLE_DATA",e})({});function et(e,t=!0){if(e[0]!=":")return[null,e];let r=e.indexOf(":",1);if(r===-1){if(t)throw new Error(`Unsupported format "${e}" expecting ":namespace:name"`);return[null,e]}return[e.slice(1,r),e.slice(r+1)]}function or(e){return et(e)[1]==="ng-container"}function lr(e){return et(e)[1]==="ng-content"}function Pe(e){return e===null?null:et(e)[0]}function fe(e,t){return e?`:${e}:${t}`:t}var cr={name:"custom-elements"},ur={name:"no-errors-schema"},Z=(function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e[e.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",e})({});var La=/-+([a-z0-9])/g;function ui(e){return e.replace(La,(...t)=>t[1].toUpperCase())}var Pt;function pr(){return Pt||(Pt={},tt(Z.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),tt(Z.STYLE,["*|style"]),tt(Z.URL,["*|formAction","area|href","a|href","a|xlink:href","form|action","annotation|href","annotation|xlink:href","annotation-xml|href","annotation-xml|xlink:href","maction|href","maction|xlink:href","malignmark|href","malignmark|xlink:href","math|href","math|xlink:href","mroot|href","mroot|xlink:href","msqrt|href","msqrt|xlink:href","merror|href","merror|xlink:href","mfrac|href","mfrac|xlink:href","mglyph|href","mglyph|xlink:href","msub|href","msub|xlink:href","msup|href","msup|xlink:href","msubsup|href","msubsup|xlink:href","mmultiscripts|href","mmultiscripts|xlink:href","mprescripts|href","mprescripts|xlink:href","mi|href","mi|xlink:href","mn|href","mn|xlink:href","mo|href","mo|xlink:href","mpadded|href","mpadded|xlink:href","mphantom|href","mphantom|xlink:href","mrow|href","mrow|xlink:href","ms|href","ms|xlink:href","mspace|href","mspace|xlink:href","mstyle|href","mstyle|xlink:href","mtable|href","mtable|xlink:href","mtd|href","mtd|xlink:href","mtr|href","mtr|xlink:href","mtext|href","mtext|xlink:href","mover|href","mover|xlink:href","munder|href","munder|xlink:href","munderover|href","munderover|xlink:href","semantics|href","semantics|xlink:href","none|href","none|xlink:href","img|src","video|src"]),tt(Z.RESOURCE_URL,["base|href","embed|src","frame|src","iframe|src","link|href","object|codebase","object|data","script|src","script|href","script|xlink:href"]),tt(Z.ATTRIBUTE_NO_BINDING,["animate|attributeName","animate|values","animate|to","animate|from","set|to","set|attributeName","animateMotion|attributeName","animateTransform|attributeName","unknown|attributeName","unknown|values","unknown|to","unknown|from","iframe|sandbox","iframe|allow","iframe|allowFullscreen","iframe|referrerPolicy","iframe|csp","iframe|fetchPriority","unknown|sandbox","unknown|allow","unknown|allowFullscreen","unknown|referrerPolicy","unknown|csp","unknown|fetchPriority"])),Pt}function tt(e,t){for(let r of t)Pt[r.toLowerCase()]=e}var pi=class{};var Pa="boolean",Oa="number",Da="string",Ia="object",Ra=["[Element]|textContent,%ariaActiveDescendantElement,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColIndexText,%ariaColSpan,%ariaControlsElements,%ariaCurrent,%ariaDescribedByElements,%ariaDescription,%ariaDetailsElements,%ariaDisabled,%ariaErrorMessageElements,%ariaExpanded,%ariaFlowToElements,%ariaHasPopup,%ariaHidden,%ariaInvalid,%ariaKeyShortcuts,%ariaLabel,%ariaLabelledByElements,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaOwnsElements,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowIndexText,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,search,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","geolocation^[HTMLElement]|accuracymode,!autolocate,*location,*promptaction,*promptdismiss,*validationstatuschange,!watch","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","selectedcontent^[HTMLElement]|","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","search^[HTMLELement]|","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|",":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":math:math^:math:|",":math:maction^:math:|",":math:menclose^:math:|",":math:merror^:math:|",":math:mfenced^:math:|",":math:mfrac^:math:|",":math:mi^:math:|",":math:mmultiscripts^:math:|",":math:mn^:math:|",":math:mo^:math:|",":math:mover^:math:|",":math:mpadded^:math:|",":math:mphantom^:math:|",":math:mroot^:math:|",":math:mrow^:math:|",":math:ms^:math:|",":math:mspace^:math:|",":math:msqrt^:math:|",":math:mstyle^:math:|",":math:msub^:math:|",":math:msubsup^:math:|",":math:msup^:math:|",":math:mtable^:math:|",":math:mtd^:math:|",":math:mtext^:math:|",":math:mtr^:math:|",":math:munder^:math:|",":math:munderover^:math:|",":math:semantics^:math:|"],hi=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex","aria-activedescendant":"ariaActiveDescendantElement","aria-atomic":"ariaAtomic","aria-autocomplete":"ariaAutoComplete","aria-busy":"ariaBusy","aria-checked":"ariaChecked","aria-colcount":"ariaColCount","aria-colindex":"ariaColIndex","aria-colindextext":"ariaColIndexText","aria-colspan":"ariaColSpan","aria-controls":"ariaControlsElements","aria-current":"ariaCurrent","aria-describedby":"ariaDescribedByElements","aria-description":"ariaDescription","aria-details":"ariaDetailsElements","aria-disabled":"ariaDisabled","aria-errormessage":"ariaErrorMessageElements","aria-expanded":"ariaExpanded","aria-flowto":"ariaFlowToElements","aria-haspopup":"ariaHasPopup","aria-hidden":"ariaHidden","aria-invalid":"ariaInvalid","aria-keyshortcuts":"ariaKeyShortcuts","aria-label":"ariaLabel","aria-labelledby":"ariaLabelledByElements","aria-level":"ariaLevel","aria-live":"ariaLive","aria-modal":"ariaModal","aria-multiline":"ariaMultiLine","aria-multiselectable":"ariaMultiSelectable","aria-orientation":"ariaOrientation","aria-owns":"ariaOwnsElements","aria-placeholder":"ariaPlaceholder","aria-posinset":"ariaPosInSet","aria-pressed":"ariaPressed","aria-readonly":"ariaReadOnly","aria-required":"ariaRequired","aria-roledescription":"ariaRoleDescription","aria-rowcount":"ariaRowCount","aria-rowindex":"ariaRowIndex","aria-rowindextext":"ariaRowIndexText","aria-rowspan":"ariaRowSpan","aria-selected":"ariaSelected","aria-setsize":"ariaSetSize","aria-sort":"ariaSort","aria-valuemax":"ariaValueMax","aria-valuemin":"ariaValueMin","aria-valuenow":"ariaValueNow","aria-valuetext":"ariaValueText"})),Ma=Array.from(hi).reduce((e,[t,r])=>(e.set(t,r),e),new Map),mi=class extends pi{_schema=new Map;_eventSchema=new Map;constructor(){super(),Ra.forEach(e=>{let t=new Map,r=new Set,[n,i]=e.split("|"),s=i.split(","),[a,o]=n.split("^");a.split(",").forEach(u=>{this._schema.set(u.toLowerCase(),t),this._eventSchema.set(u.toLowerCase(),r)});let c=o&&this._schema.get(o.toLowerCase());if(c){for(let[u,p]of c)t.set(u,p);for(let u of this._eventSchema.get(o.toLowerCase()))r.add(u)}s.forEach(u=>{if(u.length>0)switch(u[0]){case"*":r.add(u.substring(1));break;case"!":t.set(u.substring(1),Pa);break;case"#":t.set(u.substring(1),Oa);break;case"%":t.set(u.substring(1),Ia);break;default:t.set(u,Da)}})})}hasProperty(e,t,r){if(r.some(n=>n.name===ur.name))return!0;if(e.indexOf("-")>-1){if(or(e)||lr(e))return!1;if(r.some(n=>n.name===cr.name))return!0}return(this._schema.get(e.toLowerCase())||this._schema.get("unknown")).has(t)}hasElement(e,t){return t.some(r=>r.name===ur.name)||e.indexOf("-")>-1&&(or(e)||lr(e)||t.some(r=>r.name===cr.name))?!0:this._schema.has(e.toLowerCase())}securityContext(e,t,r){r&&(t=this.getMappedPropName(t)),e=e.toLowerCase(),t=t.toLowerCase();let n=pr()[e+"|"+t];return n||(n=pr()["*|"+t],n||Z.NONE)}getMappedPropName(e){return hi.get(e)??e}getDefaultComponentElementName(){return"ng-component"}validateProperty(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=... +If '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let t=this._schema.get(e.toLowerCase())||this._schema.get("unknown");return Array.from(t.keys()).map(r=>Ma.get(r)??r)}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return ui(e)}normalizeAnimationStyleValue(e,t,r){let n="",i=r.toString().trim(),s=null;if(Ba(e)&&r!==0&&r!=="0")if(typeof r=="number")n="px";else{let a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&(s=`Please provide a CSS unit value for ${t}:${r}`)}return{error:s,value:i+n}}};function Ba(e){switch(e){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}var f=class{closedByChildren={};contentType;closedByParent=!1;implicitNamespacePrefix;isVoid;ignoreFirstLf;canSelfClose;preventNamespaceInheritance;constructor({closedByChildren:e,implicitNamespacePrefix:t,contentType:r=R.PARSABLE_DATA,closedByParent:n=!1,isVoid:i=!1,ignoreFirstLf:s=!1,preventNamespaceInheritance:a=!1,canSelfClose:o=!1}={}){e&&e.length>0&&e.forEach(c=>this.closedByChildren[c]=!0),this.isVoid=i,this.closedByParent=n||i,this.implicitNamespacePrefix=t||null,this.contentType=r,this.ignoreFirstLf=s,this.preventNamespaceInheritance=a,this.canSelfClose=o??i}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){return typeof this.contentType=="object"?(e===void 0?void 0:this.contentType[e])??this.contentType.default:this.contentType}},fi,rt;function Oe(e){return rt||(fi=new f({canSelfClose:!0}),rt=Object.assign(Object.create(null),{base:new f({isVoid:!0}),meta:new f({isVoid:!0}),area:new f({isVoid:!0}),embed:new f({isVoid:!0}),link:new f({isVoid:!0}),img:new f({isVoid:!0}),input:new f({isVoid:!0}),param:new f({isVoid:!0}),hr:new f({isVoid:!0}),br:new f({isVoid:!0}),source:new f({isVoid:!0}),track:new f({isVoid:!0}),wbr:new f({isVoid:!0}),p:new f({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new f({closedByChildren:["tbody","tfoot"]}),tbody:new f({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new f({closedByChildren:["tbody"],closedByParent:!0}),tr:new f({closedByChildren:["tr"],closedByParent:!0}),td:new f({closedByChildren:["td","th"],closedByParent:!0}),th:new f({closedByChildren:["td","th"],closedByParent:!0}),col:new f({isVoid:!0}),svg:new f({implicitNamespacePrefix:"svg"}),foreignObject:new f({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new f({implicitNamespacePrefix:"math"}),li:new f({closedByChildren:["li"],closedByParent:!0}),dt:new f({closedByChildren:["dt","dd"]}),dd:new f({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new f({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new f({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new f({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new f({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new f({closedByChildren:["optgroup"],closedByParent:!0}),option:new f({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new f({ignoreFirstLf:!0}),listing:new f({ignoreFirstLf:!0}),style:new f({contentType:R.RAW_TEXT}),script:new f({contentType:R.RAW_TEXT}),title:new f({contentType:{default:R.ESCAPABLE_RAW_TEXT,svg:R.PARSABLE_DATA}}),textarea:new f({contentType:R.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new mi().allKnownElementNames().forEach(t=>{!rt[t]&&Pe(t)===null&&(rt[t]=new f({canSelfClose:!1}))})),rt[e]??fi}var De=class gi{constructor(t,r,n,i){this.file=t,this.offset=r,this.line=n,this.col=i}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(t){let r=this.file.content,n=r.length,i=this.offset,s=this.line,a=this.col;for(;i>0&&t<0;)if(i--,t++,r.charCodeAt(i)==10){s--;let o=r.substring(0,i-1).lastIndexOf(` +`);a=o>0?i-o:i}else a--;for(;i0;){let o=r.charCodeAt(i);i++,t--,o==10?(s++,a=0):a++}return new gi(this.file,i,s,a)}getContext(t,r){let n=this.file.content,i=this.offset;if(i!=null){i>n.length-1&&(i=n.length-1);let s=i,a=0,o=0;for(;a0&&(i--,a++,!(n[i]==` +`&&++o==r)););for(a=0,o=0;a]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}};var de=class{constructor(e,t){this.sourceSpan=e,this.i18n=t}},_i=class extends de{constructor(e,t,r,n){super(t,n),this.value=e,this.tokens=r}visit(e,t){return e.visitText(this,t)}kind="text"},Si=class extends de{constructor(e,t,r,n){super(t,n),this.value=e,this.tokens=r}visit(e,t){return e.visitCdata(this,t)}kind="cdata"},Ei=class extends de{constructor(e,t,r,n,i,s){super(n,s),this.switchValue=e,this.type=t,this.cases=r,this.switchValueSourceSpan=i}visit(e,t){return e.visitExpansion(this,t)}kind="expansion"},Ci=class{constructor(e,t,r,n,i){this.value=e,this.expression=t,this.sourceSpan=r,this.valueSourceSpan=n,this.expSourceSpan=i}visit(e,t){return e.visitExpansionCase(this,t)}kind="expansionCase"},vi=class extends de{constructor(e,t,r,n,i,s,a){super(r,a),this.name=e,this.value=t,this.keySpan=n,this.valueSpan=i,this.valueTokens=s}visit(e,t){return e.visitAttribute(this,t)}kind="attribute";get nameSpan(){return this.keySpan}},te=class extends de{constructor(e,t,r,n,i,s,a,o=null,c=null,u,p){super(s,p),this.name=e,this.attrs=t,this.directives=r,this.children=n,this.isSelfClosing=i,this.startSourceSpan=a,this.endSourceSpan=o,this.nameSpan=c,this.isVoid=u}visit(e,t){return e.visitElement(this,t)}kind="element"},Ti=class{constructor(e,t){this.value=e,this.sourceSpan=t}visit(e,t){return e.visitComment(this,t)}kind="comment"},bi=class{constructor(e,t){this.value=e,this.sourceSpan=t}visit(e,t){return e.visitDocType(this,t)}kind="docType"},ge=class extends de{constructor(e,t,r,n,i,s,a=null,o){super(n,o),this.name=e,this.parameters=t,this.children=r,this.nameSpan=i,this.startSourceSpan=s,this.endSourceSpan=a}visit(e,t){return e.visitBlock(this,t)}kind="block"},G=class extends de{constructor(e,t,r,n,i,s,a,o,c,u=null,p){super(o,p),this.componentName=e,this.tagName=t,this.fullName=r,this.attrs=n,this.directives=i,this.children=s,this.isSelfClosing=a,this.startSourceSpan=c,this.endSourceSpan=u}visit(e,t){return e.visitComponent(this,t)}kind="component"},wi=class{constructor(e,t,r,n,i=null){this.name=e,this.attrs=t,this.sourceSpan=r,this.startSourceSpan=n,this.endSourceSpan=i}visit(e,t){return e.visitDirective(this,t)}kind="directive"},hr=class{constructor(e,t){this.expression=e,this.sourceSpan=t}visit(e,t){return e.visitBlockParameter(this,t)}kind="blockParameter";startSourceSpan=null;endSourceSpan=null},mr=class{constructor(e,t,r,n,i){this.name=e,this.value=t,this.sourceSpan=r,this.nameSpan=n,this.valueSpan=i}visit(e,t){return e.visitLetDeclaration(this,t)}kind="letDeclaration";startSourceSpan=null;endSourceSpan=null};function Ot(e,t,r=null){let n=[],i=e.visit?s=>e.visit(s,r)||s.visit(e,r):s=>s.visit(e,r);return t.forEach(s=>{let a=i(s);a&&n.push(a)}),n}var fr=class{constructor(){}visitElement(e,t){this.visitChildren(t,r=>{r(e.attrs),r(e.directives),r(e.children)})}visitAttribute(e,t){}visitText(e,t){}visitCdata(e,t){}visitComment(e,t){}visitDocType(e,t){}visitExpansion(e,t){return this.visitChildren(t,r=>{r(e.cases)})}visitExpansionCase(e,t){}visitBlock(e,t){this.visitChildren(t,r=>{r(e.parameters),r(e.children)})}visitBlockParameter(e,t){}visitLetDeclaration(e,t){}visitComponent(e,t){this.visitChildren(t,r=>{r(e.attrs),r(e.children)})}visitDirective(e,t){this.visitChildren(t,r=>{r(e.attrs)})}visitChildren(e,t){let r=[],n=this;function i(s){s&&r.push(Ot(n,s,e))}return t(i),Array.prototype.concat.apply([],r)}};var _e={AElig:"\xC6",AMP:"&",amp:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",af:"\u2061",Aring:"\xC5",angst:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",colone:"\u2254",coloneq:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",setminus:"\u2216",setmn:"\u2216",smallsetminus:"\u2216",ssetmn:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",doublebarwedge:"\u2306",Bcy:"\u0411",Because:"\u2235",becaus:"\u2235",because:"\u2235",Bernoullis:"\u212C",Bscr:"\u212C",bernou:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",breve:"\u02D8",Bumpeq:"\u224E",HumpDownHump:"\u224E",bump:"\u224E",CHcy:"\u0427",COPY:"\xA9",copy:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",DD:"\u2145",Cayleys:"\u212D",Cfr:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",cedil:"\xB8",CenterDot:"\xB7",centerdot:"\xB7",middot:"\xB7",Chi:"\u03A7",CircleDot:"\u2299",odot:"\u2299",CircleMinus:"\u2296",ominus:"\u2296",CirclePlus:"\u2295",oplus:"\u2295",CircleTimes:"\u2297",otimes:"\u2297",ClockwiseContourIntegral:"\u2232",cwconint:"\u2232",CloseCurlyDoubleQuote:"\u201D",rdquo:"\u201D",rdquor:"\u201D",CloseCurlyQuote:"\u2019",rsquo:"\u2019",rsquor:"\u2019",Colon:"\u2237",Proportion:"\u2237",Colone:"\u2A74",Congruent:"\u2261",equiv:"\u2261",Conint:"\u222F",DoubleContourIntegral:"\u222F",ContourIntegral:"\u222E",conint:"\u222E",oint:"\u222E",Copf:"\u2102",complexes:"\u2102",Coproduct:"\u2210",coprod:"\u2210",CounterClockwiseContourIntegral:"\u2233",awconint:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",asympeq:"\u224D",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",ddagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",DoubleLeftTee:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",nabla:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",acute:"\xB4",DiacriticalDot:"\u02D9",dot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",dblac:"\u02DD",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"\u02DC",tilde:"\u02DC",Diamond:"\u22C4",diam:"\u22C4",diamond:"\u22C4",DifferentialD:"\u2146",dd:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DoubleDot:"\xA8",die:"\xA8",uml:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",doteq:"\u2250",esdot:"\u2250",DoubleDownArrow:"\u21D3",Downarrow:"\u21D3",dArr:"\u21D3",DoubleLeftArrow:"\u21D0",Leftarrow:"\u21D0",lArr:"\u21D0",DoubleLeftRightArrow:"\u21D4",Leftrightarrow:"\u21D4",hArr:"\u21D4",iff:"\u21D4",DoubleLongLeftArrow:"\u27F8",Longleftarrow:"\u27F8",xlArr:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",Longleftrightarrow:"\u27FA",xhArr:"\u27FA",DoubleLongRightArrow:"\u27F9",Longrightarrow:"\u27F9",xrArr:"\u27F9",DoubleRightArrow:"\u21D2",Implies:"\u21D2",Rightarrow:"\u21D2",rArr:"\u21D2",DoubleRightTee:"\u22A8",vDash:"\u22A8",DoubleUpArrow:"\u21D1",Uparrow:"\u21D1",uArr:"\u21D1",DoubleUpDownArrow:"\u21D5",Updownarrow:"\u21D5",vArr:"\u21D5",DoubleVerticalBar:"\u2225",par:"\u2225",parallel:"\u2225",shortparallel:"\u2225",spar:"\u2225",DownArrow:"\u2193",ShortDownArrow:"\u2193",darr:"\u2193",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",duarr:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",leftharpoondown:"\u21BD",lhard:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",rhard:"\u21C1",rightharpoondown:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",top:"\u22A4",DownTeeArrow:"\u21A7",mapstodown:"\u21A7",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrave:"\xC8",Element:"\u2208",in:"\u2208",isin:"\u2208",isinv:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",eqsim:"\u2242",esim:"\u2242",Equilibrium:"\u21CC",rightleftharpoons:"\u21CC",rlhar:"\u21CC",Escr:"\u2130",expectation:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",exist:"\u2203",ExponentialE:"\u2147",ee:"\u2147",exponentiale:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",blacksquare:"\u25AA",squarf:"\u25AA",squf:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",forall:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",gt:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",ggg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",ge:"\u2265",geq:"\u2265",GreaterEqualLess:"\u22DB",gel:"\u22DB",gtreqless:"\u22DB",GreaterFullEqual:"\u2267",gE:"\u2267",geqq:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",gl:"\u2277",gtrless:"\u2277",GreaterSlantEqual:"\u2A7E",geqslant:"\u2A7E",ges:"\u2A7E",GreaterTilde:"\u2273",gsim:"\u2273",gtrsim:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",NestedGreaterGreater:"\u226B",gg:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",caron:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",Poincareplane:"\u210C",HilbertSpace:"\u210B",Hscr:"\u210B",hamilt:"\u210B",Hopf:"\u210D",quaternions:"\u210D",HorizontalLine:"\u2500",boxh:"\u2500",Hstrok:"\u0126",HumpEqual:"\u224F",bumpe:"\u224F",bumpeq:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Im:"\u2111",image:"\u2111",imagpart:"\u2111",Igrave:"\xCC",Imacr:"\u012A",ImaginaryI:"\u2148",ii:"\u2148",Int:"\u222C",Integral:"\u222B",int:"\u222B",Intersection:"\u22C2",bigcap:"\u22C2",xcap:"\u22C2",InvisibleComma:"\u2063",ic:"\u2063",InvisibleTimes:"\u2062",it:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",imagline:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",LT:"<",lt:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Lscr:"\u2112",lagran:"\u2112",Larr:"\u219E",twoheadleftarrow:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",lang:"\u27E8",langle:"\u27E8",LeftArrow:"\u2190",ShortLeftArrow:"\u2190",larr:"\u2190",leftarrow:"\u2190",slarr:"\u2190",LeftArrowBar:"\u21E4",larrb:"\u21E4",LeftArrowRightArrow:"\u21C6",leftrightarrows:"\u21C6",lrarr:"\u21C6",LeftCeiling:"\u2308",lceil:"\u2308",LeftDoubleBracket:"\u27E6",lobrk:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",dharl:"\u21C3",downharpoonleft:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",lfloor:"\u230A",LeftRightArrow:"\u2194",harr:"\u2194",leftrightarrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",dashv:"\u22A3",LeftTeeArrow:"\u21A4",mapstoleft:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",vartriangleleft:"\u22B2",vltri:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",ltrie:"\u22B4",trianglelefteq:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",uharl:"\u21BF",upharpoonleft:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",leftharpoonup:"\u21BC",lharu:"\u21BC",LeftVectorBar:"\u2952",LessEqualGreater:"\u22DA",leg:"\u22DA",lesseqgtr:"\u22DA",LessFullEqual:"\u2266",lE:"\u2266",leqq:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",lg:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",leqslant:"\u2A7D",les:"\u2A7D",LessTilde:"\u2272",lesssim:"\u2272",lsim:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",lAarr:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",longleftarrow:"\u27F5",xlarr:"\u27F5",LongLeftRightArrow:"\u27F7",longleftrightarrow:"\u27F7",xharr:"\u27F7",LongRightArrow:"\u27F6",longrightarrow:"\u27F6",xrarr:"\u27F6",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",swarr:"\u2199",swarrow:"\u2199",LowerRightArrow:"\u2198",searr:"\u2198",searrow:"\u2198",Lsh:"\u21B0",lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",NestedLessLess:"\u226A",ll:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mscr:"\u2133",phmmat:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",mnplus:"\u2213",mp:"\u2213",Mopf:"\u{1D544}",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",ZeroWidthSpace:"\u200B",NewLine:` +`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nbsp:"\xA0",Nopf:"\u2115",naturals:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",nequiv:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",npar:"\u2226",nparallel:"\u2226",nshortparallel:"\u2226",nspar:"\u2226",NotElement:"\u2209",notin:"\u2209",notinva:"\u2209",NotEqual:"\u2260",ne:"\u2260",NotEqualTilde:"\u2242\u0338",nesim:"\u2242\u0338",NotExists:"\u2204",nexist:"\u2204",nexists:"\u2204",NotGreater:"\u226F",ngt:"\u226F",ngtr:"\u226F",NotGreaterEqual:"\u2271",nge:"\u2271",ngeq:"\u2271",NotGreaterFullEqual:"\u2267\u0338",ngE:"\u2267\u0338",ngeqq:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",nGtv:"\u226B\u0338",NotGreaterLess:"\u2279",ntgl:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",NotGreaterTilde:"\u2275",ngsim:"\u2275",NotHumpDownHump:"\u224E\u0338",nbump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",nbumpe:"\u224F\u0338",NotLeftTriangle:"\u22EA",nltri:"\u22EA",ntriangleleft:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",nltrie:"\u22EC",ntrianglelefteq:"\u22EC",NotLess:"\u226E",nless:"\u226E",nlt:"\u226E",NotLessEqual:"\u2270",nle:"\u2270",nleq:"\u2270",NotLessGreater:"\u2278",ntlg:"\u2278",NotLessLess:"\u226A\u0338",nLtv:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",NotLessTilde:"\u2274",nlsim:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",npr:"\u2280",nprec:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",npre:"\u2AAF\u0338",npreceq:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",nprcue:"\u22E0",NotReverseElement:"\u220C",notni:"\u220C",notniva:"\u220C",NotRightTriangle:"\u22EB",nrtri:"\u22EB",ntriangleright:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",nrtrie:"\u22ED",ntrianglerighteq:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",nsqsube:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",nsqsupe:"\u22E3",NotSubset:"\u2282\u20D2",nsubset:"\u2282\u20D2",vnsub:"\u2282\u20D2",NotSubsetEqual:"\u2288",nsube:"\u2288",nsubseteq:"\u2288",NotSucceeds:"\u2281",nsc:"\u2281",nsucc:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",nsce:"\u2AB0\u0338",nsucceq:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",nsccue:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",nsupset:"\u2283\u20D2",vnsup:"\u2283\u20D2",NotSupersetEqual:"\u2289",nsupe:"\u2289",nsupseteq:"\u2289",NotTilde:"\u2241",nsim:"\u2241",NotTildeEqual:"\u2244",nsime:"\u2244",nsimeq:"\u2244",NotTildeFullEqual:"\u2247",ncong:"\u2247",NotTildeTilde:"\u2249",nap:"\u2249",napprox:"\u2249",NotVerticalBar:"\u2224",nmid:"\u2224",nshortmid:"\u2224",nsmid:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",ohm:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",ldquo:"\u201C",OpenCurlyQuote:"\u2018",lsquo:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",oline:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",tbrk:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",part:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",plusmn:"\xB1",pm:"\xB1",Popf:"\u2119",primes:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",pr:"\u227A",prec:"\u227A",PrecedesEqual:"\u2AAF",pre:"\u2AAF",preceq:"\u2AAF",PrecedesSlantEqual:"\u227C",prcue:"\u227C",preccurlyeq:"\u227C",PrecedesTilde:"\u227E",precsim:"\u227E",prsim:"\u227E",Prime:"\u2033",Product:"\u220F",prod:"\u220F",Proportional:"\u221D",prop:"\u221D",propto:"\u221D",varpropto:"\u221D",vprop:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',quot:'"',Qfr:"\u{1D514}",Qopf:"\u211A",rationals:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",drbkarow:"\u2910",REG:"\xAE",circledR:"\xAE",reg:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",twoheadrightarrow:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",Rfr:"\u211C",real:"\u211C",realpart:"\u211C",ReverseElement:"\u220B",SuchThat:"\u220B",ni:"\u220B",niv:"\u220B",ReverseEquilibrium:"\u21CB",leftrightharpoons:"\u21CB",lrhar:"\u21CB",ReverseUpEquilibrium:"\u296F",duhar:"\u296F",Rho:"\u03A1",RightAngleBracket:"\u27E9",rang:"\u27E9",rangle:"\u27E9",RightArrow:"\u2192",ShortRightArrow:"\u2192",rarr:"\u2192",rightarrow:"\u2192",srarr:"\u2192",RightArrowBar:"\u21E5",rarrb:"\u21E5",RightArrowLeftArrow:"\u21C4",rightleftarrows:"\u21C4",rlarr:"\u21C4",RightCeiling:"\u2309",rceil:"\u2309",RightDoubleBracket:"\u27E7",robrk:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",dharr:"\u21C2",downharpoonright:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rfloor:"\u230B",RightTee:"\u22A2",vdash:"\u22A2",RightTeeArrow:"\u21A6",map:"\u21A6",mapsto:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",vartriangleright:"\u22B3",vrtri:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",rtrie:"\u22B5",trianglerighteq:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",uharr:"\u21BE",upharpoonright:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",rharu:"\u21C0",rightharpoonup:"\u21C0",RightVectorBar:"\u2953",Ropf:"\u211D",reals:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",rAarr:"\u21DB",Rscr:"\u211B",realine:"\u211B",Rsh:"\u21B1",rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortUpArrow:"\u2191",UpArrow:"\u2191",uarr:"\u2191",uparrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",compfn:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",radic:"\u221A",Square:"\u25A1",squ:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",sqcap:"\u2293",SquareSubset:"\u228F",sqsub:"\u228F",sqsubset:"\u228F",SquareSubsetEqual:"\u2291",sqsube:"\u2291",sqsubseteq:"\u2291",SquareSuperset:"\u2290",sqsup:"\u2290",sqsupset:"\u2290",SquareSupersetEqual:"\u2292",sqsupe:"\u2292",sqsupseteq:"\u2292",SquareUnion:"\u2294",sqcup:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",sstarf:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",sube:"\u2286",subseteq:"\u2286",Succeeds:"\u227B",sc:"\u227B",succ:"\u227B",SucceedsEqual:"\u2AB0",sce:"\u2AB0",succeq:"\u2AB0",SucceedsSlantEqual:"\u227D",sccue:"\u227D",succcurlyeq:"\u227D",SucceedsTilde:"\u227F",scsim:"\u227F",succsim:"\u227F",Sum:"\u2211",sum:"\u2211",Sup:"\u22D1",Supset:"\u22D1",Superset:"\u2283",sup:"\u2283",supset:"\u2283",SupersetEqual:"\u2287",supe:"\u2287",supseteq:"\u2287",THORN:"\xDE",TRADE:"\u2122",trade:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",there4:"\u2234",therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",Tilde:"\u223C",sim:"\u223C",thicksim:"\u223C",thksim:"\u223C",TildeEqual:"\u2243",sime:"\u2243",simeq:"\u2243",TildeFullEqual:"\u2245",cong:"\u2245",TildeTilde:"\u2248",ap:"\u2248",approx:"\u2248",asymp:"\u2248",thickapprox:"\u2248",thkap:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",tdot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",lowbar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",bbrk:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",bigcup:"\u22C3",xcup:"\u22C3",UnionPlus:"\u228E",uplus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",udarr:"\u21C5",UpDownArrow:"\u2195",updownarrow:"\u2195",varr:"\u2195",UpEquilibrium:"\u296E",udhar:"\u296E",UpTee:"\u22A5",bot:"\u22A5",bottom:"\u22A5",perp:"\u22A5",UpTeeArrow:"\u21A5",mapstoup:"\u21A5",UpperLeftArrow:"\u2196",nwarr:"\u2196",nwarrow:"\u2196",UpperRightArrow:"\u2197",nearr:"\u2197",nearrow:"\u2197",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",bigvee:"\u22C1",xvee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",mid:"\u2223",shortmid:"\u2223",smid:"\u2223",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",wr:"\u2240",wreath:"\u2240",VeryThinSpace:"\u200A",hairsp:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",bigwedge:"\u22C0",xwedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",Zeta:"\u0396",Zfr:"\u2128",zeetrf:"\u2128",Zopf:"\u2124",integers:"\u2124",Zscr:"\u{1D4B5}",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",mstpos:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acy:"\u0430",aelig:"\xE6",afr:"\u{1D51E}",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",and:"\u2227",wedge:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",angle:"\u2220",ange:"\u29A4",angmsd:"\u2221",measuredangle:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",approxeq:"\u224A",apid:"\u224B",apos:"'",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",midast:"*",atilde:"\xE3",auml:"\xE4",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",bcong:"\u224C",backepsilon:"\u03F6",bepsi:"\u03F6",backprime:"\u2035",bprime:"\u2035",backsim:"\u223D",bsim:"\u223D",backsimeq:"\u22CD",bsime:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrktbrk:"\u23B6",bcy:"\u0431",bdquo:"\u201E",ldquor:"\u201E",bemptyv:"\u29B0",beta:"\u03B2",beth:"\u2136",between:"\u226C",twixt:"\u226C",bfr:"\u{1D51F}",bigcirc:"\u25EF",xcirc:"\u25EF",bigodot:"\u2A00",xodot:"\u2A00",bigoplus:"\u2A01",xoplus:"\u2A01",bigotimes:"\u2A02",xotime:"\u2A02",bigsqcup:"\u2A06",xsqcup:"\u2A06",bigstar:"\u2605",starf:"\u2605",bigtriangledown:"\u25BD",xdtri:"\u25BD",bigtriangleup:"\u25B3",xutri:"\u25B3",biguplus:"\u2A04",xuplus:"\u2A04",bkarow:"\u290D",rbarr:"\u290D",blacklozenge:"\u29EB",lozf:"\u29EB",blacktriangle:"\u25B4",utrif:"\u25B4",blacktriangledown:"\u25BE",dtrif:"\u25BE",blacktriangleleft:"\u25C2",ltrif:"\u25C2",blacktriangleright:"\u25B8",rtrif:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",minusb:"\u229F",boxplus:"\u229E",plusb:"\u229E",boxtimes:"\u22A0",timesb:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bumpE:"\u2AAE",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cemptyv:"\u29B2",cent:"\xA2",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",cire:"\u2257",circlearrowleft:"\u21BA",olarr:"\u21BA",circlearrowright:"\u21BB",orarr:"\u21BB",circledS:"\u24C8",oS:"\u24C8",circledast:"\u229B",oast:"\u229B",circledcirc:"\u229A",ocir:"\u229A",circleddash:"\u229D",odash:"\u229D",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",comma:",",commat:"@",comp:"\u2201",complement:"\u2201",congdot:"\u2A6D",copf:"\u{1D554}",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",curlyeqprec:"\u22DE",cuesc:"\u22DF",curlyeqsucc:"\u22DF",cularr:"\u21B6",curvearrowleft:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curvearrowright:"\u21B7",curarrm:"\u293C",curlyvee:"\u22CE",cuvee:"\u22CE",curlywedge:"\u22CF",cuwed:"\u22CF",curren:"\xA4",cwint:"\u2231",cylcty:"\u232D",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",dash:"\u2010",hyphen:"\u2010",dbkarow:"\u290F",rBarr:"\u290F",dcaron:"\u010F",dcy:"\u0434",ddarr:"\u21CA",downdownarrows:"\u21CA",ddotseq:"\u2A77",eDDot:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",diamondsuit:"\u2666",diams:"\u2666",digamma:"\u03DD",gammad:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",llcorner:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",doteqdot:"\u2251",eDot:"\u2251",dotminus:"\u2238",minusd:"\u2238",dotplus:"\u2214",plusdo:"\u2214",dotsquare:"\u22A1",sdotb:"\u22A1",drcorn:"\u231F",lrcorner:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",triangledown:"\u25BF",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",eqcirc:"\u2256",ecirc:"\xEA",ecolon:"\u2255",eqcolon:"\u2255",ecy:"\u044D",edot:"\u0117",efDot:"\u2252",fallingdotseq:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",eqslantgtr:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",eqslantless:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",varnothing:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",straightepsilon:"\u03F5",varepsilon:"\u03F5",equals:"=",equest:"\u225F",questeq:"\u225F",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",risingdotseq:"\u2253",erarr:"\u2971",escr:"\u212F",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",fork:"\u22D4",pitchfork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",half:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",sfrown:"\u2322",fscr:"\u{1D4BB}",gEl:"\u2A8C",gtreqqless:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gap:"\u2A86",gtrapprox:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gimel:"\u2137",gjcy:"\u0453",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gneqq:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gnsim:"\u22E7",gopf:"\u{1D558}",gscr:"\u210A",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtrdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrarr:"\u2978",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hardcy:"\u044A",harrcir:"\u2948",harrw:"\u21AD",leftrightsquigarrow:"\u21AD",hbar:"\u210F",hslash:"\u210F",planck:"\u210F",plankv:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",mldr:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",searhk:"\u2925",hkswarow:"\u2926",swarhk:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",larrhk:"\u21A9",hookrightarrow:"\u21AA",rarrhk:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hstrok:"\u0127",hybull:"\u2043",iacute:"\xED",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",ifr:"\u{1D526}",igrave:"\xEC",iiiint:"\u2A0C",qint:"\u2A0C",iiint:"\u222D",tint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",imath:"\u0131",inodot:"\u0131",imof:"\u22B7",imped:"\u01B5",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",intcal:"\u22BA",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iquest:"\xBF",iscr:"\u{1D4BE}",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",varkappa:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAtail:"\u291B",lBarr:"\u290E",lEg:"\u2A8B",lesseqqgtr:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lambda:"\u03BB",langd:"\u2991",lap:"\u2A85",lessapprox:"\u2A85",laquo:"\xAB",larrbfs:"\u291F",larrfs:"\u291D",larrlp:"\u21AB",looparrowleft:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",leftarrowtail:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lcy:"\u043B",ldca:"\u2936",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leq:"\u2264",leftleftarrows:"\u21C7",llarr:"\u21C7",leftthreetimes:"\u22CB",lthree:"\u22CB",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessdot:"\u22D6",ltdot:"\u22D6",lfisht:"\u297C",lfr:"\u{1D529}",lgE:"\u2A91",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lneqq:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",longmapsto:"\u27FC",xmap:"\u27FC",looparrowright:"\u21AC",rarrlp:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",loz:"\u25CA",lozenge:"\u25CA",lpar:"(",lparlt:"\u2993",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsime:"\u2A8D",lsimg:"\u2A8F",lsquor:"\u201A",sbquo:"\u201A",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",triangleleft:"\u25C3",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",strns:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midcir:"\u2AF0",minus:"\u2212",minusdu:"\u2A2A",mlcp:"\u2ADB",models:"\u22A7",mopf:"\u{1D55E}",mscr:"\u{1D4C2}",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nLeftarrow:"\u21CD",nlArr:"\u21CD",nLeftrightarrow:"\u21CE",nhArr:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nRightarrow:"\u21CF",nrArr:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nacute:"\u0144",nang:"\u2220\u20D2",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",natur:"\u266E",natural:"\u266E",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",neArr:"\u21D7",nearhk:"\u2924",nedot:"\u2250\u0338",nesear:"\u2928",toea:"\u2928",nfr:"\u{1D52B}",nharr:"\u21AE",nleftrightarrow:"\u21AE",nhpar:"\u2AF2",nis:"\u22FC",nisd:"\u22FA",njcy:"\u045A",nlE:"\u2266\u0338",nleqq:"\u2266\u0338",nlarr:"\u219A",nleftarrow:"\u219A",nldr:"\u2025",nopf:"\u{1D55F}",not:"\xAC",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinvb:"\u22F7",notinvc:"\u22F6",notnivb:"\u22FE",notnivc:"\u22FD",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",nrarr:"\u219B",nrightarrow:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nscr:"\u{1D4C3}",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsubseteqq:"\u2AC5\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupseteqq:"\u2AC6\u0338",ntilde:"\xF1",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwnear:"\u2927",oacute:"\xF3",ocirc:"\xF4",ocy:"\u043E",odblac:"\u0151",odiv:"\u2A38",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",olcir:"\u29BE",olcross:"\u29BB",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",or:"\u2228",vee:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",oscr:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",para:"\xB6",parsim:"\u2AF3",parsl:"\u2AFD",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",straightphi:"\u03D5",varphi:"\u03D5",phone:"\u260E",pi:"\u03C0",piv:"\u03D6",varpi:"\u03D6",planckh:"\u210E",plus:"+",plusacir:"\u2A23",pluscir:"\u2A22",plusdu:"\u2A25",pluse:"\u2A72",plussim:"\u2A26",plustwo:"\u2A27",pointint:"\u2A15",popf:"\u{1D561}",pound:"\xA3",prE:"\u2AB3",prap:"\u2AB7",precapprox:"\u2AB7",precnapprox:"\u2AB9",prnap:"\u2AB9",precneqq:"\u2AB5",prnE:"\u2AB5",precnsim:"\u22E8",prnsim:"\u22E8",prime:"\u2032",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quatint:"\u2A16",quest:"?",rAtail:"\u291C",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",raemptyv:"\u29B3",rangd:"\u2992",range:"\u29A5",raquo:"\xBB",rarrap:"\u2975",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rightarrowtail:"\u21A3",rarrw:"\u219D",rightsquigarrow:"\u219D",ratail:"\u291A",ratio:"\u2236",rbbrk:"\u2773",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdsh:"\u21B3",rect:"\u25AD",rfisht:"\u297D",rfr:"\u{1D52F}",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",varrho:"\u03F1",rightrightarrows:"\u21C9",rrarr:"\u21C9",rightthreetimes:"\u22CC",rthree:"\u22CC",ring:"\u02DA",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rsaquo:"\u203A",rscr:"\u{1D4C7}",rtimes:"\u22CA",rtri:"\u25B9",triangleright:"\u25B9",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",scE:"\u2AB4",scap:"\u2AB8",succapprox:"\u2AB8",scaron:"\u0161",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",succneqq:"\u2AB6",scnap:"\u2ABA",succnapprox:"\u2ABA",scnsim:"\u22E9",succnsim:"\u22E9",scpolint:"\u2A13",scy:"\u0441",sdot:"\u22C5",sdote:"\u2A66",seArr:"\u21D8",sect:"\xA7",semi:";",seswar:"\u2929",tosa:"\u2929",sext:"\u2736",sfr:"\u{1D530}",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",varsigma:"\u03C2",simdot:"\u2A6A",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",smashp:"\u2A33",smeparsl:"\u29E4",smile:"\u2323",ssmile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",sqcaps:"\u2293\uFE00",sqcups:"\u2294\uFE00",sscr:"\u{1D4C8}",star:"\u2606",sub:"\u2282",subset:"\u2282",subE:"\u2AC5",subseteqq:"\u2AC5",subdot:"\u2ABD",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subsetneqq:"\u2ACB",subne:"\u228A",subsetneq:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supE:"\u2AC6",supseteqq:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supsetneqq:"\u2ACC",supne:"\u228B",supsetneq:"\u228B",supplus:"\u2AC0",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",telrec:"\u2315",tfr:"\u{1D531}",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",vartheta:"\u03D1",thorn:"\xFE",times:"\xD7",timesbar:"\u2A31",timesd:"\u2A30",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tprime:"\u2034",triangle:"\u25B5",utri:"\u25B5",triangleq:"\u225C",trie:"\u225C",tridot:"\u25EC",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",uHar:"\u2963",uacute:"\xFA",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udblac:"\u0171",ufisht:"\u297E",ufr:"\u{1D532}",ugrave:"\xF9",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uogon:"\u0173",uopf:"\u{1D566}",upsi:"\u03C5",upsilon:"\u03C5",upuparrows:"\u21C8",uuarr:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",uuml:"\xFC",uwangle:"\u29A7",vBar:"\u2AE8",vBarv:"\u2AE9",vangrt:"\u299C",varsubsetneq:"\u228A\uFE00",vsubne:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",vsubnE:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",vsupne:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vsupnE:"\u2ACC\uFE00",vcy:"\u0432",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",vfr:"\u{1D533}",vopf:"\u{1D567}",vscr:"\u{1D4CB}",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedgeq:"\u2259",weierp:"\u2118",wp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wscr:"\u{1D4CC}",xfr:"\u{1D535}",xi:"\u03BE",xnis:"\u22FB",xopf:"\u{1D569}",xscr:"\u{1D4CD}",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"};_e.ngsp="\uE500";var l=(function(e){return e[e.TAG_OPEN_START=0]="TAG_OPEN_START",e[e.TAG_OPEN_END=1]="TAG_OPEN_END",e[e.TAG_OPEN_END_VOID=2]="TAG_OPEN_END_VOID",e[e.TAG_CLOSE=3]="TAG_CLOSE",e[e.INCOMPLETE_TAG_OPEN=4]="INCOMPLETE_TAG_OPEN",e[e.TEXT=5]="TEXT",e[e.ESCAPABLE_RAW_TEXT=6]="ESCAPABLE_RAW_TEXT",e[e.RAW_TEXT=7]="RAW_TEXT",e[e.INTERPOLATION=8]="INTERPOLATION",e[e.ENCODED_ENTITY=9]="ENCODED_ENTITY",e[e.COMMENT_START=10]="COMMENT_START",e[e.COMMENT_END=11]="COMMENT_END",e[e.CDATA_START=12]="CDATA_START",e[e.CDATA_END=13]="CDATA_END",e[e.ATTR_NAME=14]="ATTR_NAME",e[e.ATTR_QUOTE=15]="ATTR_QUOTE",e[e.ATTR_VALUE_TEXT=16]="ATTR_VALUE_TEXT",e[e.ATTR_VALUE_INTERPOLATION=17]="ATTR_VALUE_INTERPOLATION",e[e.DOC_TYPE_START=18]="DOC_TYPE_START",e[e.DOC_TYPE_END=19]="DOC_TYPE_END",e[e.EXPANSION_FORM_START=20]="EXPANSION_FORM_START",e[e.EXPANSION_CASE_VALUE=21]="EXPANSION_CASE_VALUE",e[e.EXPANSION_CASE_EXP_START=22]="EXPANSION_CASE_EXP_START",e[e.EXPANSION_CASE_EXP_END=23]="EXPANSION_CASE_EXP_END",e[e.EXPANSION_FORM_END=24]="EXPANSION_FORM_END",e[e.BLOCK_OPEN_START=25]="BLOCK_OPEN_START",e[e.BLOCK_OPEN_END=26]="BLOCK_OPEN_END",e[e.BLOCK_CLOSE=27]="BLOCK_CLOSE",e[e.BLOCK_PARAMETER=28]="BLOCK_PARAMETER",e[e.INCOMPLETE_BLOCK_OPEN=29]="INCOMPLETE_BLOCK_OPEN",e[e.LET_START=30]="LET_START",e[e.LET_VALUE=31]="LET_VALUE",e[e.LET_END=32]="LET_END",e[e.INCOMPLETE_LET=33]="INCOMPLETE_LET",e[e.COMPONENT_OPEN_START=34]="COMPONENT_OPEN_START",e[e.COMPONENT_OPEN_END=35]="COMPONENT_OPEN_END",e[e.COMPONENT_OPEN_END_VOID=36]="COMPONENT_OPEN_END_VOID",e[e.COMPONENT_CLOSE=37]="COMPONENT_CLOSE",e[e.INCOMPLETE_COMPONENT_OPEN=38]="INCOMPLETE_COMPONENT_OPEN",e[e.DIRECTIVE_NAME=39]="DIRECTIVE_NAME",e[e.DIRECTIVE_OPEN=40]="DIRECTIVE_OPEN",e[e.DIRECTIVE_CLOSE=41]="DIRECTIVE_CLOSE",e[e.EOF=42]="EOF",e})({});function it(e){return e>=9&&e<=32||e==160}function Ie(e){return 48<=e&&e<=57}function Re(e){return e>=97&&e<=122||e>=65&&e<=90}function ki(e){return e>=97&&e<=102||e>=65&&e<=70||Ie(e)}function Me(e){return e===10||e===13}function dr(e){return 48<=e&&e<=55}function Dt(e){return e===39||e===34||e===96}var qa=class{constructor(e,t,r){this.tokens=e,this.errors=t,this.nonNormalizedIcuExpressions=r}};function Pi(e,t,r,n={}){let i=new Ua(new nt(e,t),r,n);return i.tokenize(),new qa(Xa(i.tokens),i.errors,i.nonNormalizedIcuExpressions)}var Fa=/\r\n?/g;function Se(e){return`Unexpected character "${e===0?"EOF":String.fromCharCode(e)}"`}function xi(e){return`Unknown entity "${e}" - use the "&#;" or "&#x;" syntax`}function Ha(e,t){return`Unable to parse entity "${t}" - ${e} character reference entities must end with ";"`}var gr=(function(e){return e.HEX="hexadecimal",e.DEC="decimal",e})(gr||{}),Va=["@if","@else","@for","@switch","@case","@default","@empty","@defer","@placeholder","@loading","@error"],st={start:"{{",end:"}}"},Ua=class{_cursor;_tokenizeIcu;_leadingTriviaCodePoints;_canSelfClose;_allowHtmComponentClosingTags;_currentTokenStart=null;_currentTokenType=null;_expansionCaseStack=[];_openDirectiveCount=0;_inInterpolation=!1;_preserveLineEndings;_i18nNormalizeLineEndingsInICUs;_fullNameStack=[];_tokenizeBlocks;_tokenizeLet;_selectorlessEnabled;tokens=[];errors=[];nonNormalizedIcuExpressions=[];constructor(e,t,r){this._getTagContentType=t,this._tokenizeIcu=r.tokenizeExpansionForms||!1,this._leadingTriviaCodePoints=r.leadingTriviaChars&&r.leadingTriviaChars.map(i=>i.codePointAt(0)||0),this._canSelfClose=r.canSelfClose||!1,this._allowHtmComponentClosingTags=r.allowHtmComponentClosingTags||!1;let n=r.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=r.escapedString?new Ka(e,n):new Oi(e,n),this._preserveLineEndings=r.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=r.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=r.tokenizeBlocks??!0,this._tokenizeLet=r.tokenizeLet??!0,this._selectorlessEnabled=r.selectorlessEnabled??!1;try{this._cursor.init()}catch(i){this.handleError(i)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(Fa,` +`)}tokenize(){for(;this._cursor.peek()!==0;){let e=this._cursor.clone();try{if(this._attemptCharCode(60))if(this._attemptCharCode(33))this._attemptStr("[CDATA[")?this._consumeCdata(e):this._attemptStr("--")?this._consumeComment(e):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(e):this._consumeBogusComment(e);else if(this._attemptCharCode(47))this._consumeTagClose(e);else{let t=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=t,this._consumeBogusComment(e)):this._consumeTagOpen(e)}else this._tokenizeLet&&this._cursor.peek()===64&&!this._inInterpolation&&this._isLetStart()?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._isBlockStart()?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(125)?this._consumeBlockEnd(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(l.TEXT,l.INTERPOLATION,()=>this._isTextEnd(),()=>this._isTagStart())}catch(t){this.handleError(t)}}this._beginToken(l.EOF),this._endToken([])}_getBlockName(){let e=!1,t=this._cursor.clone();return this._attemptCharCodeUntilFn(r=>it(r)?!e:ja(r)?(e=!0,!1):!0),this._cursor.getChars(t).trim()}_consumeBlockStart(e){this._requireCharCode(64),this._beginToken(l.BLOCK_OPEN_START,e);let t=this._endToken([this._getBlockName()]);if(this._cursor.peek()===40)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(v),this._attemptCharCode(41))this._attemptCharCodeUntilFn(v);else{t.type=l.INCOMPLETE_BLOCK_OPEN;return}if(t.parts[0]==="default never"&&this._attemptCharCode(59)){this._beginToken(l.BLOCK_OPEN_END),this._endToken([]),this._beginToken(l.BLOCK_CLOSE),this._endToken([]);return}this._attemptCharCode(123)?(this._beginToken(l.BLOCK_OPEN_END),this._endToken([])):this._isBlockStart()&&(t.parts[0]==="case"||t.parts[0]==="default")?(this._beginToken(l.BLOCK_OPEN_END),this._endToken([]),this._beginToken(l.BLOCK_CLOSE),this._endToken([])):t.type=l.INCOMPLETE_BLOCK_OPEN}_consumeBlockEnd(e){this._beginToken(l.BLOCK_CLOSE,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(Ai);this._cursor.peek()!==41&&this._cursor.peek()!==0;){this._beginToken(l.BLOCK_PARAMETER);let e=this._cursor.clone(),t=null,r=0;for(;this._cursor.peek()!==59&&this._cursor.peek()!==0||t!==null;){let n=this._cursor.peek();if(n===92)this._cursor.advance();else if(n===t)t=null;else if(t===null&&Dt(n))t=n;else if(n===40&&t===null)r++;else if(n===41&&t===null){if(r===0)break;r>0&&r--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(Ai)}}_consumeLetDeclaration(e){if(this._requireStr("@let"),this._beginToken(l.LET_START,e),it(this._cursor.peek()))this._attemptCharCodeUntilFn(v);else{let r=this._endToken([this._cursor.getChars(e)]);r.type=l.INCOMPLETE_LET;return}let t=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(v),!this._attemptCharCode(61)){t.type=l.INCOMPLETE_LET;return}this._attemptCharCodeUntilFn(r=>v(r)&&!Me(r)),this._consumeLetDeclarationValue(),this._cursor.peek()===59?(this._beginToken(l.LET_END),this._endToken([]),this._cursor.advance()):(t.type=l.INCOMPLETE_LET,t.sourceSpan=this._cursor.getSpan(e))}_getLetDeclarationName(){let e=this._cursor.clone(),t=!1;return this._attemptCharCodeUntilFn(r=>Re(r)||r===36||r===95||t&&Ie(r)?(t=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();for(this._beginToken(l.LET_VALUE,e);this._cursor.peek()!==0;){let t=this._cursor.peek();if(t===59)break;Dt(t)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(r=>r===92?(this._cursor.advance(),!1):r===t)),this._cursor.advance()}this._endToken([this._cursor.getChars(e)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if($a(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===125){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,t=this._cursor.clone()){this._currentTokenStart=t,this._currentTokenType=e}_endToken(e,t){if(this._currentTokenStart===null)throw new ee(this._cursor.getSpan(t),"Programming error - attempted to end a token when there was no start to the token");if(this._currentTokenType===null)throw new ee(this._cursor.getSpan(this._currentTokenStart),"Programming error - attempted to end a token which has no token type");let r={type:this._currentTokenType,parts:e,sourceSpan:(t??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(r),this._currentTokenStart=null,this._currentTokenType=null,r}_createError(e,t){this._isInExpansionForm()&&(e+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let r=new ee(t,e);return this._currentTokenStart=null,this._currentTokenType=null,r}handleError(e){if(e instanceof Er&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof ee)this.errors.push(e);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return Ya(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let t=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(Se(this._cursor.peek()),this._cursor.getSpan(t))}_attemptStr(e){let t=e.length;if(this._cursor.charsLeft()this._peekStr(e))}_isLetStart(){return this._cursor.peek()===64&&this._peekStr("@let")}_consumeEntity(e){this._beginToken(l.ENCODED_ENTITY);let t=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(35)){let r=this._attemptCharCode(120)||this._attemptCharCode(88),n=this._cursor.clone();if(this._attemptCharCodeUntilFn(Ga),this._cursor.peek()!=59){this._cursor.advance();let s=r?gr.HEX:gr.DEC;throw this._createError(Ha(s,this._cursor.getChars(t)),this._cursor.getSpan())}let i=this._cursor.getChars(n);this._cursor.advance();try{let s=parseInt(i,r?16:10);this._endToken([String.fromCodePoint(s),this._cursor.getChars(t)])}catch{throw this._createError(xi(this._cursor.getChars(t)),this._cursor.getSpan())}}else{let r=this._cursor.clone();if(this._attemptCharCodeUntilFn(za),this._cursor.peek()!=59)this._beginToken(e,t),this._cursor=r,this._endToken(["&"]);else{let n=this._cursor.getChars(r);this._cursor.advance();let i=_e.hasOwnProperty(n)&&_e[n];if(!i)throw this._createError(xi(n),this._cursor.getSpan(t));this._endToken([i,`&${n};`])}}}_consumeRawText(e,t){this._beginToken(e?l.ESCAPABLE_RAW_TEXT:l.RAW_TEXT);let r=[];for(;;){let n=this._cursor.clone(),i=t();if(this._cursor=n,i)break;e&&this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(r.join(""))]),r.length=0,this._consumeEntity(l.ESCAPABLE_RAW_TEXT),this._beginToken(l.ESCAPABLE_RAW_TEXT)):r.push(this._readChar())}this._endToken([this._processCarriageReturns(r.join(""))])}_consumeComment(e){this._beginToken(l.COMMENT_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("-->")),this._beginToken(l.COMMENT_END),this._requireStr("-->"),this._endToken([])}_consumeBogusComment(e){this._beginToken(l.COMMENT_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(l.COMMENT_END),this._cursor.advance(),this._endToken([])}_consumeCdata(e){this._beginToken(l.CDATA_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(l.CDATA_END),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(l.DOC_TYPE_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(l.DOC_TYPE_END),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(e){let t=this._cursor.clone(),r="";for(;this._cursor.peek()!==58&&!Wa(this._cursor.peek());)this._cursor.advance();let n;this._cursor.peek()===58?(r=this._cursor.getChars(t),this._cursor.advance(),n=this._cursor.clone()):n=t,this._requireCharCodeUntilFn(e,r===""?0:1);let i=this._cursor.getChars(n);return[r,i]}_consumeSingleLineComment(){this._attemptCharCodeUntilFn(e=>Me(e)||e===0),this._attemptCharCodeUntilFn(v)}_consumeMultiLineComment(){this._attemptCharCodeUntilFn(e=>{if(e===0)return!0;if(e===42){let t=this._cursor.clone();return t.advance(),t.peek()===47}return!1}),this._attemptStr("*/")&&this._attemptCharCodeUntilFn(v)}_consumeTagOpen(e){let t,r,n,i,s=[];try{if(this._selectorlessEnabled&&It(this._cursor.peek()))i=this._consumeComponentOpenStart(e),[n,r,t]=i.parts,r&&(n+=`:${r}`),t&&(n+=`:${t}`),this._attemptCharCodeUntilFn(v);else{if(!Re(this._cursor.peek()))throw this._createError(Se(this._cursor.peek()),this._cursor.getSpan(e));i=this._consumeTagOpenStart(e),r=i.parts[0],t=n=i.parts[1],this._attemptCharCodeUntilFn(v)}for(;;){if(this._attemptStr("//")){this._consumeSingleLineComment();continue}if(this._attemptStr("/*")){this._consumeMultiLineComment();continue}if(Li(this._cursor.peek()))break;if(this._selectorlessEnabled&&this._cursor.peek()===64){let o=this._cursor.clone(),c=o.clone();c.advance(),It(c.peek())&&this._consumeDirective(o,c)}else{let o=this._consumeAttribute();s.push(o)}}i.type===l.COMPONENT_OPEN_START?this._consumeComponentOpenEnd():this._consumeTagOpenEnd()}catch(o){if(o instanceof ee){i?i.type=i.type===l.COMPONENT_OPEN_START?l.INCOMPLETE_COMPONENT_OPEN:l.INCOMPLETE_TAG_OPEN:(this._beginToken(l.TEXT,e),this._endToken(["<"]));return}throw o}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===l.TAG_OPEN_END_VOID)return;let a=this._getTagContentType(t,r,this._fullNameStack.length>0,s);this._handleFullNameStackForTagOpen(r,t),a===R.RAW_TEXT?this._consumeRawTextWithTagClose(r,i,n,!1):a===R.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(r,i,n,!0)}_consumeRawTextWithTagClose(e,t,r,n){this._consumeRawText(n,()=>!this._attemptCharCode(60)||!this._attemptCharCode(47)||(this._attemptCharCodeUntilFn(v),!this._attemptStrCaseInsensitive(e&&t.type!==l.COMPONENT_OPEN_START?`${e}:${r}`:r))?!1:(this._attemptCharCodeUntilFn(v),this._attemptCharCode(62))),this._beginToken(t.type===l.COMPONENT_OPEN_START?l.COMPONENT_CLOSE:l.TAG_CLOSE),this._requireCharCodeUntilFn(i=>i===62,3),this._cursor.advance(),this._endToken(t.parts),this._handleFullNameStackForTagClose(e,r)}_consumeTagOpenStart(e){this._beginToken(l.TAG_OPEN_START,e);let t=this._consumePrefixAndName(Ee);return this._endToken(t)}_consumeComponentOpenStart(e){this._beginToken(l.COMPONENT_OPEN_START,e);let t=this._consumeComponentName();return this._endToken(t)}_consumeComponentName(){let e=this._cursor.clone();for(;Ni(this._cursor.peek());)this._cursor.advance();let t=this._cursor.getChars(e),r="",n="";return this._cursor.peek()===58&&(this._cursor.advance(),[r,n]=this._consumePrefixAndName(Ee)),[t,r,n]}_consumeAttribute(){let[e,t]=this._consumeAttributeName(),r;return this._attemptCharCodeUntilFn(v),this._attemptCharCode(61)&&(this._attemptCharCodeUntilFn(v),r=this._consumeAttributeValue()),this._attemptCharCodeUntilFn(v),{prefix:e,name:t,value:r}}_consumeAttributeName(){let e=this._cursor.peek();if(e===39||e===34)throw this._createError(Se(e),this._cursor.getSpan());this._beginToken(l.ATTR_NAME);let t;if(this._openDirectiveCount>0){let n=0;t=i=>{if(this._openDirectiveCount>0){if(i===40)n++;else if(i===41){if(n===0)return!0;n--}}return Ee(i)}}else if(e===91){let n=0;t=i=>(i===91?n++:i===93&&n--,n<=0?Ee(i):Me(i))}else t=Ee;let r=this._consumePrefixAndName(t);return this._endToken(r),r}_consumeAttributeValue(){let e;if(this._cursor.peek()===39||this._cursor.peek()===34){let t=this._cursor.peek();this._consumeQuote(t);let r=()=>this._cursor.peek()===t;e=this._consumeWithInterpolation(l.ATTR_VALUE_TEXT,l.ATTR_VALUE_INTERPOLATION,r,r),this._consumeQuote(t)}else{let t=()=>Ee(this._cursor.peek());e=this._consumeWithInterpolation(l.ATTR_VALUE_TEXT,l.ATTR_VALUE_INTERPOLATION,t,t)}return e}_consumeQuote(e){this._beginToken(l.ATTR_QUOTE),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(47)?l.TAG_OPEN_END_VOID:l.TAG_OPEN_END;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeComponentOpenEnd(){let e=this._attemptCharCode(47)?l.COMPONENT_OPEN_END_VOID:l.COMPONENT_OPEN_END;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeTagClose(e){if(this._selectorlessEnabled){let t=e.clone();for(;t.peek()!==62&&!It(t.peek());)t.advance();if(It(t.peek())){this._beginToken(l.COMPONENT_CLOSE,e);let r=this._consumeComponentName();this._attemptCharCodeUntilFn(v),this._requireCharCode(62),this._endToken(r);return}}if(this._beginToken(l.TAG_CLOSE,e),this._attemptCharCodeUntilFn(v),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(v),this._requireCharCode(62),this._endToken([]);else{let[t,r]=this._consumePrefixAndName(Ee);this._attemptCharCodeUntilFn(v),this._requireCharCode(62),this._endToken([t,r]),this._handleFullNameStackForTagClose(t,r)}}_consumeExpansionFormStart(){this._beginToken(l.EXPANSION_FORM_START),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(l.EXPANSION_FORM_START),this._beginToken(l.RAW_TEXT);let e=this._readUntil(44),t=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([t]);else{let n=this._endToken([e]);t!==e&&this.nonNormalizedIcuExpressions.push(n)}this._requireCharCode(44),this._attemptCharCodeUntilFn(v),this._beginToken(l.RAW_TEXT);let r=this._readUntil(44);this._endToken([r]),this._requireCharCode(44),this._attemptCharCodeUntilFn(v)}_consumeExpansionCaseStart(){this._beginToken(l.EXPANSION_CASE_VALUE);let e=this._readUntil(123).trim();this._endToken([e]),this._attemptCharCodeUntilFn(v),this._beginToken(l.EXPANSION_CASE_EXP_START),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(v),this._expansionCaseStack.push(l.EXPANSION_CASE_EXP_START)}_consumeExpansionCaseEnd(){this._beginToken(l.EXPANSION_CASE_EXP_END),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(v),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(l.EXPANSION_FORM_END),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,t,r,n){this._beginToken(e);let i=[];for(;!r();){let a=this._cursor.clone();this._attemptStr(st.start)?(this._endToken([this._processCarriageReturns(i.join(""))],a),i.length=0,this._consumeInterpolation(t,a,n),this._beginToken(e)):this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(i.join(""))]),i.length=0,this._consumeEntity(e),this._beginToken(e)):i.push(this._readChar())}this._inInterpolation=!1;let s=this._processCarriageReturns(i.join(""));return this._endToken([s]),s}_consumeInterpolation(e,t,r){let n=[];this._beginToken(e,t),n.push(st.start);let i=this._cursor.clone(),s=null,a=!1;for(;this._cursor.peek()!==0&&(r===null||!r());){let o=this._cursor.clone();if(this._isTagStart()){this._cursor=o,n.push(this._getProcessedChars(i,o)),this._endToken(n);return}if(s===null)if(this._attemptStr(st.end)){n.push(this._getProcessedChars(i,o)),n.push(st.end),this._endToken(n);return}else this._attemptStr("//")&&(a=!0);let c=this._cursor.peek();this._cursor.advance(),c===92?this._cursor.advance():c===s?s=null:!a&&s===null&&Dt(c)&&(s=c)}n.push(this._getProcessedChars(i,this._cursor)),this._endToken(n)}_consumeDirective(e,t){for(this._requireCharCode(64),this._cursor.advance();Ni(this._cursor.peek());)this._cursor.advance();this._beginToken(l.DIRECTIVE_NAME,e);let r=this._cursor.getChars(t);if(this._endToken([r]),this._attemptCharCodeUntilFn(v),this._cursor.peek()===40){for(this._openDirectiveCount++,this._beginToken(l.DIRECTIVE_OPEN),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(v);!Li(this._cursor.peek())&&this._cursor.peek()!==41;)this._consumeAttribute();if(this._attemptCharCodeUntilFn(v),this._openDirectiveCount--,this._cursor.peek()!==41){if(this._cursor.peek()===62||this._cursor.peek()===47)return;throw this._createError(Se(this._cursor.peek()),this._cursor.getSpan(e))}this._beginToken(l.DIRECTIVE_CLOSE),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(v)}}_getProcessedChars(e,t){return this._processCarriageReturns(t.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===0||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===125&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||this._isLetStart()||this._cursor.peek()===125))}_isTagStart(){if(this._cursor.peek()===60){let e=this._cursor.clone();e.advance();let t=e.peek();if(97<=t&&t<=122||65<=t&&t<=90||t===47||t===33)return!0}return!1}_readUntil(e){let t=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(t)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===l.EXPANSION_CASE_EXP_START}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===l.EXPANSION_FORM_START}isExpansionFormStart(){if(this._cursor.peek()!==123)return!1;let e=this._cursor.clone(),t=this._attemptStr(st.start);return this._cursor=e,!t}_handleFullNameStackForTagOpen(e,t){let r=fe(e,t);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===r)&&this._fullNameStack.push(r)}_handleFullNameStackForTagClose(e,t){let r=fe(e,t);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===r&&this._fullNameStack.pop()}};function v(e){return!it(e)||e===0}function Ee(e){return it(e)||e===62||e===60||e===47||e===39||e===34||e===61||e===0}function Wa(e){return(e<97||12257)}function Ga(e){return e===59||e===0||!ki(e)}function za(e){return e===59||e===0||!(Re(e)||Ie(e))}function $a(e){return e!==125}function Ya(e,t){return yi(e)===yi(t)}function yi(e){return e>=97&&e<=122?e-97+65:e}function ja(e){return Re(e)||Ie(e)||e===95}function Ai(e){return e!==59&&v(e)}function It(e){return e===95||e>=65&&e<=90}function Ni(e){return Re(e)||Ie(e)||e===95}function Li(e){return e===47||e===62||e===60||e===0}function Xa(e){let t=[],r;for(let n=0;n0&&r.indexOf(t.peek())!==-1;)n===t&&(t=t.clone()),t.advance();let i=this.locationFromCursor(t);return new h(i,this.locationFromCursor(this),n!==t?this.locationFromCursor(n):i)}getChars(t){return this.input.substring(t.state.offset,this.state.offset)}charAt(t){return this.input.charCodeAt(t)}advanceState(t){if(t.offset>=this.end)throw this.state=t,new Er('Unexpected character "EOF"',this);let r=this.charAt(t.offset);r===10?(t.line++,t.column=0):Me(r)||t.column++,t.offset++,this.updatePeek(t)}updatePeek(t){t.peek=t.offset>=this.end?0:this.charAt(t.offset)}locationFromCursor(t){return new De(t.file,t.state.offset,t.state.line,t.state.column)}},Ka=class Sr extends Oi{internalState;constructor(t,r){t instanceof Sr?(super(t),this.internalState={...t.internalState}):(super(t,r),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new Sr(this)}getChars(t){let r=t.clone(),n="";for(;r.internalState.offsetthis.internalState.peek;if(t()===92)if(this.internalState={...this.state},this.advanceState(this.internalState),t()===110)this.state.peek=10;else if(t()===114)this.state.peek=13;else if(t()===118)this.state.peek=11;else if(t()===116)this.state.peek=9;else if(t()===98)this.state.peek=8;else if(t()===102)this.state.peek=12;else if(t()===117)if(this.advanceState(this.internalState),t()===123){this.advanceState(this.internalState);let r=this.clone(),n=0;for(;t()!==125;)this.advanceState(this.internalState),n++;this.state.peek=this.decodeHexDigits(r,n)}else{let r=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,4)}else if(t()===120){this.advanceState(this.internalState);let r=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,2)}else if(dr(t())){let r="",n=0,i=this.clone();for(;dr(t())&&n<3;)i=this.clone(),r+=String.fromCodePoint(t()),this.advanceState(this.internalState),n++;this.state.peek=parseInt(r,8),this.internalState=i.internalState}else Me(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(t,r){let n=this.input.slice(t.internalState.offset,t.internalState.offset+r),i=parseInt(n,16);if(isNaN(i))throw t.state=t.internalState,new Er("Invalid hexadecimal escape sequence",t);return i}},Er=class extends Error{constructor(e,t){super(e),this.msg=e,this.cursor=t,Object.setPrototypeOf(this,new.target.prototype)}};var y=class Ri extends ee{static create(t,r,n){return new Ri(t,r,n)}constructor(t,r,n){super(r,n),this.elementName=t}},Qa=class{constructor(e,t){this.rootNodes=e,this.errors=t}},Mi=class{constructor(e){this.getTagDefinition=e}parse(e,t,r,n=!1,i){let s=m=>(_,...T)=>m(_.toLowerCase(),...T),a=n?this.getTagDefinition:s(this.getTagDefinition),o=m=>a(m).getContentType(),c=n?i:s(i),u=Pi(e,t,i?(m,_,T,P)=>{let z=c(m,_,T,P);return z!==void 0?z:o(m)}:o,r),p=r&&r.canSelfClose||!1,d=r&&r.allowHtmComponentClosingTags||!1,g=new Ja(u.tokens,a,p,d,n);return g.build(),new Qa(g.rootNodes,[...u.errors,...g.errors])}},Ja=class Bi{_index=-1;_peek;_containerStack=[];rootNodes=[];errors=[];constructor(t,r,n,i,s){this.tokens=t,this.tagDefinitionResolver=r,this.canSelfClose=n,this.allowHtmComponentClosingTags=i,this.isTagNameCaseSensitive=s,this._advance()}build(){for(;this._peek.type!==l.EOF;)this._peek.type===l.TAG_OPEN_START||this._peek.type===l.INCOMPLETE_TAG_OPEN?this._consumeElementStartTag(this._advance()):this._peek.type===l.TAG_CLOSE?(this._closeVoidElement(),this._consumeElementEndTag(this._advance())):this._peek.type===l.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===l.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===l.TEXT||this._peek.type===l.RAW_TEXT||this._peek.type===l.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===l.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._peek.type===l.BLOCK_OPEN_START?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===l.BLOCK_CLOSE?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===l.INCOMPLETE_BLOCK_OPEN?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===l.LET_START?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===l.DOC_TYPE_START?this._consumeDocType(this._advance()):this._peek.type===l.INCOMPLETE_LET?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._peek.type===l.COMPONENT_OPEN_START||this._peek.type===l.INCOMPLETE_COMPONENT_OPEN?this._consumeComponentStartTag(this._advance()):this._peek.type===l.COMPONENT_CLOSE?this._consumeComponentEndTag(this._advance()):this._advance();for(let t of this._containerStack)t instanceof ge&&this.errors.push(y.create(t.name,t.sourceSpan,`Unclosed block "${t.name}"`))}_advance(){let t=this._peek;return this._index0)return this.errors=this.errors.concat(s.errors),null;let a=new h(t.sourceSpan.start,i.sourceSpan.end,t.sourceSpan.fullStart),o=new h(r.sourceSpan.start,i.sourceSpan.end,r.sourceSpan.fullStart);return new Ci(t.parts[0],s.rootNodes,a,t.sourceSpan,o)}_collectExpansionExpTokens(t){let r=[],n=[l.EXPANSION_CASE_EXP_START];for(;;){if((this._peek.type===l.EXPANSION_FORM_START||this._peek.type===l.EXPANSION_CASE_EXP_START)&&n.push(this._peek.type),this._peek.type===l.EXPANSION_CASE_EXP_END)if(Di(n,l.EXPANSION_CASE_EXP_START)){if(n.pop(),n.length===0)return r}else return this.errors.push(y.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===l.EXPANSION_FORM_END)if(Di(n,l.EXPANSION_FORM_START))n.pop();else return this.errors.push(y.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===l.EOF)return this.errors.push(y.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;r.push(this._advance())}}_getText(t){let r=t.parts[0];if(r.length>0&&r[0]==` +`){var n;let i=this._getClosestElementLikeParent();i!=null&&i.children.length==0&&(!((n=this._getTagDefinition(i))===null||n===void 0)&&n.ignoreFirstLf)&&(r=r.substring(1))}return r}_consumeText(t){let r=[t],n=t.sourceSpan,i=t.parts[0];if(i.length>0&&i[0]===` +`){var s;let a=this._getContainer();a!=null&&a.children.length===0&&(!((s=this._getTagDefinition(a))===null||s===void 0)&&s.ignoreFirstLf)&&(i=i.substring(1),r[0]={type:t.type,sourceSpan:t.sourceSpan,parts:[i]})}for(;this._peek.type===l.INTERPOLATION||this._peek.type===l.TEXT||this._peek.type===l.ENCODED_ENTITY;)t=this._advance(),r.push(t),t.type===l.INTERPOLATION?i+=t.parts.join("").replace(/&([^;]+);/g,Ii):t.type===l.ENCODED_ENTITY?i+=t.parts[0]:i+=t.parts.join("");if(i.length>0){let a=t.sourceSpan;this._addToParent(new _i(i,new h(n.start,a.end,n.fullStart,n.details),r))}}_closeVoidElement(){var t;let r=this._getContainer();r!==null&&(!((t=this._getTagDefinition(r))===null||t===void 0)&&t.isVoid)&&this._containerStack.pop()}_consumeElementStartTag(t){var r;let n=[],i=[];this._consumeAttributesAndDirectives(n,i);let s=this._getElementFullName(t,this._getClosestElementLikeParent()),a=this._getTagDefinition(s),o=!1;if(this._peek.type===l.TAG_OPEN_END_VOID){this._advance(),o=!0;let T=this._getTagDefinition(s);this.canSelfClose||T?.canSelfClose||Pe(s)!==null||T?.isVoid||this.errors.push(y.create(s,t.sourceSpan,`Only void, custom and foreign elements can be self closed "${t.parts[1]}"`))}else this._peek.type===l.TAG_OPEN_END&&(this._advance(),o=!1);let c=this._peek.sourceSpan.fullStart,u=new h(t.sourceSpan.start,c,t.sourceSpan.fullStart),p=new h(t.sourceSpan.start,c,t.sourceSpan.fullStart),d=new h(t.sourceSpan.start.moveBy(1),t.sourceSpan.end),g=new te(s,n,i,[],o,u,p,void 0,d,a?.isVoid??!1),m=this._getContainer(),_=m!==null&&!!(!((r=this._getTagDefinition(m))===null||r===void 0)&&r.isClosedByChild(g.name));this._pushContainer(g,_),o?this._popContainer(s,te,u):t.type===l.INCOMPLETE_TAG_OPEN&&(this._popContainer(s,te,null),this.errors.push(y.create(s,u,`Opening tag "${s}" not terminated.`)))}_consumeComponentStartTag(t){var r;let n=t.parts[0],i=[],s=[];this._consumeAttributesAndDirectives(i,s);let a=this._getClosestElementLikeParent(),o=this._getComponentTagName(t,a),c=this._getComponentFullName(t,a),u=this._peek.type===l.COMPONENT_OPEN_END_VOID;this._advance();let p=this._peek.sourceSpan.fullStart,d=new h(t.sourceSpan.start,p,t.sourceSpan.fullStart),g=new G(n,o,c,i,s,[],u,d,new h(t.sourceSpan.start,p,t.sourceSpan.fullStart),void 0),m=this._getContainer(),_=m!==null&&g.tagName!==null&&!!(!((r=this._getTagDefinition(m))===null||r===void 0)&&r.isClosedByChild(g.tagName));this._pushContainer(g,_),u?this._popContainer(c,G,d):t.type===l.INCOMPLETE_COMPONENT_OPEN&&(this._popContainer(c,G,null),this.errors.push(y.create(c,d,`Opening tag "${c}" not terminated.`)))}_consumeAttributesAndDirectives(t,r){for(;this._peek.type===l.ATTR_NAME||this._peek.type===l.DIRECTIVE_NAME;)this._peek.type===l.DIRECTIVE_NAME?r.push(this._consumeDirective(this._peek)):t.push(this._consumeAttr(this._advance()))}_consumeComponentEndTag(t){let r=this._getComponentFullName(t,this._getClosestElementLikeParent());if(!this._popContainer(r,G,t.sourceSpan)){let n=this._containerStack[this._containerStack.length-1],i;n instanceof G&&n.componentName===t.parts[0]?i=`, did you mean "${n.fullName}"?`:i=". It may happen when the tag has already been closed by another tag.";let s=`Unexpected closing tag "${r}"${i}`;this.errors.push(y.create(r,t.sourceSpan,s))}}_getTagDefinition(t){return typeof t=="string"?this.tagDefinitionResolver(t):t instanceof te?this.tagDefinitionResolver(t.name):t instanceof G&&t.tagName!==null?this.tagDefinitionResolver(t.tagName):null}_pushContainer(t,r){r&&this._containerStack.pop(),this._addToParent(t),this._containerStack.push(t)}_consumeElementEndTag(t){var r;let n=this.allowHtmComponentClosingTags&&t.parts.length===0?null:this._getElementFullName(t,this._getClosestElementLikeParent());if(n&&(!((r=this._getTagDefinition(n))===null||r===void 0)&&r.isVoid))this.errors.push(y.create(n,t.sourceSpan,`Void elements do not have end tags "${t.parts[1]}"`));else if(!this._popContainer(n,te,t.sourceSpan)){let i=`Unexpected closing tag "${n}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(y.create(n,t.sourceSpan,i))}}_popContainer(t,r,n){let i=!1;for(let a=this._containerStack.length-1;a>=0;a--){var s;let o=this._containerStack[a],c=o instanceof G?o.fullName:o.name;if(Pe(c)?c===t:(c===t||t===null)&&o instanceof r)return o.endSourceSpan=n,o.sourceSpan.end=n!==null?n.end:o.sourceSpan.end,this._containerStack.splice(a,this._containerStack.length-a),!i;(o instanceof ge||!(!((s=this._getTagDefinition(o))===null||s===void 0)&&s.closedByParent))&&(i=!0)}return!1}_consumeAttr(t){let r=fe(t.parts[0],t.parts[1]),n=t.sourceSpan.end,i;this._peek.type===l.ATTR_QUOTE&&(i=this._advance());let s="",a=[],o,c;if(this._peek.type===l.ATTR_VALUE_TEXT)for(o=this._peek.sourceSpan,c=this._peek.sourceSpan.end;this._peek.type===l.ATTR_VALUE_TEXT||this._peek.type===l.ATTR_VALUE_INTERPOLATION||this._peek.type===l.ENCODED_ENTITY;){let p=this._advance();a.push(p),p.type===l.ATTR_VALUE_INTERPOLATION?s+=p.parts.join("").replace(/&([^;]+);/g,Ii):p.type===l.ENCODED_ENTITY?s+=p.parts[0]:s+=p.parts.join(""),c=n=p.sourceSpan.end}this._peek.type===l.ATTR_QUOTE&&(c=n=this._advance().sourceSpan.end);let u=o&&c&&new h(i?.sourceSpan.start??o.start,c,i?.sourceSpan.fullStart??o.fullStart);return new vi(r,s,new h(t.sourceSpan.start,n,t.sourceSpan.fullStart),t.sourceSpan,u,a.length>0?a:void 0,void 0)}_consumeDirective(t){let r=[],n=t.sourceSpan.end,i=null;if(this._advance(),this._peek.type===l.DIRECTIVE_OPEN){for(n=this._peek.sourceSpan.end,this._advance();this._peek.type===l.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));this._peek.type===l.DIRECTIVE_CLOSE?(i=this._peek.sourceSpan,this._advance()):this.errors.push(y.create(null,t.sourceSpan,"Unterminated directive definition"))}let s=new h(t.sourceSpan.start,n,t.sourceSpan.fullStart),a=new h(s.start,i===null?t.sourceSpan.end:i.end,s.fullStart);return new wi(t.parts[0],r,a,s,i)}_consumeBlockOpen(t){let r=[];for(;this._peek.type===l.BLOCK_PARAMETER;){let o=this._advance();r.push(new hr(o.parts[0],o.sourceSpan))}this._peek.type===l.BLOCK_OPEN_END&&this._advance();let n=this._peek.sourceSpan.fullStart,i=new h(t.sourceSpan.start,n,t.sourceSpan.fullStart),s=new h(t.sourceSpan.start,n,t.sourceSpan.fullStart),a=new ge(t.parts[0],r,[],i,t.sourceSpan,s);this._pushContainer(a,!1)}_consumeBlockClose(t){let r=this._containerStack.length,n=this._containerStack[r-1];if(!this._popContainer(null,ge,t.sourceSpan)){if(this._containerStack.length element? If you meant to write the \`}\` character, you should use the "}" HTML entity instead.`));return}this.errors.push(y.create(null,t.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the `}` character, you should use the "}" HTML entity instead.'))}}_consumeIncompleteBlock(t){let r=[];for(;this._peek.type===l.BLOCK_PARAMETER;){let o=this._advance();r.push(new hr(o.parts[0],o.sourceSpan))}let n=this._peek.sourceSpan.fullStart,i=new h(t.sourceSpan.start,n,t.sourceSpan.fullStart),s=new h(t.sourceSpan.start,n,t.sourceSpan.fullStart),a=new ge(t.parts[0],r,[],i,t.sourceSpan,s);this._pushContainer(a,!1),this._popContainer(null,ge,null),this.errors.push(y.create(t.parts[0],i,`Incomplete block "${t.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`))}_consumeLet(t){let r=t.parts[0],n,i;if(this._peek.type!==l.LET_VALUE){this.errors.push(y.create(t.parts[0],t.sourceSpan,`Invalid @let declaration "${r}". Declaration must have a value.`));return}else n=this._advance();if(this._peek.type!==l.LET_END){this.errors.push(y.create(t.parts[0],t.sourceSpan,`Unterminated @let declaration "${r}". Declaration must be terminated with a semicolon.`));return}else i=this._advance();let s=i.sourceSpan.fullStart,a=new h(t.sourceSpan.start,s,t.sourceSpan.fullStart),o=t.sourceSpan.toString().lastIndexOf(r),c=new h(t.sourceSpan.start.moveBy(o),t.sourceSpan.end),u=new mr(r,n.parts[0],a,c,n.sourceSpan);this._addToParent(u)}_consumeIncompleteLet(t){let r=t.parts[0]??"",n=r?` "${r}"`:"";if(r.length>0){let i=t.sourceSpan.toString().lastIndexOf(r),s=new h(t.sourceSpan.start.moveBy(i),t.sourceSpan.end),a=new h(t.sourceSpan.start,t.sourceSpan.start.moveBy(0)),o=new mr(r,"",t.sourceSpan,s,a);this._addToParent(o)}this.errors.push(y.create(t.parts[0],t.sourceSpan,`Incomplete @let declaration${n}. @let declarations must be written as \`@let = ;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestElementLikeParent(){for(let t=this._containerStack.length-1;t>-1;t--){let r=this._containerStack[t];if(r instanceof te||r instanceof G)return r}return null}_addToParent(t){let r=this._getContainer();r===null?this.rootNodes.push(t):r.children.push(t)}_getElementFullName(t,r){return fe(this._getPrefix(t,r),t.parts[1])}_getComponentFullName(t,r){let n=t.parts[0],i=this._getComponentTagName(t,r);return i===null?n:i.startsWith(":")?n+i:`${n}:${i}`}_getComponentTagName(t,r){let n=this._getPrefix(t,r),i=t.parts[2];return!n&&!i?null:!n&&i?i:fe(n,i||"ng-component")}_getPrefix(t,r){var n;let i,s;if(t.type===l.COMPONENT_OPEN_START||t.type===l.INCOMPLETE_COMPONENT_OPEN||t.type===l.COMPONENT_CLOSE?(i=t.parts[1],s=t.parts[2]):(i=t.parts[0],s=t.parts[1]),i=i||((n=this._getTagDefinition(s))===null||n===void 0?void 0:n.implicitNamespacePrefix)||"",!i&&r){let a=r instanceof te?r.name:r.tagName;if(a!==null){let o=et(a)[1],c=this._getTagDefinition(o);c!==null&&!c.preventNamespaceInheritance&&(i=Pe(a))}}return i}};function Di(e,t){return e.length>0&&e[e.length-1]===t}function Ii(e,t){return _e[t]!==void 0?_e[t]||e:/^#x[a-f0-9]+$/i.test(t)?String.fromCodePoint(parseInt(t.slice(2),16)):/^#\d+$/.test(t)?String.fromCodePoint(parseInt(t.slice(1),10)):e}var qi=class extends Mi{constructor(){super(Oe)}parse(e,t,r,n=!1,i){return super.parse(e,t,r,n,i)}};var Cr;function Rt(e,t={}){let{canSelfClose:r=!1,allowHtmComponentClosingTags:n=!1,isTagNameCaseSensitive:i=!1,getTagContentType:s,tokenizeAngularBlocks:a=!1,tokenizeAngularLetDeclaration:o=!1,enableAngularSelectorlessSyntax:c=!1}=t;return Cr??(Cr=new qi),Cr.parse(e,"angular-html-parser",{tokenizeExpansionForms:a,canSelfClose:r,allowHtmComponentClosingTags:n,tokenizeBlocks:a,tokenizeLet:o,selectorlessEnabled:c},i,s)}var Za=[to,ro,io,ao,oo,uo,lo,co,po,so];function eo(e,t){for(let r of Za)r(e,t);return e}function to(e){e.walk(t=>{if(t.kind==="element"&&t.tagDefinition.ignoreFirstLf&&t.children.length>0&&t.children[0].kind==="text"&&t.children[0].value[0]===` +`){let r=t.children[0];r.value.length===1?t.removeChild(r):r.value=r.value.slice(1)}})}function ro(e){let t=r=>r.kind==="element"&&r.prev?.kind==="ieConditionalStartComment"&&r.prev.sourceSpan.end.offset===r.startSourceSpan.start.offset&&r.firstChild?.kind==="ieConditionalEndComment"&&r.firstChild.sourceSpan.start.offset===r.startSourceSpan.end.offset;e.walk(r=>{if(r.children)for(let n=0;n{if(n.children)for(let i=0;it.kind==="cdata",t=>``)}function so(e){let t=r=>r.kind==="element"&&r.attrs.length===0&&r.children.length===1&&r.firstChild.kind==="text"&&!N.hasWhitespaceCharacter(r.children[0].value)&&!r.firstChild.hasLeadingSpaces&&!r.firstChild.hasTrailingSpaces&&r.isLeadingSpaceSensitive&&!r.hasLeadingSpaces&&r.isTrailingSpaceSensitive&&!r.hasTrailingSpaces&&r.prev?.kind==="text"&&r.next?.kind==="text";e.walk(r=>{if(r.children)for(let n=0;n`+i.firstChild.value+``+a.value,s.sourceSpan=new h(s.sourceSpan.start,a.sourceSpan.end),s.isTrailingSpaceSensitive=a.isTrailingSpaceSensitive,s.hasTrailingSpaces=a.hasTrailingSpaces,r.removeChild(i),n--,r.removeChild(a)}})}function ao(e,t){if(t.parser==="html")return;let r=/\{\{(.+?)\}\}/su;e.walk(n=>{if(nn(n,t))for(let i of n.children){if(i.kind!=="text")continue;let s=i.sourceSpan.start,a=null,o=i.value.split(r);for(let c=0;c0&&n.insertChildBefore(i,{kind:"text",value:u,sourceSpan:new h(s,a)});continue}a=s.moveBy(u.length+4),n.insertChildBefore(i,{kind:"interpolation",sourceSpan:new h(s,a),children:u.length===0?[]:[{kind:"text",value:u,sourceSpan:new h(s.moveBy(2),a.moveBy(-2))}]})}n.removeChild(i)}})}function oo(e,t){e.walk(r=>{let n=r.$children;if(!n)return;if(n.length===0||n.length===1&&n[0].kind==="text"&&N.trim(n[0].value).length===0){r.hasDanglingSpaces=n.length>0,r.$children=[];return}let i=sn(r,t),s=Zt(r);if(!i)for(let a=0;a{t.isSelfClosing=!t.children||t.kind==="element"&&(t.tagDefinition.isVoid||t.endSourceSpan&&t.startSourceSpan.start===t.endSourceSpan.start&&t.startSourceSpan.end===t.endSourceSpan.end)})}function co(e,t){e.walk(r=>{r.kind==="element"&&(r.hasHtmComponentClosingTag=r.endSourceSpan&&/^<\s*\/\s*\/\s*>$/u.test(t.originalText.slice(r.endSourceSpan.start.offset,r.endSourceSpan.end.offset)))})}function uo(e,t){e.walk(r=>{r.cssDisplay=dn(r,t)})}function po(e,t){e.walk(r=>{let{children:n}=r;if(n){if(n.length===0){r.isDanglingSpaceSensitive=ln(r,t);return}for(let i of n)i.isLeadingSpaceSensitive=an(i,t),i.isTrailingSpaceSensitive=on(i,t);for(let i=0;i of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var Ui="HTML",fo={bracketSameLine:vr.bracketSameLine,htmlWhitespaceSensitivity:{category:Ui,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:vr.singleAttributePerLine,vueIndentScriptAndStyle:{category:Ui,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},Wi=fo;var Nr={};Or(Nr,{angular:()=>Ro,html:()=>Oo,lwc:()=>Bo,mjml:()=>Io,vue:()=>Mo});function go(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}var Gi=go;var _o={canSelfClose:!0,normalizeTagName:!1,normalizeAttributeName:!1,allowHtmComponentClosingTags:!1,isTagNameCaseSensitive:!1,shouldParseFrontMatter:!0};function Mt(e){return{..._o,...e}}function Tr(e){let{canSelfClose:t,allowHtmComponentClosingTags:r,isTagNameCaseSensitive:n,shouldParseAsRawText:i,tokenizeAngularBlocks:s,tokenizeAngularLetDeclaration:a}=e;return{canSelfClose:t,allowHtmComponentClosingTags:r,isTagNameCaseSensitive:n,getTagContentType:i?(...o)=>i(...o)?R.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:s,tokenizeAngularLetDeclaration:a}}var Bt=new Map([["*",new Set(["accesskey","autocapitalize","autocorrect","autofocus","class","contenteditable","dir","draggable","enterkeyhint","exportparts","hidden","id","inert","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","part","popover","slot","spellcheck","style","tabindex","title","translate","writingsuggestions"])],["a",new Set(["charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","target","type"])],["applet",new Set(["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"])],["area",new Set(["alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","target","type"])],["audio",new Set(["autoplay","controls","crossorigin","loop","muted","preload","src"])],["base",new Set(["href","target"])],["basefont",new Set(["color","face","size"])],["blockquote",new Set(["cite"])],["body",new Set(["alink","background","bgcolor","link","text","vlink"])],["br",new Set(["clear"])],["button",new Set(["command","commandfor","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"])],["canvas",new Set(["height","width"])],["caption",new Set(["align"])],["col",new Set(["align","char","charoff","span","valign","width"])],["colgroup",new Set(["align","char","charoff","span","valign","width"])],["data",new Set(["value"])],["del",new Set(["cite","datetime"])],["details",new Set(["name","open"])],["dialog",new Set(["closedby","open"])],["dir",new Set(["compact"])],["div",new Set(["align"])],["dl",new Set(["compact"])],["embed",new Set(["height","src","type","width"])],["fieldset",new Set(["disabled","form","name"])],["font",new Set(["color","face","size"])],["form",new Set(["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"])],["frame",new Set(["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"])],["frameset",new Set(["cols","rows"])],["h1",new Set(["align"])],["h2",new Set(["align"])],["h3",new Set(["align"])],["h4",new Set(["align"])],["h5",new Set(["align"])],["h6",new Set(["align"])],["head",new Set(["profile"])],["hr",new Set(["align","noshade","size","width"])],["html",new Set(["manifest","version"])],["iframe",new Set(["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"])],["img",new Set(["align","alt","border","crossorigin","decoding","fetchpriority","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"])],["input",new Set(["accept","align","alpha","alt","autocomplete","checked","colorspace","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","usemap","value","width"])],["ins",new Set(["cite","datetime"])],["isindex",new Set(["prompt"])],["label",new Set(["for","form"])],["legend",new Set(["align"])],["li",new Set(["type","value"])],["link",new Set(["as","blocking","charset","color","crossorigin","disabled","fetchpriority","href","hreflang","imagesizes","imagesrcset","integrity","media","referrerpolicy","rel","rev","sizes","target","type"])],["map",new Set(["name"])],["menu",new Set(["compact"])],["meta",new Set(["charset","content","http-equiv","media","name","scheme"])],["meter",new Set(["high","low","max","min","optimum","value"])],["object",new Set(["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","type","typemustmatch","usemap","vspace","width"])],["ol",new Set(["compact","reversed","start","type"])],["optgroup",new Set(["disabled","label"])],["option",new Set(["disabled","label","selected","value"])],["output",new Set(["for","form","name"])],["p",new Set(["align"])],["param",new Set(["name","type","value","valuetype"])],["pre",new Set(["width"])],["progress",new Set(["max","value"])],["q",new Set(["cite"])],["script",new Set(["async","blocking","charset","crossorigin","defer","fetchpriority","integrity","language","nomodule","referrerpolicy","src","type"])],["select",new Set(["autocomplete","disabled","form","multiple","name","required","size"])],["slot",new Set(["name"])],["source",new Set(["height","media","sizes","src","srcset","type","width"])],["style",new Set(["blocking","media","type"])],["table",new Set(["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"])],["tbody",new Set(["align","char","charoff","valign"])],["td",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["template",new Set(["shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootmode","shadowrootserializable"])],["textarea",new Set(["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","wrap"])],["tfoot",new Set(["align","char","charoff","valign"])],["th",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["thead",new Set(["align","char","charoff","valign"])],["time",new Set(["datetime"])],["tr",new Set(["align","bgcolor","char","charoff","valign"])],["track",new Set(["default","kind","label","src","srclang"])],["ul",new Set(["compact","type"])],["video",new Set(["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"])]]);var zi=new Set(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","embed","fencedframe","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","search","section","select","selectedcontent","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]);var qt={attrs:!0,children:!0,cases:!0,expression:!0},$i=new Set(["parent"]),re,br,wr,Be=class Be{constructor(t={}){Dr(this,re);Ut(this,"kind");Ut(this,"parent");for(let r of new Set([...$i,...Object.keys(t)]))this.setProperty(r,t[r]);if(ie(t))for(let r of Object.getOwnPropertySymbols(t))this.setProperty(r,t[r])}setProperty(t,r){if(this[t]!==r){if(t in qt&&(r=r.map(n=>this.createChild(n))),!$i.has(t)){this[t]=r;return}Object.defineProperty(this,t,{value:r,enumerable:!1,configurable:!0})}}map(t){let r;for(let n in qt){let i=this[n];if(i){let s=So(i,a=>a.map(t));r!==i&&(r||(r=new Be({parent:this.parent})),r.setProperty(n,s))}}if(r)for(let n in this)n in qt||(r[n]=this[n]);return t(r||this)}walk(t){for(let r in qt){let n=this[r];if(n)for(let i=0;i[t.fullName,t.value]))}};re=new WeakSet,br=function(){return this.kind==="angularIcuCase"?"expression":this.kind==="angularIcuExpression"?"cases":"children"},wr=function(){return this.parent?.$children??[]};var Ft=Be;function So(e,t){let r=e.map(t);return r.some((n,i)=>n!==e[i])?r:e}var Eo=[{regex:/^(?\[if(?[^\]]*)\]>)(?.*?)[^\]]*)\]>{try{return[!0,r(s,o).children]}catch{return[!1,[{kind:"text",value:s,sourceSpan:new h(o,c)}]]}})();return{kind:"ieConditionalComment",complete:u,children:p,condition:w(0,i.trim(),/\s+/gu," "),sourceSpan:e.sourceSpan,startSourceSpan:new h(e.sourceSpan.start,o),endSourceSpan:new h(c,e.sourceSpan.end)}}function vo(e,t){let{condition:r}=t.groups;return{kind:"ieConditionalStartComment",condition:w(0,r.trim(),/\s+/gu," "),sourceSpan:e.sourceSpan}}function To(e){return{kind:"ieConditionalEndComment",sourceSpan:e.sourceSpan}}var kr=class extends fr{visitExpansionCase(t,r){r.parseOptions.name==="angular"&&this.visitChildren(r,n=>{n(t.expression)})}visit(t,{parseOptions:r}){xo(t),yo(t,r),No(t,r),Ao(t)}};function Ki(e,t,r,n){Ot(new kr,e.children,{parseOptions:r}),t&&e.children.unshift(t);let i=new Ft(e);return i.walk(s=>{if(s.kind==="comment"){let a=Yi(s,n);a&&s.parent.replaceChild(s,a)}bo(s),wo(s),ko(s)}),i}function bo(e){if(e.kind==="block"){if(e.name=w(0,e.name.toLowerCase(),/\s+/gu," ").trim(),e.kind="angularControlFlowBlock",!Ne(e.parameters)){delete e.parameters;return}for(let t of e.parameters)t.kind="angularControlFlowBlockParameter";e.parameters={kind:"angularControlFlowBlockParameters",children:e.parameters,sourceSpan:new h(e.parameters[0].sourceSpan.start,M(0,e.parameters,-1).sourceSpan.end)}}}function wo(e){e.kind==="letDeclaration"&&(e.kind="angularLetDeclaration",e.id=e.name,e.init={kind:"angularLetDeclarationInitializer",sourceSpan:new h(e.valueSpan.start,e.valueSpan.end),value:e.value},delete e.name,delete e.value)}function ko(e){e.kind==="expansion"&&(e.kind="angularIcuExpression"),e.kind==="expansionCase"&&(e.kind="angularIcuCase")}function ji(e,t){let r=e.toLowerCase();return t(r)?r:e}function Xi(e){let t=e.name.startsWith(":")?e.name.slice(1).split(":")[0]:null,r=e.nameSpan.toString(),n=t!==null&&r.startsWith(`${t}:`),i=n?r.slice(t.length+1):r;e.name=i,e.namespace=t,e.hasExplicitNamespace=n}function xo(e){switch(e.kind){case"element":Xi(e);for(let t of e.attrs)Xi(t),t.valueSpan?(t.value=t.valueSpan.toString(),/["']/u.test(t.value[0])&&(t.value=t.value.slice(1,-1))):t.value=null;break;case"comment":e.value=e.sourceSpan.toString().slice(4,-3);break;case"text":e.value=e.sourceSpan.toString();break}}function yo(e,t){if(e.kind==="element"){let r=Oe(t.isTagNameCaseSensitive?e.name:e.name.toLowerCase());!e.namespace||e.namespace===r.implicitNamespacePrefix||se(e)?e.tagDefinition=r:e.tagDefinition=Oe("")}}function Ao(e){e.sourceSpan&&e.endSourceSpan&&(e.sourceSpan=new h(e.sourceSpan.start,e.endSourceSpan.end))}function No(e,t){if(e.kind==="element"&&(t.normalizeTagName&&(!e.namespace||e.namespace===e.tagDefinition.implicitNamespacePrefix||se(e))&&(e.name=ji(e.name,r=>zi.has(r))),t.normalizeAttributeName))for(let r of e.attrs)r.namespace||(r.name=ji(r.name,n=>Bt.has(e.name)&&(Bt.get("*").has(n)||Bt.get(e.name).has(n))))}function yr(e,t){let{rootNodes:r,errors:n}=Rt(e,Tr(t));return n.length>0&&xr(n[0]),{parseOptions:t,rootNodes:r}}function Qi(e,t){let r=Tr(t),{rootNodes:n,errors:i}=Rt(e,r);if(n.some(u=>u.kind==="docType"&&u.value==="html"||u.kind==="element"&&u.name.toLowerCase()==="html"))return yr(e,Ht);let a,o=()=>a??(a=Rt(e,{...r,getTagContentType:void 0})),c=u=>{let{offset:p}=u.startSourceSpan.start;return o().rootNodes.find(d=>d.kind==="element"&&d.startSourceSpan.start.offset===p)??u};for(let[u,p]of n.entries())if(p.kind==="element"){if(p.isVoid)i=o().errors,n[u]=c(p);else if(Lo(p)){let{endSourceSpan:d,startSourceSpan:g}=p,m=o().errors.find(_=>_.span.start.offset>g.start.offset&&_.span.start.offset0&&xr(i[0]),{parseOptions:t,rootNodes:n}}function Lo(e){if(e.kind!=="element"||e.name!=="template")return!1;let t=e.attrs.find(r=>r.name==="lang")?.value;return!t||t==="html"}function xr(e){let{msg:t,span:{start:r,end:n}}=e;throw Gi(t,{loc:{start:{line:r.line+1,column:r.col+1},end:{line:n.line+1,column:n.col+1}},cause:e})}function Po(e,t,r,n,i,s){let{offset:a}=n,o=w(0,t.slice(0,a),/[^\n]/gu," ")+r,c=Ar(o,e,{...i,shouldParseFrontMatter:!1},s);c.sourceSpan=new h(n,M(0,c.children,-1).sourceSpan.end);let u=c.children[0];return u.length===a?c.children.shift():(u.sourceSpan=new h(u.sourceSpan.start.moveBy(a),u.sourceSpan.end),u.value=u.value.slice(a)),c}function Ar(e,t,r,n={}){let{frontMatter:i,content:s}=r.shouldParseFrontMatter?Xt(e):{content:e},a=new nt(e,n.filepath),o=new De(a,0,0,0),c=o.moveBy(e.length),{parseOptions:u,rootNodes:p}=t(s,r),d={kind:"root",sourceSpan:new h(o,c),children:p},g;if(i){let[_,T]=[i.start,i.end].map(P=>new De(a,P.index,P.line-1,P.column));g={...i,kind:"frontMatter",sourceSpan:new h(_,T)}}return Ki(d,g,u,(_,T)=>Po(t,e,_,T,u,n))}var Ht=Mt({name:"html",normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0});function at(e){let t=Mt(e),r=t.name==="vue"?Qi:yr;return{parse:(n,i)=>Ar(n,r,t,i),hasPragma:Zn,hasIgnorePragma:ei,astFormat:"html",locStart:K,locEnd:J}}var Oo=at(Ht),Do=new Set(["mj-style","mj-raw"]),Io=at({...Ht,name:"mjml",shouldParseAsRawText:e=>Do.has(e)}),Ro=at({name:"angular",tokenizeAngularBlocks:!0,tokenizeAngularLetDeclaration:!0}),Mo=at({name:"vue",isTagNameCaseSensitive:!0,shouldParseAsRawText(e,t,r,n){return e.toLowerCase()!=="html"&&!r&&(e!=="template"||n.some(({name:i,value:s})=>i==="lang"&&s!=="html"&&s!==""&&s!==void 0))}}),Bo=at({name:"lwc",canSelfClose:!1});var qo={html:Hi};export{Ji as default,Vi as languages,Wi as options,Nr as parsers,qo as printers}; diff --git a/node_modules/prettier/plugins/markdown.d.ts b/node_modules/prettier/plugins/markdown.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..447379f6fb6b31f5ea3e48b7df4d9e7d5e5c7cf3 --- /dev/null +++ b/node_modules/prettier/plugins/markdown.d.ts @@ -0,0 +1,11 @@ +import { Parser, Printer } from "../index.js"; + +export declare const parsers: { + markdown: Parser; + mdx: Parser; + remark: Parser; +}; + +export declare const printers: { + mdast: Printer; +}; diff --git a/node_modules/prettier/plugins/markdown.js b/node_modules/prettier/plugins/markdown.js new file mode 100644 index 0000000000000000000000000000000000000000..3c6dc8b93aabbb9fa4d7758ba768cc6761403e80 --- /dev/null +++ b/node_modules/prettier/plugins/markdown.js @@ -0,0 +1,62 @@ +(function(n){function e(){var i=n();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.markdown=e()}})(function(){"use strict";var El=Object.create;var Tr=Object.defineProperty;var Cl=Object.getOwnPropertyDescriptor;var vl=Object.getOwnPropertyNames;var Al=Object.getPrototypeOf,bl=Object.prototype.hasOwnProperty;var x=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Vn=(e,r)=>{for(var t in r)Tr(e,t,{get:r[t],enumerable:!0})},jn=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of vl(r))!bl.call(e,i)&&i!==t&&Tr(e,i,{get:()=>r[i],enumerable:!(n=Cl(r,i))||n.enumerable});return e};var Re=(e,r,t)=>(t=e!=null?El(Al(e)):{},jn(r||!e||!e.__esModule?Tr(t,"default",{value:e,enumerable:!0}):t,e)),xl=e=>jn(Tr({},"__esModule",{value:!0}),e);var Br=x((EF,$n)=>{"use strict";$n.exports=Bl;function Bl(e){return String(e).replace(/\s+/g," ")}});var Zi=x((XC,Qi)=>{"use strict";Qi.exports=Qf;var pr=9,Vr=10,Ve=32,Hf=33,Kf=58,je=91,Xf=92,St=93,hr=94,jr=96,$r=4,Jf=1024;function Qf(e){var r=this.Parser,t=this.Compiler;Zf(r)&&rD(r,e),eD(t)&&tD(t)}function Zf(e){return!!(e&&e.prototype&&e.prototype.blockTokenizers)}function eD(e){return!!(e&&e.prototype&&e.prototype.visitors)}function rD(e,r){for(var t=r||{},n=e.prototype,i=n.blockTokenizers,u=n.inlineTokenizers,a=n.blockMethods,o=n.inlineMethods,s=i.definition,l=u.reference,c=[],f=-1,D=a.length,m;++f$r&&(Z=void 0,ve=B);else{if(Z<$r&&G&&(G.contentStart===G.contentEnd||nD(C,i,w,[b,d.slice(B,Jf),!0])))break;Z=void 0,ve=B}B++}for(B=-1,T=Ae.length;T>0&&(G=Ae[T-1],G.contentStart===G.contentEnd);)T--;for(le=b(d.slice(0,G.contentEnd));++B{Rt.isRemarkParser=iD;Rt.isRemarkCompiler=uD;function iD(e){return!!(e&&e.prototype&&e.prototype.blockTokenizers)}function uD(e){return!!(e&&e.prototype&&e.prototype.visitors)}});var au=x((QC,uu)=>{var eu=Mt();uu.exports=cD;var ru=9,tu=32,Hr=36,aD=48,oD=57,nu=92,sD=["math","math-inline"],iu="math-display";function cD(e){let r=this.Parser,t=this.Compiler;eu.isRemarkParser(r)&&lD(r,e),eu.isRemarkCompiler(t)&&fD(t,e)}function lD(e,r){let t=e.prototype,n=t.inlineMethods;u.locator=i,t.inlineTokenizers.math=u,n.splice(n.indexOf("text"),0,"math");function i(a,o){return a.indexOf("$",o)}function u(a,o,s){let l=o.length,c=!1,f=!1,D=0,m,p,h,F,g,E,v;if(o.charCodeAt(D)===nu&&(f=!0,D++),o.charCodeAt(D)===Hr){if(D++,f)return s?!0:a(o.slice(0,D))({type:"text",value:"$"});if(o.charCodeAt(D)===Hr&&(c=!0,D++),h=o.charCodeAt(D),!(h===tu||h===ru)){for(F=D;DoD)&&(!c||h===Hr)){g=D-1,D++,c&&D++,E=D;break}}else p===nu&&(D++,h=o.charCodeAt(D+1));D++}if(E!==void 0)return s?!0:(v=o.slice(F,g+1),a(o.slice(0,E))({type:"inlineMath",value:v,data:{hName:"span",hProperties:{className:sD.concat(c&&r.inlineMathDouble?[iu]:[])},hChildren:[{type:"text",value:v}]}}))}}}}function fD(e){let r=e.prototype;r.visitors.inlineMath=t;function t(n){let i="$";return(n.data&&n.data.hProperties&&n.data.hProperties.className||[]).includes(iu)&&(i="$$"),i+n.value+i}}});var fu=x((ZC,lu)=>{var ou=Mt();lu.exports=dD;var su=10,dr=32,Ut=36,cu=` +`,DD="$",pD=2,hD=["math","math-display"];function dD(){let e=this.Parser,r=this.Compiler;ou.isRemarkParser(e)&&mD(e),ou.isRemarkCompiler(r)&&FD(r)}function mD(e){let r=e.prototype,t=r.blockMethods,n=r.interruptParagraph,i=r.interruptList,u=r.interruptBlockquote;r.blockTokenizers.math=a,t.splice(t.indexOf("fencedCode")+1,0,"math"),n.splice(n.indexOf("fencedCode")+1,0,["math"]),i.splice(i.indexOf("fencedCode")+1,0,["math"]),u.splice(u.indexOf("fencedCode")+1,0,["math"]);function a(o,s,l){var c=s.length,f=0;let D,m,p,h,F,g,E,v,A,b,d;for(;fb&&s.charCodeAt(h-1)===dr;)h--;for(;h>b&&s.charCodeAt(h-1)===Ut;)A++,h--;for(g<=A&&s.indexOf(DD,b)===h&&(v=!0,d=h);b<=d&&b-fb&&s.charCodeAt(d-1)===dr;)d--;if((!v||b!==d)&&m.push(s.slice(b,d)),v)break;f=p+1,p=s.indexOf(cu,f+1),p=p===-1?c:p}return m=m.join(` +`),o(s.slice(0,p))({type:"math",value:m,data:{hName:"div",hProperties:{className:hD.concat()},hChildren:[{type:"text",value:m}]}})}}}}function FD(e){let r=e.prototype;r.visitors.math=t;function t(n){return`$$ +`+n.value+` +$$`}}});var pu=x((ev,Du)=>{var gD=au(),ED=fu();Du.exports=CD;function CD(e){var r=e||{};ED.call(this,r),gD.call(this,r)}});var Ie=x((rv,hu)=>{hu.exports=AD;var vD=Object.prototype.hasOwnProperty;function AD(){for(var e={},r=0;r{typeof Object.create=="function"?Yt.exports=function(r,t){t&&(r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:Yt.exports=function(r,t){if(t){r.super_=t;var n=function(){};n.prototype=t.prototype,r.prototype=new n,r.prototype.constructor=r}}});var gu=x((nv,Fu)=>{"use strict";var bD=Ie(),mu=du();Fu.exports=xD;function xD(e){var r,t,n;mu(u,e),mu(i,u),r=u.prototype;for(t in r)n=r[t],n&&typeof n=="object"&&(r[t]="concat"in n?n.concat():bD(n));return u;function i(a){return e.apply(this,a)}function u(){return this instanceof u?e.apply(this,arguments):new i(arguments)}}});var Cu=x((iv,Eu)=>{"use strict";Eu.exports=yD;function yD(e,r,t){return n;function n(){var i=t||this,u=i[e];return i[e]=!r,a;function a(){i[e]=u}}}});var Au=x((uv,vu)=>{"use strict";vu.exports=wD;function wD(e){for(var r=String(e),t=[],n=/\r?\n|\r/g;n.exec(r);)t.push(n.lastIndex);return t.push(r.length+1),{toPoint:i,toPosition:i,toOffset:u};function i(a){var o=-1;if(a>-1&&aa)return{line:o+1,column:a-(t[o-1]||0)+1,offset:a}}return{}}function u(a){var o=a&&a.line,s=a&&a.column,l;return!isNaN(o)&&!isNaN(s)&&o-1 in t&&(l=(t[o-2]||0)+s-1||0),l>-1&&l{"use strict";bu.exports=kD;var Gt="\\";function kD(e,r){return t;function t(n){for(var i=0,u=n.indexOf(Gt),a=e[r],o=[],s;u!==-1;)o.push(n.slice(i,u)),i=u+1,s=n.charAt(i),(!s||a.indexOf(s)===-1)&&o.push(Gt),u=n.indexOf(Gt,i+1);return o.push(n.slice(i)),o.join("")}}});var yu=x((ov,TD)=>{TD.exports={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Acirc:"\xC2",Agrave:"\xC0",Aring:"\xC5",Atilde:"\xC3",Auml:"\xC4",COPY:"\xA9",Ccedil:"\xC7",ETH:"\xD0",Eacute:"\xC9",Ecirc:"\xCA",Egrave:"\xC8",Euml:"\xCB",GT:">",Iacute:"\xCD",Icirc:"\xCE",Igrave:"\xCC",Iuml:"\xCF",LT:"<",Ntilde:"\xD1",Oacute:"\xD3",Ocirc:"\xD4",Ograve:"\xD2",Oslash:"\xD8",Otilde:"\xD5",Ouml:"\xD6",QUOT:'"',REG:"\xAE",THORN:"\xDE",Uacute:"\xDA",Ucirc:"\xDB",Ugrave:"\xD9",Uuml:"\xDC",Yacute:"\xDD",aacute:"\xE1",acirc:"\xE2",acute:"\xB4",aelig:"\xE6",agrave:"\xE0",amp:"&",aring:"\xE5",atilde:"\xE3",auml:"\xE4",brvbar:"\xA6",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",eacute:"\xE9",ecirc:"\xEA",egrave:"\xE8",eth:"\xF0",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",iacute:"\xED",icirc:"\xEE",iexcl:"\xA1",igrave:"\xEC",iquest:"\xBF",iuml:"\xEF",laquo:"\xAB",lt:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",ntilde:"\xF1",oacute:"\xF3",ocirc:"\xF4",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",oslash:"\xF8",otilde:"\xF5",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',raquo:"\xBB",reg:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",thorn:"\xFE",times:"\xD7",uacute:"\xFA",ucirc:"\xFB",ugrave:"\xF9",uml:"\xA8",uuml:"\xFC",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}});var wu=x((sv,BD)=>{BD.exports={"0":"\uFFFD","128":"\u20AC","130":"\u201A","131":"\u0192","132":"\u201E","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02C6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017D","145":"\u2018","146":"\u2019","147":"\u201C","148":"\u201D","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02DC","153":"\u2122","154":"\u0161","155":"\u203A","156":"\u0153","158":"\u017E","159":"\u0178"}});var Se=x((cv,ku)=>{"use strict";ku.exports=_D;function _D(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=48&&r<=57}});var Bu=x((lv,Tu)=>{"use strict";Tu.exports=OD;function OD(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=97&&r<=102||r>=65&&r<=70||r>=48&&r<=57}});var $e=x((fv,_u)=>{"use strict";_u.exports=qD;function qD(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=97&&r<=122||r>=65&&r<=90}});var qu=x((Dv,Ou)=>{"use strict";var ND=$e(),PD=Se();Ou.exports=ID;function ID(e){return ND(e)||PD(e)}});var Nu=x((pv,SD)=>{SD.exports={AEli:"\xC6",AElig:"\xC6",AM:"&",AMP:"&",Aacut:"\xC1",Aacute:"\xC1",Abreve:"\u0102",Acir:"\xC2",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrav:"\xC0",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Arin:"\xC5",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atild:"\xC3",Atilde:"\xC3",Aum:"\xC4",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COP:"\xA9",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedi:"\xC7",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ET:"\xD0",ETH:"\xD0",Eacut:"\xC9",Eacute:"\xC9",Ecaron:"\u011A",Ecir:"\xCA",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrav:"\xC8",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Eum:"\xCB",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",G:">",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacut:"\xCD",Iacute:"\xCD",Icir:"\xCE",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrav:"\xCC",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Ium:"\xCF",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",L:"<",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",Mopf:"\u{1D544}",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` +`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntild:"\xD1",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacut:"\xD3",Oacute:"\xD3",Ocir:"\xD4",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograv:"\xD2",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslas:"\xD8",Oslash:"\xD8",Otild:"\xD5",Otilde:"\xD5",Otimes:"\u2A37",Oum:"\xD6",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUO:'"',QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",RE:"\xAE",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THOR:"\xDE",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacut:"\xDA",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucir:"\xDB",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrav:"\xD9",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uum:"\xDC",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacut:"\xDD",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\u{1D4B5}",aacut:"\xE1",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acir:"\xE2",acirc:"\xE2",acut:"\xB4",acute:"\xB4",acy:"\u0430",aeli:"\xE6",aelig:"\xE6",af:"\u2061",afr:"\u{1D51E}",agrav:"\xE0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",am:"&",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",arin:"\xE5",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",asymp:"\u2248",asympeq:"\u224D",atild:"\xE3",atilde:"\xE3",aum:"\xE4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvba:"\xA6",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedi:"\xE7",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedi:"\xB8",cedil:"\xB8",cemptyv:"\u29B2",cen:"\xA2",cent:"\xA2",centerdot:"\xB7",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\u{1D554}",coprod:"\u2210",cop:"\xA9",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curre:"\xA4",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",de:"\xB0",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divid:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacut:"\xE9",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\xEA",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrav:"\xE8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",et:"\xF0",eth:"\xF0",eum:"\xEB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac1:"\xBC",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac3:"\xBE",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",g:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacut:"\xED",iacute:"\xED",ic:"\u2063",icir:"\xEE",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexc:"\xA1",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",igrav:"\xEC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iprod:"\u2A3C",iques:"\xBF",iquest:"\xBF",iscr:"\u{1D4BE}",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",ium:"\xEF",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laqu:"\xAB",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",l:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",mac:"\xAF",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\u{1D52A}",mho:"\u2127",micr:"\xB5",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middo:"\xB7",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbs:"\xA0",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\u{1D55F}",no:"\xAC",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntild:"\xF1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacut:"\xF3",oacute:"\xF3",oast:"\u229B",ocir:"\xF4",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograv:"\xF2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\xBA",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslas:"\xF8",oslash:"\xF8",osol:"\u2298",otild:"\xF5",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",oum:"\xF6",ouml:"\xF6",ovbar:"\u233D",par:"\xB6",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusm:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\u{1D561}",poun:"\xA3",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quo:'"',quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raqu:"\xBB",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",re:"\xAE",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\u{1D4C7}",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sec:"\xA7",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",sh:"\xAD",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szli:"\xDF",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thor:"\xFE",thorn:"\xFE",tilde:"\u02DC",time:"\xD7",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacut:"\xFA",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucir:"\xFB",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",ugrav:"\xF9",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",um:"\xA8",uml:"\xA8",uogon:"\u0173",uopf:"\u{1D566}",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uum:"\xFC",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacut:"\xFD",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",ye:"\xA5",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yum:"\xFF",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}});var Su=x((hv,Iu)=>{"use strict";var Pu=Nu();Iu.exports=RD;var LD={}.hasOwnProperty;function RD(e){return LD.call(Pu,e)?Pu[e]:!1}});var mr=x((dv,Ku)=>{"use strict";var Lu=yu(),Ru=wu(),MD=Se(),UD=Bu(),Gu=qu(),YD=Su();Ku.exports=ep;var GD={}.hasOwnProperty,He=String.fromCharCode,zD=Function.prototype,Mu={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},WD=9,Uu=10,VD=12,jD=32,Yu=38,$D=59,HD=60,KD=61,XD=35,JD=88,QD=120,ZD=65533,Ke="named",Wt="hexadecimal",Vt="decimal",jt={};jt[Wt]=16;jt[Vt]=10;var Kr={};Kr[Ke]=Gu;Kr[Vt]=MD;Kr[Wt]=UD;var zu=1,Wu=2,Vu=3,ju=4,$u=5,zt=6,Hu=7,we={};we[zu]="Named character references must be terminated by a semicolon";we[Wu]="Numeric character references must be terminated by a semicolon";we[Vu]="Named character references cannot be empty";we[ju]="Numeric character references cannot be empty";we[$u]="Named character references must be known";we[zt]="Numeric character references cannot be disallowed";we[Hu]="Numeric character references cannot be outside the permissible Unicode range";function ep(e,r){var t={},n,i;r||(r={});for(i in Mu)n=r[i],t[i]=n??Mu[i];return(t.position.indent||t.position.start)&&(t.indent=t.position.indent||[],t.position=t.position.start),rp(e,t)}function rp(e,r){var t=r.additional,n=r.nonTerminated,i=r.text,u=r.reference,a=r.warning,o=r.textContext,s=r.referenceContext,l=r.warningContext,c=r.position,f=r.indent||[],D=e.length,m=0,p=-1,h=c.column||1,F=c.line||1,g="",E=[],v,A,b,d,y,w,C,k,T,B,_,S,P,N,O,I,le,K,L;for(typeof t=="string"&&(t=t.charCodeAt(0)),I=ie(),k=a?Z:zD,m--,D++;++m65535&&(w-=65536,B+=He(w>>>10|55296),w=56320|w&1023),w=B+He(w))):N!==Ke&&k(ju,K)),w?(ve(),I=ie(),m=L-1,h+=L-P+1,E.push(w),le=ie(),le.offset++,u&&u.call(s,w,{start:I,end:le},e.slice(P-1,L)),I=le):(d=e.slice(P-1,L),g+=d,h+=d.length,m=L-1)}else y===10&&(F++,p++,h=0),y===y?(g+=He(y),h++):ve();return E.join("");function ie(){return{line:F,column:h,offset:m+(c.offset||0)}}function Z(Ae,G){var Ft=ie();Ft.column+=G,Ft.offset+=G,a.call(l,we[Ae],Ft,Ae)}function ve(){g&&(E.push(g),i&&i.call(o,g,{start:I,end:ie()}),g="")}}function tp(e){return e>=55296&&e<=57343||e>1114111}function np(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}});var Qu=x((mv,Ju)=>{"use strict";var ip=Ie(),Xu=mr();Ju.exports=up;function up(e){return t.raw=n,t;function r(u){for(var a=e.offset,o=u.line,s=[];++o&&o in a;)s.push((a[o]||0)+1);return{start:u,indent:s}}function t(u,a,o){Xu(u,{position:r(a),warning:i,text:o,reference:o,textContext:e,referenceContext:e})}function n(u,a,o){return Xu(u,ip(o,{position:r(a),warning:i}))}function i(u,a,o){o!==3&&e.file.message(u,a)}}});var ra=x((Fv,ea)=>{"use strict";ea.exports=ap;function ap(e){return r;function r(t,n){var i=this,u=i.offset,a=[],o=i[e+"Methods"],s=i[e+"Tokenizers"],l=n.line,c=n.column,f,D,m,p,h,F;if(!t)return a;for(w.now=v,w.file=i.file,g("");t;){for(f=-1,D=o.length,h=!1;++f{"use strict";na.exports=Xr;var $t=["\\","`","*","{","}","[","]","(",")","#","+","-",".","!","_",">"],Ht=$t.concat(["~","|"]),ta=Ht.concat([` +`,'"',"$","%","&","'",",","/",":",";","<","=","?","@","^"]);Xr.default=$t;Xr.gfm=Ht;Xr.commonmark=ta;function Xr(e){var r=e||{};return r.commonmark?ta:r.gfm?Ht:$t}});var aa=x((Ev,ua)=>{"use strict";ua.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]});var Kt=x((Cv,oa)=>{"use strict";oa.exports={position:!0,gfm:!0,commonmark:!1,pedantic:!1,blocks:aa()}});var ca=x((vv,sa)=>{"use strict";var cp=Ie(),lp=ia(),fp=Kt();sa.exports=Dp;function Dp(e){var r=this,t=r.options,n,i;if(e==null)e={};else if(typeof e=="object")e=cp(e);else throw new Error("Invalid value `"+e+"` for setting `options`");for(n in fp){if(i=e[n],i==null&&(i=t[n]),n!=="blocks"&&typeof i!="boolean"||n==="blocks"&&typeof i!="object")throw new Error("Invalid value `"+i+"` for setting `options."+n+"`");e[n]=i}return r.options=e,r.escape=lp(e),r}});var Da=x((Av,fa)=>{"use strict";fa.exports=la;function la(e){if(e==null)return mp;if(typeof e=="string")return dp(e);if(typeof e=="object")return"length"in e?hp(e):pp(e);if(typeof e=="function")return e;throw new Error("Expected function, string, or object as test")}function pp(e){return r;function r(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}function hp(e){for(var r=[],t=-1;++t{pa.exports=Fp;function Fp(e){return e}});var ga=x((xv,Fa)=>{"use strict";Fa.exports=Jr;var gp=Da(),Ep=ha(),da=!0,ma="skip",Xt=!1;Jr.CONTINUE=da;Jr.SKIP=ma;Jr.EXIT=Xt;function Jr(e,r,t,n){var i,u;typeof r=="function"&&typeof t!="function"&&(n=t,t=r,r=null),u=gp(r),i=n?-1:1,a(e,null,[])();function a(o,s,l){var c=typeof o=="object"&&o!==null?o:{},f;return typeof c.type=="string"&&(f=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0,D.displayName="node ("+Ep(c.type+(f?"<"+f+">":""))+")"),D;function D(){var m=l.concat(o),p=[],h,F;if((!r||u(o,s,l[l.length-1]||null))&&(p=Cp(t(o,l)),p[0]===Xt))return p;if(o.children&&p[0]!==ma)for(F=(n?o.children.length:-1)+i;F>-1&&F{"use strict";Ea.exports=Zr;var Qr=ga(),vp=Qr.CONTINUE,Ap=Qr.SKIP,bp=Qr.EXIT;Zr.CONTINUE=vp;Zr.SKIP=Ap;Zr.EXIT=bp;function Zr(e,r,t,n){typeof r=="function"&&typeof t!="function"&&(n=t,t=r,r=null),Qr(e,r,i,n);function i(u,a){var o=a[a.length-1],s=o?o.children.indexOf(u):null;return t(u,s,o)}}});var Aa=x((wv,va)=>{"use strict";var xp=Ca();va.exports=yp;function yp(e,r){return xp(e,r?wp:kp),e}function wp(e){delete e.position}function kp(e){e.position=void 0}});var ya=x((kv,xa)=>{"use strict";var ba=Ie(),Tp=Aa();xa.exports=Op;var Bp=` +`,_p=/\r\n|\r/g;function Op(){var e=this,r=String(e.file),t={line:1,column:1,offset:0},n=ba(t),i;return r=r.replace(_p,Bp),r.charCodeAt(0)===65279&&(r=r.slice(1),n.column++,n.offset++),i={type:"root",children:e.tokenizeBlock(r,n),position:{start:t,end:e.eof||ba(t)}},e.options.position||Tp(i,!0),i}});var ka=x((Tv,wa)=>{"use strict";var qp=/^[ \t]*(\n|$)/;wa.exports=Np;function Np(e,r,t){for(var n,i="",u=0,a=r.length;u{"use strict";var ge="",Jt;Ta.exports=Pp;function Pp(e,r){if(typeof e!="string")throw new TypeError("expected a string");if(r===1)return e;if(r===2)return e+e;var t=e.length*r;if(Jt!==e||typeof Jt>"u")Jt=e,ge="";else if(ge.length>=t)return ge.substr(0,t);for(;t>ge.length&&r>1;)r&1&&(ge+=e),r>>=1,e+=e;return ge+=e,ge=ge.substr(0,t),ge}});var Qt=x((_v,Ba)=>{"use strict";Ba.exports=Ip;function Ip(e){return String(e).replace(/\n+$/,"")}});var qa=x((Ov,Oa)=>{"use strict";var Sp=et(),Lp=Qt();Oa.exports=Up;var Zt=` +`,_a=" ",en=" ",Rp=4,Mp=Sp(en,Rp);function Up(e,r,t){for(var n=-1,i=r.length,u="",a="",o="",s="",l,c,f;++n{"use strict";Pa.exports=Wp;var rt=` +`,Fr=" ",Xe=" ",Yp="~",Na="`",Gp=3,zp=4;function Wp(e,r,t){var n=this,i=n.options.gfm,u=r.length+1,a=0,o="",s,l,c,f,D,m,p,h,F,g,E,v,A;if(i){for(;a=zp)){for(p="";a{Je=Sa.exports=Vp;function Vp(e){return e.trim?e.trim():Je.right(Je.left(e))}Je.left=function(e){return e.trimLeft?e.trimLeft():e.replace(/^\s\s*/,"")};Je.right=function(e){if(e.trimRight)return e.trimRight();for(var r=/\s/,t=e.length;r.test(e.charAt(--t)););return e.slice(0,t+1)}});var tt=x((Nv,La)=>{"use strict";La.exports=jp;function jp(e,r,t,n){for(var i=e.length,u=-1,a,o;++u{"use strict";var $p=Le(),Hp=tt();Ua.exports=Kp;var rn=` +`,Ra=" ",tn=" ",Ma=">";function Kp(e,r,t){for(var n=this,i=n.offset,u=n.blockTokenizers,a=n.interruptBlockquote,o=e.now(),s=o.line,l=r.length,c=[],f=[],D=[],m,p=0,h,F,g,E,v,A,b,d;p{"use strict";za.exports=Jp;var Ga=` +`,gr=" ",Er=" ",Cr="#",Xp=6;function Jp(e,r,t){for(var n=this,i=n.options.pedantic,u=r.length+1,a=-1,o=e.now(),s="",l="",c,f,D;++aXp)&&!(!D||!i&&r.charAt(a+1)===Cr)){for(u=r.length+1,f="";++a{"use strict";ja.exports=ih;var Qp=" ",Zp=` +`,Va=" ",eh="*",rh="-",th="_",nh=3;function ih(e,r,t){for(var n=-1,i=r.length+1,u="",a,o,s,l;++n=nh&&(!a||a===Zp)?(u+=l,t?!0:e(u)({type:"thematicBreak"})):void 0}});var nn=x((Lv,Ka)=>{"use strict";Ka.exports=sh;var Ha=" ",uh=" ",ah=1,oh=4;function sh(e){for(var r=0,t=0,n=e.charAt(r),i={},u,a=0;n===Ha||n===uh;){for(u=n===Ha?oh:ah,t+=u,u>1&&(t=Math.floor(t/u)*u);a{"use strict";var ch=Le(),lh=et(),fh=nn();Ja.exports=hh;var Xa=` +`,Dh=" ",ph="!";function hh(e,r){var t=e.split(Xa),n=t.length+1,i=1/0,u=[],a,o,s;for(t.unshift(lh(Dh,r)+ph);n--;)if(o=fh(t[n]),u[n]=o.stops,ch(t[n]).length!==0)if(o.indent)o.indent>0&&o.indent{"use strict";var dh=Le(),mh=et(),Za=Se(),Fh=nn(),gh=Qa(),Eh=tt();no.exports=kh;var un="*",Ch="_",eo="+",an="-",ro=".",Ee=" ",oe=` +`,nt=" ",to=")",vh="x",ke=4,Ah=/\n\n(?!\s*$)/,bh=/^\[([ X\tx])][ \t]/,xh=/^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/,yh=/^([ \t]*)([*+-]|\d+[.)])([ \t]+)/,wh=/^( {1,4}|\t)?/gm;function kh(e,r,t){for(var n=this,i=n.options.commonmark,u=n.options.pedantic,a=n.blockTokenizers,o=n.interruptList,s=0,l=r.length,c=null,f,D,m,p,h,F,g,E,v,A,b,d,y,w,C,k,T,B,_,S=!1,P,N,O,I;s=T.indent&&(I=!0),p=r.charAt(s),v=null,!I){if(p===un||p===eo||p===an)v=p,s++,f++;else{for(D="";s=T.indent||f>ke),E=!1,s=g;if(b=r.slice(g,F),A=g===s?b:r.slice(s,F),(v===un||v===Ch||v===an)&&a.thematicBreak.call(n,e,b,!0))break;if(d=y,y=!E&&!dh(A).length,I&&T)T.value=T.value.concat(k,b),C=C.concat(k,b),k=[];else if(E)k.length!==0&&(S=!0,T.value.push(""),T.trail=k.concat()),T={value:[b],indent:f,trail:[]},w.push(T),C=C.concat(k,b),k=[];else if(y){if(d&&!i)break;k.push(b)}else{if(d||Eh(o,a,n,[e,b,!0]))break;T.value=T.value.concat(k,b),C=C.concat(k,b),k=[]}s=F+1}for(P=e(C.join(oe)).reset({type:"list",ordered:m,start:c,spread:S,children:[]}),B=n.enterList(),_=n.enterBlock(),s=-1,l=w.length;++s{"use strict";oo.exports=Sh;var on=` +`,Oh=" ",uo=" ",ao="=",qh="-",Nh=3,Ph=1,Ih=2;function Sh(e,r,t){for(var n=this,i=e.now(),u=r.length,a=-1,o="",s,l,c,f,D;++a=Nh){a--;break}o+=c}for(s="",l="";++a{"use strict";var Lh="[a-zA-Z_:][a-zA-Z0-9:._-]*",Rh="[^\"'=<>`\\u0000-\\u0020]+",Mh="'[^']*'",Uh='"[^"]*"',Yh="(?:"+Rh+"|"+Mh+"|"+Uh+")",Gh="(?:\\s+"+Lh+"(?:\\s*=\\s*"+Yh+")?)",co="<[A-Za-z][A-Za-z0-9\\-]*"+Gh+"*\\s*\\/?>",lo="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",zh="|",Wh="<[?].*?[?]>",Vh="]*>",jh="";sn.openCloseTag=new RegExp("^(?:"+co+"|"+lo+")");sn.tag=new RegExp("^(?:"+co+"|"+lo+"|"+zh+"|"+Wh+"|"+Vh+"|"+jh+")")});var ho=x((Gv,po)=>{"use strict";var $h=cn().openCloseTag;po.exports=sd;var Hh=" ",Kh=" ",fo=` +`,Xh="<",Jh=/^<(script|pre|style)(?=(\s|>|$))/i,Qh=/<\/(script|pre|style)>/i,Zh=/^/,rd=/^<\?/,td=/\?>/,nd=/^/,ud=/^/,Do=/^$/,od=new RegExp($h.source+"\\s*$");function sd(e,r,t){for(var n=this,i=n.options.blocks.join("|"),u=new RegExp("^|$))","i"),a=r.length,o=0,s,l,c,f,D,m,p,h=[[Jh,Qh,!0],[Zh,ed,!0],[rd,td,!0],[nd,id,!0],[ud,ad,!0],[u,Do,!0],[od,Do,!1]];o{"use strict";mo.exports=fd;var cd=String.fromCharCode,ld=/\s/;function fd(e){return ld.test(typeof e=="number"?cd(e):e.charAt(0))}});var ln=x((Wv,Fo)=>{"use strict";var Dd=Br();Fo.exports=pd;function pd(e){return Dd(e).toLowerCase()}});var xo=x((Vv,bo)=>{"use strict";var hd=se(),dd=ln();bo.exports=Ed;var go='"',Eo="'",md="\\",Qe=` +`,it=" ",ut=" ",Dn="[",vr="]",Fd="(",gd=")",Co=":",vo="<",Ao=">";function Ed(e,r,t){for(var n=this,i=n.options.commonmark,u=0,a=r.length,o="",s,l,c,f,D,m,p,h;u{"use strict";var vd=se();wo.exports=Od;var Ad=" ",at=` +`,bd=" ",xd="-",yd=":",wd="\\",pn="|",kd=1,Td=2,yo="left",Bd="center",_d="right";function Od(e,r,t){var n=this,i,u,a,o,s,l,c,f,D,m,p,h,F,g,E,v,A,b,d,y,w,C;if(n.options.gfm){for(i=0,v=0,l=r.length+1,c=[];iy){if(v1&&(D?(o+=f.slice(0,-1),f=f.charAt(f.length-1)):(o+=f,f="")),g=e.now(),e(o)({type:"tableCell",children:n.tokenizeInline(h,g)},s)),e(f+D),f="",h=""):(f&&(h+=f,f=""),h+=D,D===wd&&i!==l-2&&(h+=A.charAt(i+1),i++)),F=!1,i++}E||e(at+u)}return d}}}});var _o=x(($v,Bo)=>{"use strict";var qd=Le(),Nd=Qt(),Pd=tt();Bo.exports=Ld;var Id=" ",Ar=` +`,Sd=" ",To=4;function Ld(e,r,t){for(var n=this,i=n.options,u=i.commonmark,a=n.blockTokenizers,o=n.interruptParagraph,s=r.indexOf(Ar),l=r.length,c,f,D,m,p;s=To&&D!==Ar){s=r.indexOf(Ar,s+1);continue}}if(f=r.slice(s+1),Pd(o,a,n,[e,f,!0]))break;if(c=s,s=r.indexOf(Ar,s+1),s!==-1&&qd(r.slice(c,s))===""){s=c;break}}return f=r.slice(0,s),t?!0:(p=e.now(),f=Nd(f),e(f)({type:"paragraph",children:n.tokenizeInline(f,p)}))}});var qo=x((Hv,Oo)=>{"use strict";Oo.exports=Rd;function Rd(e,r){return e.indexOf("\\",r)}});var So=x((Kv,Io)=>{"use strict";var Md=qo();Io.exports=Po;Po.locator=Md;var Ud=` +`,No="\\";function Po(e,r,t){var n=this,i,u;if(r.charAt(0)===No&&(i=r.charAt(1),n.escape.indexOf(i)!==-1))return t?!0:(i===Ud?u={type:"break"}:u={type:"text",value:i},e(No+i)(u))}});var hn=x((Xv,Lo)=>{"use strict";Lo.exports=Yd;function Yd(e,r){return e.indexOf("<",r)}});var Go=x((Jv,Yo)=>{"use strict";var Ro=se(),Gd=mr(),zd=hn();Yo.exports=gn;gn.locator=zd;gn.notInLink=!0;var Mo="<",dn=">",Uo="@",mn="/",Fn="mailto:",ot=Fn.length;function gn(e,r,t){var n=this,i="",u=r.length,a=0,o="",s=!1,l="",c,f,D,m,p;if(r.charAt(0)===Mo){for(a++,i=Mo;a{"use strict";zo.exports=Wd;function Wd(e,r){var t=String(e),n=0,i;if(typeof r!="string")throw new Error("Expected character");for(i=t.indexOf(r);i!==-1;)n++,i=t.indexOf(r,i+r.length);return n}});var $o=x((Zv,jo)=>{"use strict";jo.exports=Vd;var Vo=["www.","http://","https://"];function Vd(e,r){var t=-1,n,i,u;if(!this.options.gfm)return t;for(i=Vo.length,n=-1;++n{"use strict";var Ho=Wo(),jd=mr(),$d=Se(),En=$e(),Hd=se(),Kd=$o();Jo.exports=vn;vn.locator=Kd;vn.notInLink=!0;var Xd=33,Jd=38,Qd=41,Zd=42,e0=44,r0=45,Cn=46,t0=58,n0=59,i0=63,u0=60,Ko=95,a0=126,o0="(",Xo=")";function vn(e,r,t){var n=this,i=n.options.gfm,u=n.inlineTokenizers,a=r.length,o=-1,s=!1,l,c,f,D,m,p,h,F,g,E,v,A,b,d;if(i){if(r.slice(0,4)==="www.")s=!0,D=4;else if(r.slice(0,7).toLowerCase()==="http://")D=7;else if(r.slice(0,8).toLowerCase()==="https://")D=8;else return;for(o=D-1,f=D,l=[];Dg;)D=m+p.lastIndexOf(Xo),p=r.slice(m,D),E--;if(r.charCodeAt(D-1)===n0&&(D--,En(r.charCodeAt(D-1)))){for(F=D-2;En(r.charCodeAt(F));)F--;r.charCodeAt(F)===Jd&&(D=F)}return v=r.slice(0,D),b=jd(v,{nonTerminated:!1}),s&&(b="http://"+b),d=n.enterLink(),n.inlineTokenizers={text:u.text},A=n.tokenizeInline(v,e.now()),n.inlineTokenizers=u,d(),e(v)({type:"link",title:null,url:b,children:A})}}}});var ts=x((r2,rs)=>{"use strict";var s0=Se(),c0=$e(),l0=43,f0=45,D0=46,p0=95;rs.exports=es;function es(e,r){var t=this,n,i;if(!this.options.gfm||(n=e.indexOf("@",r),n===-1))return-1;if(i=n,i===r||!Zo(e.charCodeAt(i-1)))return es.call(t,e,n+1);for(;i>r&&Zo(e.charCodeAt(i-1));)i--;return i}function Zo(e){return s0(e)||c0(e)||e===l0||e===f0||e===D0||e===p0}});var as=x((t2,us)=>{"use strict";var h0=mr(),ns=Se(),is=$e(),d0=ts();us.exports=xn;xn.locator=d0;xn.notInLink=!0;var m0=43,An=45,st=46,F0=64,bn=95;function xn(e,r,t){var n=this,i=n.options.gfm,u=n.inlineTokenizers,a=0,o=r.length,s=-1,l,c,f,D;if(i){for(l=r.charCodeAt(a);ns(l)||is(l)||l===m0||l===An||l===st||l===bn;)l=r.charCodeAt(++a);if(a!==0&&l===F0){for(a++;a{"use strict";var g0=$e(),E0=hn(),C0=cn().tag;ss.exports=os;os.locator=E0;var v0="<",A0="?",b0="!",x0="/",y0=/^/i;function os(e,r,t){var n=this,i=r.length,u,a;if(!(r.charAt(0)!==v0||i<3)&&(u=r.charAt(1),!(!g0(u)&&u!==A0&&u!==b0&&u!==x0)&&(a=r.match(C0),!!a)))return t?!0:(a=a[0],!n.inLink&&y0.test(a)?n.inLink=!0:n.inLink&&w0.test(a)&&(n.inLink=!1),e(a)({type:"html",value:a}))}});var yn=x((i2,ls)=>{"use strict";ls.exports=k0;function k0(e,r){var t=e.indexOf("[",r),n=e.indexOf("![",r);return n===-1||t{"use strict";var br=se(),T0=yn();ms.exports=ds;ds.locator=T0;var B0=` +`,_0="!",fs='"',Ds="'",Ze="(",xr=")",wn="<",kn=">",ps="[",yr="\\",O0="]",hs="`";function ds(e,r,t){var n=this,i="",u=0,a=r.charAt(0),o=n.options.pedantic,s=n.options.commonmark,l=n.options.gfm,c,f,D,m,p,h,F,g,E,v,A,b,d,y,w,C,k,T;if(a===_0&&(g=!0,i=a,a=r.charAt(++u)),a===ps&&!(!g&&n.inLink)){for(i+=a,y="",u++,A=r.length,C=e.now(),d=0,C.column+=u,C.offset+=u;u=D&&(D=0):D=f}else if(a===yr)u++,h+=r.charAt(u);else if((!D||l)&&a===ps)d++;else if((!D||l)&&a===O0)if(d)d--;else{if(r.charAt(u+1)!==Ze)return;h+=Ze,c=!0,u++;break}y+=h,h="",u++}if(c){for(E=y,i+=y+h,u++;u{"use strict";var q0=se(),N0=yn(),P0=ln();Es.exports=gs;gs.locator=N0;var Tn="link",I0="image",S0="shortcut",L0="collapsed",Bn="full",R0="!",ct="[",lt="\\",ft="]";function gs(e,r,t){var n=this,i=n.options.commonmark,u=r.charAt(0),a=0,o=r.length,s="",l="",c=Tn,f=S0,D,m,p,h,F,g,E,v;if(u===R0&&(c=I0,l=u,u=r.charAt(++a)),u===ct){for(a++,l+=u,g="",v=0;a{"use strict";vs.exports=M0;function M0(e,r){var t=e.indexOf("**",r),n=e.indexOf("__",r);return n===-1?t:t===-1||n{"use strict";var U0=Le(),bs=se(),Y0=As();ys.exports=xs;xs.locator=Y0;var G0="\\",z0="*",W0="_";function xs(e,r,t){var n=this,i=0,u=r.charAt(i),a,o,s,l,c,f,D;if(!(u!==z0&&u!==W0||r.charAt(++i)!==u)&&(o=n.options.pedantic,s=u,c=s+s,f=r.length,i++,l="",u="",!(o&&bs(r.charAt(i)))))for(;i{"use strict";ks.exports=$0;var V0=String.fromCharCode,j0=/\w/;function $0(e){return j0.test(typeof e=="number"?V0(e):e.charAt(0))}});var _s=x((l2,Bs)=>{"use strict";Bs.exports=H0;function H0(e,r){var t=e.indexOf("*",r),n=e.indexOf("_",r);return n===-1?t:t===-1||n{"use strict";var K0=Le(),X0=Ts(),Os=se(),J0=_s();Ps.exports=Ns;Ns.locator=J0;var Q0="*",qs="_",Z0="\\";function Ns(e,r,t){var n=this,i=0,u=r.charAt(i),a,o,s,l,c,f,D;if(!(u!==Q0&&u!==qs)&&(o=n.options.pedantic,c=u,s=u,f=r.length,i++,l="",u="",!(o&&Os(r.charAt(i)))))for(;i{"use strict";Ss.exports=em;function em(e,r){return e.indexOf("~~",r)}});var Gs=x((p2,Ys)=>{"use strict";var Rs=se(),rm=Ls();Ys.exports=Us;Us.locator=rm;var Dt="~",Ms="~~";function Us(e,r,t){var n=this,i="",u="",a="",o="",s,l,c;if(!(!n.options.gfm||r.charAt(0)!==Dt||r.charAt(1)!==Dt||Rs(r.charAt(2))))for(s=1,l=r.length,c=e.now(),c.column+=2,c.offset+=2;++s{"use strict";zs.exports=tm;function tm(e,r){return e.indexOf("`",r)}});var $s=x((d2,js)=>{"use strict";var nm=Ws();js.exports=Vs;Vs.locator=nm;var _n=10,On=32,qn=96;function Vs(e,r,t){for(var n=r.length,i=0,u,a,o,s,l,c;i2&&(s===On||s===_n)&&(l===On||l===_n)){for(i++,n--;i{"use strict";Hs.exports=im;function im(e,r){for(var t=e.indexOf(` +`,r);t>r&&e.charAt(t-1)===" ";)t--;return t}});var Qs=x((F2,Js)=>{"use strict";var um=Ks();Js.exports=Xs;Xs.locator=um;var am=" ",om=` +`,sm=2;function Xs(e,r,t){for(var n=r.length,i=-1,u="",a;++i{"use strict";Zs.exports=cm;function cm(e,r,t){var n=this,i,u,a,o,s,l,c,f,D,m;if(t)return!0;for(i=n.inlineMethods,o=i.length,u=n.inlineTokenizers,a=-1,D=r.length;++a{"use strict";var lm=Ie(),pt=Cu(),fm=Au(),Dm=xu(),pm=Qu(),Nn=ra();nc.exports=rc;function rc(e,r){this.file=r,this.offset={},this.options=lm(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=fm(r).toOffset,this.unescape=Dm(this,"escape"),this.decode=pm(this)}var Y=rc.prototype;Y.setOptions=ca();Y.parse=ya();Y.options=Kt();Y.exitStart=pt("atStart",!0);Y.enterList=pt("inList",!1);Y.enterLink=pt("inLink",!1);Y.enterBlock=pt("inBlock",!1);Y.interruptParagraph=[["thematicBreak"],["list"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}]];Y.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}]];Y.interruptBlockquote=[["indentedCode",{commonmark:!0}],["fencedCode",{commonmark:!0}],["atxHeading",{commonmark:!0}],["setextHeading",{commonmark:!0}],["thematicBreak",{commonmark:!0}],["html",{commonmark:!0}],["list",{commonmark:!0}],["definition",{commonmark:!1}]];Y.blockTokenizers={blankLine:ka(),indentedCode:qa(),fencedCode:Ia(),blockquote:Ya(),atxHeading:Wa(),thematicBreak:$a(),list:io(),setextHeading:so(),html:ho(),definition:xo(),table:ko(),paragraph:_o()};Y.inlineTokenizers={escape:So(),autoLink:Go(),url:Qo(),email:as(),html:cs(),link:Fs(),reference:Cs(),strong:ws(),emphasis:Is(),deletion:Gs(),code:$s(),break:Qs(),text:ec()};Y.blockMethods=tc(Y.blockTokenizers);Y.inlineMethods=tc(Y.inlineTokenizers);Y.tokenizeBlock=Nn("block");Y.tokenizeInline=Nn("inline");Y.tokenizeFactory=Nn;function tc(e){var r=[],t;for(t in e)r.push(t);return r}});var sc=x((C2,oc)=>{"use strict";var hm=gu(),dm=Ie(),uc=ic();oc.exports=ac;ac.Parser=uc;function ac(e){var r=this.data("settings"),t=hm(uc);t.prototype.options=dm(t.prototype.options,r,e),this.Parser=t}});var lc=x((v2,cc)=>{"use strict";cc.exports=mm;function mm(e){if(e)throw e}});var Pn=x((A2,fc)=>{fc.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}});var Cc=x((b2,Ec)=>{"use strict";var ht=Object.prototype.hasOwnProperty,gc=Object.prototype.toString,Dc=Object.defineProperty,pc=Object.getOwnPropertyDescriptor,hc=function(r){return typeof Array.isArray=="function"?Array.isArray(r):gc.call(r)==="[object Array]"},dc=function(r){if(!r||gc.call(r)!=="[object Object]")return!1;var t=ht.call(r,"constructor"),n=r.constructor&&r.constructor.prototype&&ht.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!t&&!n)return!1;var i;for(i in r);return typeof i>"u"||ht.call(r,i)},mc=function(r,t){Dc&&t.name==="__proto__"?Dc(r,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):r[t.name]=t.newValue},Fc=function(r,t){if(t==="__proto__")if(ht.call(r,t)){if(pc)return pc(r,t).value}else return;return r[t]};Ec.exports=function e(){var r,t,n,i,u,a,o=arguments[0],s=1,l=arguments.length,c=!1;for(typeof o=="boolean"&&(c=o,o=arguments[1]||{},s=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});s{"use strict";vc.exports=e=>{if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let r=Object.getPrototypeOf(e);return r===null||r===Object.prototype}});var xc=x((y2,bc)=>{"use strict";var Fm=[].slice;bc.exports=gm;function gm(e,r){var t;return n;function n(){var a=Fm.call(arguments,0),o=e.length>a.length,s;o&&a.push(i);try{s=e.apply(null,a)}catch(l){if(o&&t)throw l;return i(l)}o||(s&&typeof s.then=="function"?s.then(u,i):s instanceof Error?i(s):u(s))}function i(){t||(t=!0,r.apply(null,arguments))}function u(a){i(null,a)}}});var Bc=x((w2,Tc)=>{"use strict";var wc=xc();Tc.exports=kc;kc.wrap=wc;var yc=[].slice;function kc(){var e=[],r={};return r.run=t,r.use=n,r;function t(){var i=-1,u=yc.call(arguments,0,-1),a=arguments[arguments.length-1];if(typeof a!="function")throw new Error("Expected function as last argument, not "+a);o.apply(null,[null].concat(u));function o(s){var l=e[++i],c=yc.call(arguments,0),f=c.slice(1),D=u.length,m=-1;if(s){a(s);return}for(;++m{"use strict";var er={}.hasOwnProperty;qc.exports=Em;function Em(e){return!e||typeof e!="object"?"":er.call(e,"position")||er.call(e,"type")?_c(e.position):er.call(e,"start")||er.call(e,"end")?_c(e):er.call(e,"line")||er.call(e,"column")?In(e):""}function In(e){return(!e||typeof e!="object")&&(e={}),Oc(e.line)+":"+Oc(e.column)}function _c(e){return(!e||typeof e!="object")&&(e={}),In(e.start)+"-"+In(e.end)}function Oc(e){return e&&typeof e=="number"?e:1}});var Sc=x((T2,Ic)=>{"use strict";var Cm=Nc();Ic.exports=Sn;function Pc(){}Pc.prototype=Error.prototype;Sn.prototype=new Pc;var Te=Sn.prototype;Te.file="";Te.name="";Te.reason="";Te.message="";Te.stack="";Te.fatal=null;Te.column=null;Te.line=null;function Sn(e,r,t){var n,i,u;typeof r=="string"&&(t=r,r=null),n=vm(t),i=Cm(r)||"1:1",u={start:{line:null,column:null},end:{line:null,column:null}},r&&r.position&&(r=r.position),r&&(r.start?(u=r,r=r.start):u.start=r),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=i,this.reason=e,this.line=r?r.line:null,this.column=r?r.column:null,this.location=u,this.source=n[0],this.ruleId=n[1]}function vm(e){var r=[null,null],t;return typeof e=="string"&&(t=e.indexOf(":"),t===-1?r[1]=e:(r[0]=e.slice(0,t),r[1]=e.slice(t+1))),r}});var Lc=x(rr=>{"use strict";rr.basename=Am;rr.dirname=bm;rr.extname=xm;rr.join=ym;rr.sep="/";function Am(e,r){var t=0,n=-1,i,u,a,o;if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');if(wr(e),i=e.length,r===void 0||!r.length||r.length>e.length){for(;i--;)if(e.charCodeAt(i)===47){if(a){t=i+1;break}}else n<0&&(a=!0,n=i+1);return n<0?"":e.slice(t,n)}if(r===e)return"";for(u=-1,o=r.length-1;i--;)if(e.charCodeAt(i)===47){if(a){t=i+1;break}}else u<0&&(a=!0,u=i+1),o>-1&&(e.charCodeAt(i)===r.charCodeAt(o--)?o<0&&(n=i):(o=-1,n=u));return t===n?n=u:n<0&&(n=e.length),e.slice(t,n)}function bm(e){var r,t,n;if(wr(e),!e.length)return".";for(r=-1,n=e.length;--n;)if(e.charCodeAt(n)===47){if(t){r=n;break}}else t||(t=!0);return r<0?e.charCodeAt(0)===47?"/":".":r===1&&e.charCodeAt(0)===47?"//":e.slice(0,r)}function xm(e){var r=-1,t=0,n=-1,i=0,u,a,o;for(wr(e),o=e.length;o--;){if(a=e.charCodeAt(o),a===47){if(u){t=o+1;break}continue}n<0&&(u=!0,n=o+1),a===46?r<0?r=o:i!==1&&(i=1):r>-1&&(i=-1)}return r<0||n<0||i===0||i===1&&r===n-1&&r===t+1?"":e.slice(r,n)}function ym(){for(var e=-1,r;++e2){if(s=t.lastIndexOf("/"),s!==t.length-1){s<0?(t="",n=0):(t=t.slice(0,s),n=t.length-1-t.lastIndexOf("/")),i=a,u=0;continue}}else if(t.length){t="",n=0,i=a,u=0;continue}}r&&(t=t.length?t+"/..":"..",n=2)}else t.length?t+="/"+e.slice(i+1,a):t=e.slice(i+1,a),n=a-i-1;i=a,u=0}else o===46&&u>-1?u++:u=-1}return t}function wr(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}});var Mc=x(Rc=>{"use strict";Rc.cwd=Tm;function Tm(){return"/"}});var Gc=x((O2,Yc)=>{"use strict";var ce=Lc(),Bm=Mc(),_m=Pn();Yc.exports=Ce;var Om={}.hasOwnProperty,Ln=["history","path","basename","stem","extname","dirname"];Ce.prototype.toString=Gm;Object.defineProperty(Ce.prototype,"path",{get:qm,set:Nm});Object.defineProperty(Ce.prototype,"dirname",{get:Pm,set:Im});Object.defineProperty(Ce.prototype,"basename",{get:Sm,set:Lm});Object.defineProperty(Ce.prototype,"extname",{get:Rm,set:Mm});Object.defineProperty(Ce.prototype,"stem",{get:Um,set:Ym});function Ce(e){var r,t;if(!e)e={};else if(typeof e=="string"||_m(e))e={contents:e};else if("message"in e&&"messages"in e)return e;if(!(this instanceof Ce))return new Ce(e);for(this.data={},this.messages=[],this.history=[],this.cwd=Bm.cwd(),t=-1;++t-1)throw new Error("`extname` cannot contain multiple dots")}this.path=ce.join(this.dirname,this.stem+(e||""))}function Um(){return typeof this.path=="string"?ce.basename(this.path,this.extname):void 0}function Ym(e){Mn(e,"stem"),Rn(e,"stem"),this.path=ce.join(this.dirname||"",e+(this.extname||""))}function Gm(e){return(this.contents||"").toString(e)}function Rn(e,r){if(e&&e.indexOf(ce.sep)>-1)throw new Error("`"+r+"` cannot be a path: did not expect `"+ce.sep+"`")}function Mn(e,r){if(!e)throw new Error("`"+r+"` cannot be empty")}function Uc(e,r){if(!e)throw new Error("Setting `"+r+"` requires `path` to be set too")}});var Wc=x((q2,zc)=>{"use strict";var zm=Sc(),dt=Gc();zc.exports=dt;dt.prototype.message=Wm;dt.prototype.info=jm;dt.prototype.fail=Vm;function Wm(e,r,t){var n=new zm(e,r,t);return this.path&&(n.name=this.path+":"+n.name,n.file=this.path),n.fatal=!1,this.messages.push(n),n}function Vm(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}function jm(){var e=this.message.apply(this,arguments);return e.fatal=null,e}});var jc=x((N2,Vc)=>{"use strict";Vc.exports=Wc()});var rl=x((P2,el)=>{"use strict";var $c=lc(),$m=Pn(),mt=Cc(),Hc=Ac(),Qc=Bc(),kr=jc();el.exports=Zc().freeze();var Hm=[].slice,Km={}.hasOwnProperty,Xm=Qc().use(Jm).use(Qm).use(Zm);function Jm(e,r){r.tree=e.parse(r.file)}function Qm(e,r,t){e.run(r.tree,r.file,n);function n(i,u,a){i?t(i):(r.tree=u,r.file=a,t())}}function Zm(e,r){var t=e.stringify(r.tree,r.file);t==null||(typeof t=="string"||$m(t)?("value"in r.file&&(r.file.value=t),r.file.contents=t):r.file.result=t)}function Zc(){var e=[],r=Qc(),t={},n=-1,i;return u.data=o,u.freeze=a,u.attachers=e,u.use=s,u.parse=c,u.stringify=m,u.run=f,u.runSync=D,u.process=p,u.processSync=h,u;function u(){for(var F=Zc(),g=-1;++gXi,options:()=>Ji,parsers:()=>Wn,printers:()=>fF});var Me=(e,r)=>(t,n,...i)=>t|1&&n==null?void 0:(r.call(n)??n[e]).apply(n,i);function yl(e){return this[e<0?this.length+e:e]}var wl=Me("at",function(){if(Array.isArray(this)||typeof this=="string")return yl}),U=wl;var kl=String.prototype.replaceAll??function(e,r){return e.global?this.replace(e,r):this.split(e).join(r)},Tl=Me("replaceAll",function(){if(typeof this=="string")return kl}),R=Tl;var Hi=Re(Br(),1);function fe(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var _l=()=>{},tr=_l;var V="string",j="array",be="cursor",ee="indent",re="align",De="trim",X="group",J="fill",Q="if-break",pe="indent-if-break",he="line-suffix",de="line-suffix-boundary",$="line",me="label",te="break-parent",_r=new Set([be,ee,re,De,X,J,Q,pe,he,de,$,me,te]);function Ol(e){if(typeof e=="string")return V;if(Array.isArray(e))return j;if(!e)return;let{type:r}=e;if(_r.has(r))return r}var W=Ol;var ql=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function Nl(e){let r=e===null?"null":typeof e;if(r!=="string"&&r!=="object")return`Unexpected doc '${r}', +Expected it to be 'string' or 'object'.`;if(W(e))throw new Error("doc is valid.");let t=Object.prototype.toString.call(e);if(t!=="[object Object]")return`Unexpected doc '${t}'.`;let n=ql([..._r].map(i=>`'${i}'`));return`Unexpected doc.type '${e.type}'. +Expected it to be ${n}.`}var gt=class extends Error{name="InvalidDocError";constructor(r){super(Nl(r)),this.doc=r}},Be=gt;var Hn={};function Pl(e,r,t,n){let i=[e];for(;i.length>0;){let u=i.pop();if(u===Hn){t(i.pop());continue}t&&i.push(u,Hn);let a=W(u);if(!a)throw new Be(u);if(r?.(u)!==!1)switch(a){case j:case J:{let o=a===j?u:u.parts;for(let s=o.length,l=s-1;l>=0;--l)i.push(o[l]);break}case Q:i.push(u.flatContents,u.breakContents);break;case X:if(n&&u.expandedStates)for(let o=u.expandedStates.length,s=o-1;s>=0;--s)i.push(u.expandedStates[s]);else i.push(u.contents);break;case re:case ee:case pe:case me:case he:i.push(u.contents);break;case V:case be:case De:case de:case $:case te:break;default:throw new Be(u)}}}var Kn=Pl;function Il(e,r){if(typeof e=="string")return r(e);let t=new Map;return n(e);function n(u){if(t.has(u))return t.get(u);let a=i(u);return t.set(u,a),a}function i(u){switch(W(u)){case j:return r(u.map(n));case J:return r({...u,parts:u.parts.map(n)});case Q:return r({...u,breakContents:n(u.breakContents),flatContents:n(u.flatContents)});case X:{let{expandedStates:a,contents:o}=u;return a?(a=a.map(n),o=a[0]):o=n(o),r({...u,contents:o,expandedStates:a})}case re:case ee:case pe:case me:case he:return r({...u,contents:n(u.contents)});case V:case be:case De:case de:case $:case te:return r(u);default:throw new Be(u)}}}function Xn(e){if(e.length>0){let r=U(0,e,-1);!r.expandedStates&&!r.break&&(r.break="propagated")}return null}function Jn(e){let r=new Set,t=[];function n(u){if(u.type===te&&Xn(t),u.type===X){if(t.push(u),r.has(u))return!1;r.add(u)}}function i(u){u.type===X&&t.pop().break&&Xn(t)}Kn(e,n,i,!0)}function xe(e,r=nr){return Il(e,t=>typeof t=="string"?Or(r,t.split(` +`)):t)}var ne=tr,qr=tr,Qn=tr,Zn=tr;function ir(e){return ne(e),{type:ee,contents:e}}function Fe(e,r){return Zn(e),ne(r),{type:re,contents:r,n:e}}function ur(e){return Fe({type:"root"},e)}var Ue={type:te};function Ye(e){return Qn(e),{type:J,parts:e}}function Ge(e,r={}){return ne(e),qr(r.expandedStates,!0),{type:X,id:r.id,contents:e,break:!!r.shouldBreak,expandedStates:r.expandedStates}}function ei(e,r="",t={}){return ne(e),r!==""&&ne(r),{type:Q,breakContents:e,flatContents:r,groupId:t.groupId}}function Or(e,r){ne(e),qr(r);let t=[];for(let n=0;n/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function Et(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function Ct(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var ni="\xA9\xAE\u203C\u2049\u2122\u2139\u2194\u2195\u2196\u2197\u2198\u2199\u21A9\u21AA\u2328\u23CF\u23F1\u23F2\u23F8\u23F9\u23FA\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600\u2601\u2602\u2603\u2604\u260E\u2611\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638\u2639\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694\u2695\u2696\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F1\u26F7\u26F8\u26F9\u2702\u2708\u2709\u270C\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u2764\u27A1\u2934\u2935\u2B05\u2B06\u2B07";var zl=/[^\x20-\x7F]/u,Wl=new Set(ni);function Vl(e){if(!e)return 0;if(!zl.test(e))return e.length;e=e.replace(ti(),t=>Wl.has(t)?" ":" ");let r=0;for(let t of e){let n=t.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||n>=65024&&n<=65039||(r+=Et(n)||Ct(n)?2:1)}return r}var or=Vl;var jl={type:0},$l={type:1},vt={value:"",length:0,queue:[],get root(){return vt}};function ii(e,r,t){let n=r.type===1?e.queue.slice(0,-1):[...e.queue,r],i="",u=0,a=0,o=0;for(let p of n)switch(p.type){case 0:c(),t.useTabs?s(1):l(t.tabWidth);break;case 3:{let{string:h}=p;c(),i+=h,u+=h.length;break}case 2:{let{width:h}=p;a+=1,o+=h;break}default:throw new Error(`Unexpected indent comment '${p.type}'.`)}return D(),{...e,value:i,length:u,queue:n};function s(p){i+=" ".repeat(p),u+=t.tabWidth*p}function l(p){i+=" ".repeat(p),u+=p}function c(){t.useTabs?f():D()}function f(){a>0&&s(a),m()}function D(){o>0&&l(o),m()}function m(){a=0,o=0}}function ui(e,r,t){if(!r)return e;if(r.type==="root")return{...e,root:e};if(r===Number.NEGATIVE_INFINITY)return e.root;let n;return typeof r=="number"?r<0?n=$l:n={type:2,width:r}:n={type:3,string:r},ii(e,n,t)}function ai(e,r){return ii(e,jl,r)}function Hl(e){let r=0;for(let t=e.length-1;t>=0;t--){let n=e[t];if(n===" "||n===" ")r++;else break}return r}function At(e){let r=Hl(e);return{text:r===0?e:e.slice(0,e.length-r),count:r}}var H=Symbol("MODE_BREAK"),ue=Symbol("MODE_FLAT"),bt=Symbol("DOC_FILL_PRINTED_LENGTH");function Ir(e,r,t,n,i,u){if(t===Number.POSITIVE_INFINITY)return!0;let a=r.length,o=!1,s=[e],l="";for(;t>=0;){if(s.length===0){if(a===0)return!0;s.push(r[--a]);continue}let{mode:c,doc:f}=s.pop(),D=W(f);switch(D){case V:f&&(o&&(l+=" ",t-=1,o=!1),l+=f,t-=or(f));break;case j:case J:{let m=D===j?f:f.parts,p=f[bt]??0;for(let h=m.length-1;h>=p;h--)s.push({mode:c,doc:m[h]});break}case ee:case re:case pe:case me:s.push({mode:c,doc:f.contents});break;case De:{let{text:m,count:p}=At(l);l=m,t+=p;break}case X:{if(u&&f.break)return!1;let m=f.break?H:c,p=f.expandedStates&&m===H?U(0,f.expandedStates,-1):f.contents;s.push({mode:m,doc:p});break}case Q:{let p=(f.groupId?i[f.groupId]||ue:c)===H?f.breakContents:f.flatContents;p&&s.push({mode:c,doc:p});break}case $:if(c===H||f.hard)return!0;f.soft||(o=!0);break;case he:n=!0;break;case de:if(n)return!1;break}}return!1}function oi(e,r){let t=Object.create(null),n=r.printWidth,i=ri(r.endOfLine),u=0,a=[{indent:vt,mode:H,doc:e}],o="",s=!1,l=[],c=[],f=[],D=[],m=0;for(Jn(e);a.length>0;){let{indent:E,mode:v,doc:A}=a.pop();switch(W(A)){case V:{let b=i!==` +`?R(0,A,` +`,i):A;b&&(o+=b,a.length>0&&(u+=or(b)));break}case j:for(let b=A.length-1;b>=0;b--)a.push({indent:E,mode:v,doc:A[b]});break;case be:if(c.length>=2)throw new Error("There are too many 'cursor' in doc.");c.push(m+o.length);break;case ee:a.push({indent:ai(E,r),mode:v,doc:A.contents});break;case re:a.push({indent:ui(E,A.n,r),mode:v,doc:A.contents});break;case De:g();break;case X:switch(v){case ue:if(!s){a.push({indent:E,mode:A.break?H:ue,doc:A.contents});break}case H:{s=!1;let b={indent:E,mode:ue,doc:A.contents},d=n-u,y=l.length>0;if(!A.break&&Ir(b,a,d,y,t))a.push(b);else if(A.expandedStates){let w=U(0,A.expandedStates,-1);if(A.break){a.push({indent:E,mode:H,doc:w});break}else for(let C=1;C=A.expandedStates.length){a.push({indent:E,mode:H,doc:w});break}else{let k=A.expandedStates[C],T={indent:E,mode:ue,doc:k};if(Ir(T,a,d,y,t)){a.push(T);break}}}else a.push({indent:E,mode:H,doc:A.contents});break}}A.id&&(t[A.id]=U(0,a,-1).mode);break;case J:{let b=n-u,d=A[bt]??0,{parts:y}=A,w=y.length-d;if(w===0)break;let C=y[d+0],k=y[d+1],T={indent:E,mode:ue,doc:C},B={indent:E,mode:H,doc:C},_=Ir(T,[],b,l.length>0,t,!0);if(w===1){_?a.push(T):a.push(B);break}let S={indent:E,mode:ue,doc:k},P={indent:E,mode:H,doc:k};if(w===2){_?a.push(S,T):a.push(P,B);break}let N=y[d+2],O={indent:E,mode:v,doc:{...A,[bt]:d+2}},le=Ir({indent:E,mode:ue,doc:[C,k,N]},[],b,l.length>0,t,!0);a.push(O),le?a.push(S,T):_?a.push(P,T):a.push(P,B);break}case Q:case pe:{let b=A.groupId?t[A.groupId]:v;if(b===H){let d=A.type===Q?A.breakContents:A.negate?A.contents:ir(A.contents);d&&a.push({indent:E,mode:v,doc:d})}if(b===ue){let d=A.type===Q?A.flatContents:A.negate?ir(A.contents):A.contents;d&&a.push({indent:E,mode:v,doc:d})}break}case he:l.push({indent:E,mode:v,doc:A.contents});break;case de:l.length>0&&a.push({indent:E,mode:v,doc:ar});break;case $:switch(v){case ue:if(A.hard)s=!0;else{A.soft||(o+=" ",u+=1);break}case H:if(l.length>0){a.push({indent:E,mode:v,doc:A},...l.reverse()),l.length=0;break}A.literal?(o+=i,u=0,E.root&&(E.root.value&&(o+=E.root.value),u=E.root.length)):(g(),o+=i+E.value,u=E.length);break}break;case me:a.push({indent:E,mode:v,doc:A.contents});break;case te:break;default:throw new Be(A)}a.length===0&&l.length>0&&(a.push(...l.reverse()),l.length=0)}let p=f.join("")+o,h=[...D,...c];if(h.length!==2)return{formatted:p};let F=h[0];return{formatted:p,cursorNodeStart:F,cursorNodeText:p.slice(F,U(0,h,-1))};function g(){let{text:E,count:v}=At(o);E&&(f.push(E),m+=E.length),o="",u-=v,c.length>0&&(D.push(...c.map(A=>Math.min(A,m))),c.length=0)}}function Kl(e,r){let t=e.matchAll(new RegExp(`(?:${fe(r)})+`,"gu"));return t.reduce||(t=[...t]),t.reduce((n,[i])=>Math.max(n,i.length),0)/r.length}var Sr=Kl;function Xl(e,r){let t=e.match(new RegExp(`(${fe(r)})+`,"gu"));if(t===null)return 1;let n=new Map,i=0;for(let u of t){let a=u.length/r.length;n.set(a,!0),a>i&&(i=a)}for(let u=1;ua?n:t).character}var fi=Zl;var xt=class extends Error{name="UnexpectedNodeError";constructor(r,t,n="type"){super(`Unexpected ${t} node ${n}: ${JSON.stringify(r[n])}.`),this.node=r}},Di=xt;var xi=Re(Br(),1);var ef=Array.prototype.toReversed??function(){return[...this].reverse()},rf=Me("toReversed",function(){if(Array.isArray(this))return ef}),pi=rf;function tf(){let e=globalThis,r=e.Deno?.build?.os;return typeof r=="string"?r==="windows":e.navigator?.platform?.startsWith("Win")??e.process?.platform?.startsWith("win")??!1}var nf=tf();function hi(e){if(e=e instanceof URL?e:new URL(e),e.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function uf(e){return e=hi(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function af(e){e=hi(e);let r=decodeURIComponent(e.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return e.hostname!==""&&(r=`\\\\${e.hostname}${r}`),r}function yt(e){return nf?af(e):uf(e)}var di=e=>String(e).split(/[/\\]/u).pop(),mi=e=>String(e).startsWith("file:");function Fi(e,r){if(!r)return;let t=di(r).toLowerCase();return e.find(({filenames:n})=>n?.some(i=>i.toLowerCase()===t))??e.find(({extensions:n})=>n?.some(i=>t.endsWith(i)))}function of(e,r){if(r)return e.find(({name:t})=>t.toLowerCase()===r)??e.find(({aliases:t})=>t?.includes(r))??e.find(({extensions:t})=>t?.includes(`.${r}`))}var sf=void 0;function gi(e,r){if(r){if(mi(r))try{r=yt(r)}catch{return}if(typeof r=="string")return e.find(({isSupported:t})=>t?.({filepath:r}))}}function cf(e,r){let t=pi(0,e.plugins).flatMap(i=>i.languages??[]);return(of(t,r.language)??Fi(t,r.physicalFile)??Fi(t,r.file)??gi(t,r.physicalFile)??gi(t,r.file)??sf?.(t,r.physicalFile))?.parsers[0]}var wt=cf;var Lr=Symbol.for("PRETTIER_IS_FRONT_MATTER");function lf(e){return!!e?.[Lr]}var kt=lf;var sr=3;function ff(e){let r=e.slice(0,sr);if(r!=="---"&&r!=="+++")return;let t=e.indexOf(` +`,sr);if(t===-1)return;let n=e.slice(sr,t).trim(),i=e.indexOf(` +${r}`,t),u=n;if(u||(u=r==="+++"?"toml":"yaml"),i===-1&&r==="---"&&u==="yaml"&&(i=e.indexOf(` +...`,t)),i===-1)return;let a=i+1+sr,o=e.charAt(a+1);if(!/\s?/u.test(o))return;let s=e.slice(0,a),l;return{language:u,explicitLanguage:n||null,value:e.slice(t+1,i),startDelimiter:r,endDelimiter:s.slice(-sr),raw:s,start:{line:1,column:0,index:0},end:{index:s.length,get line(){return l??(l=s.split(` +`)),l.length},get column(){return l??(l=s.split(` +`)),U(0,l,-1).length}},[Lr]:!0}}function Df(e){let r=ff(e);return r?{frontMatter:r,get content(){let{raw:t}=r;return R(0,t,/[^\n]/gu," ")+e.slice(t.length)}}:{content:e}}var _e=Df;var Ei="format";var Ci=/|\{\s*\/\*\s*@(?:noformat|noprettier)\s*\*\/\s*\}|/mu,vi=/|\{\s*\/\*\s*@(?:format|prettier)\s*\*\/\s*\}|/mu;var Rr=e=>_e(e).content.trimStart().match(vi)?.index===0,Ai=e=>_e(e).content.trimStart().match(Ci)?.index===0,bi=e=>{let{frontMatter:r}=_e(e),t=``;return r?`${r.raw} + +${t} + +${e.slice(r.end.index)}`:`${t} + +${e}`};var pf=new Set(["position","raw"]);function yi(e,r,t){if((e.type==="code"||e.type==="yaml"||e.type==="import"||e.type==="export"||e.type==="jsx")&&delete r.value,e.type==="list"&&delete r.isAligned,(e.type==="list"||e.type==="listItem")&&delete r.spread,e.type==="text")return null;if(e.type==="inlineCode"&&(r.value=R(0,e.value,` +`," ")),e.type==="wikiLink"&&(r.value=R(0,e.value.trim(),/[\t\n]+/gu," ")),(e.type==="definition"||e.type==="linkReference"||e.type==="imageReference")&&(r.label=(0,xi.default)(e.label)),(e.type==="link"||e.type==="image")&&e.url&&e.url.includes("("))for(let n of"<>")r.url=R(0,e.url,n,encodeURIComponent(n));if((e.type==="definition"||e.type==="link"||e.type==="image")&&e.title&&(r.title=R(0,e.title,/\\(?=["')])/gu,"")),t?.type==="root"&&t.children.length>0&&(t.children[0]===e||kt(t.children[0])&&t.children[1]===e)&&e.type==="html"&&Rr(e.value))return null}yi.ignoredProperties=pf;var wi=yi;var ki=/(?:[\u{2c7}\u{2c9}-\u{2cb}\u{2d9}\u{2ea}-\u{2eb}\u{305}\u{323}\u{1100}-\u{11ff}\u{2e80}-\u{2e99}\u{2e9b}-\u{2ef3}\u{2f00}-\u{2fd5}\u{2ff0}-\u{303f}\u{3041}-\u{3096}\u{3099}-\u{30ff}\u{3105}-\u{312f}\u{3131}-\u{318e}\u{3190}-\u{4dbf}\u{4e00}-\u{9fff}\u{a700}-\u{a707}\u{a960}-\u{a97c}\u{ac00}-\u{d7a3}\u{d7b0}-\u{d7c6}\u{d7cb}-\u{d7fb}\u{f900}-\u{fa6d}\u{fa70}-\u{fad9}\u{fe10}-\u{fe1f}\u{fe30}-\u{fe6f}\u{ff00}-\u{ffef}\u{16fe3}\u{16ff2}-\u{16ff6}\u{1aff0}-\u{1aff3}\u{1aff5}-\u{1affb}\u{1affd}-\u{1affe}\u{1b000}-\u{1b122}\u{1b132}\u{1b150}-\u{1b152}\u{1b155}\u{1b164}-\u{1b167}\u{1f200}\u{1f250}-\u{1f251}\u{20000}-\u{2a6df}\u{2a700}-\u{2b81d}\u{2b820}-\u{2cead}\u{2ceb0}-\u{2ebe0}\u{2ebf0}-\u{2ee5d}\u{2f800}-\u{2fa1d}\u{30000}-\u{3134a}\u{31350}-\u{33479}])(?:[\u{fe00}-\u{fe0f}\u{e0100}-\u{e01ef}])?/u,Oe=/(?:[\u{21}-\u{2f}\u{3a}-\u{40}\u{5b}-\u{60}\u{7b}-\u{7e}]|\p{General_Category=Connector_Punctuation}|\p{General_Category=Dash_Punctuation}|\p{General_Category=Close_Punctuation}|\p{General_Category=Final_Punctuation}|\p{General_Category=Initial_Punctuation}|\p{General_Category=Other_Punctuation}|\p{General_Category=Open_Punctuation})/u;var qe=e=>e.position.start.offset,Ne=e=>e.position.end.offset;var Tt=new Set(["liquidNode","inlineCode","emphasis","esComment","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"]),Mr=new Set([...Tt,"tableCell","paragraph","heading"]),We="non-cjk",ae="cj-letter",Pe="k-letter",cr="cjk-punctuation",hf=/\p{Script_Extensions=Hangul}/u;function Ur(e){let r=[],t=e.split(/([\t\n ]+)/u);for(let[i,u]of t.entries()){if(i%2===1){r.push({type:"whitespace",value:/\n/u.test(u)?` +`:" "});continue}if((i===0||i===t.length-1)&&u==="")continue;let a=u.split(new RegExp(`(${ki.source})`,"u"));for(let[o,s]of a.entries())if(!((o===0||o===a.length-1)&&s==="")){if(o%2===0){s!==""&&n({type:"word",value:s,kind:We,isCJ:!1,hasLeadingPunctuation:Oe.test(s[0]),hasTrailingPunctuation:Oe.test(U(0,s,-1))});continue}if(Oe.test(s)){n({type:"word",value:s,kind:cr,isCJ:!0,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0});continue}if(hf.test(s)){n({type:"word",value:s,kind:Pe,isCJ:!1,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1});continue}n({type:"word",value:s,kind:ae,isCJ:!0,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return r;function n(i){let u=U(0,r,-1);u?.type==="word"&&!a(We,cr)&&![u.value,i.value].some(o=>/\u3000/u.test(o))&&r.push({type:"whitespace",value:""}),r.push(i);function a(o,s){return u.kind===o&&i.kind===s||u.kind===s&&i.kind===o}}}function ze(e,r){let t=r.originalText.slice(e.position.start.offset,e.position.end.offset),{numberText:n,leadingSpaces:i}=t.match(/^\s*(?\d+)(\.|\))(?\s*)/u).groups;return{number:Number(n),leadingSpaces:i}}function Ti(e,r){return!e.ordered||e.children.length<2||ze(e.children[1],r).number!==1?!1:ze(e.children[0],r).number!==0?!0:e.children.length>2&&ze(e.children[2],r).number===1}function Yr(e,r){let{value:t}=e;return e.position.end.offset===r.length&&t.endsWith(` +`)&&r.endsWith(` +`)?t.slice(0,-1):t}function ye(e,r){return(function t(n,i,u){let a={...r(n,i,u)};return a.children&&(a.children=a.children.map((o,s)=>t(o,s,[a,...u]))),a})(e,null,[])}function Gr(e){if(e?.type!=="link"||e.children.length!==1)return!1;let[r]=e.children;return qe(e)===qe(r)&&Ne(e)===Ne(r)}function lr(e){let r;if(e.type==="html")r=e.value.match(/^$/u);else{let t;e.type==="esComment"?t=e:e.type==="paragraph"&&e.children.length===1&&e.children[0].type==="esComment"&&(t=e.children[0]),t&&(r=t.value.match(/^prettier-ignore(?:-(start|end))?$/u))}return r?r[1]||"next":!1}function zr(e,r){return t(e,r,n=>n.ordered===e.ordered);function t(n,i,u){let a=-1;for(let o of i.children)if(o.type===n.type&&u(o)?a++:a=-1,o===n)return a}}function df(e,r){let{node:t}=e;switch(t.type){case"code":{let{lang:n}=t;if(!n)return;let i;return n==="angular-ts"?i=wt(r,{language:"typescript"}):n==="angular-html"?i="angular":i=wt(r,{language:n}),i?async u=>{let a={parser:i};n==="ts"||n==="typescript"?a.filepath="dummy.ts":n==="tsx"&&(a.filepath="dummy.tsx");let o=await u(Yr(t,r.originalText),a),s=r.__inJsTemplate?"~":"`",l=s.repeat(Math.max(3,Sr(t.value,s)+1));return ur([l,t.lang,t.meta?" "+t.meta:"",M,xe(o),M,l])}:void 0}case"import":case"export":return n=>n(t.value,{__onHtmlBindingRoot:i=>mf(i,t.type),parser:"babel"});case"jsx":return n=>n(`<$>${t.value}`,{parser:"__js_expression",rootMarker:"mdx"})}return null}function mf(e,r){let{program:{body:t}}=e;if(!t.every(n=>n.type==="ImportDeclaration"||n.type==="ExportDefaultDeclaration"||n.type==="ExportNamedDeclaration"))throw new Error(`Unexpected '${r}' in MDX.`)}var Bi=df;var fr=null;function Dr(e){if(fr!==null&&typeof fr.property){let r=fr;return fr=Dr.prototype=null,r}return fr=Dr.prototype=e??Object.create(null),new Dr}var Ff=10;for(let e=0;e<=Ff;e++)Dr();function Bt(e){return Dr(e)}function gf(e,r="type"){Bt(e);function t(n){let i=n[r],u=e[i];if(!Array.isArray(u))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:n});return u}return t}var _i=gf;var q=[["children"],[]],Oi={root:q[0],paragraph:q[0],sentence:q[0],word:q[1],whitespace:q[1],emphasis:q[0],strong:q[0],delete:q[0],inlineCode:q[1],wikiLink:q[1],link:q[0],image:q[1],blockquote:q[0],heading:q[0],code:q[1],html:q[1],list:q[0],thematicBreak:q[1],linkReference:q[0],imageReference:q[1],definition:q[1],footnote:q[0],footnoteReference:q[1],footnoteDefinition:q[0],table:q[0],tableCell:q[0],break:q[1],liquidNode:q[1],import:q[1],export:q[1],esComment:q[1],jsx:q[1],math:q[1],inlineMath:q[1],tableRow:q[0],listItem:q[0],text:q[1]};var Ef=_i(Oi),qi=Ef;function z(e,r,t,n={}){let{processor:i=t}=n,u=[];return e.each(()=>{let a=i(e);a!==!1&&(u.length>0&&Cf(e)&&(u.push(M),(Af(e,r)||Ni(e))&&u.push(M),Ni(e)&&u.push(M)),u.push(a))},"children"),u}function Cf({node:e,parent:r}){let t=Tt.has(e.type),n=e.type==="html"&&Mr.has(r.type);return!t&&!n}var vf=new Set(["listItem","definition"]);function Af({node:e,previous:r,parent:t},n){if(Pi(r,n)||e.type==="list"&&t.type==="listItem"&&(r.type==="code"||r.type==="paragraph")&&r.position.end.line+1=4?0:t);function n(){let i=e.length%r.tabWidth;return i===0?0:r.tabWidth-i}}function xf(e,r,t){return Math.max(r,Math.min(e,t))}function Li(e,r,t){let{node:n}=e,i=[],u=e.map(()=>e.map(({index:f})=>{let D=oi(t(),r).formatted,m=or(D);return i[f]=Math.max(i[f]??3,m),{text:D,width:m}},"children"),"children"),a=s(!1);if(r.proseWrap!=="never")return[Ue,a];let o=s(!0);return[Ue,Ge(ei(o,a))];function s(f){return Or(ar,[c(u[0],f),l(f),...u.slice(1).map(D=>c(D,f))].map(D=>`| ${D.join(" | ")} |`))}function l(f){return i.map((D,m)=>{let p=n.align[m],h=p==="center"||p==="left"?":":"-",F=p==="center"||p==="right"?":":"-",g=f?"-":"-".repeat(D-2);return`${h}${g}${F}`})}function c(f,D){return f.map(({text:m,width:p},h)=>{if(D)return m;let F=i[h]-p,g=n.align[h],E=0;g==="right"?E=F:g==="center"&&(E=Math.floor(F/2));let v=F-E;return`${" ".repeat(E)}${m}${" ".repeat(v)}`})}}function Ri(e){let{node:r}=e,t=R(0,R(0,r.value,"*","\\*"),new RegExp([`(^|${Oe.source})(_+)`,`(_+)(${Oe.source}|$)`].join("|"),"gu"),(u,a,o,s,l)=>R(0,o?`${a}${o}`:`${s}${l}`,"_","\\_")),n=(u,a,o)=>u.type==="sentence"&&o===0,i=(u,a,o)=>Gr(u.children[o-1]);return t!==r.value&&(e.match(void 0,n,i)||e.match(void 0,n,(u,a,o)=>u.type==="emphasis"&&o===0,i))&&(t=t.replace(/^(\\?[*_])+/u,u=>R(0,u,"\\",""))),t}function Mi(e,r,t){let n=e.map(t,"children");return yf(n)}function yf(e){let r=[""];return(function t(n){for(let i of n){let u=W(i);if(u===j){t(i);continue}let a=i,o=[];u===J&&([a,...o]=i.parts),r.push([r.pop(),a],...o)}})(e),Ye(r)}var _t=class{#e;constructor(r){this.#e=new Set(r)}getLeadingWhitespaceCount(r){let t=this.#e,n=0;for(let i=0;i=0&&t.has(r.charAt(i));i--)n++;return n}getLeadingWhitespace(r){let t=this.getLeadingWhitespaceCount(r);return r.slice(0,t)}getTrailingWhitespace(r){let t=this.getTrailingWhitespaceCount(r);return r.slice(r.length-t)}hasLeadingWhitespace(r){return this.#e.has(r.charAt(0))}hasTrailingWhitespace(r){return this.#e.has(U(0,r,-1))}trimStart(r){let t=this.getLeadingWhitespaceCount(r);return r.slice(t)}trimEnd(r){let t=this.getTrailingWhitespaceCount(r);return r.slice(0,r.length-t)}trim(r){return this.trimEnd(this.trimStart(r))}split(r,t=!1){let n=`[${fe([...this.#e].join(""))}]+`,i=new RegExp(t?`(${n})`:n,"u");return r.split(i)}hasWhitespaceCharacter(r){let t=this.#e;return Array.prototype.some.call(r,n=>t.has(n))}hasNonWhitespaceCharacter(r){let t=this.#e;return Array.prototype.some.call(r,n=>!t.has(n))}isWhitespaceOnly(r){let t=this.#e;return Array.prototype.every.call(r,n=>t.has(n))}#r(r){let t=Number.POSITIVE_INFINITY;for(let n of r.split(` +`)){if(n.length===0)continue;let i=this.getLeadingWhitespaceCount(n);if(i===0)return 0;n.length!==i&&in.slice(t)).join(` +`)}},Ui=_t;var wf=[" ",` +`,"\f","\r"," "],kf=new Ui(wf),Ot=kf;var Tf=/^\\?.$/su,Bf=/^\n *>[ >]*$/u;function _f(e,r){return e=Of(e,r),e=Nf(e),e=If(e,r),e=Sf(e,r),e=Pf(e),e}function Of(e,r){return ye(e,t=>{if(t.type!=="text")return t;let{value:n}=t;if(n==="*"||n==="_"||!Tf.test(n)||t.position.end.offset-t.position.start.offset===n.length)return t;let i=r.originalText.slice(t.position.start.offset,t.position.end.offset);return Bf.test(i)?t:{...t,value:i}})}function qf(e,r,t){return ye(e,n=>{if(!n.children)return n;let i=[],u,a;for(let o of n.children)u&&r(u,o)?(o=t(u,o),i.splice(-1,1,o),a||(a=!0)):i.push(o),u=o;return a?{...n,children:i}:n})}function Nf(e){return qf(e,(r,t)=>r.type==="text"&&t.type==="text",(r,t)=>({type:"text",value:r.value+t.value,position:{start:r.position.start,end:t.position.end}}))}function Pf(e){return ye(e,(r,t,[n])=>{if(r.type!=="text")return r;let{value:i}=r;return n.type==="paragraph"&&(t===0&&(i=Ot.trimStart(i)),t===n.children.length-1&&(i=Ot.trimEnd(i))),{type:"sentence",position:r.position,children:Ur(i)}})}function If(e,r){return ye(e,(t,n,i)=>{if(t.type==="code"){let u=/^\n?(?: {4,}|\t)/u.test(r.originalText.slice(t.position.start.offset,t.position.end.offset));if(t.isIndented=u,u)for(let a=0;a{if(i.type==="list"&&i.children.length>0){for(let o=0;o1)return!0;let s=t(u);if(s===-1)return!1;if(i.children.length===1)return s%r.tabWidth===0;let l=t(a);return s!==l?!1:s%r.tabWidth===0?!0:ze(a,r).leadingSpaces.length>1}}var Yi=_f;function Gi(e,r){let t=[""];return e.each(()=>{let{node:n}=e,i=r();switch(n.type){case"whitespace":if(W(i)!==V){t.push(i,"");break}default:t.push([t.pop(),i])}},"children"),Ye(t)}var Lf=new Set(["heading","tableCell","link","wikiLink"]),zi=new Set("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~");function Rf({parent:e}){if(e.usesCJSpaces===void 0){let r={" ":0,"":0},{children:t}=e;for(let n=1;nr[""]}return e.usesCJSpaces}function Mf(e,r){if(r)return!0;let{previous:t,next:n}=e;if(!t||!n)return!0;let i=t.kind,u=n.kind;return Wi(i)&&Wi(u)||i===Pe&&u===ae||u===Pe&&i===ae?!0:i===cr||u===cr||i===ae&&u===ae?!1:zi.has(n.value[0])||zi.has(U(0,t.value,-1))?!0:t.hasTrailingPunctuation||n.hasLeadingPunctuation?!1:Rf(e)}function Wi(e){return e===We||e===Pe}function Uf(e,r,t,n){if(t!=="always"||e.hasAncestor(a=>Lf.has(a.type)))return!1;if(n)return r!=="";let{previous:i,next:u}=e;return!i||!u?!0:r===""?!1:i.kind===Pe&&u.kind===ae||u.kind===Pe&&i.kind===ae?!0:!(i.isCJ||u.isCJ)}function qt(e,r,t,n){if(t==="preserve"&&r===` +`)return M;let i=r===" "||r===` +`&&Mf(e,n);return Uf(e,r,t,n)?i?Nr:Pr:i?" ":""}function Vi(e){let{previous:r,next:t}=e;return r?.type==="sentence"&&U(0,r.children,-1)?.type==="word"&&!U(0,r.children,-1).hasTrailingPunctuation||t?.type==="sentence"&&t.children[0]?.type==="word"&&!t.children[0].hasLeadingPunctuation}function Yf(e,r,t){let{node:n}=e;if(zf(e)){let i=[""],u=Ur(r.originalText.slice(n.position.start.offset,n.position.end.offset));for(let a of u){if(a.type==="word"){i.push([i.pop(),a.value]);continue}let o=qt(e,a.value,r.proseWrap,!0);if(W(o)===V){i.push([i.pop(),o]);continue}i.push(o,"")}return Ye(i)}switch(n.type){case"root":return n.children.length===0?"":[Gf(e,r,t),M];case"paragraph":return Mi(e,r,t);case"sentence":return Gi(e,t);case"word":return Ri(e);case"whitespace":{let{next:i}=e,u=i&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/u.test(i.value)?"never":r.proseWrap;return qt(e,n.value,u)}case"emphasis":{let i;if(Gr(n.children[0]))i=r.originalText[n.position.start.offset];else{let u=Vi(e),a=e.callParent(({node:o})=>o.type==="strong"&&Vi(e));i=u||a||e.hasAncestor(o=>o.type==="emphasis")?"*":"_"}return[i,z(e,r,t),i]}case"strong":return["**",z(e,r,t),"**"];case"delete":return["~~",z(e,r,t),"~~"];case"inlineCode":{let i=r.proseWrap==="preserve"?n.value:R(0,n.value,` +`," "),u=si(i,"`"),a="`".repeat(u),o=i.startsWith("`")||i.endsWith("`")||/^[\n ]/u.test(i)&&/[\n ]$/u.test(i)&&/[^\n ]/u.test(i)?" ":"";return[a,o,i,o,a]}case"wikiLink":{let i="";return r.proseWrap==="preserve"?i=n.value:i=R(0,n.value,/[\t\n]+/gu," "),["[[",i,"]]"]}case"link":switch(r.originalText[n.position.start.offset]){case"<":{let i="mailto:";return["<",n.url.startsWith(i)&&r.originalText.slice(n.position.start.offset+1,n.position.start.offset+1+i.length)!==i?n.url.slice(i.length):n.url,">"]}case"[":return["[",z(e,r,t),"](",Nt(n.url,")"),Wr(n.title,r),")"];default:return r.originalText.slice(n.position.start.offset,n.position.end.offset)}case"image":return["![",n.alt||"","](",Nt(n.url,")"),Wr(n.title,r),")"];case"blockquote":return["> ",Fe("> ",z(e,r,t))];case"heading":return["#".repeat(n.depth)+" ",z(e,r,t)];case"code":{if(n.isIndented){let a=" ".repeat(4);return Fe(a,[a,xe(n.value,M)])}let i=r.__inJsTemplate?"~":"`",u=i.repeat(Math.max(3,Sr(n.value,i)+1));return[u,n.lang||"",n.meta?" "+n.meta:"",M,xe(Yr(n,r.originalText),M),M,u]}case"html":{let{parent:i,isLast:u}=e,a=i.type==="root"&&u?n.value.trimEnd():n.value,o=/^$/su.test(a);return xe(a,o?M:ur(nr))}case"list":return Si(e,r,t);case"thematicBreak":{let{ancestors:i}=e,u=i.findIndex(o=>o.type==="list");return u===-1?"---":zr(i[u],i[u+1])%2===0?"***":"---"}case"linkReference":return["[",z(e,r,t),"]",n.referenceType==="full"?Pt(n):n.referenceType==="collapsed"?"[]":""];case"imageReference":switch(n.referenceType){case"full":return["![",n.alt||"","]",Pt(n)];default:return["![",n.alt,"]",n.referenceType==="collapsed"?"[]":""]}case"definition":{let i=r.proseWrap==="always"?Nr:" ";return Ge([Pt(n),":",ir([i,Nt(n.url),n.title===null?"":[i,Wr(n.title,r,!1)]])])}case"footnote":return["[^",z(e,r,t),"]"];case"footnoteReference":return $i(n);case"footnoteDefinition":{let i=n.children.length===1&&n.children[0].type==="paragraph"&&(r.proseWrap==="never"||r.proseWrap==="preserve"&&n.children[0].position.start.line===n.children[0].position.end.line);return[$i(n),": ",i?z(e,r,t):Ge([Fe(" ".repeat(4),z(e,r,t,{processor:({isFirst:u})=>u?Ge([Pr,t()]):t()}))])]}case"table":return Li(e,r,t);case"tableCell":return z(e,r,t);case"break":return/\s/u.test(r.originalText[n.position.start.offset])?[" ",ur(nr)]:["\\",M];case"liquidNode":return xe(n.value,M);case"import":case"export":case"jsx":return n.value.trimEnd();case"esComment":return["{/* ",n.value," */}"];case"math":return["$$",M,n.value?[xe(n.value,M),M]:"","$$"];case"inlineMath":return r.originalText.slice(qe(n),Ne(n));case"frontMatter":case"tableRow":case"listItem":case"text":default:throw new Di(n,"Markdown")}}function Gf(e,r,t){let n=[],i=null,{children:u}=e.node;for(let[a,o]of u.entries())switch(lr(o)){case"start":i===null&&(i={index:a,offset:o.position.end.offset});break;case"end":i!==null&&(n.push({start:i,end:{index:a,offset:o.position.start.offset}}),i=null);break;default:break}return z(e,r,t,{processor({index:a}){if(n.length>0){let o=n[0];if(a===o.start.index)return[ji(u[o.start.index]),r.originalText.slice(o.start.offset,o.end.offset),ji(u[o.end.index])];if(o.start.indext.type==="linkReference"||t.type==="imageReference");return r&&(r.type!=="linkReference"||r.referenceType!=="full")}var Wf=(e,r)=>{for(let t of r)e=R(0,e,t,encodeURIComponent(t));return e};function Nt(e,r=[]){let t=[" ",...Array.isArray(r)?r:[r]];return new RegExp(t.map(n=>fe(n)).join("|"),"u").test(e)?`<${Wf(e,"<>")}>`:e}function Wr(e,r,t=!0){if(!e)return"";if(t)return" "+Wr(e,r,!1);if(e=R(0,e,/\\(?=["')])/gu,""),e.includes('"')&&e.includes("'")&&!e.includes(")"))return`(${e})`;let n=fi(e,r.singleQuote);return e=R(0,e,"\\","\\\\"),e=R(0,e,n,`\\${n}`),`${n}${e}${n}`}function Vf(e){return e.index>0&&lr(e.previous)==="next"}function Pt(e){return`[${(0,Hi.default)(e.label)}]`}function $i(e){return`[^${e.label}]`}var jf={features:{experimental_frontMatterSupport:{massageAstNode:!0,embed:!0,print:!0}},preprocess:Yi,print:Yf,embed:Bi,massageAstNode:wi,hasPrettierIgnore:Vf,insertPragma:bi,getVisitorKeys:qi},Ki=jf;var Xi=[{name:"Markdown",type:"prose",aceMode:"markdown",extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr","README"],tmScope:"text.md",aliases:["md","pandoc"],codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,parsers:["markdown"],vscodeLanguageIds:["markdown"],linguistLanguageId:222},{name:"MDX",type:"prose",aceMode:"markdown",extensions:[".mdx"],filenames:[],tmScope:"text.md",aliases:["md","pandoc"],codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,parsers:["mdx"],vscodeLanguageIds:["mdx"],linguistLanguageId:222}];var It={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var $f={proseWrap:It.proseWrap,singleQuote:It.singleQuote},Ji=$f;var Wn={};Vn(Wn,{markdown:()=>cF,mdx:()=>lF,remark:()=>cF});var pl=Re(Zi(),1),hl=Re(pu(),1),dl=Re(sc(),1),ml=Re(rl(),1);var rF=/^import\s/u,tF=/^export\s/u,tl="[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)*|",nl=/|/u,nF=/^\{\s*\/\*(.*)\*\/\s*\}/u;var iF=e=>rF.test(e),il=e=>tF.test(e),ul=e=>iF(e)||il(e),zn=(e,r)=>{let t=r.indexOf(` + +`),n=t===-1?r:r.slice(0,t);if(ul(n))return e(n)({type:il(n)?"export":"import",value:n})};zn.notInBlock=!0;zn.locator=e=>ul(e)?-1:1;var al=(e,r)=>{let t=nF.exec(r);if(t)return e(t[0])({type:"esComment",value:t[1].trim()})};al.locator=(e,r)=>e.indexOf("{",r);var ol=function(){let{Parser:e}=this,{blockTokenizers:r,blockMethods:t,inlineTokenizers:n,inlineMethods:i}=e.prototype;r.esSyntax=zn,n.esComment=al,t.splice(t.indexOf("paragraph"),0,"esSyntax"),i.splice(i.indexOf("text"),0,"esComment")};var uF=function(){let e=this.Parser.prototype;e.blockMethods=["frontMatter",...e.blockMethods],e.blockTokenizers.frontMatter=r;function r(t,n){let{frontMatter:i}=_e(n);if(i)return t(i.raw)({...i,type:"frontMatter"})}r.onlyAtStart=!0},sl=uF;function aF(){return e=>ye(e,(r,t,[n])=>r.type!=="html"||nl.test(r.value)||Mr.has(n.type)?r:{...r,type:"jsx"})}var cl=aF;var oF=function(){let e=this.Parser.prototype,r=e.inlineMethods;r.splice(r.indexOf("text"),0,"liquid"),e.inlineTokenizers.liquid=t;function t(n,i){let u=i.match(/^(\{%.*?%\}|\{\{.*?\}\})/su);if(u)return n(u[0])({type:"liquidNode",value:u[0]})}t.locator=function(n,i){return n.indexOf("{",i)}},ll=oF;var sF=function(){let e="wikiLink",r=/^\[\[(?.+?)\]\]/su,t=this.Parser.prototype,n=t.inlineMethods;n.splice(n.indexOf("link"),0,e),t.inlineTokenizers.wikiLink=i;function i(u,a){let o=r.exec(a);if(o){let s=o.groups.linkContents.trim();return u(o[0])({type:e,value:s})}}i.locator=function(u,a){return u.indexOf("[",a)}},fl=sF;function Fl({isMDX:e}){return r=>{let t=(0,ml.default)().use(dl.default,{commonmark:!0,...e&&{blocks:[tl]}}).use(pl.default).use(sl).use(hl.default).use(e?ol:Dl).use(ll).use(e?cl:Dl).use(fl);return t.run(t.parse(r))}}function Dl(){}var gl={astFormat:"mdast",hasPragma:Rr,hasIgnorePragma:Ai,locStart:qe,locEnd:Ne},cF={...gl,parse:Fl({isMDX:!1})},lF={...gl,parse:Fl({isMDX:!0})};var fF={mdast:Ki};return xl(DF);}); \ No newline at end of file diff --git a/node_modules/prettier/plugins/markdown.mjs b/node_modules/prettier/plugins/markdown.mjs new file mode 100644 index 0000000000000000000000000000000000000000..412b7873657c979d687224eb11ad6628a9cb0b30 --- /dev/null +++ b/node_modules/prettier/plugins/markdown.mjs @@ -0,0 +1,62 @@ +var El=Object.create;var Ft=Object.defineProperty;var Cl=Object.getOwnPropertyDescriptor;var vl=Object.getOwnPropertyNames;var Al=Object.getPrototypeOf,bl=Object.prototype.hasOwnProperty;var x=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Vn=(e,r)=>{for(var t in r)Ft(e,t,{get:r[t],enumerable:!0})},xl=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of vl(r))!bl.call(e,i)&&i!==t&&Ft(e,i,{get:()=>r[i],enumerable:!(n=Cl(r,i))||n.enumerable});return e};var Re=(e,r,t)=>(t=e!=null?El(Al(e)):{},xl(r||!e||!e.__esModule?Ft(t,"default",{value:e,enumerable:!0}):t,e));var Tr=x((gF,jn)=>{"use strict";jn.exports=Bl;function Bl(e){return String(e).replace(/\s+/g," ")}});var Qi=x((KC,Ji)=>{"use strict";Ji.exports=Qf;var pr=9,Wr=10,Ve=32,Hf=33,Kf=58,je=91,Xf=92,St=93,hr=94,Vr=96,jr=4,Jf=1024;function Qf(e){var r=this.Parser,t=this.Compiler;Zf(r)&&rD(r,e),eD(t)&&tD(t)}function Zf(e){return!!(e&&e.prototype&&e.prototype.blockTokenizers)}function eD(e){return!!(e&&e.prototype&&e.prototype.visitors)}function rD(e,r){for(var t=r||{},n=e.prototype,i=n.blockTokenizers,u=n.inlineTokenizers,a=n.blockMethods,o=n.inlineMethods,s=i.definition,l=u.reference,c=[],f=-1,D=a.length,m;++fjr&&(Z=void 0,ve=B);else{if(Z0&&(G=Ae[T-1],G.contentStart===G.contentEnd);)T--;for(le=b(d.slice(0,G.contentEnd));++B{Rt.isRemarkParser=iD;Rt.isRemarkCompiler=uD;function iD(e){return!!(e&&e.prototype&&e.prototype.blockTokenizers)}function uD(e){return!!(e&&e.prototype&&e.prototype.visitors)}});var uu=x((JC,iu)=>{var Zi=Mt();iu.exports=cD;var eu=9,ru=32,$r=36,aD=48,oD=57,tu=92,sD=["math","math-inline"],nu="math-display";function cD(e){let r=this.Parser,t=this.Compiler;Zi.isRemarkParser(r)&&lD(r,e),Zi.isRemarkCompiler(t)&&fD(t,e)}function lD(e,r){let t=e.prototype,n=t.inlineMethods;u.locator=i,t.inlineTokenizers.math=u,n.splice(n.indexOf("text"),0,"math");function i(a,o){return a.indexOf("$",o)}function u(a,o,s){let l=o.length,c=!1,f=!1,D=0,m,p,h,F,g,E,v;if(o.charCodeAt(D)===tu&&(f=!0,D++),o.charCodeAt(D)===$r){if(D++,f)return s?!0:a(o.slice(0,D))({type:"text",value:"$"});if(o.charCodeAt(D)===$r&&(c=!0,D++),h=o.charCodeAt(D),!(h===ru||h===eu)){for(F=D;DoD)&&(!c||h===$r)){g=D-1,D++,c&&D++,E=D;break}}else p===tu&&(D++,h=o.charCodeAt(D+1));D++}if(E!==void 0)return s?!0:(v=o.slice(F,g+1),a(o.slice(0,E))({type:"inlineMath",value:v,data:{hName:"span",hProperties:{className:sD.concat(c&&r.inlineMathDouble?[nu]:[])},hChildren:[{type:"text",value:v}]}}))}}}}function fD(e){let r=e.prototype;r.visitors.inlineMath=t;function t(n){let i="$";return(n.data&&n.data.hProperties&&n.data.hProperties.className||[]).includes(nu)&&(i="$$"),i+n.value+i}}});var lu=x((QC,cu)=>{var au=Mt();cu.exports=dD;var ou=10,dr=32,Ut=36,su=` +`,DD="$",pD=2,hD=["math","math-display"];function dD(){let e=this.Parser,r=this.Compiler;au.isRemarkParser(e)&&mD(e),au.isRemarkCompiler(r)&&FD(r)}function mD(e){let r=e.prototype,t=r.blockMethods,n=r.interruptParagraph,i=r.interruptList,u=r.interruptBlockquote;r.blockTokenizers.math=a,t.splice(t.indexOf("fencedCode")+1,0,"math"),n.splice(n.indexOf("fencedCode")+1,0,["math"]),i.splice(i.indexOf("fencedCode")+1,0,["math"]),u.splice(u.indexOf("fencedCode")+1,0,["math"]);function a(o,s,l){var c=s.length,f=0;let D,m,p,h,F,g,E,v,A,b,d;for(;fb&&s.charCodeAt(h-1)===dr;)h--;for(;h>b&&s.charCodeAt(h-1)===Ut;)A++,h--;for(g<=A&&s.indexOf(DD,b)===h&&(v=!0,d=h);b<=d&&b-fb&&s.charCodeAt(d-1)===dr;)d--;if((!v||b!==d)&&m.push(s.slice(b,d)),v)break;f=p+1,p=s.indexOf(su,f+1),p=p===-1?c:p}return m=m.join(` +`),o(s.slice(0,p))({type:"math",value:m,data:{hName:"div",hProperties:{className:hD.concat()},hChildren:[{type:"text",value:m}]}})}}}}function FD(e){let r=e.prototype;r.visitors.math=t;function t(n){return`$$ +`+n.value+` +$$`}}});var Du=x((ZC,fu)=>{var gD=uu(),ED=lu();fu.exports=CD;function CD(e){var r=e||{};ED.call(this,r),gD.call(this,r)}});var Ie=x((ev,pu)=>{pu.exports=AD;var vD=Object.prototype.hasOwnProperty;function AD(){for(var e={},r=0;r{typeof Object.create=="function"?Yt.exports=function(r,t){t&&(r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:Yt.exports=function(r,t){if(t){r.super_=t;var n=function(){};n.prototype=t.prototype,r.prototype=new n,r.prototype.constructor=r}}});var Fu=x((tv,mu)=>{"use strict";var bD=Ie(),du=hu();mu.exports=xD;function xD(e){var r,t,n;du(u,e),du(i,u),r=u.prototype;for(t in r)n=r[t],n&&typeof n=="object"&&(r[t]="concat"in n?n.concat():bD(n));return u;function i(a){return e.apply(this,a)}function u(){return this instanceof u?e.apply(this,arguments):new i(arguments)}}});var Eu=x((nv,gu)=>{"use strict";gu.exports=yD;function yD(e,r,t){return n;function n(){var i=t||this,u=i[e];return i[e]=!r,a;function a(){i[e]=u}}}});var vu=x((iv,Cu)=>{"use strict";Cu.exports=wD;function wD(e){for(var r=String(e),t=[],n=/\r?\n|\r/g;n.exec(r);)t.push(n.lastIndex);return t.push(r.length+1),{toPoint:i,toPosition:i,toOffset:u};function i(a){var o=-1;if(a>-1&&aa)return{line:o+1,column:a-(t[o-1]||0)+1,offset:a}}return{}}function u(a){var o=a&&a.line,s=a&&a.column,l;return!isNaN(o)&&!isNaN(s)&&o-1 in t&&(l=(t[o-2]||0)+s-1||0),l>-1&&l{"use strict";Au.exports=kD;var Gt="\\";function kD(e,r){return t;function t(n){for(var i=0,u=n.indexOf(Gt),a=e[r],o=[],s;u!==-1;)o.push(n.slice(i,u)),i=u+1,s=n.charAt(i),(!s||a.indexOf(s)===-1)&&o.push(Gt),u=n.indexOf(Gt,i+1);return o.push(n.slice(i)),o.join("")}}});var xu=x((av,TD)=>{TD.exports={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Acirc:"\xC2",Agrave:"\xC0",Aring:"\xC5",Atilde:"\xC3",Auml:"\xC4",COPY:"\xA9",Ccedil:"\xC7",ETH:"\xD0",Eacute:"\xC9",Ecirc:"\xCA",Egrave:"\xC8",Euml:"\xCB",GT:">",Iacute:"\xCD",Icirc:"\xCE",Igrave:"\xCC",Iuml:"\xCF",LT:"<",Ntilde:"\xD1",Oacute:"\xD3",Ocirc:"\xD4",Ograve:"\xD2",Oslash:"\xD8",Otilde:"\xD5",Ouml:"\xD6",QUOT:'"',REG:"\xAE",THORN:"\xDE",Uacute:"\xDA",Ucirc:"\xDB",Ugrave:"\xD9",Uuml:"\xDC",Yacute:"\xDD",aacute:"\xE1",acirc:"\xE2",acute:"\xB4",aelig:"\xE6",agrave:"\xE0",amp:"&",aring:"\xE5",atilde:"\xE3",auml:"\xE4",brvbar:"\xA6",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",eacute:"\xE9",ecirc:"\xEA",egrave:"\xE8",eth:"\xF0",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",iacute:"\xED",icirc:"\xEE",iexcl:"\xA1",igrave:"\xEC",iquest:"\xBF",iuml:"\xEF",laquo:"\xAB",lt:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",ntilde:"\xF1",oacute:"\xF3",ocirc:"\xF4",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",oslash:"\xF8",otilde:"\xF5",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',raquo:"\xBB",reg:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",thorn:"\xFE",times:"\xD7",uacute:"\xFA",ucirc:"\xFB",ugrave:"\xF9",uml:"\xA8",uuml:"\xFC",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}});var yu=x((ov,BD)=>{BD.exports={"0":"\uFFFD","128":"\u20AC","130":"\u201A","131":"\u0192","132":"\u201E","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02C6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017D","145":"\u2018","146":"\u2019","147":"\u201C","148":"\u201D","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02DC","153":"\u2122","154":"\u0161","155":"\u203A","156":"\u0153","158":"\u017E","159":"\u0178"}});var Se=x((sv,wu)=>{"use strict";wu.exports=_D;function _D(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=48&&r<=57}});var Tu=x((cv,ku)=>{"use strict";ku.exports=OD;function OD(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=97&&r<=102||r>=65&&r<=70||r>=48&&r<=57}});var $e=x((lv,Bu)=>{"use strict";Bu.exports=qD;function qD(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=97&&r<=122||r>=65&&r<=90}});var Ou=x((fv,_u)=>{"use strict";var ND=$e(),PD=Se();_u.exports=ID;function ID(e){return ND(e)||PD(e)}});var qu=x((Dv,SD)=>{SD.exports={AEli:"\xC6",AElig:"\xC6",AM:"&",AMP:"&",Aacut:"\xC1",Aacute:"\xC1",Abreve:"\u0102",Acir:"\xC2",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrav:"\xC0",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Arin:"\xC5",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atild:"\xC3",Atilde:"\xC3",Aum:"\xC4",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COP:"\xA9",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedi:"\xC7",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ET:"\xD0",ETH:"\xD0",Eacut:"\xC9",Eacute:"\xC9",Ecaron:"\u011A",Ecir:"\xCA",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrav:"\xC8",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Eum:"\xCB",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",G:">",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacut:"\xCD",Iacute:"\xCD",Icir:"\xCE",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrav:"\xCC",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Ium:"\xCF",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",L:"<",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",Mopf:"\u{1D544}",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` +`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntild:"\xD1",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacut:"\xD3",Oacute:"\xD3",Ocir:"\xD4",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograv:"\xD2",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslas:"\xD8",Oslash:"\xD8",Otild:"\xD5",Otilde:"\xD5",Otimes:"\u2A37",Oum:"\xD6",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUO:'"',QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",RE:"\xAE",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THOR:"\xDE",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacut:"\xDA",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucir:"\xDB",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrav:"\xD9",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uum:"\xDC",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacut:"\xDD",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\u{1D4B5}",aacut:"\xE1",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acir:"\xE2",acirc:"\xE2",acut:"\xB4",acute:"\xB4",acy:"\u0430",aeli:"\xE6",aelig:"\xE6",af:"\u2061",afr:"\u{1D51E}",agrav:"\xE0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",am:"&",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",arin:"\xE5",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",asymp:"\u2248",asympeq:"\u224D",atild:"\xE3",atilde:"\xE3",aum:"\xE4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvba:"\xA6",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedi:"\xE7",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedi:"\xB8",cedil:"\xB8",cemptyv:"\u29B2",cen:"\xA2",cent:"\xA2",centerdot:"\xB7",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\u{1D554}",coprod:"\u2210",cop:"\xA9",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curre:"\xA4",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",de:"\xB0",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divid:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacut:"\xE9",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\xEA",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrav:"\xE8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",et:"\xF0",eth:"\xF0",eum:"\xEB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac1:"\xBC",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac3:"\xBE",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",g:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacut:"\xED",iacute:"\xED",ic:"\u2063",icir:"\xEE",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexc:"\xA1",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",igrav:"\xEC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iprod:"\u2A3C",iques:"\xBF",iquest:"\xBF",iscr:"\u{1D4BE}",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",ium:"\xEF",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laqu:"\xAB",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",l:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",mac:"\xAF",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\u{1D52A}",mho:"\u2127",micr:"\xB5",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middo:"\xB7",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbs:"\xA0",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\u{1D55F}",no:"\xAC",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntild:"\xF1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacut:"\xF3",oacute:"\xF3",oast:"\u229B",ocir:"\xF4",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograv:"\xF2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\xBA",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslas:"\xF8",oslash:"\xF8",osol:"\u2298",otild:"\xF5",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",oum:"\xF6",ouml:"\xF6",ovbar:"\u233D",par:"\xB6",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusm:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\u{1D561}",poun:"\xA3",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quo:'"',quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raqu:"\xBB",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",re:"\xAE",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\u{1D4C7}",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sec:"\xA7",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",sh:"\xAD",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szli:"\xDF",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thor:"\xFE",thorn:"\xFE",tilde:"\u02DC",time:"\xD7",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacut:"\xFA",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucir:"\xFB",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",ugrav:"\xF9",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",um:"\xA8",uml:"\xA8",uogon:"\u0173",uopf:"\u{1D566}",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uum:"\xFC",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacut:"\xFD",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",ye:"\xA5",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yum:"\xFF",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}});var Iu=x((pv,Pu)=>{"use strict";var Nu=qu();Pu.exports=RD;var LD={}.hasOwnProperty;function RD(e){return LD.call(Nu,e)?Nu[e]:!1}});var mr=x((hv,Hu)=>{"use strict";var Su=xu(),Lu=yu(),MD=Se(),UD=Tu(),Yu=Ou(),YD=Iu();Hu.exports=ep;var GD={}.hasOwnProperty,He=String.fromCharCode,zD=Function.prototype,Ru={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},WD=9,Mu=10,VD=12,jD=32,Uu=38,$D=59,HD=60,KD=61,XD=35,JD=88,QD=120,ZD=65533,Ke="named",Wt="hexadecimal",Vt="decimal",jt={};jt[Wt]=16;jt[Vt]=10;var Hr={};Hr[Ke]=Yu;Hr[Vt]=MD;Hr[Wt]=UD;var Gu=1,zu=2,Wu=3,Vu=4,ju=5,zt=6,$u=7,we={};we[Gu]="Named character references must be terminated by a semicolon";we[zu]="Numeric character references must be terminated by a semicolon";we[Wu]="Named character references cannot be empty";we[Vu]="Numeric character references cannot be empty";we[ju]="Named character references must be known";we[zt]="Numeric character references cannot be disallowed";we[$u]="Numeric character references cannot be outside the permissible Unicode range";function ep(e,r){var t={},n,i;r||(r={});for(i in Ru)n=r[i],t[i]=n??Ru[i];return(t.position.indent||t.position.start)&&(t.indent=t.position.indent||[],t.position=t.position.start),rp(e,t)}function rp(e,r){var t=r.additional,n=r.nonTerminated,i=r.text,u=r.reference,a=r.warning,o=r.textContext,s=r.referenceContext,l=r.warningContext,c=r.position,f=r.indent||[],D=e.length,m=0,p=-1,h=c.column||1,F=c.line||1,g="",E=[],v,A,b,d,y,w,C,k,T,B,_,S,P,N,O,I,le,K,L;for(typeof t=="string"&&(t=t.charCodeAt(0)),I=ie(),k=a?Z:zD,m--,D++;++m65535&&(w-=65536,B+=He(w>>>10|55296),w=56320|w&1023),w=B+He(w))):N!==Ke&&k(Vu,K)),w?(ve(),I=ie(),m=L-1,h+=L-P+1,E.push(w),le=ie(),le.offset++,u&&u.call(s,w,{start:I,end:le},e.slice(P-1,L)),I=le):(d=e.slice(P-1,L),g+=d,h+=d.length,m=L-1)}else y===10&&(F++,p++,h=0),y===y?(g+=He(y),h++):ve();return E.join("");function ie(){return{line:F,column:h,offset:m+(c.offset||0)}}function Z(Ae,G){var mt=ie();mt.column+=G,mt.offset+=G,a.call(l,we[Ae],mt,Ae)}function ve(){g&&(E.push(g),i&&i.call(o,g,{start:I,end:ie()}),g="")}}function tp(e){return e>=55296&&e<=57343||e>1114111}function np(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}});var Ju=x((dv,Xu)=>{"use strict";var ip=Ie(),Ku=mr();Xu.exports=up;function up(e){return t.raw=n,t;function r(u){for(var a=e.offset,o=u.line,s=[];++o&&o in a;)s.push((a[o]||0)+1);return{start:u,indent:s}}function t(u,a,o){Ku(u,{position:r(a),warning:i,text:o,reference:o,textContext:e,referenceContext:e})}function n(u,a,o){return Ku(u,ip(o,{position:r(a),warning:i}))}function i(u,a,o){o!==3&&e.file.message(u,a)}}});var ea=x((mv,Zu)=>{"use strict";Zu.exports=ap;function ap(e){return r;function r(t,n){var i=this,u=i.offset,a=[],o=i[e+"Methods"],s=i[e+"Tokenizers"],l=n.line,c=n.column,f,D,m,p,h,F;if(!t)return a;for(w.now=v,w.file=i.file,g("");t;){for(f=-1,D=o.length,h=!1;++f{"use strict";ta.exports=Kr;var $t=["\\","`","*","{","}","[","]","(",")","#","+","-",".","!","_",">"],Ht=$t.concat(["~","|"]),ra=Ht.concat([` +`,'"',"$","%","&","'",",","/",":",";","<","=","?","@","^"]);Kr.default=$t;Kr.gfm=Ht;Kr.commonmark=ra;function Kr(e){var r=e||{};return r.commonmark?ra:r.gfm?Ht:$t}});var ua=x((gv,ia)=>{"use strict";ia.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]});var Kt=x((Ev,aa)=>{"use strict";aa.exports={position:!0,gfm:!0,commonmark:!1,pedantic:!1,blocks:ua()}});var sa=x((Cv,oa)=>{"use strict";var cp=Ie(),lp=na(),fp=Kt();oa.exports=Dp;function Dp(e){var r=this,t=r.options,n,i;if(e==null)e={};else if(typeof e=="object")e=cp(e);else throw new Error("Invalid value `"+e+"` for setting `options`");for(n in fp){if(i=e[n],i==null&&(i=t[n]),n!=="blocks"&&typeof i!="boolean"||n==="blocks"&&typeof i!="object")throw new Error("Invalid value `"+i+"` for setting `options."+n+"`");e[n]=i}return r.options=e,r.escape=lp(e),r}});var fa=x((vv,la)=>{"use strict";la.exports=ca;function ca(e){if(e==null)return mp;if(typeof e=="string")return dp(e);if(typeof e=="object")return"length"in e?hp(e):pp(e);if(typeof e=="function")return e;throw new Error("Expected function, string, or object as test")}function pp(e){return r;function r(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}function hp(e){for(var r=[],t=-1;++t{Da.exports=Fp;function Fp(e){return e}});var Fa=x((bv,ma)=>{"use strict";ma.exports=Xr;var gp=fa(),Ep=pa(),ha=!0,da="skip",Xt=!1;Xr.CONTINUE=ha;Xr.SKIP=da;Xr.EXIT=Xt;function Xr(e,r,t,n){var i,u;typeof r=="function"&&typeof t!="function"&&(n=t,t=r,r=null),u=gp(r),i=n?-1:1,a(e,null,[])();function a(o,s,l){var c=typeof o=="object"&&o!==null?o:{},f;return typeof c.type=="string"&&(f=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0,D.displayName="node ("+Ep(c.type+(f?"<"+f+">":""))+")"),D;function D(){var m=l.concat(o),p=[],h,F;if((!r||u(o,s,l[l.length-1]||null))&&(p=Cp(t(o,l)),p[0]===Xt))return p;if(o.children&&p[0]!==da)for(F=(n?o.children.length:-1)+i;F>-1&&F{"use strict";ga.exports=Qr;var Jr=Fa(),vp=Jr.CONTINUE,Ap=Jr.SKIP,bp=Jr.EXIT;Qr.CONTINUE=vp;Qr.SKIP=Ap;Qr.EXIT=bp;function Qr(e,r,t,n){typeof r=="function"&&typeof t!="function"&&(n=t,t=r,r=null),Jr(e,r,i,n);function i(u,a){var o=a[a.length-1],s=o?o.children.indexOf(u):null;return t(u,s,o)}}});var va=x((yv,Ca)=>{"use strict";var xp=Ea();Ca.exports=yp;function yp(e,r){return xp(e,r?wp:kp),e}function wp(e){delete e.position}function kp(e){e.position=void 0}});var xa=x((wv,ba)=>{"use strict";var Aa=Ie(),Tp=va();ba.exports=Op;var Bp=` +`,_p=/\r\n|\r/g;function Op(){var e=this,r=String(e.file),t={line:1,column:1,offset:0},n=Aa(t),i;return r=r.replace(_p,Bp),r.charCodeAt(0)===65279&&(r=r.slice(1),n.column++,n.offset++),i={type:"root",children:e.tokenizeBlock(r,n),position:{start:t,end:e.eof||Aa(t)}},e.options.position||Tp(i,!0),i}});var wa=x((kv,ya)=>{"use strict";var qp=/^[ \t]*(\n|$)/;ya.exports=Np;function Np(e,r,t){for(var n,i="",u=0,a=r.length;u{"use strict";var ge="",Jt;ka.exports=Pp;function Pp(e,r){if(typeof e!="string")throw new TypeError("expected a string");if(r===1)return e;if(r===2)return e+e;var t=e.length*r;if(Jt!==e||typeof Jt>"u")Jt=e,ge="";else if(ge.length>=t)return ge.substr(0,t);for(;t>ge.length&&r>1;)r&1&&(ge+=e),r>>=1,e+=e;return ge+=e,ge=ge.substr(0,t),ge}});var Qt=x((Bv,Ta)=>{"use strict";Ta.exports=Ip;function Ip(e){return String(e).replace(/\n+$/,"")}});var Oa=x((_v,_a)=>{"use strict";var Sp=Zr(),Lp=Qt();_a.exports=Up;var Zt=` +`,Ba=" ",en=" ",Rp=4,Mp=Sp(en,Rp);function Up(e,r,t){for(var n=-1,i=r.length,u="",a="",o="",s="",l,c,f;++n{"use strict";Na.exports=Wp;var et=` +`,Fr=" ",Xe=" ",Yp="~",qa="`",Gp=3,zp=4;function Wp(e,r,t){var n=this,i=n.options.gfm,u=r.length+1,a=0,o="",s,l,c,f,D,m,p,h,F,g,E,v,A;if(i){for(;a=zp)){for(p="";a{Je=Ia.exports=Vp;function Vp(e){return e.trim?e.trim():Je.right(Je.left(e))}Je.left=function(e){return e.trimLeft?e.trimLeft():e.replace(/^\s\s*/,"")};Je.right=function(e){if(e.trimRight)return e.trimRight();for(var r=/\s/,t=e.length;r.test(e.charAt(--t)););return e.slice(0,t+1)}});var rt=x((qv,Sa)=>{"use strict";Sa.exports=jp;function jp(e,r,t,n){for(var i=e.length,u=-1,a,o;++u{"use strict";var $p=Le(),Hp=rt();Ma.exports=Kp;var rn=` +`,La=" ",tn=" ",Ra=">";function Kp(e,r,t){for(var n=this,i=n.offset,u=n.blockTokenizers,a=n.interruptBlockquote,o=e.now(),s=o.line,l=r.length,c=[],f=[],D=[],m,p=0,h,F,g,E,v,A,b,d;p{"use strict";Ga.exports=Jp;var Ya=` +`,gr=" ",Er=" ",Cr="#",Xp=6;function Jp(e,r,t){for(var n=this,i=n.options.pedantic,u=r.length+1,a=-1,o=e.now(),s="",l="",c,f,D;++aXp)&&!(!D||!i&&r.charAt(a+1)===Cr)){for(u=r.length+1,f="";++a{"use strict";Va.exports=ih;var Qp=" ",Zp=` +`,Wa=" ",eh="*",rh="-",th="_",nh=3;function ih(e,r,t){for(var n=-1,i=r.length+1,u="",a,o,s,l;++n=nh&&(!a||a===Zp)?(u+=l,t?!0:e(u)({type:"thematicBreak"})):void 0}});var nn=x((Sv,Ha)=>{"use strict";Ha.exports=sh;var $a=" ",uh=" ",ah=1,oh=4;function sh(e){for(var r=0,t=0,n=e.charAt(r),i={},u,a=0;n===$a||n===uh;){for(u=n===$a?oh:ah,t+=u,u>1&&(t=Math.floor(t/u)*u);a{"use strict";var ch=Le(),lh=Zr(),fh=nn();Xa.exports=hh;var Ka=` +`,Dh=" ",ph="!";function hh(e,r){var t=e.split(Ka),n=t.length+1,i=1/0,u=[],a,o,s;for(t.unshift(lh(Dh,r)+ph);n--;)if(o=fh(t[n]),u[n]=o.stops,ch(t[n]).length!==0)if(o.indent)o.indent>0&&o.indent{"use strict";var dh=Le(),mh=Zr(),Qa=Se(),Fh=nn(),gh=Ja(),Eh=rt();to.exports=kh;var un="*",Ch="_",Za="+",an="-",eo=".",Ee=" ",oe=` +`,tt=" ",ro=")",vh="x",ke=4,Ah=/\n\n(?!\s*$)/,bh=/^\[([ X\tx])][ \t]/,xh=/^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/,yh=/^([ \t]*)([*+-]|\d+[.)])([ \t]+)/,wh=/^( {1,4}|\t)?/gm;function kh(e,r,t){for(var n=this,i=n.options.commonmark,u=n.options.pedantic,a=n.blockTokenizers,o=n.interruptList,s=0,l=r.length,c=null,f,D,m,p,h,F,g,E,v,A,b,d,y,w,C,k,T,B,_,S=!1,P,N,O,I;s=T.indent&&(I=!0),p=r.charAt(s),v=null,!I){if(p===un||p===Za||p===an)v=p,s++,f++;else{for(D="";s=T.indent||f>ke),E=!1,s=g;if(b=r.slice(g,F),A=g===s?b:r.slice(s,F),(v===un||v===Ch||v===an)&&a.thematicBreak.call(n,e,b,!0))break;if(d=y,y=!E&&!dh(A).length,I&&T)T.value=T.value.concat(k,b),C=C.concat(k,b),k=[];else if(E)k.length!==0&&(S=!0,T.value.push(""),T.trail=k.concat()),T={value:[b],indent:f,trail:[]},w.push(T),C=C.concat(k,b),k=[];else if(y){if(d&&!i)break;k.push(b)}else{if(d||Eh(o,a,n,[e,b,!0]))break;T.value=T.value.concat(k,b),C=C.concat(k,b),k=[]}s=F+1}for(P=e(C.join(oe)).reset({type:"list",ordered:m,start:c,spread:S,children:[]}),B=n.enterList(),_=n.enterBlock(),s=-1,l=w.length;++s{"use strict";ao.exports=Sh;var on=` +`,Oh=" ",io=" ",uo="=",qh="-",Nh=3,Ph=1,Ih=2;function Sh(e,r,t){for(var n=this,i=e.now(),u=r.length,a=-1,o="",s,l,c,f,D;++a=Nh){a--;break}o+=c}for(s="",l="";++a{"use strict";var Lh="[a-zA-Z_:][a-zA-Z0-9:._-]*",Rh="[^\"'=<>`\\u0000-\\u0020]+",Mh="'[^']*'",Uh='"[^"]*"',Yh="(?:"+Rh+"|"+Mh+"|"+Uh+")",Gh="(?:\\s+"+Lh+"(?:\\s*=\\s*"+Yh+")?)",so="<[A-Za-z][A-Za-z0-9\\-]*"+Gh+"*\\s*\\/?>",co="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",zh="|",Wh="<[?].*?[?]>",Vh="]*>",jh="";sn.openCloseTag=new RegExp("^(?:"+so+"|"+co+")");sn.tag=new RegExp("^(?:"+so+"|"+co+"|"+zh+"|"+Wh+"|"+Vh+"|"+jh+")")});var po=x((Yv,Do)=>{"use strict";var $h=cn().openCloseTag;Do.exports=sd;var Hh=" ",Kh=" ",lo=` +`,Xh="<",Jh=/^<(script|pre|style)(?=(\s|>|$))/i,Qh=/<\/(script|pre|style)>/i,Zh=/^/,rd=/^<\?/,td=/\?>/,nd=/^/,ud=/^/,fo=/^$/,od=new RegExp($h.source+"\\s*$");function sd(e,r,t){for(var n=this,i=n.options.blocks.join("|"),u=new RegExp("^|$))","i"),a=r.length,o=0,s,l,c,f,D,m,p,h=[[Jh,Qh,!0],[Zh,ed,!0],[rd,td,!0],[nd,id,!0],[ud,ad,!0],[u,fo,!0],[od,fo,!1]];o{"use strict";ho.exports=fd;var cd=String.fromCharCode,ld=/\s/;function fd(e){return ld.test(typeof e=="number"?cd(e):e.charAt(0))}});var ln=x((zv,mo)=>{"use strict";var Dd=Tr();mo.exports=pd;function pd(e){return Dd(e).toLowerCase()}});var bo=x((Wv,Ao)=>{"use strict";var hd=se(),dd=ln();Ao.exports=Ed;var Fo='"',go="'",md="\\",Qe=` +`,nt=" ",it=" ",Dn="[",vr="]",Fd="(",gd=")",Eo=":",Co="<",vo=">";function Ed(e,r,t){for(var n=this,i=n.options.commonmark,u=0,a=r.length,o="",s,l,c,f,D,m,p,h;u{"use strict";var vd=se();yo.exports=Od;var Ad=" ",ut=` +`,bd=" ",xd="-",yd=":",wd="\\",pn="|",kd=1,Td=2,xo="left",Bd="center",_d="right";function Od(e,r,t){var n=this,i,u,a,o,s,l,c,f,D,m,p,h,F,g,E,v,A,b,d,y,w,C;if(n.options.gfm){for(i=0,v=0,l=r.length+1,c=[];iy){if(v1&&(D?(o+=f.slice(0,-1),f=f.charAt(f.length-1)):(o+=f,f="")),g=e.now(),e(o)({type:"tableCell",children:n.tokenizeInline(h,g)},s)),e(f+D),f="",h=""):(f&&(h+=f,f=""),h+=D,D===wd&&i!==l-2&&(h+=A.charAt(i+1),i++)),F=!1,i++}E||e(ut+u)}return d}}}});var Bo=x((jv,To)=>{"use strict";var qd=Le(),Nd=Qt(),Pd=rt();To.exports=Ld;var Id=" ",Ar=` +`,Sd=" ",ko=4;function Ld(e,r,t){for(var n=this,i=n.options,u=i.commonmark,a=n.blockTokenizers,o=n.interruptParagraph,s=r.indexOf(Ar),l=r.length,c,f,D,m,p;s=ko&&D!==Ar){s=r.indexOf(Ar,s+1);continue}}if(f=r.slice(s+1),Pd(o,a,n,[e,f,!0]))break;if(c=s,s=r.indexOf(Ar,s+1),s!==-1&&qd(r.slice(c,s))===""){s=c;break}}return f=r.slice(0,s),t?!0:(p=e.now(),f=Nd(f),e(f)({type:"paragraph",children:n.tokenizeInline(f,p)}))}});var Oo=x(($v,_o)=>{"use strict";_o.exports=Rd;function Rd(e,r){return e.indexOf("\\",r)}});var Io=x((Hv,Po)=>{"use strict";var Md=Oo();Po.exports=No;No.locator=Md;var Ud=` +`,qo="\\";function No(e,r,t){var n=this,i,u;if(r.charAt(0)===qo&&(i=r.charAt(1),n.escape.indexOf(i)!==-1))return t?!0:(i===Ud?u={type:"break"}:u={type:"text",value:i},e(qo+i)(u))}});var hn=x((Kv,So)=>{"use strict";So.exports=Yd;function Yd(e,r){return e.indexOf("<",r)}});var Yo=x((Xv,Uo)=>{"use strict";var Lo=se(),Gd=mr(),zd=hn();Uo.exports=gn;gn.locator=zd;gn.notInLink=!0;var Ro="<",dn=">",Mo="@",mn="/",Fn="mailto:",at=Fn.length;function gn(e,r,t){var n=this,i="",u=r.length,a=0,o="",s=!1,l="",c,f,D,m,p;if(r.charAt(0)===Ro){for(a++,i=Ro;a{"use strict";Go.exports=Wd;function Wd(e,r){var t=String(e),n=0,i;if(typeof r!="string")throw new Error("Expected character");for(i=t.indexOf(r);i!==-1;)n++,i=t.indexOf(r,i+r.length);return n}});var jo=x((Qv,Vo)=>{"use strict";Vo.exports=Vd;var Wo=["www.","http://","https://"];function Vd(e,r){var t=-1,n,i,u;if(!this.options.gfm)return t;for(i=Wo.length,n=-1;++n{"use strict";var $o=zo(),jd=mr(),$d=Se(),En=$e(),Hd=se(),Kd=jo();Xo.exports=vn;vn.locator=Kd;vn.notInLink=!0;var Xd=33,Jd=38,Qd=41,Zd=42,e0=44,r0=45,Cn=46,t0=58,n0=59,i0=63,u0=60,Ho=95,a0=126,o0="(",Ko=")";function vn(e,r,t){var n=this,i=n.options.gfm,u=n.inlineTokenizers,a=r.length,o=-1,s=!1,l,c,f,D,m,p,h,F,g,E,v,A,b,d;if(i){if(r.slice(0,4)==="www.")s=!0,D=4;else if(r.slice(0,7).toLowerCase()==="http://")D=7;else if(r.slice(0,8).toLowerCase()==="https://")D=8;else return;for(o=D-1,f=D,l=[];Dg;)D=m+p.lastIndexOf(Ko),p=r.slice(m,D),E--;if(r.charCodeAt(D-1)===n0&&(D--,En(r.charCodeAt(D-1)))){for(F=D-2;En(r.charCodeAt(F));)F--;r.charCodeAt(F)===Jd&&(D=F)}return v=r.slice(0,D),b=jd(v,{nonTerminated:!1}),s&&(b="http://"+b),d=n.enterLink(),n.inlineTokenizers={text:u.text},A=n.tokenizeInline(v,e.now()),n.inlineTokenizers=u,d(),e(v)({type:"link",title:null,url:b,children:A})}}}});var rs=x((e2,es)=>{"use strict";var s0=Se(),c0=$e(),l0=43,f0=45,D0=46,p0=95;es.exports=Zo;function Zo(e,r){var t=this,n,i;if(!this.options.gfm||(n=e.indexOf("@",r),n===-1))return-1;if(i=n,i===r||!Qo(e.charCodeAt(i-1)))return Zo.call(t,e,n+1);for(;i>r&&Qo(e.charCodeAt(i-1));)i--;return i}function Qo(e){return s0(e)||c0(e)||e===l0||e===f0||e===D0||e===p0}});var us=x((r2,is)=>{"use strict";var h0=mr(),ts=Se(),ns=$e(),d0=rs();is.exports=xn;xn.locator=d0;xn.notInLink=!0;var m0=43,An=45,ot=46,F0=64,bn=95;function xn(e,r,t){var n=this,i=n.options.gfm,u=n.inlineTokenizers,a=0,o=r.length,s=-1,l,c,f,D;if(i){for(l=r.charCodeAt(a);ts(l)||ns(l)||l===m0||l===An||l===ot||l===bn;)l=r.charCodeAt(++a);if(a!==0&&l===F0){for(a++;a{"use strict";var g0=$e(),E0=hn(),C0=cn().tag;os.exports=as;as.locator=E0;var v0="<",A0="?",b0="!",x0="/",y0=/^/i;function as(e,r,t){var n=this,i=r.length,u,a;if(!(r.charAt(0)!==v0||i<3)&&(u=r.charAt(1),!(!g0(u)&&u!==A0&&u!==b0&&u!==x0)&&(a=r.match(C0),!!a)))return t?!0:(a=a[0],!n.inLink&&y0.test(a)?n.inLink=!0:n.inLink&&w0.test(a)&&(n.inLink=!1),e(a)({type:"html",value:a}))}});var yn=x((n2,cs)=>{"use strict";cs.exports=k0;function k0(e,r){var t=e.indexOf("[",r),n=e.indexOf("![",r);return n===-1||t{"use strict";var br=se(),T0=yn();ds.exports=hs;hs.locator=T0;var B0=` +`,_0="!",ls='"',fs="'",Ze="(",xr=")",wn="<",kn=">",Ds="[",yr="\\",O0="]",ps="`";function hs(e,r,t){var n=this,i="",u=0,a=r.charAt(0),o=n.options.pedantic,s=n.options.commonmark,l=n.options.gfm,c,f,D,m,p,h,F,g,E,v,A,b,d,y,w,C,k,T;if(a===_0&&(g=!0,i=a,a=r.charAt(++u)),a===Ds&&!(!g&&n.inLink)){for(i+=a,y="",u++,A=r.length,C=e.now(),d=0,C.column+=u,C.offset+=u;u=D&&(D=0):D=f}else if(a===yr)u++,h+=r.charAt(u);else if((!D||l)&&a===Ds)d++;else if((!D||l)&&a===O0)if(d)d--;else{if(r.charAt(u+1)!==Ze)return;h+=Ze,c=!0,u++;break}y+=h,h="",u++}if(c){for(E=y,i+=y+h,u++;u{"use strict";var q0=se(),N0=yn(),P0=ln();gs.exports=Fs;Fs.locator=N0;var Tn="link",I0="image",S0="shortcut",L0="collapsed",Bn="full",R0="!",st="[",ct="\\",lt="]";function Fs(e,r,t){var n=this,i=n.options.commonmark,u=r.charAt(0),a=0,o=r.length,s="",l="",c=Tn,f=S0,D,m,p,h,F,g,E,v;if(u===R0&&(c=I0,l=u,u=r.charAt(++a)),u===st){for(a++,l+=u,g="",v=0;a{"use strict";Cs.exports=M0;function M0(e,r){var t=e.indexOf("**",r),n=e.indexOf("__",r);return n===-1?t:t===-1||n{"use strict";var U0=Le(),As=se(),Y0=vs();xs.exports=bs;bs.locator=Y0;var G0="\\",z0="*",W0="_";function bs(e,r,t){var n=this,i=0,u=r.charAt(i),a,o,s,l,c,f,D;if(!(u!==z0&&u!==W0||r.charAt(++i)!==u)&&(o=n.options.pedantic,s=u,c=s+s,f=r.length,i++,l="",u="",!(o&&As(r.charAt(i)))))for(;i{"use strict";ws.exports=$0;var V0=String.fromCharCode,j0=/\w/;function $0(e){return j0.test(typeof e=="number"?V0(e):e.charAt(0))}});var Bs=x((c2,Ts)=>{"use strict";Ts.exports=H0;function H0(e,r){var t=e.indexOf("*",r),n=e.indexOf("_",r);return n===-1?t:t===-1||n{"use strict";var K0=Le(),X0=ks(),_s=se(),J0=Bs();Ns.exports=qs;qs.locator=J0;var Q0="*",Os="_",Z0="\\";function qs(e,r,t){var n=this,i=0,u=r.charAt(i),a,o,s,l,c,f,D;if(!(u!==Q0&&u!==Os)&&(o=n.options.pedantic,c=u,s=u,f=r.length,i++,l="",u="",!(o&&_s(r.charAt(i)))))for(;i{"use strict";Is.exports=em;function em(e,r){return e.indexOf("~~",r)}});var Ys=x((D2,Us)=>{"use strict";var Ls=se(),rm=Ss();Us.exports=Ms;Ms.locator=rm;var ft="~",Rs="~~";function Ms(e,r,t){var n=this,i="",u="",a="",o="",s,l,c;if(!(!n.options.gfm||r.charAt(0)!==ft||r.charAt(1)!==ft||Ls(r.charAt(2))))for(s=1,l=r.length,c=e.now(),c.column+=2,c.offset+=2;++s{"use strict";Gs.exports=tm;function tm(e,r){return e.indexOf("`",r)}});var js=x((h2,Vs)=>{"use strict";var nm=zs();Vs.exports=Ws;Ws.locator=nm;var _n=10,On=32,qn=96;function Ws(e,r,t){for(var n=r.length,i=0,u,a,o,s,l,c;i2&&(s===On||s===_n)&&(l===On||l===_n)){for(i++,n--;i{"use strict";$s.exports=im;function im(e,r){for(var t=e.indexOf(` +`,r);t>r&&e.charAt(t-1)===" ";)t--;return t}});var Js=x((m2,Xs)=>{"use strict";var um=Hs();Xs.exports=Ks;Ks.locator=um;var am=" ",om=` +`,sm=2;function Ks(e,r,t){for(var n=r.length,i=-1,u="",a;++i{"use strict";Qs.exports=cm;function cm(e,r,t){var n=this,i,u,a,o,s,l,c,f,D,m;if(t)return!0;for(i=n.inlineMethods,o=i.length,u=n.inlineTokenizers,a=-1,D=r.length;++a{"use strict";var lm=Ie(),Dt=Eu(),fm=vu(),Dm=bu(),pm=Ju(),Nn=ea();tc.exports=ec;function ec(e,r){this.file=r,this.offset={},this.options=lm(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=fm(r).toOffset,this.unescape=Dm(this,"escape"),this.decode=pm(this)}var Y=ec.prototype;Y.setOptions=sa();Y.parse=xa();Y.options=Kt();Y.exitStart=Dt("atStart",!0);Y.enterList=Dt("inList",!1);Y.enterLink=Dt("inLink",!1);Y.enterBlock=Dt("inBlock",!1);Y.interruptParagraph=[["thematicBreak"],["list"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}]];Y.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}]];Y.interruptBlockquote=[["indentedCode",{commonmark:!0}],["fencedCode",{commonmark:!0}],["atxHeading",{commonmark:!0}],["setextHeading",{commonmark:!0}],["thematicBreak",{commonmark:!0}],["html",{commonmark:!0}],["list",{commonmark:!0}],["definition",{commonmark:!1}]];Y.blockTokenizers={blankLine:wa(),indentedCode:Oa(),fencedCode:Pa(),blockquote:Ua(),atxHeading:za(),thematicBreak:ja(),list:no(),setextHeading:oo(),html:po(),definition:bo(),table:wo(),paragraph:Bo()};Y.inlineTokenizers={escape:Io(),autoLink:Yo(),url:Jo(),email:us(),html:ss(),link:ms(),reference:Es(),strong:ys(),emphasis:Ps(),deletion:Ys(),code:js(),break:Js(),text:Zs()};Y.blockMethods=rc(Y.blockTokenizers);Y.inlineMethods=rc(Y.inlineTokenizers);Y.tokenizeBlock=Nn("block");Y.tokenizeInline=Nn("inline");Y.tokenizeFactory=Nn;function rc(e){var r=[],t;for(t in e)r.push(t);return r}});var oc=x((E2,ac)=>{"use strict";var hm=Fu(),dm=Ie(),ic=nc();ac.exports=uc;uc.Parser=ic;function uc(e){var r=this.data("settings"),t=hm(ic);t.prototype.options=dm(t.prototype.options,r,e),this.Parser=t}});var cc=x((C2,sc)=>{"use strict";sc.exports=mm;function mm(e){if(e)throw e}});var Pn=x((v2,lc)=>{lc.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}});var Ec=x((A2,gc)=>{"use strict";var pt=Object.prototype.hasOwnProperty,Fc=Object.prototype.toString,fc=Object.defineProperty,Dc=Object.getOwnPropertyDescriptor,pc=function(r){return typeof Array.isArray=="function"?Array.isArray(r):Fc.call(r)==="[object Array]"},hc=function(r){if(!r||Fc.call(r)!=="[object Object]")return!1;var t=pt.call(r,"constructor"),n=r.constructor&&r.constructor.prototype&&pt.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!t&&!n)return!1;var i;for(i in r);return typeof i>"u"||pt.call(r,i)},dc=function(r,t){fc&&t.name==="__proto__"?fc(r,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):r[t.name]=t.newValue},mc=function(r,t){if(t==="__proto__")if(pt.call(r,t)){if(Dc)return Dc(r,t).value}else return;return r[t]};gc.exports=function e(){var r,t,n,i,u,a,o=arguments[0],s=1,l=arguments.length,c=!1;for(typeof o=="boolean"&&(c=o,o=arguments[1]||{},s=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});s{"use strict";Cc.exports=e=>{if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let r=Object.getPrototypeOf(e);return r===null||r===Object.prototype}});var bc=x((x2,Ac)=>{"use strict";var Fm=[].slice;Ac.exports=gm;function gm(e,r){var t;return n;function n(){var a=Fm.call(arguments,0),o=e.length>a.length,s;o&&a.push(i);try{s=e.apply(null,a)}catch(l){if(o&&t)throw l;return i(l)}o||(s&&typeof s.then=="function"?s.then(u,i):s instanceof Error?i(s):u(s))}function i(){t||(t=!0,r.apply(null,arguments))}function u(a){i(null,a)}}});var Tc=x((y2,kc)=>{"use strict";var yc=bc();kc.exports=wc;wc.wrap=yc;var xc=[].slice;function wc(){var e=[],r={};return r.run=t,r.use=n,r;function t(){var i=-1,u=xc.call(arguments,0,-1),a=arguments[arguments.length-1];if(typeof a!="function")throw new Error("Expected function as last argument, not "+a);o.apply(null,[null].concat(u));function o(s){var l=e[++i],c=xc.call(arguments,0),f=c.slice(1),D=u.length,m=-1;if(s){a(s);return}for(;++m{"use strict";var er={}.hasOwnProperty;Oc.exports=Em;function Em(e){return!e||typeof e!="object"?"":er.call(e,"position")||er.call(e,"type")?Bc(e.position):er.call(e,"start")||er.call(e,"end")?Bc(e):er.call(e,"line")||er.call(e,"column")?In(e):""}function In(e){return(!e||typeof e!="object")&&(e={}),_c(e.line)+":"+_c(e.column)}function Bc(e){return(!e||typeof e!="object")&&(e={}),In(e.start)+"-"+In(e.end)}function _c(e){return e&&typeof e=="number"?e:1}});var Ic=x((k2,Pc)=>{"use strict";var Cm=qc();Pc.exports=Sn;function Nc(){}Nc.prototype=Error.prototype;Sn.prototype=new Nc;var Te=Sn.prototype;Te.file="";Te.name="";Te.reason="";Te.message="";Te.stack="";Te.fatal=null;Te.column=null;Te.line=null;function Sn(e,r,t){var n,i,u;typeof r=="string"&&(t=r,r=null),n=vm(t),i=Cm(r)||"1:1",u={start:{line:null,column:null},end:{line:null,column:null}},r&&r.position&&(r=r.position),r&&(r.start?(u=r,r=r.start):u.start=r),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=i,this.reason=e,this.line=r?r.line:null,this.column=r?r.column:null,this.location=u,this.source=n[0],this.ruleId=n[1]}function vm(e){var r=[null,null],t;return typeof e=="string"&&(t=e.indexOf(":"),t===-1?r[1]=e:(r[0]=e.slice(0,t),r[1]=e.slice(t+1))),r}});var Sc=x(rr=>{"use strict";rr.basename=Am;rr.dirname=bm;rr.extname=xm;rr.join=ym;rr.sep="/";function Am(e,r){var t=0,n=-1,i,u,a,o;if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');if(wr(e),i=e.length,r===void 0||!r.length||r.length>e.length){for(;i--;)if(e.charCodeAt(i)===47){if(a){t=i+1;break}}else n<0&&(a=!0,n=i+1);return n<0?"":e.slice(t,n)}if(r===e)return"";for(u=-1,o=r.length-1;i--;)if(e.charCodeAt(i)===47){if(a){t=i+1;break}}else u<0&&(a=!0,u=i+1),o>-1&&(e.charCodeAt(i)===r.charCodeAt(o--)?o<0&&(n=i):(o=-1,n=u));return t===n?n=u:n<0&&(n=e.length),e.slice(t,n)}function bm(e){var r,t,n;if(wr(e),!e.length)return".";for(r=-1,n=e.length;--n;)if(e.charCodeAt(n)===47){if(t){r=n;break}}else t||(t=!0);return r<0?e.charCodeAt(0)===47?"/":".":r===1&&e.charCodeAt(0)===47?"//":e.slice(0,r)}function xm(e){var r=-1,t=0,n=-1,i=0,u,a,o;for(wr(e),o=e.length;o--;){if(a=e.charCodeAt(o),a===47){if(u){t=o+1;break}continue}n<0&&(u=!0,n=o+1),a===46?r<0?r=o:i!==1&&(i=1):r>-1&&(i=-1)}return r<0||n<0||i===0||i===1&&r===n-1&&r===t+1?"":e.slice(r,n)}function ym(){for(var e=-1,r;++e2){if(s=t.lastIndexOf("/"),s!==t.length-1){s<0?(t="",n=0):(t=t.slice(0,s),n=t.length-1-t.lastIndexOf("/")),i=a,u=0;continue}}else if(t.length){t="",n=0,i=a,u=0;continue}}r&&(t=t.length?t+"/..":"..",n=2)}else t.length?t+="/"+e.slice(i+1,a):t=e.slice(i+1,a),n=a-i-1;i=a,u=0}else o===46&&u>-1?u++:u=-1}return t}function wr(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}});var Rc=x(Lc=>{"use strict";Lc.cwd=Tm;function Tm(){return"/"}});var Yc=x((_2,Uc)=>{"use strict";var ce=Sc(),Bm=Rc(),_m=Pn();Uc.exports=Ce;var Om={}.hasOwnProperty,Ln=["history","path","basename","stem","extname","dirname"];Ce.prototype.toString=Gm;Object.defineProperty(Ce.prototype,"path",{get:qm,set:Nm});Object.defineProperty(Ce.prototype,"dirname",{get:Pm,set:Im});Object.defineProperty(Ce.prototype,"basename",{get:Sm,set:Lm});Object.defineProperty(Ce.prototype,"extname",{get:Rm,set:Mm});Object.defineProperty(Ce.prototype,"stem",{get:Um,set:Ym});function Ce(e){var r,t;if(!e)e={};else if(typeof e=="string"||_m(e))e={contents:e};else if("message"in e&&"messages"in e)return e;if(!(this instanceof Ce))return new Ce(e);for(this.data={},this.messages=[],this.history=[],this.cwd=Bm.cwd(),t=-1;++t-1)throw new Error("`extname` cannot contain multiple dots")}this.path=ce.join(this.dirname,this.stem+(e||""))}function Um(){return typeof this.path=="string"?ce.basename(this.path,this.extname):void 0}function Ym(e){Mn(e,"stem"),Rn(e,"stem"),this.path=ce.join(this.dirname||"",e+(this.extname||""))}function Gm(e){return(this.contents||"").toString(e)}function Rn(e,r){if(e&&e.indexOf(ce.sep)>-1)throw new Error("`"+r+"` cannot be a path: did not expect `"+ce.sep+"`")}function Mn(e,r){if(!e)throw new Error("`"+r+"` cannot be empty")}function Mc(e,r){if(!e)throw new Error("Setting `"+r+"` requires `path` to be set too")}});var zc=x((O2,Gc)=>{"use strict";var zm=Ic(),ht=Yc();Gc.exports=ht;ht.prototype.message=Wm;ht.prototype.info=jm;ht.prototype.fail=Vm;function Wm(e,r,t){var n=new zm(e,r,t);return this.path&&(n.name=this.path+":"+n.name,n.file=this.path),n.fatal=!1,this.messages.push(n),n}function Vm(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}function jm(){var e=this.message.apply(this,arguments);return e.fatal=null,e}});var Vc=x((q2,Wc)=>{"use strict";Wc.exports=zc()});var el=x((N2,Zc)=>{"use strict";var jc=cc(),$m=Pn(),dt=Ec(),$c=vc(),Jc=Tc(),kr=Vc();Zc.exports=Qc().freeze();var Hm=[].slice,Km={}.hasOwnProperty,Xm=Jc().use(Jm).use(Qm).use(Zm);function Jm(e,r){r.tree=e.parse(r.file)}function Qm(e,r,t){e.run(r.tree,r.file,n);function n(i,u,a){i?t(i):(r.tree=u,r.file=a,t())}}function Zm(e,r){var t=e.stringify(r.tree,r.file);t==null||(typeof t=="string"||$m(t)?("value"in r.file&&(r.file.value=t),r.file.contents=t):r.file.result=t)}function Qc(){var e=[],r=Jc(),t={},n=-1,i;return u.data=o,u.freeze=a,u.attachers=e,u.use=s,u.parse=c,u.stringify=m,u.run=f,u.runSync=D,u.process=p,u.processSync=h,u;function u(){for(var F=Qc(),g=-1;++gKi,options:()=>Xi,parsers:()=>Wn,printers:()=>fF});var Me=(e,r)=>(t,n,...i)=>t|1&&n==null?void 0:(r.call(n)??n[e]).apply(n,i);function yl(e){return this[e<0?this.length+e:e]}var wl=Me("at",function(){if(Array.isArray(this)||typeof this=="string")return yl}),U=wl;var kl=String.prototype.replaceAll??function(e,r){return e.global?this.replace(e,r):this.split(e).join(r)},Tl=Me("replaceAll",function(){if(typeof this=="string")return kl}),R=Tl;var $i=Re(Tr(),1);function fe(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var _l=()=>{},tr=_l;var V="string",j="array",be="cursor",ee="indent",re="align",De="trim",X="group",J="fill",Q="if-break",pe="indent-if-break",he="line-suffix",de="line-suffix-boundary",$="line",me="label",te="break-parent",Br=new Set([be,ee,re,De,X,J,Q,pe,he,de,$,me,te]);function Ol(e){if(typeof e=="string")return V;if(Array.isArray(e))return j;if(!e)return;let{type:r}=e;if(Br.has(r))return r}var W=Ol;var ql=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function Nl(e){let r=e===null?"null":typeof e;if(r!=="string"&&r!=="object")return`Unexpected doc '${r}', +Expected it to be 'string' or 'object'.`;if(W(e))throw new Error("doc is valid.");let t=Object.prototype.toString.call(e);if(t!=="[object Object]")return`Unexpected doc '${t}'.`;let n=ql([...Br].map(i=>`'${i}'`));return`Unexpected doc.type '${e.type}'. +Expected it to be ${n}.`}var gt=class extends Error{name="InvalidDocError";constructor(r){super(Nl(r)),this.doc=r}},Be=gt;var $n={};function Pl(e,r,t,n){let i=[e];for(;i.length>0;){let u=i.pop();if(u===$n){t(i.pop());continue}t&&i.push(u,$n);let a=W(u);if(!a)throw new Be(u);if(r?.(u)!==!1)switch(a){case j:case J:{let o=a===j?u:u.parts;for(let s=o.length,l=s-1;l>=0;--l)i.push(o[l]);break}case Q:i.push(u.flatContents,u.breakContents);break;case X:if(n&&u.expandedStates)for(let o=u.expandedStates.length,s=o-1;s>=0;--s)i.push(u.expandedStates[s]);else i.push(u.contents);break;case re:case ee:case pe:case me:case he:i.push(u.contents);break;case V:case be:case De:case de:case $:case te:break;default:throw new Be(u)}}}var Hn=Pl;function Il(e,r){if(typeof e=="string")return r(e);let t=new Map;return n(e);function n(u){if(t.has(u))return t.get(u);let a=i(u);return t.set(u,a),a}function i(u){switch(W(u)){case j:return r(u.map(n));case J:return r({...u,parts:u.parts.map(n)});case Q:return r({...u,breakContents:n(u.breakContents),flatContents:n(u.flatContents)});case X:{let{expandedStates:a,contents:o}=u;return a?(a=a.map(n),o=a[0]):o=n(o),r({...u,contents:o,expandedStates:a})}case re:case ee:case pe:case me:case he:return r({...u,contents:n(u.contents)});case V:case be:case De:case de:case $:case te:return r(u);default:throw new Be(u)}}}function Kn(e){if(e.length>0){let r=U(0,e,-1);!r.expandedStates&&!r.break&&(r.break="propagated")}return null}function Xn(e){let r=new Set,t=[];function n(u){if(u.type===te&&Kn(t),u.type===X){if(t.push(u),r.has(u))return!1;r.add(u)}}function i(u){u.type===X&&t.pop().break&&Kn(t)}Hn(e,n,i,!0)}function xe(e,r=nr){return Il(e,t=>typeof t=="string"?_r(r,t.split(` +`)):t)}var ne=tr,Or=tr,Jn=tr,Qn=tr;function ir(e){return ne(e),{type:ee,contents:e}}function Fe(e,r){return Qn(e),ne(r),{type:re,contents:r,n:e}}function ur(e){return Fe({type:"root"},e)}var Ue={type:te};function Ye(e){return Jn(e),{type:J,parts:e}}function Ge(e,r={}){return ne(e),Or(r.expandedStates,!0),{type:X,id:r.id,contents:e,break:!!r.shouldBreak,expandedStates:r.expandedStates}}function Zn(e,r="",t={}){return ne(e),r!==""&&ne(r),{type:Q,breakContents:e,flatContents:r,groupId:t.groupId}}function _r(e,r){ne(e),Or(r);let t=[];for(let n=0;n/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function Et(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function Ct(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var ti="\xA9\xAE\u203C\u2049\u2122\u2139\u2194\u2195\u2196\u2197\u2198\u2199\u21A9\u21AA\u2328\u23CF\u23F1\u23F2\u23F8\u23F9\u23FA\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600\u2601\u2602\u2603\u2604\u260E\u2611\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638\u2639\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694\u2695\u2696\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F1\u26F7\u26F8\u26F9\u2702\u2708\u2709\u270C\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u2764\u27A1\u2934\u2935\u2B05\u2B06\u2B07";var zl=/[^\x20-\x7F]/u,Wl=new Set(ti);function Vl(e){if(!e)return 0;if(!zl.test(e))return e.length;e=e.replace(ri(),t=>Wl.has(t)?" ":" ");let r=0;for(let t of e){let n=t.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||n>=65024&&n<=65039||(r+=Et(n)||Ct(n)?2:1)}return r}var or=Vl;var jl={type:0},$l={type:1},vt={value:"",length:0,queue:[],get root(){return vt}};function ni(e,r,t){let n=r.type===1?e.queue.slice(0,-1):[...e.queue,r],i="",u=0,a=0,o=0;for(let p of n)switch(p.type){case 0:c(),t.useTabs?s(1):l(t.tabWidth);break;case 3:{let{string:h}=p;c(),i+=h,u+=h.length;break}case 2:{let{width:h}=p;a+=1,o+=h;break}default:throw new Error(`Unexpected indent comment '${p.type}'.`)}return D(),{...e,value:i,length:u,queue:n};function s(p){i+=" ".repeat(p),u+=t.tabWidth*p}function l(p){i+=" ".repeat(p),u+=p}function c(){t.useTabs?f():D()}function f(){a>0&&s(a),m()}function D(){o>0&&l(o),m()}function m(){a=0,o=0}}function ii(e,r,t){if(!r)return e;if(r.type==="root")return{...e,root:e};if(r===Number.NEGATIVE_INFINITY)return e.root;let n;return typeof r=="number"?r<0?n=$l:n={type:2,width:r}:n={type:3,string:r},ni(e,n,t)}function ui(e,r){return ni(e,jl,r)}function Hl(e){let r=0;for(let t=e.length-1;t>=0;t--){let n=e[t];if(n===" "||n===" ")r++;else break}return r}function At(e){let r=Hl(e);return{text:r===0?e:e.slice(0,e.length-r),count:r}}var H=Symbol("MODE_BREAK"),ue=Symbol("MODE_FLAT"),bt=Symbol("DOC_FILL_PRINTED_LENGTH");function Pr(e,r,t,n,i,u){if(t===Number.POSITIVE_INFINITY)return!0;let a=r.length,o=!1,s=[e],l="";for(;t>=0;){if(s.length===0){if(a===0)return!0;s.push(r[--a]);continue}let{mode:c,doc:f}=s.pop(),D=W(f);switch(D){case V:f&&(o&&(l+=" ",t-=1,o=!1),l+=f,t-=or(f));break;case j:case J:{let m=D===j?f:f.parts,p=f[bt]??0;for(let h=m.length-1;h>=p;h--)s.push({mode:c,doc:m[h]});break}case ee:case re:case pe:case me:s.push({mode:c,doc:f.contents});break;case De:{let{text:m,count:p}=At(l);l=m,t+=p;break}case X:{if(u&&f.break)return!1;let m=f.break?H:c,p=f.expandedStates&&m===H?U(0,f.expandedStates,-1):f.contents;s.push({mode:m,doc:p});break}case Q:{let p=(f.groupId?i[f.groupId]||ue:c)===H?f.breakContents:f.flatContents;p&&s.push({mode:c,doc:p});break}case $:if(c===H||f.hard)return!0;f.soft||(o=!0);break;case he:n=!0;break;case de:if(n)return!1;break}}return!1}function ai(e,r){let t=Object.create(null),n=r.printWidth,i=ei(r.endOfLine),u=0,a=[{indent:vt,mode:H,doc:e}],o="",s=!1,l=[],c=[],f=[],D=[],m=0;for(Xn(e);a.length>0;){let{indent:E,mode:v,doc:A}=a.pop();switch(W(A)){case V:{let b=i!==` +`?R(0,A,` +`,i):A;b&&(o+=b,a.length>0&&(u+=or(b)));break}case j:for(let b=A.length-1;b>=0;b--)a.push({indent:E,mode:v,doc:A[b]});break;case be:if(c.length>=2)throw new Error("There are too many 'cursor' in doc.");c.push(m+o.length);break;case ee:a.push({indent:ui(E,r),mode:v,doc:A.contents});break;case re:a.push({indent:ii(E,A.n,r),mode:v,doc:A.contents});break;case De:g();break;case X:switch(v){case ue:if(!s){a.push({indent:E,mode:A.break?H:ue,doc:A.contents});break}case H:{s=!1;let b={indent:E,mode:ue,doc:A.contents},d=n-u,y=l.length>0;if(!A.break&&Pr(b,a,d,y,t))a.push(b);else if(A.expandedStates){let w=U(0,A.expandedStates,-1);if(A.break){a.push({indent:E,mode:H,doc:w});break}else for(let C=1;C=A.expandedStates.length){a.push({indent:E,mode:H,doc:w});break}else{let k=A.expandedStates[C],T={indent:E,mode:ue,doc:k};if(Pr(T,a,d,y,t)){a.push(T);break}}}else a.push({indent:E,mode:H,doc:A.contents});break}}A.id&&(t[A.id]=U(0,a,-1).mode);break;case J:{let b=n-u,d=A[bt]??0,{parts:y}=A,w=y.length-d;if(w===0)break;let C=y[d+0],k=y[d+1],T={indent:E,mode:ue,doc:C},B={indent:E,mode:H,doc:C},_=Pr(T,[],b,l.length>0,t,!0);if(w===1){_?a.push(T):a.push(B);break}let S={indent:E,mode:ue,doc:k},P={indent:E,mode:H,doc:k};if(w===2){_?a.push(S,T):a.push(P,B);break}let N=y[d+2],O={indent:E,mode:v,doc:{...A,[bt]:d+2}},le=Pr({indent:E,mode:ue,doc:[C,k,N]},[],b,l.length>0,t,!0);a.push(O),le?a.push(S,T):_?a.push(P,T):a.push(P,B);break}case Q:case pe:{let b=A.groupId?t[A.groupId]:v;if(b===H){let d=A.type===Q?A.breakContents:A.negate?A.contents:ir(A.contents);d&&a.push({indent:E,mode:v,doc:d})}if(b===ue){let d=A.type===Q?A.flatContents:A.negate?ir(A.contents):A.contents;d&&a.push({indent:E,mode:v,doc:d})}break}case he:l.push({indent:E,mode:v,doc:A.contents});break;case de:l.length>0&&a.push({indent:E,mode:v,doc:ar});break;case $:switch(v){case ue:if(A.hard)s=!0;else{A.soft||(o+=" ",u+=1);break}case H:if(l.length>0){a.push({indent:E,mode:v,doc:A},...l.reverse()),l.length=0;break}A.literal?(o+=i,u=0,E.root&&(E.root.value&&(o+=E.root.value),u=E.root.length)):(g(),o+=i+E.value,u=E.length);break}break;case me:a.push({indent:E,mode:v,doc:A.contents});break;case te:break;default:throw new Be(A)}a.length===0&&l.length>0&&(a.push(...l.reverse()),l.length=0)}let p=f.join("")+o,h=[...D,...c];if(h.length!==2)return{formatted:p};let F=h[0];return{formatted:p,cursorNodeStart:F,cursorNodeText:p.slice(F,U(0,h,-1))};function g(){let{text:E,count:v}=At(o);E&&(f.push(E),m+=E.length),o="",u-=v,c.length>0&&(D.push(...c.map(A=>Math.min(A,m))),c.length=0)}}function Kl(e,r){let t=e.matchAll(new RegExp(`(?:${fe(r)})+`,"gu"));return t.reduce||(t=[...t]),t.reduce((n,[i])=>Math.max(n,i.length),0)/r.length}var Ir=Kl;function Xl(e,r){let t=e.match(new RegExp(`(${fe(r)})+`,"gu"));if(t===null)return 1;let n=new Map,i=0;for(let u of t){let a=u.length/r.length;n.set(a,!0),a>i&&(i=a)}for(let u=1;ua?n:t).character}var li=Zl;var xt=class extends Error{name="UnexpectedNodeError";constructor(r,t,n="type"){super(`Unexpected ${t} node ${n}: ${JSON.stringify(r[n])}.`),this.node=r}},fi=xt;var bi=Re(Tr(),1);var ef=Array.prototype.toReversed??function(){return[...this].reverse()},rf=Me("toReversed",function(){if(Array.isArray(this))return ef}),Di=rf;function tf(){let e=globalThis,r=e.Deno?.build?.os;return typeof r=="string"?r==="windows":e.navigator?.platform?.startsWith("Win")??e.process?.platform?.startsWith("win")??!1}var nf=tf();function pi(e){if(e=e instanceof URL?e:new URL(e),e.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function uf(e){return e=pi(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function af(e){e=pi(e);let r=decodeURIComponent(e.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return e.hostname!==""&&(r=`\\\\${e.hostname}${r}`),r}function yt(e){return nf?af(e):uf(e)}var hi=e=>String(e).split(/[/\\]/u).pop(),di=e=>String(e).startsWith("file:");function mi(e,r){if(!r)return;let t=hi(r).toLowerCase();return e.find(({filenames:n})=>n?.some(i=>i.toLowerCase()===t))??e.find(({extensions:n})=>n?.some(i=>t.endsWith(i)))}function of(e,r){if(r)return e.find(({name:t})=>t.toLowerCase()===r)??e.find(({aliases:t})=>t?.includes(r))??e.find(({extensions:t})=>t?.includes(`.${r}`))}var sf=void 0;function Fi(e,r){if(r){if(di(r))try{r=yt(r)}catch{return}if(typeof r=="string")return e.find(({isSupported:t})=>t?.({filepath:r}))}}function cf(e,r){let t=Di(0,e.plugins).flatMap(i=>i.languages??[]);return(of(t,r.language)??mi(t,r.physicalFile)??mi(t,r.file)??Fi(t,r.physicalFile)??Fi(t,r.file)??sf?.(t,r.physicalFile))?.parsers[0]}var wt=cf;var Sr=Symbol.for("PRETTIER_IS_FRONT_MATTER");function lf(e){return!!e?.[Sr]}var kt=lf;var sr=3;function ff(e){let r=e.slice(0,sr);if(r!=="---"&&r!=="+++")return;let t=e.indexOf(` +`,sr);if(t===-1)return;let n=e.slice(sr,t).trim(),i=e.indexOf(` +${r}`,t),u=n;if(u||(u=r==="+++"?"toml":"yaml"),i===-1&&r==="---"&&u==="yaml"&&(i=e.indexOf(` +...`,t)),i===-1)return;let a=i+1+sr,o=e.charAt(a+1);if(!/\s?/u.test(o))return;let s=e.slice(0,a),l;return{language:u,explicitLanguage:n||null,value:e.slice(t+1,i),startDelimiter:r,endDelimiter:s.slice(-sr),raw:s,start:{line:1,column:0,index:0},end:{index:s.length,get line(){return l??(l=s.split(` +`)),l.length},get column(){return l??(l=s.split(` +`)),U(0,l,-1).length}},[Sr]:!0}}function Df(e){let r=ff(e);return r?{frontMatter:r,get content(){let{raw:t}=r;return R(0,t,/[^\n]/gu," ")+e.slice(t.length)}}:{content:e}}var _e=Df;var gi="format";var Ei=/|\{\s*\/\*\s*@(?:noformat|noprettier)\s*\*\/\s*\}|/mu,Ci=/|\{\s*\/\*\s*@(?:format|prettier)\s*\*\/\s*\}|/mu;var Lr=e=>_e(e).content.trimStart().match(Ci)?.index===0,vi=e=>_e(e).content.trimStart().match(Ei)?.index===0,Ai=e=>{let{frontMatter:r}=_e(e),t=``;return r?`${r.raw} + +${t} + +${e.slice(r.end.index)}`:`${t} + +${e}`};var pf=new Set(["position","raw"]);function xi(e,r,t){if((e.type==="code"||e.type==="yaml"||e.type==="import"||e.type==="export"||e.type==="jsx")&&delete r.value,e.type==="list"&&delete r.isAligned,(e.type==="list"||e.type==="listItem")&&delete r.spread,e.type==="text")return null;if(e.type==="inlineCode"&&(r.value=R(0,e.value,` +`," ")),e.type==="wikiLink"&&(r.value=R(0,e.value.trim(),/[\t\n]+/gu," ")),(e.type==="definition"||e.type==="linkReference"||e.type==="imageReference")&&(r.label=(0,bi.default)(e.label)),(e.type==="link"||e.type==="image")&&e.url&&e.url.includes("("))for(let n of"<>")r.url=R(0,e.url,n,encodeURIComponent(n));if((e.type==="definition"||e.type==="link"||e.type==="image")&&e.title&&(r.title=R(0,e.title,/\\(?=["')])/gu,"")),t?.type==="root"&&t.children.length>0&&(t.children[0]===e||kt(t.children[0])&&t.children[1]===e)&&e.type==="html"&&Lr(e.value))return null}xi.ignoredProperties=pf;var yi=xi;var wi=/(?:[\u{2c7}\u{2c9}-\u{2cb}\u{2d9}\u{2ea}-\u{2eb}\u{305}\u{323}\u{1100}-\u{11ff}\u{2e80}-\u{2e99}\u{2e9b}-\u{2ef3}\u{2f00}-\u{2fd5}\u{2ff0}-\u{303f}\u{3041}-\u{3096}\u{3099}-\u{30ff}\u{3105}-\u{312f}\u{3131}-\u{318e}\u{3190}-\u{4dbf}\u{4e00}-\u{9fff}\u{a700}-\u{a707}\u{a960}-\u{a97c}\u{ac00}-\u{d7a3}\u{d7b0}-\u{d7c6}\u{d7cb}-\u{d7fb}\u{f900}-\u{fa6d}\u{fa70}-\u{fad9}\u{fe10}-\u{fe1f}\u{fe30}-\u{fe6f}\u{ff00}-\u{ffef}\u{16fe3}\u{16ff2}-\u{16ff6}\u{1aff0}-\u{1aff3}\u{1aff5}-\u{1affb}\u{1affd}-\u{1affe}\u{1b000}-\u{1b122}\u{1b132}\u{1b150}-\u{1b152}\u{1b155}\u{1b164}-\u{1b167}\u{1f200}\u{1f250}-\u{1f251}\u{20000}-\u{2a6df}\u{2a700}-\u{2b81d}\u{2b820}-\u{2cead}\u{2ceb0}-\u{2ebe0}\u{2ebf0}-\u{2ee5d}\u{2f800}-\u{2fa1d}\u{30000}-\u{3134a}\u{31350}-\u{33479}])(?:[\u{fe00}-\u{fe0f}\u{e0100}-\u{e01ef}])?/u,Oe=/(?:[\u{21}-\u{2f}\u{3a}-\u{40}\u{5b}-\u{60}\u{7b}-\u{7e}]|\p{General_Category=Connector_Punctuation}|\p{General_Category=Dash_Punctuation}|\p{General_Category=Close_Punctuation}|\p{General_Category=Final_Punctuation}|\p{General_Category=Initial_Punctuation}|\p{General_Category=Other_Punctuation}|\p{General_Category=Open_Punctuation})/u;var qe=e=>e.position.start.offset,Ne=e=>e.position.end.offset;var Tt=new Set(["liquidNode","inlineCode","emphasis","esComment","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"]),Rr=new Set([...Tt,"tableCell","paragraph","heading"]),We="non-cjk",ae="cj-letter",Pe="k-letter",cr="cjk-punctuation",hf=/\p{Script_Extensions=Hangul}/u;function Mr(e){let r=[],t=e.split(/([\t\n ]+)/u);for(let[i,u]of t.entries()){if(i%2===1){r.push({type:"whitespace",value:/\n/u.test(u)?` +`:" "});continue}if((i===0||i===t.length-1)&&u==="")continue;let a=u.split(new RegExp(`(${wi.source})`,"u"));for(let[o,s]of a.entries())if(!((o===0||o===a.length-1)&&s==="")){if(o%2===0){s!==""&&n({type:"word",value:s,kind:We,isCJ:!1,hasLeadingPunctuation:Oe.test(s[0]),hasTrailingPunctuation:Oe.test(U(0,s,-1))});continue}if(Oe.test(s)){n({type:"word",value:s,kind:cr,isCJ:!0,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0});continue}if(hf.test(s)){n({type:"word",value:s,kind:Pe,isCJ:!1,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1});continue}n({type:"word",value:s,kind:ae,isCJ:!0,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return r;function n(i){let u=U(0,r,-1);u?.type==="word"&&!a(We,cr)&&![u.value,i.value].some(o=>/\u3000/u.test(o))&&r.push({type:"whitespace",value:""}),r.push(i);function a(o,s){return u.kind===o&&i.kind===s||u.kind===s&&i.kind===o}}}function ze(e,r){let t=r.originalText.slice(e.position.start.offset,e.position.end.offset),{numberText:n,leadingSpaces:i}=t.match(/^\s*(?\d+)(\.|\))(?\s*)/u).groups;return{number:Number(n),leadingSpaces:i}}function ki(e,r){return!e.ordered||e.children.length<2||ze(e.children[1],r).number!==1?!1:ze(e.children[0],r).number!==0?!0:e.children.length>2&&ze(e.children[2],r).number===1}function Ur(e,r){let{value:t}=e;return e.position.end.offset===r.length&&t.endsWith(` +`)&&r.endsWith(` +`)?t.slice(0,-1):t}function ye(e,r){return(function t(n,i,u){let a={...r(n,i,u)};return a.children&&(a.children=a.children.map((o,s)=>t(o,s,[a,...u]))),a})(e,null,[])}function Yr(e){if(e?.type!=="link"||e.children.length!==1)return!1;let[r]=e.children;return qe(e)===qe(r)&&Ne(e)===Ne(r)}function lr(e){let r;if(e.type==="html")r=e.value.match(/^$/u);else{let t;e.type==="esComment"?t=e:e.type==="paragraph"&&e.children.length===1&&e.children[0].type==="esComment"&&(t=e.children[0]),t&&(r=t.value.match(/^prettier-ignore(?:-(start|end))?$/u))}return r?r[1]||"next":!1}function Gr(e,r){return t(e,r,n=>n.ordered===e.ordered);function t(n,i,u){let a=-1;for(let o of i.children)if(o.type===n.type&&u(o)?a++:a=-1,o===n)return a}}function df(e,r){let{node:t}=e;switch(t.type){case"code":{let{lang:n}=t;if(!n)return;let i;return n==="angular-ts"?i=wt(r,{language:"typescript"}):n==="angular-html"?i="angular":i=wt(r,{language:n}),i?async u=>{let a={parser:i};n==="ts"||n==="typescript"?a.filepath="dummy.ts":n==="tsx"&&(a.filepath="dummy.tsx");let o=await u(Ur(t,r.originalText),a),s=r.__inJsTemplate?"~":"`",l=s.repeat(Math.max(3,Ir(t.value,s)+1));return ur([l,t.lang,t.meta?" "+t.meta:"",M,xe(o),M,l])}:void 0}case"import":case"export":return n=>n(t.value,{__onHtmlBindingRoot:i=>mf(i,t.type),parser:"babel"});case"jsx":return n=>n(`<$>${t.value}`,{parser:"__js_expression",rootMarker:"mdx"})}return null}function mf(e,r){let{program:{body:t}}=e;if(!t.every(n=>n.type==="ImportDeclaration"||n.type==="ExportDefaultDeclaration"||n.type==="ExportNamedDeclaration"))throw new Error(`Unexpected '${r}' in MDX.`)}var Ti=df;var fr=null;function Dr(e){if(fr!==null&&typeof fr.property){let r=fr;return fr=Dr.prototype=null,r}return fr=Dr.prototype=e??Object.create(null),new Dr}var Ff=10;for(let e=0;e<=Ff;e++)Dr();function Bt(e){return Dr(e)}function gf(e,r="type"){Bt(e);function t(n){let i=n[r],u=e[i];if(!Array.isArray(u))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:n});return u}return t}var Bi=gf;var q=[["children"],[]],_i={root:q[0],paragraph:q[0],sentence:q[0],word:q[1],whitespace:q[1],emphasis:q[0],strong:q[0],delete:q[0],inlineCode:q[1],wikiLink:q[1],link:q[0],image:q[1],blockquote:q[0],heading:q[0],code:q[1],html:q[1],list:q[0],thematicBreak:q[1],linkReference:q[0],imageReference:q[1],definition:q[1],footnote:q[0],footnoteReference:q[1],footnoteDefinition:q[0],table:q[0],tableCell:q[0],break:q[1],liquidNode:q[1],import:q[1],export:q[1],esComment:q[1],jsx:q[1],math:q[1],inlineMath:q[1],tableRow:q[0],listItem:q[0],text:q[1]};var Ef=Bi(_i),Oi=Ef;function z(e,r,t,n={}){let{processor:i=t}=n,u=[];return e.each(()=>{let a=i(e);a!==!1&&(u.length>0&&Cf(e)&&(u.push(M),(Af(e,r)||qi(e))&&u.push(M),qi(e)&&u.push(M)),u.push(a))},"children"),u}function Cf({node:e,parent:r}){let t=Tt.has(e.type),n=e.type==="html"&&Rr.has(r.type);return!t&&!n}var vf=new Set(["listItem","definition"]);function Af({node:e,previous:r,parent:t},n){if(Ni(r,n)||e.type==="list"&&t.type==="listItem"&&(r.type==="code"||r.type==="paragraph")&&r.position.end.line+1=4?0:t);function n(){let i=e.length%r.tabWidth;return i===0?0:r.tabWidth-i}}function xf(e,r,t){return Math.max(r,Math.min(e,t))}function Si(e,r,t){let{node:n}=e,i=[],u=e.map(()=>e.map(({index:f})=>{let D=ai(t(),r).formatted,m=or(D);return i[f]=Math.max(i[f]??3,m),{text:D,width:m}},"children"),"children"),a=s(!1);if(r.proseWrap!=="never")return[Ue,a];let o=s(!0);return[Ue,Ge(Zn(o,a))];function s(f){return _r(ar,[c(u[0],f),l(f),...u.slice(1).map(D=>c(D,f))].map(D=>`| ${D.join(" | ")} |`))}function l(f){return i.map((D,m)=>{let p=n.align[m],h=p==="center"||p==="left"?":":"-",F=p==="center"||p==="right"?":":"-",g=f?"-":"-".repeat(D-2);return`${h}${g}${F}`})}function c(f,D){return f.map(({text:m,width:p},h)=>{if(D)return m;let F=i[h]-p,g=n.align[h],E=0;g==="right"?E=F:g==="center"&&(E=Math.floor(F/2));let v=F-E;return`${" ".repeat(E)}${m}${" ".repeat(v)}`})}}function Li(e){let{node:r}=e,t=R(0,R(0,r.value,"*","\\*"),new RegExp([`(^|${Oe.source})(_+)`,`(_+)(${Oe.source}|$)`].join("|"),"gu"),(u,a,o,s,l)=>R(0,o?`${a}${o}`:`${s}${l}`,"_","\\_")),n=(u,a,o)=>u.type==="sentence"&&o===0,i=(u,a,o)=>Yr(u.children[o-1]);return t!==r.value&&(e.match(void 0,n,i)||e.match(void 0,n,(u,a,o)=>u.type==="emphasis"&&o===0,i))&&(t=t.replace(/^(\\?[*_])+/u,u=>R(0,u,"\\",""))),t}function Ri(e,r,t){let n=e.map(t,"children");return yf(n)}function yf(e){let r=[""];return(function t(n){for(let i of n){let u=W(i);if(u===j){t(i);continue}let a=i,o=[];u===J&&([a,...o]=i.parts),r.push([r.pop(),a],...o)}})(e),Ye(r)}var _t=class{#e;constructor(r){this.#e=new Set(r)}getLeadingWhitespaceCount(r){let t=this.#e,n=0;for(let i=0;i=0&&t.has(r.charAt(i));i--)n++;return n}getLeadingWhitespace(r){let t=this.getLeadingWhitespaceCount(r);return r.slice(0,t)}getTrailingWhitespace(r){let t=this.getTrailingWhitespaceCount(r);return r.slice(r.length-t)}hasLeadingWhitespace(r){return this.#e.has(r.charAt(0))}hasTrailingWhitespace(r){return this.#e.has(U(0,r,-1))}trimStart(r){let t=this.getLeadingWhitespaceCount(r);return r.slice(t)}trimEnd(r){let t=this.getTrailingWhitespaceCount(r);return r.slice(0,r.length-t)}trim(r){return this.trimEnd(this.trimStart(r))}split(r,t=!1){let n=`[${fe([...this.#e].join(""))}]+`,i=new RegExp(t?`(${n})`:n,"u");return r.split(i)}hasWhitespaceCharacter(r){let t=this.#e;return Array.prototype.some.call(r,n=>t.has(n))}hasNonWhitespaceCharacter(r){let t=this.#e;return Array.prototype.some.call(r,n=>!t.has(n))}isWhitespaceOnly(r){let t=this.#e;return Array.prototype.every.call(r,n=>t.has(n))}#r(r){let t=Number.POSITIVE_INFINITY;for(let n of r.split(` +`)){if(n.length===0)continue;let i=this.getLeadingWhitespaceCount(n);if(i===0)return 0;n.length!==i&&in.slice(t)).join(` +`)}},Mi=_t;var wf=[" ",` +`,"\f","\r"," "],kf=new Mi(wf),Ot=kf;var Tf=/^\\?.$/su,Bf=/^\n *>[ >]*$/u;function _f(e,r){return e=Of(e,r),e=Nf(e),e=If(e,r),e=Sf(e,r),e=Pf(e),e}function Of(e,r){return ye(e,t=>{if(t.type!=="text")return t;let{value:n}=t;if(n==="*"||n==="_"||!Tf.test(n)||t.position.end.offset-t.position.start.offset===n.length)return t;let i=r.originalText.slice(t.position.start.offset,t.position.end.offset);return Bf.test(i)?t:{...t,value:i}})}function qf(e,r,t){return ye(e,n=>{if(!n.children)return n;let i=[],u,a;for(let o of n.children)u&&r(u,o)?(o=t(u,o),i.splice(-1,1,o),a||(a=!0)):i.push(o),u=o;return a?{...n,children:i}:n})}function Nf(e){return qf(e,(r,t)=>r.type==="text"&&t.type==="text",(r,t)=>({type:"text",value:r.value+t.value,position:{start:r.position.start,end:t.position.end}}))}function Pf(e){return ye(e,(r,t,[n])=>{if(r.type!=="text")return r;let{value:i}=r;return n.type==="paragraph"&&(t===0&&(i=Ot.trimStart(i)),t===n.children.length-1&&(i=Ot.trimEnd(i))),{type:"sentence",position:r.position,children:Mr(i)}})}function If(e,r){return ye(e,(t,n,i)=>{if(t.type==="code"){let u=/^\n?(?: {4,}|\t)/u.test(r.originalText.slice(t.position.start.offset,t.position.end.offset));if(t.isIndented=u,u)for(let a=0;a{if(i.type==="list"&&i.children.length>0){for(let o=0;o1)return!0;let s=t(u);if(s===-1)return!1;if(i.children.length===1)return s%r.tabWidth===0;let l=t(a);return s!==l?!1:s%r.tabWidth===0?!0:ze(a,r).leadingSpaces.length>1}}var Ui=_f;function Yi(e,r){let t=[""];return e.each(()=>{let{node:n}=e,i=r();switch(n.type){case"whitespace":if(W(i)!==V){t.push(i,"");break}default:t.push([t.pop(),i])}},"children"),Ye(t)}var Lf=new Set(["heading","tableCell","link","wikiLink"]),Gi=new Set("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~");function Rf({parent:e}){if(e.usesCJSpaces===void 0){let r={" ":0,"":0},{children:t}=e;for(let n=1;nr[""]}return e.usesCJSpaces}function Mf(e,r){if(r)return!0;let{previous:t,next:n}=e;if(!t||!n)return!0;let i=t.kind,u=n.kind;return zi(i)&&zi(u)||i===Pe&&u===ae||u===Pe&&i===ae?!0:i===cr||u===cr||i===ae&&u===ae?!1:Gi.has(n.value[0])||Gi.has(U(0,t.value,-1))?!0:t.hasTrailingPunctuation||n.hasLeadingPunctuation?!1:Rf(e)}function zi(e){return e===We||e===Pe}function Uf(e,r,t,n){if(t!=="always"||e.hasAncestor(a=>Lf.has(a.type)))return!1;if(n)return r!=="";let{previous:i,next:u}=e;return!i||!u?!0:r===""?!1:i.kind===Pe&&u.kind===ae||u.kind===Pe&&i.kind===ae?!0:!(i.isCJ||u.isCJ)}function qt(e,r,t,n){if(t==="preserve"&&r===` +`)return M;let i=r===" "||r===` +`&&Mf(e,n);return Uf(e,r,t,n)?i?qr:Nr:i?" ":""}function Wi(e){let{previous:r,next:t}=e;return r?.type==="sentence"&&U(0,r.children,-1)?.type==="word"&&!U(0,r.children,-1).hasTrailingPunctuation||t?.type==="sentence"&&t.children[0]?.type==="word"&&!t.children[0].hasLeadingPunctuation}function Yf(e,r,t){let{node:n}=e;if(zf(e)){let i=[""],u=Mr(r.originalText.slice(n.position.start.offset,n.position.end.offset));for(let a of u){if(a.type==="word"){i.push([i.pop(),a.value]);continue}let o=qt(e,a.value,r.proseWrap,!0);if(W(o)===V){i.push([i.pop(),o]);continue}i.push(o,"")}return Ye(i)}switch(n.type){case"root":return n.children.length===0?"":[Gf(e,r,t),M];case"paragraph":return Ri(e,r,t);case"sentence":return Yi(e,t);case"word":return Li(e);case"whitespace":{let{next:i}=e,u=i&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/u.test(i.value)?"never":r.proseWrap;return qt(e,n.value,u)}case"emphasis":{let i;if(Yr(n.children[0]))i=r.originalText[n.position.start.offset];else{let u=Wi(e),a=e.callParent(({node:o})=>o.type==="strong"&&Wi(e));i=u||a||e.hasAncestor(o=>o.type==="emphasis")?"*":"_"}return[i,z(e,r,t),i]}case"strong":return["**",z(e,r,t),"**"];case"delete":return["~~",z(e,r,t),"~~"];case"inlineCode":{let i=r.proseWrap==="preserve"?n.value:R(0,n.value,` +`," "),u=oi(i,"`"),a="`".repeat(u),o=i.startsWith("`")||i.endsWith("`")||/^[\n ]/u.test(i)&&/[\n ]$/u.test(i)&&/[^\n ]/u.test(i)?" ":"";return[a,o,i,o,a]}case"wikiLink":{let i="";return r.proseWrap==="preserve"?i=n.value:i=R(0,n.value,/[\t\n]+/gu," "),["[[",i,"]]"]}case"link":switch(r.originalText[n.position.start.offset]){case"<":{let i="mailto:";return["<",n.url.startsWith(i)&&r.originalText.slice(n.position.start.offset+1,n.position.start.offset+1+i.length)!==i?n.url.slice(i.length):n.url,">"]}case"[":return["[",z(e,r,t),"](",Nt(n.url,")"),zr(n.title,r),")"];default:return r.originalText.slice(n.position.start.offset,n.position.end.offset)}case"image":return["![",n.alt||"","](",Nt(n.url,")"),zr(n.title,r),")"];case"blockquote":return["> ",Fe("> ",z(e,r,t))];case"heading":return["#".repeat(n.depth)+" ",z(e,r,t)];case"code":{if(n.isIndented){let a=" ".repeat(4);return Fe(a,[a,xe(n.value,M)])}let i=r.__inJsTemplate?"~":"`",u=i.repeat(Math.max(3,Ir(n.value,i)+1));return[u,n.lang||"",n.meta?" "+n.meta:"",M,xe(Ur(n,r.originalText),M),M,u]}case"html":{let{parent:i,isLast:u}=e,a=i.type==="root"&&u?n.value.trimEnd():n.value,o=/^$/su.test(a);return xe(a,o?M:ur(nr))}case"list":return Ii(e,r,t);case"thematicBreak":{let{ancestors:i}=e,u=i.findIndex(o=>o.type==="list");return u===-1?"---":Gr(i[u],i[u+1])%2===0?"***":"---"}case"linkReference":return["[",z(e,r,t),"]",n.referenceType==="full"?Pt(n):n.referenceType==="collapsed"?"[]":""];case"imageReference":switch(n.referenceType){case"full":return["![",n.alt||"","]",Pt(n)];default:return["![",n.alt,"]",n.referenceType==="collapsed"?"[]":""]}case"definition":{let i=r.proseWrap==="always"?qr:" ";return Ge([Pt(n),":",ir([i,Nt(n.url),n.title===null?"":[i,zr(n.title,r,!1)]])])}case"footnote":return["[^",z(e,r,t),"]"];case"footnoteReference":return ji(n);case"footnoteDefinition":{let i=n.children.length===1&&n.children[0].type==="paragraph"&&(r.proseWrap==="never"||r.proseWrap==="preserve"&&n.children[0].position.start.line===n.children[0].position.end.line);return[ji(n),": ",i?z(e,r,t):Ge([Fe(" ".repeat(4),z(e,r,t,{processor:({isFirst:u})=>u?Ge([Nr,t()]):t()}))])]}case"table":return Si(e,r,t);case"tableCell":return z(e,r,t);case"break":return/\s/u.test(r.originalText[n.position.start.offset])?[" ",ur(nr)]:["\\",M];case"liquidNode":return xe(n.value,M);case"import":case"export":case"jsx":return n.value.trimEnd();case"esComment":return["{/* ",n.value," */}"];case"math":return["$$",M,n.value?[xe(n.value,M),M]:"","$$"];case"inlineMath":return r.originalText.slice(qe(n),Ne(n));case"frontMatter":case"tableRow":case"listItem":case"text":default:throw new fi(n,"Markdown")}}function Gf(e,r,t){let n=[],i=null,{children:u}=e.node;for(let[a,o]of u.entries())switch(lr(o)){case"start":i===null&&(i={index:a,offset:o.position.end.offset});break;case"end":i!==null&&(n.push({start:i,end:{index:a,offset:o.position.start.offset}}),i=null);break;default:break}return z(e,r,t,{processor({index:a}){if(n.length>0){let o=n[0];if(a===o.start.index)return[Vi(u[o.start.index]),r.originalText.slice(o.start.offset,o.end.offset),Vi(u[o.end.index])];if(o.start.indext.type==="linkReference"||t.type==="imageReference");return r&&(r.type!=="linkReference"||r.referenceType!=="full")}var Wf=(e,r)=>{for(let t of r)e=R(0,e,t,encodeURIComponent(t));return e};function Nt(e,r=[]){let t=[" ",...Array.isArray(r)?r:[r]];return new RegExp(t.map(n=>fe(n)).join("|"),"u").test(e)?`<${Wf(e,"<>")}>`:e}function zr(e,r,t=!0){if(!e)return"";if(t)return" "+zr(e,r,!1);if(e=R(0,e,/\\(?=["')])/gu,""),e.includes('"')&&e.includes("'")&&!e.includes(")"))return`(${e})`;let n=li(e,r.singleQuote);return e=R(0,e,"\\","\\\\"),e=R(0,e,n,`\\${n}`),`${n}${e}${n}`}function Vf(e){return e.index>0&&lr(e.previous)==="next"}function Pt(e){return`[${(0,$i.default)(e.label)}]`}function ji(e){return`[^${e.label}]`}var jf={features:{experimental_frontMatterSupport:{massageAstNode:!0,embed:!0,print:!0}},preprocess:Ui,print:Yf,embed:Ti,massageAstNode:yi,hasPrettierIgnore:Vf,insertPragma:Ai,getVisitorKeys:Oi},Hi=jf;var Ki=[{name:"Markdown",type:"prose",aceMode:"markdown",extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr","README"],tmScope:"text.md",aliases:["md","pandoc"],codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,parsers:["markdown"],vscodeLanguageIds:["markdown"],linguistLanguageId:222},{name:"MDX",type:"prose",aceMode:"markdown",extensions:[".mdx"],filenames:[],tmScope:"text.md",aliases:["md","pandoc"],codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,parsers:["mdx"],vscodeLanguageIds:["mdx"],linguistLanguageId:222}];var It={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var $f={proseWrap:It.proseWrap,singleQuote:It.singleQuote},Xi=$f;var Wn={};Vn(Wn,{markdown:()=>cF,mdx:()=>lF,remark:()=>cF});var Dl=Re(Qi(),1),pl=Re(Du(),1),hl=Re(oc(),1),dl=Re(el(),1);var rF=/^import\s/u,tF=/^export\s/u,rl="[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)*|",tl=/|/u,nF=/^\{\s*\/\*(.*)\*\/\s*\}/u;var iF=e=>rF.test(e),nl=e=>tF.test(e),il=e=>iF(e)||nl(e),zn=(e,r)=>{let t=r.indexOf(` + +`),n=t===-1?r:r.slice(0,t);if(il(n))return e(n)({type:nl(n)?"export":"import",value:n})};zn.notInBlock=!0;zn.locator=e=>il(e)?-1:1;var ul=(e,r)=>{let t=nF.exec(r);if(t)return e(t[0])({type:"esComment",value:t[1].trim()})};ul.locator=(e,r)=>e.indexOf("{",r);var al=function(){let{Parser:e}=this,{blockTokenizers:r,blockMethods:t,inlineTokenizers:n,inlineMethods:i}=e.prototype;r.esSyntax=zn,n.esComment=ul,t.splice(t.indexOf("paragraph"),0,"esSyntax"),i.splice(i.indexOf("text"),0,"esComment")};var uF=function(){let e=this.Parser.prototype;e.blockMethods=["frontMatter",...e.blockMethods],e.blockTokenizers.frontMatter=r;function r(t,n){let{frontMatter:i}=_e(n);if(i)return t(i.raw)({...i,type:"frontMatter"})}r.onlyAtStart=!0},ol=uF;function aF(){return e=>ye(e,(r,t,[n])=>r.type!=="html"||tl.test(r.value)||Rr.has(n.type)?r:{...r,type:"jsx"})}var sl=aF;var oF=function(){let e=this.Parser.prototype,r=e.inlineMethods;r.splice(r.indexOf("text"),0,"liquid"),e.inlineTokenizers.liquid=t;function t(n,i){let u=i.match(/^(\{%.*?%\}|\{\{.*?\}\})/su);if(u)return n(u[0])({type:"liquidNode",value:u[0]})}t.locator=function(n,i){return n.indexOf("{",i)}},cl=oF;var sF=function(){let e="wikiLink",r=/^\[\[(?.+?)\]\]/su,t=this.Parser.prototype,n=t.inlineMethods;n.splice(n.indexOf("link"),0,e),t.inlineTokenizers.wikiLink=i;function i(u,a){let o=r.exec(a);if(o){let s=o.groups.linkContents.trim();return u(o[0])({type:e,value:s})}}i.locator=function(u,a){return u.indexOf("[",a)}},ll=sF;function ml({isMDX:e}){return r=>{let t=(0,dl.default)().use(hl.default,{commonmark:!0,...e&&{blocks:[rl]}}).use(Dl.default).use(ol).use(pl.default).use(e?al:fl).use(cl).use(e?sl:fl).use(ll);return t.run(t.parse(r))}}function fl(){}var Fl={astFormat:"mdast",hasPragma:Lr,hasIgnorePragma:vi,locStart:qe,locEnd:Ne},cF={...Fl,parse:ml({isMDX:!1})},lF={...Fl,parse:ml({isMDX:!0})};var fF={mdast:Hi};export{gl as default,Ki as languages,Xi as options,Wn as parsers,fF as printers}; diff --git a/node_modules/prettier/plugins/meriyah.d.ts b/node_modules/prettier/plugins/meriyah.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..6541de52a0cb4e3ed56f8d75d63e7b55ea8542c4 --- /dev/null +++ b/node_modules/prettier/plugins/meriyah.d.ts @@ -0,0 +1,5 @@ +import { Parser } from "../index.js"; + +export declare const parsers: { + meriyah: Parser; +}; diff --git a/node_modules/prettier/plugins/meriyah.js b/node_modules/prettier/plugins/meriyah.js new file mode 100644 index 0000000000000000000000000000000000000000..2ffa2b89a4fe841481ebfb8a392c49b24003d745 --- /dev/null +++ b/node_modules/prettier/plugins/meriyah.js @@ -0,0 +1,5 @@ +(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.meriyah=e()}})(function(){"use strict";var Ue=Object.defineProperty;var q2=Object.getOwnPropertyDescriptor;var P2=Object.getOwnPropertyNames;var O2=Object.prototype.hasOwnProperty;var mt=(e,t)=>{for(var n in t)Ue(e,n,{get:t[n],enumerable:!0})},V2=(e,t,n,u)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of P2(t))!O2.call(e,o)&&o!==n&&Ue(e,o,{get:()=>t[o],enumerable:!(u=q2(t,o))||u.enumerable});return e};var R2=e=>V2(Ue({},"__esModule",{value:!0}),e);var Gu={};mt(Gu,{parsers:()=>gt});var gt={};mt(gt,{meriyah:()=>Zu});var Q=(e,t)=>(n,u,...o)=>n|1&&u==null?void 0:(t.call(u)??u[e]).apply(u,o);var M2=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},v2=Q("replaceAll",function(){if(typeof this=="string")return M2}),p=v2;var U2=55296,J2=56319,_2=56320,X2=String.prototype.isWellFormed??function(){let{length:e}=this;for(let t=0;tJ2||++t>=e||(this.charCodeAt(t)&64512)!==_2))return!1}return!0},j2=Q("isWellFormed",function(){if(typeof this=="string")return X2}),rt=j2;var Ct=((e,t)=>{let n=new Uint32Array(69632),u=0,o=0;for(;u<2597;){let i=e[u++];if(i<0)o-=i;else{let l=e[u++];i&2&&(l=t[l]),i&1?n.fill(l,o,o+=e[u++]):n[o++]=l}}return n})([-1,2,26,2,27,2,5,-1,0,77595648,3,44,2,3,0,14,2,61,2,62,3,0,3,0,3168796671,0,4294956992,2,1,2,0,2,41,3,0,4,0,4294966523,3,0,4,2,16,2,63,2,0,0,4294836735,0,3221225471,0,4294901942,2,64,0,134152192,3,0,2,0,4294951935,3,0,2,0,2683305983,0,2684354047,2,17,2,0,0,4294961151,3,0,2,2,19,2,0,0,608174079,2,0,2,58,2,7,2,6,0,4286643967,3,0,2,2,1,3,0,3,0,4294901711,2,40,0,4089839103,0,2961209759,0,1342439375,0,4294543342,0,3547201023,0,1577204103,0,4194240,0,4294688750,2,2,0,80831,0,4261478351,0,4294549486,2,2,0,2967484831,0,196559,0,3594373100,0,3288319768,0,8469959,0,65472,2,3,0,4093640191,0,929054175,0,65487,0,4294828015,0,4092591615,0,1885355487,0,982991,2,3,2,0,0,2163244511,0,4227923919,0,4236247022,2,69,0,4284449919,0,851904,2,4,2,12,0,67076095,-1,2,70,0,1073741743,0,4093607775,-1,0,50331649,0,3265266687,2,33,0,4294844415,0,4278190047,2,20,2,137,-1,3,0,2,2,23,2,0,2,9,2,0,2,15,2,22,3,0,10,2,72,2,0,2,73,2,74,2,75,2,0,2,76,2,0,2,11,0,261632,2,25,3,0,2,2,13,2,4,3,0,18,2,77,2,5,3,0,2,2,78,0,2151677951,2,29,2,10,0,909311,3,0,2,0,814743551,2,48,0,67090432,3,0,2,2,42,2,0,2,6,2,0,2,30,2,8,0,268374015,2,108,2,51,2,0,2,79,0,134153215,-1,2,7,2,0,2,8,0,2684354559,0,67044351,0,3221160064,2,9,2,18,3,0,2,2,53,0,1046528,3,0,3,2,10,2,0,2,127,0,4294960127,2,9,2,6,2,11,0,4294377472,2,12,3,0,16,2,13,2,0,2,80,2,9,2,0,2,81,2,82,2,83,0,12288,2,54,0,1048577,2,84,2,14,-1,2,14,0,131042,2,85,2,86,2,87,2,0,2,34,-83,3,0,7,0,1046559,2,0,2,15,2,0,0,2147516671,2,21,3,88,2,2,0,-16,2,89,0,524222462,2,4,2,0,0,4269801471,2,4,3,0,2,2,28,2,16,3,0,2,2,49,2,0,-1,2,17,-16,3,0,206,-2,3,0,692,2,71,-1,2,17,2,9,3,0,8,2,91,2,18,2,0,0,3220242431,3,0,3,2,19,2,92,2,93,3,0,2,2,94,2,0,2,20,2,95,2,0,0,4351,2,0,2,10,3,0,2,0,67043391,0,3909091327,2,0,2,24,2,10,2,20,3,0,2,0,67076097,2,8,2,0,2,21,0,67059711,0,4236247039,3,0,2,0,939524103,0,8191999,2,99,2,100,2,22,2,23,3,0,3,0,67057663,3,0,349,2,101,2,102,2,7,-264,3,0,11,2,24,3,0,2,2,32,-1,0,3774349439,2,103,2,104,3,0,2,2,19,2,105,3,0,10,2,9,2,17,2,0,2,46,2,0,2,31,2,106,2,25,0,1638399,0,57344,2,107,3,0,3,2,20,2,26,2,27,2,5,2,28,2,0,2,8,2,109,-1,2,110,2,111,2,112,-1,3,0,3,2,12,-2,2,0,2,29,-3,0,536870912,-4,2,20,2,0,2,36,0,1,2,0,2,65,2,6,2,12,2,9,2,0,2,113,-1,3,0,4,2,9,2,23,2,114,2,7,2,0,2,115,2,0,2,116,2,117,2,118,2,0,2,10,3,0,9,2,21,2,30,2,31,2,119,2,120,-2,2,121,2,122,2,30,2,21,2,8,-2,2,123,2,30,3,32,2,-1,2,0,2,39,-2,0,4277137519,0,2269118463,-1,3,20,2,-1,2,33,2,38,2,0,3,30,2,2,35,2,19,-3,3,0,2,2,34,-1,2,0,2,35,2,0,2,35,2,0,2,47,2,0,0,4294950463,2,37,-7,2,0,0,203775,2,125,0,4227858432,2,20,2,43,2,36,2,17,2,37,2,17,2,124,2,21,3,0,2,2,38,0,2151677888,2,0,2,12,0,4294901764,2,145,2,0,2,56,2,55,0,5242879,3,0,2,0,402644511,-1,2,128,2,39,0,3,-1,2,129,2,130,2,0,0,67045375,2,40,0,4226678271,0,3766565279,0,2039759,2,132,2,41,0,1046437,0,6,3,0,2,0,3288270847,0,3,3,0,2,0,67043519,-5,2,0,0,4282384383,0,1056964609,-1,3,0,2,0,67043345,-1,2,0,2,42,2,23,2,50,2,11,2,59,2,38,-5,2,0,2,12,-3,3,0,2,0,2147484671,2,133,0,4190109695,2,52,-2,2,134,0,4244635647,0,27,2,0,2,8,2,43,2,0,2,66,2,17,2,0,2,42,-3,2,31,-2,2,0,2,45,2,57,2,44,2,45,2,135,2,46,0,8388351,-2,2,136,0,3028287487,2,47,2,138,0,33259519,2,23,2,7,2,48,-7,2,21,0,4294836223,0,3355443199,0,134152199,-2,2,67,-2,3,0,28,2,32,-3,3,0,3,2,49,3,0,6,2,50,-81,2,17,3,0,2,2,36,3,0,33,2,25,2,30,3,0,124,2,12,3,0,18,2,38,-213,2,0,2,32,-54,3,0,17,2,42,2,8,2,23,2,0,2,8,2,23,2,51,2,0,2,21,2,52,2,139,2,25,-13,2,0,2,53,-6,3,0,2,-1,2,140,2,10,-1,3,0,2,0,4294936575,2,0,0,4294934783,-2,0,8323099,3,0,230,2,30,2,54,2,8,-3,3,0,3,2,35,-271,2,141,3,0,9,2,142,2,143,2,55,3,0,11,2,7,-72,3,0,3,2,144,0,1677656575,-130,2,26,-16,2,0,2,24,2,38,-16,0,4161266656,0,4071,0,15360,-4,0,28,-13,3,0,2,2,56,2,0,2,146,2,147,2,60,2,0,2,148,2,149,2,150,3,0,10,2,151,2,152,2,22,3,56,2,3,153,2,3,57,2,0,4294954999,2,0,-16,2,0,2,90,2,0,0,2105343,0,4160749584,0,65534,-34,2,8,2,155,-6,0,4194303871,0,4294903771,2,0,2,58,2,98,-3,2,0,0,1073684479,0,17407,-9,2,17,2,49,2,0,2,32,-14,2,17,2,32,-6,2,17,2,12,-6,2,8,0,3225419775,-7,2,156,3,0,6,0,8323103,-1,3,0,2,2,59,-37,2,60,2,157,2,158,2,159,2,160,2,161,-105,2,26,-32,3,0,1335,-1,3,0,136,2,9,3,0,180,2,24,3,0,233,2,162,3,0,18,2,9,-77,3,0,16,2,9,-47,3,0,154,2,6,3,0,264,2,32,-22116,3,0,7,2,25,-6130,3,5,2,-1,0,69207040,3,44,2,3,0,14,2,61,2,62,-3,0,3168731136,0,4294956864,2,1,2,0,2,41,3,0,4,0,4294966275,3,0,4,2,16,2,63,2,0,2,34,-1,2,17,2,64,-1,2,0,0,2047,0,4294885376,3,0,2,0,3145727,0,2617294944,0,4294770688,2,25,2,65,3,0,2,0,131135,2,96,0,70256639,0,71303167,0,272,2,42,2,6,0,65279,2,0,2,48,-1,2,97,2,66,0,4278255616,0,4294836227,0,4294549473,0,600178175,0,2952806400,0,268632067,0,4294543328,0,57540095,0,1577058304,0,1835008,0,4294688736,2,68,2,67,0,33554435,2,131,2,68,0,2952790016,0,131075,0,3594373096,0,67094296,2,67,-1,0,4294828e3,0,603979263,0,922746880,0,3,0,4294828001,0,602930687,0,1879048192,0,393219,0,4294828016,0,671088639,0,2154840064,0,4227858435,0,4236247008,2,69,2,38,-1,2,4,0,917503,2,38,-1,2,70,0,537788335,0,4026531935,-1,0,1,-1,2,33,2,71,0,7936,-3,2,0,0,2147485695,0,1010761728,0,4292984930,0,16387,2,0,2,15,2,22,3,0,10,2,72,2,0,2,73,2,74,2,75,2,0,2,76,2,0,2,12,-1,2,25,3,0,2,2,13,2,4,3,0,18,2,77,2,5,3,0,2,2,78,0,2147745791,3,19,2,0,122879,2,0,2,10,0,276824064,-2,3,0,2,2,42,2,0,0,4294903295,2,0,2,30,2,8,-1,2,17,2,51,2,0,2,79,2,48,-1,2,21,2,0,2,29,-2,0,128,-2,2,28,2,10,0,8160,-1,2,126,0,4227907585,2,0,2,37,2,0,2,50,0,4227915776,2,9,2,6,2,11,-1,0,74440192,3,0,6,-2,3,0,8,2,13,2,0,2,80,2,9,2,0,2,81,2,82,2,83,-3,2,84,2,14,-3,2,85,2,86,2,87,2,0,2,34,-83,3,0,7,0,817183,2,0,2,15,2,0,0,33023,2,21,3,88,2,-17,2,89,0,524157950,2,4,2,0,2,90,2,4,2,0,2,22,2,28,2,16,3,0,2,2,49,2,0,-1,2,17,-16,3,0,206,-2,3,0,692,2,71,-1,2,17,2,9,3,0,8,2,91,0,3072,2,0,0,2147516415,2,9,3,0,2,2,25,2,92,2,93,3,0,2,2,94,2,0,2,20,2,95,0,4294965179,0,7,2,0,2,10,2,93,2,10,-1,0,1761345536,2,96,0,4294901823,2,38,2,20,2,97,2,35,2,98,0,2080440287,2,0,2,34,2,154,0,3296722943,2,0,0,1046675455,0,939524101,0,1837055,2,99,2,100,2,22,2,23,3,0,3,0,7,3,0,349,2,101,2,102,2,7,-264,3,0,11,2,24,3,0,2,2,32,-1,0,2700607615,2,103,2,104,3,0,2,2,19,2,105,3,0,10,2,9,2,17,2,0,2,46,2,0,2,31,2,106,-3,2,107,3,0,3,2,20,-1,3,5,2,2,108,2,0,2,8,2,109,-1,2,110,2,111,2,112,-1,3,0,3,2,12,-2,2,0,2,29,-8,2,20,2,0,2,36,-1,2,0,2,65,2,6,2,30,2,9,2,0,2,113,-1,3,0,4,2,9,2,17,2,114,2,7,2,0,2,115,2,0,2,116,2,117,2,118,2,0,2,10,3,0,9,2,21,2,30,2,31,2,119,2,120,-2,2,121,2,122,2,30,2,21,2,8,-2,2,123,2,30,3,32,2,-1,2,0,2,39,-2,0,4277075969,2,30,-1,3,20,2,-1,2,33,2,124,2,0,3,30,2,2,35,2,19,-3,3,0,2,2,34,-1,2,0,2,35,2,0,2,35,2,0,2,50,2,96,0,4294934591,2,37,-7,2,0,0,197631,2,125,-1,2,20,2,43,2,37,2,17,0,3,2,17,2,124,2,21,2,126,2,127,-1,0,2490368,2,126,2,25,2,17,2,34,2,126,2,38,0,4294901904,0,4718591,2,126,2,35,0,335544350,-1,2,128,0,2147487743,0,1,-1,2,129,2,130,2,8,-1,2,131,2,68,0,3758161920,0,3,2,132,0,12582911,0,655360,-1,2,0,2,29,0,2147485568,0,3,2,0,2,25,0,176,-5,2,0,2,49,0,251658240,-1,2,0,2,25,0,16,-1,2,0,0,16779263,-2,2,12,-1,2,38,-5,2,0,2,18,-3,3,0,2,2,54,2,133,0,2147549183,0,2,-2,2,134,2,36,0,10,0,4294965249,0,67633151,0,4026597376,2,0,0,536871935,2,17,2,0,2,42,-6,2,0,0,1,2,57,2,49,0,1,2,135,2,25,-3,2,136,2,36,2,137,2,138,0,16778239,2,17,2,7,-8,2,35,0,4294836212,2,10,-3,2,67,-2,3,0,28,2,32,-3,3,0,3,2,49,3,0,6,2,50,-81,2,17,3,0,2,2,36,3,0,33,2,25,0,126,3,0,124,2,12,3,0,18,2,38,-213,2,9,-55,3,0,17,2,42,2,8,2,17,2,0,2,8,2,17,2,58,2,0,2,25,2,50,2,139,2,25,-13,2,0,2,71,-6,3,0,2,-1,2,140,2,10,-1,3,0,2,0,67583,-1,2,105,-2,0,8126475,3,0,230,2,30,2,54,2,8,-3,3,0,3,2,35,-271,2,141,3,0,9,2,142,2,143,2,55,3,0,11,2,7,-72,3,0,3,2,144,2,145,-187,3,0,2,2,56,2,0,2,146,2,147,2,60,2,0,2,148,2,149,2,150,3,0,10,2,151,2,152,2,22,3,56,2,3,153,2,3,57,2,2,154,-57,2,8,2,155,-7,2,17,2,0,2,58,-4,2,0,0,1065361407,0,16384,-9,2,17,2,58,2,0,2,18,-14,2,17,2,18,-6,2,17,0,81919,-6,2,8,0,3223273399,-7,2,156,3,0,6,2,124,-1,3,0,2,0,2063,-37,2,60,2,157,2,158,2,159,2,160,2,161,-138,3,0,1335,-1,3,0,136,2,9,3,0,180,2,24,3,0,233,2,162,3,0,18,2,9,-77,3,0,16,2,9,-47,3,0,154,2,6,3,0,264,2,32,-28252],[4294967295,4294967291,4092460543,4294828031,4294967294,134217726,4294903807,268435455,2147483647,1073741823,1048575,3892314111,134217727,1061158911,536805376,4294910143,4294901759,4294901760,4095,262143,536870911,8388607,4160749567,4294902783,4294918143,65535,67043328,2281701374,4294967264,2097151,4194303,255,67108863,4294967039,511,524287,131071,63,127,3238002687,4294549487,4290772991,33554431,4294901888,4286578687,67043329,4294770687,67043583,1023,32767,15,2047999,67043343,67051519,2147483648,4294902e3,4292870143,4294966783,16383,67047423,4294967279,262083,20511,41943039,493567,4294959104,603979775,65536,602799615,805044223,4294965206,8191,1031749119,4294917631,2134769663,4286578493,4282253311,4294942719,33540095,4294905855,2868854591,1608515583,265232348,534519807,2147614720,1060109444,4093640016,17376,2139062143,224,4169138175,4294909951,4286578688,4294967292,4294965759,4294836224,4294966272,4294967280,32768,8289918,4294934399,4294901775,4294965375,1602223615,4294967259,4294443008,268369920,4292804608,4294967232,486341884,4294963199,3087007615,1073692671,4128527,4279238655,4294902015,4160684047,4290246655,469499899,4294967231,134086655,4294966591,2445279231,3670015,31,252,4294967288,16777215,4294705151,3221208447,4294902271,4294549472,4294921215,4285526655,4294966527,4294705152,4294966143,64,4294966719,3774873592,4194303999,1877934080,262151,2555904,536807423,67043839,3758096383,3959414372,3755993023,2080374783,4294835295,4294967103,4160749565,4294934527,4087,2016,2147446655,184024726,2862017156,1593309078,268434431,268434414,4294901761]),H2=e=>(Ct[(e>>>5)+0]>>>e&31&1)!==0,Et=e=>(Ct[(e>>>5)+34816]>>>e&31&1)!==0,S=[0,0,0,0,0,0,0,0,0,0,1032,0,0,2056,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8192,0,3,0,0,8192,0,0,0,256,0,33024,0,0,242,242,114,114,114,114,114,114,594,594,0,0,16384,0,0,0,0,67,67,67,67,67,67,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,0,1,0,0,4099,0,71,71,71,71,71,71,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,16384,0,0,0,0],z2=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0],wt=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0];function Se(e){return e<=127?z2[e]>0:Et(e)}function De(e){return e<=127?wt[e]>0:H2(e)||e===8204||e===8205}function m(e){return e.column++,e.currentChar=e.source.charCodeAt(++e.index)}function $e(e){let t=e.currentChar;if((t&64512)!==55296)return 0;let n=e.source.charCodeAt(e.index+1);return(n&64512)!==56320?0:65536+((t&1023)<<10)+(n&1023)}function We(e,t){e.currentChar=e.source.charCodeAt(++e.index),e.flags|=1,(t&4)===0&&(e.column=0,e.line++)}function te(e){e.flags|=1,e.currentChar=e.source.charCodeAt(++e.index),e.column=0,e.line++}function K2(e){return e===160||e===65279||e===133||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===8201||e===65519}function v(e){return e<65?e-48:e-65+10&15}function $2(e){switch(e){case 134283266:return"NumericLiteral";case 134283267:return"StringLiteral";case 86021:case 86022:return"BooleanLiteral";case 86023:return"NullLiteral";case 65540:return"RegularExpression";case 67174408:case 67174409:case 131:return"TemplateLiteral";default:return(e&143360)===143360?"Identifier":(e&4096)===4096?"Keyword":"Punctuator"}}var St=["SingleLine","MultiLine","HTMLOpen","HTMLClose","HashbangComment"];function W2(e){let{source:t}=e;e.currentChar===35&&t.charCodeAt(e.index+1)===33&&(m(e),m(e),Ye(e,t,0,4,e.tokenStart))}function ht(e,t,n,u,o,i){return u&2&&e.report(0),Ye(e,t,n,o,i)}function Ye(e,t,n,u,o){let{index:i}=e;for(e.tokenIndex=e.index,e.tokenLine=e.line,e.tokenColumn=e.column;e.index'",49:"The left-hand side of the arrow can only be destructed through assignment",50:"The binding declaration is not destructible",51:"Async arrow can not be followed by new expression",52:"Classes may not have a static property named 'prototype'",53:"Class constructor may not be a %0",54:"Duplicate constructor method in class",55:"Invalid increment/decrement operand",56:"Invalid use of `new` keyword on an increment/decrement expression",57:"`=>` is an invalid assignment target",58:"Rest element may not have a trailing comma",59:"Missing initializer in %0 declaration",60:"'for-%0' loop head declarations can not have an initializer",61:"Invalid left-hand side in for-%0 loop: Must have a single binding",62:"Invalid shorthand property initializer",63:"Property name __proto__ appears more than once in object literal",64:"Let is disallowed as a lexically bound name",65:"Invalid use of '%0' inside new expression",66:"Illegal 'use strict' directive in function with non-simple parameter list",67:'Identifier "let" disallowed as left-hand side expression in strict mode',68:"Illegal continue statement",69:"Illegal break statement",70:"Cannot have `let[...]` as a var name in strict mode",71:"Invalid destructuring assignment target",72:"Rest parameter may not have a default initializer",73:"The rest argument must the be last parameter",74:"Invalid rest argument",76:"In strict mode code, functions can only be declared at top level or inside a block",77:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement",78:"Without web compatibility enabled functions can not be declared at top level, inside a block, or as the body of an if statement",79:"Class declaration can't appear in single-statement context",80:"Invalid left-hand side in for-%0",81:"Invalid assignment in for-%0",82:"for await (... of ...) is only valid in async functions and async generators",83:"The first token after the template expression should be a continuation of the template",85:"`let` declaration not allowed here and `let` cannot be a regular var name in strict mode",84:"`let \n [` is a restricted production at the start of a statement",86:"Catch clause requires exactly one parameter, not more (and no trailing comma)",87:"Catch clause parameter does not support default values",88:"Missing catch or finally after try",89:"More than one default clause in switch statement",90:"Illegal newline after throw",91:"Strict mode code may not include a with statement",92:"Illegal return statement",93:"The left hand side of the for-header binding declaration is not destructible",94:"new.target only allowed within functions or static blocks",96:"'#' not followed by identifier",102:"Invalid keyword",101:"Can not use 'let' as a class name",100:"'A lexical declaration can't define a 'let' binding",99:"Can not use `let` as variable name in strict mode",97:"'%0' may not be used as an identifier in this context",98:"Await is only valid in async functions",103:"The %0 keyword can only be used with the module goal",104:"Unicode codepoint must not be greater than 0x10FFFF",105:"%0 source must be string",106:"Only a identifier or string can be used to indicate alias",107:"Only '*' or '{...}' can be imported after default",108:"Trailing decorator may be followed by method",109:"Decorators can't be used with a constructor",110:"Can not use `await` as identifier in module or async func",111:"Can not use `await` as identifier in module",112:"HTML comments are only allowed with web compatibility (Annex B)",113:"The identifier 'let' must not be in expression position in strict mode",114:"Cannot assign to `eval` and `arguments` in strict mode",115:"The left-hand side of a for-of loop may not start with 'let'",116:"Block body arrows can not be immediately invoked without a group",117:"Block body arrows can not be immediately accessed without a group",118:"Unexpected strict mode reserved word",119:"Unexpected eval or arguments in strict mode",120:"Decorators must not be followed by a semicolon",121:"Calling delete on expression not allowed in strict mode",122:"Pattern can not have a tail",124:"Can not have a `yield` expression on the left side of a ternary",125:"An arrow function can not have a postfix update operator",126:"Invalid object literal key character after generator star",127:"Private fields can not be deleted",129:"Classes may not have a field called constructor",128:"Classes may not have a private element named constructor",130:"A class field initializer or static block may not contain arguments",131:"Generators can only be declared at the top level or inside a block",132:"Async methods are a restricted production and cannot have a newline following it",133:"Unexpected character after object literal property name",135:"Invalid key token",136:"Label '%0' has already been declared",137:"continue statement must be nested within an iteration statement",138:"Undefined label '%0'",139:"Trailing comma is disallowed inside import(...) arguments",140:"Invalid binding in JSON import",141:"import() requires exactly one argument",142:"Cannot use new with import(...)",143:"... is not allowed in import()",144:"Expected '=>'",145:"Duplicate binding '%0'",146:"Duplicate private identifier #%0",147:"Cannot export a duplicate name '%0'",150:"Duplicate %0 for-binding",148:"Exported binding '%0' needs to refer to a top-level declared variable",149:"Unexpected private field",153:"Numeric separators are not allowed at the end of numeric literals",152:"Only one underscore is allowed as numeric separator",154:"JSX value should be either an expression or a quoted JSX text",155:"Expected corresponding JSX closing tag for %0",156:"Adjacent JSX elements must be wrapped in an enclosing tag",157:"JSX attributes must only be assigned a non-empty 'expression'",158:"'%0' has already been declared",159:"'%0' shadowed a catch clause binding",160:"Dot property must be an identifier",161:"Encountered invalid input after spread/rest argument",162:"Catch without try",163:"Finally without try",164:"Expected corresponding closing tag for JSX fragment",165:"Coalescing and logical operators used together in the same expression must be disambiguated with parentheses",166:"Invalid tagged template on optional chain",167:"Invalid optional chain from super property",168:"Invalid optional chain from new expression",169:'Cannot use "import.meta" outside a module',170:"Leading decorators must be attached to a class declaration",171:"An export name cannot include a lone surrogate",172:"A string literal cannot be used as an exported binding without `from`",173:"Private fields can't be accessed on super",174:"The only valid meta property for import is 'import.meta'",175:"'import.meta' must not contain escaped characters",176:'cannot use "await" as identifier inside an async function',177:'cannot use "await" in static blocks'},q=class extends SyntaxError{start;end;range;loc;description;constructor(t,n,u,...o){let i=Q2[u].replace(/%(\d+)/g,(f,c)=>o[c]),l="["+t.line+":"+t.column+"-"+n.line+":"+n.column+"]: "+i;super(l),this.start=t.index,this.end=n.index,this.range=[t.index,n.index],this.loc={start:{line:t.line,column:t.column},end:{line:n.line,column:n.column}},this.description=i}};function Bt(e,t){return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0}var B=["end of source","identifier","number","string","regular expression","false","true","null","template continuation","template tail","=>","(","{",".","...","}",")",";",",","[","]",":","?","'",'"',"++","--","=","<<=",">>=",">>>=","**=","+=","-=","*=","/=","%=","^=","|=","&=","||=","&&=","??=","typeof","delete","void","!","~","+","-","in","instanceof","*","%","/","**","&&","||","===","!==","==","!=","<=",">=","<",">","<<",">>",">>>","&","|","^","var","let","const","break","case","catch","class","continue","debugger","default","do","else","export","extends","finally","for","function","if","import","new","return","super","switch","this","throw","try","while","with","implements","interface","package","private","protected","public","static","yield","as","async","await","constructor","get","set","accessor","from","of","enum","eval","arguments","escaped keyword","escaped future reserved keyword","reserved if strict","#","BigIntLiteral","??","?.","WhiteSpace","Illegal","LineTerminator","PrivateField","Template","@","target","meta","LineFeed","Escaped","JSXText"],Ft={this:86111,function:86104,if:20569,return:20572,var:86088,else:20563,for:20567,new:86107,in:8673330,typeof:16863275,while:20578,case:20556,break:20555,try:20577,catch:20557,delete:16863276,throw:86112,switch:86110,continue:20559,default:20561,instanceof:8411187,do:20562,void:16863277,finally:20566,async:209005,await:209006,class:86094,const:86090,constructor:12399,debugger:20560,export:20564,extends:20565,false:86021,from:209011,get:209008,implements:36964,import:86106,interface:36965,let:241737,null:86023,of:471156,package:36966,private:36967,protected:36968,public:36969,set:209009,static:36970,super:86109,true:86022,with:20579,yield:241771,enum:86133,eval:537079926,as:77932,arguments:537079927,target:209029,meta:209030,accessor:12402};function kt(e,t,n){for(;wt[m(e)];);return e.tokenValue=e.source.slice(e.tokenIndex,e.index),e.currentChar!==92&&e.currentChar<=126?Bt(Ft,e.tokenValue)??208897:Qe(e,t,0,n)}function Z2(e,t){let n=Nt(e);return Se(n)||e.report(5),e.tokenValue=String.fromCodePoint(n),Qe(e,t,1,S[n]&4)}function Qe(e,t,n,u){let o=e.index;for(;e.index0)De(l)||e.report(20,String.fromCodePoint(l)),e.currentChar=l,e.index++,e.column++;else if(!De(e.currentChar))break;m(e)}e.index<=e.end&&(e.tokenValue+=e.source.slice(o,e.index));let{length:i}=e.tokenValue;if(u&&i>=2&&i<=11){let l=Bt(Ft,e.tokenValue);return l===void 0?208897|(n?-2147483648:0):n?l===209006?(t&2050)===0?l|-2147483648:-2147483528:t&1?l===36970||(l&36864)===36864?-2147483527:(l&20480)===20480?t&262144&&(t&8)===0?l|-2147483648:-2147483528:-2147274630:t&262144&&(t&8)===0&&(l&20480)===20480?l|-2147483648:l===241771?t&262144?-2147274630:t&1024?-2147483528:l|-2147483648:l===209005?-2147274630:(l&36864)===36864?l|12288|-2147483648:-2147483528:l}return 208897|(n?-2147483648:0)}function G2(e){let t=m(e);if(t===92)return 130;let n=$e(e);return n&&(t=n),Se(t)||e.report(96),130}function Nt(e){return e.source.charCodeAt(e.index+1)!==117&&e.report(5),e.currentChar=e.source.charCodeAt(e.index+=2),e.column+=2,x2(e)}function x2(e){let t=0,n=e.currentChar;if(n===123){let l=e.index-2;for(;S[m(e)]&64;)if(t=t<<4|v(e.currentChar),t>1114111)throw new q({index:l,line:e.line,column:e.column},e.currentLocation,104);if(e.currentChar!==125)throw new q({index:l,line:e.line,column:e.column},e.currentLocation,7);return m(e),t}(S[n]&64)===0&&e.report(7);let u=e.source.charCodeAt(e.index+1);(S[u]&64)===0&&e.report(7);let o=e.source.charCodeAt(e.index+2);(S[o]&64)===0&&e.report(7);let i=e.source.charCodeAt(e.index+3);return(S[i]&64)===0&&e.report(7),t=v(n)<<12|v(u)<<8|v(o)<<4|v(i),e.currentChar=e.source.charCodeAt(e.index+=4),e.column+=4,t}function yt(e,t,n){let u=e.currentChar,o=0,i=9,l=n&64?0:1,f=0,c=0;if(n&64)o="."+Te(e,u),u=e.currentChar,u===110&&e.report(12);else{if(u===48)if(u=m(e),(u|32)===120){for(n=136,u=m(e);S[u]&4160;){if(u===95){c||e.report(152),c=0,u=m(e);continue}c=1,o=o*16+v(u),f++,u=m(e)}(f===0||!c)&&e.report(f===0?21:153)}else if((u|32)===111){for(n=132,u=m(e);S[u]&4128;){if(u===95){c||e.report(152),c=0,u=m(e);continue}c=1,o=o*8+(u-48),f++,u=m(e)}(f===0||!c)&&e.report(f===0?0:153)}else if((u|32)===98){for(n=130,u=m(e);S[u]&4224;){if(u===95){c||e.report(152),c=0,u=m(e);continue}c=1,o=o*2+(u-48),f++,u=m(e)}(f===0||!c)&&e.report(f===0?0:153)}else if(S[u]&32)for(t&1&&e.report(1),n=1;S[u]&16;){if(S[u]&512){n=32,l=0;break}o=o*8+(u-48),u=m(e)}else S[u]&512?(t&1&&e.report(1),e.flags|=64,n=32):u===95&&e.report(0);if(n&48){if(l){for(;i>=0&&S[u]&4112;){if(u===95){if(u=m(e),u===95||n&32)throw new q(e.currentLocation,{index:e.index+1,line:e.line,column:e.column},152);c=1;continue}c=0,o=10*o+(u-48),u=m(e),--i}if(c)throw new q(e.currentLocation,{index:e.index+1,line:e.line,column:e.column},153);if(i>=0&&!Se(u)&&u!==46)return e.tokenValue=o,e.options.raw&&(e.tokenRaw=e.source.slice(e.tokenIndex,e.index)),134283266}o+=Te(e,u),u=e.currentChar,u===46&&(m(e)===95&&e.report(0),n=64,o+="."+Te(e,e.currentChar),u=e.currentChar)}}let g=e.index,d=0;if(u===110&&n&128)d=1,u=m(e);else if((u|32)===101){u=m(e),S[u]&256&&(u=m(e));let{index:a}=e;(S[u]&16)===0&&e.report(11),o+=e.source.substring(g,a)+Te(e,u),u=e.currentChar}return(e.index=e.source.length)return e.report(34)}let u=e.index-1,o=P.Empty,i=e.currentChar,{index:l}=e;for(;De(i);){switch(i){case 103:o&P.Global&&e.report(36,"g"),o|=P.Global;break;case 105:o&P.IgnoreCase&&e.report(36,"i"),o|=P.IgnoreCase;break;case 109:o&P.Multiline&&e.report(36,"m"),o|=P.Multiline;break;case 117:o&P.Unicode&&e.report(36,"u"),o&P.UnicodeSets&&e.report(36,"vu"),o|=P.Unicode;break;case 118:o&P.Unicode&&e.report(36,"uv"),o&P.UnicodeSets&&e.report(36,"v"),o|=P.UnicodeSets;break;case 121:o&P.Sticky&&e.report(36,"y"),o|=P.Sticky;break;case 115:o&P.DotAll&&e.report(36,"s"),o|=P.DotAll;break;case 100:o&P.Indices&&e.report(36,"d"),o|=P.Indices;break;default:e.report(35)}i=m(e)}let f=e.source.slice(l,e.index),c=e.source.slice(t,u);return e.tokenRegExp={pattern:c,flags:f},e.options.raw&&(e.tokenRaw=e.source.slice(e.tokenIndex,e.index)),e.tokenValue=en(e,c,f),65540}function en(e,t,n){try{return new RegExp(t,n)}catch{if(!e.options.validateRegex)return null;e.report(34)}}function tn(e,t,n){let{index:u}=e,o="",i=m(e),l=e.index;for(;(S[i]&8)===0;){if(i===n)return o+=e.source.slice(l,e.index),m(e),e.options.raw&&(e.tokenRaw=e.source.slice(u,e.index)),e.tokenValue=o,134283267;if((i&8)===8&&i===92){if(o+=e.source.slice(l,e.index),i=m(e),i<127||i===8232||i===8233){let f=Lt(e,t,i);f>=0?o+=String.fromCodePoint(f):It(e,f,0)}else o+=String.fromCodePoint(i);l=e.index+1}else(i===8232||i===8233)&&(e.column=-1,e.line++);e.index>=e.end&&e.report(16),i=m(e)}e.report(16)}function Lt(e,t,n,u=0){switch(n){case 98:return 8;case 102:return 12;case 114:return 13;case 110:return 10;case 116:return 9;case 118:return 11;case 13:if(e.index1114111)return-5;return e.currentChar<1||e.currentChar!==125?-4:i}else{if((S[o]&64)===0)return-4;let i=e.source.charCodeAt(e.index+1);if((S[i]&64)===0)return-4;let l=e.source.charCodeAt(e.index+2);if((S[l]&64)===0)return-4;let f=e.source.charCodeAt(e.index+3);return(S[f]&64)===0?-4:(e.index+=3,e.column+=3,e.currentChar=e.source.charCodeAt(e.index),v(o)<<12|v(i)<<8|v(l)<<4|v(f))}}case 56:case 57:if(u||!e.options.webcompat||t&1)return-3;e.flags|=4096;default:return n}}function It(e,t,n){switch(t){case-1:return;case-2:e.report(n?2:1);case-3:e.report(n?3:14);case-4:e.report(7);case-5:e.report(104)}}function qt(e,t){let{index:n}=e,u=67174409,o="",i=m(e);for(;i!==96;){if(i===36&&e.source.charCodeAt(e.index+1)===123){m(e),u=67174408;break}else if(i===92)if(i=m(e),i>126)o+=String.fromCodePoint(i);else{let{index:l,line:f,column:c}=e,g=Lt(e,t|1,i,1);if(g>=0)o+=String.fromCodePoint(g);else if(g!==-1&&t&64){e.index=l,e.line=f,e.column=c,o=null,i=nn(e,i),i<0&&(u=67174408);break}else It(e,g,1)}else e.index=e.end&&e.report(17),i=m(e)}return m(e),e.tokenValue=o,e.tokenRaw=e.source.slice(n+1,e.index-(u===67174409?1:2)),u}function nn(e,t){for(;t!==96;){switch(t){case 36:{let n=e.index+1;if(n=e.end&&e.report(17),t=m(e)}return t}function un(e,t){return e.index>=e.end&&e.report(0),e.index--,e.column--,qt(e,t)}var on=[128,128,128,128,128,128,128,128,128,127,135,127,127,129,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,127,16842798,134283267,130,208897,8391477,8390213,134283267,67174411,16,8391476,25233968,18,25233969,67108877,8457014,134283266,134283266,134283266,134283266,134283266,134283266,134283266,134283266,134283266,134283266,21,1074790417,8456256,1077936155,8390721,22,132,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,69271571,136,20,8389959,208897,131,4096,4096,4096,4096,4096,4096,4096,208897,4096,208897,208897,4096,208897,4096,208897,4096,208897,4096,4096,4096,208897,4096,4096,208897,4096,4096,2162700,8389702,1074790415,16842799,128];function r(e,t){e.flags=(e.flags|1)^1,e.startIndex=e.index,e.startColumn=e.column,e.startLine=e.line,e.setToken(Pt(e,t,0))}function Pt(e,t,n){let u=e.index===0,{source:o}=e;for(;e.index=e.end)return 8391476;let f=e.currentChar;return f===61?(m(e),4194338):f!==42?8391476:m(e)!==61?8391735:(m(e),4194335)}case 8389959:return m(e)!==61?8389959:(m(e),4194341);case 25233968:{m(e);let f=e.currentChar;return f===43?(m(e),33619993):f===61?(m(e),4194336):25233968}case 25233969:{m(e);let f=e.currentChar;if(f===45){if(m(e),(n&1||u)&&e.currentChar===62){e.options.webcompat||e.report(112),m(e),n=ht(e,o,n,t,3,e.tokenStart);continue}return 33619994}return f===61?(m(e),4194337):25233969}case 8457014:{if(m(e),e.index=48&&f<=57)return yt(e,t,80);if(f===46){let c=e.index+1;if(c=48&&f<=57)))return m(e),67108990}return 22}}}else{if((i^8232)<=1){n=n&-5|1,te(e);continue}let l=$e(e);if(l>0&&(i=l),Et(i))return e.tokenValue="",Qe(e,t,0,0);if(K2(i)){m(e);continue}e.report(20,String.fromCodePoint(i))}}return 1048576}function M(e,t){(e.flags&1)===0&&(e.getToken()&1048576)!==1048576&&e.report(30,B[e.getToken()&255]),C(e,t,1074790417)||e.options.onInsertedSemicolon?.(e.startIndex)}function Ot(e,t,n,u){return t-n<13&&u==="use strict"&&((e.getToken()&1048576)===1048576||e.flags&1)?1:0}function Ze(e,t,n){return e.getToken()!==n?0:(r(e,t),1)}function C(e,t,n){return e.getToken()!==n?!1:(r(e,t),!0)}function y(e,t,n){e.getToken()!==n&&e.report(25,B[n&255]),r(e,t)}function K(e,t){switch(t.type){case"ArrayExpression":{t.type="ArrayPattern";let{elements:n}=t;for(let u=0,o=n.length;u=e.end&&e.report(16),n=m(e);return n!==t&&e.report(16),e.tokenValue=e.source.slice(u,e.index),m(e),e.options.raw&&(e.tokenRaw=e.source.slice(e.tokenIndex,e.index)),134283267}function me(e){if(e.startIndex=e.tokenIndex=e.index,e.startColumn=e.tokenColumn=e.column,e.startLine=e.tokenLine=e.line,e.index>=e.end){e.setToken(1048576);return}if(e.currentChar===60){m(e),e.setToken(8456256);return}if(e.currentChar===123){m(e),e.setToken(2162700);return}let t=0;for(;e.index1&&i&32&&e.getToken()&262144&&e.report(61,B[e.getToken()&255]),f}function Tt(e,t,n,u,o,i){let{tokenStart:l}=e,f=e.getToken(),c=null,g=Gt(e,t,n,u,o,i);if(e.getToken()===1077936155){if(r(e,t|32),c=L(e,t,u,1,0,e.tokenStart),(i&32||(f&2097152)===0)&&(e.getToken()===471156||e.getToken()===8673330&&(f&2097152||(o&4)===0||t&1)))throw new q(l,e.currentLocation,60,e.getToken()===471156?"of":"in")}else(o&16||(f&2097152)>0)&&(e.getToken()&262144)!==262144&&e.report(59,o&16?"const":"destructuring");return e.finishNode({type:"VariableDeclarator",id:g,init:c},l)}function On(e,t,n,u,o){let i=e.tokenStart;r(e,t);let l=((t&2048)>0||(t&2)>0&&(t&8)>0)&&C(e,t,209006);y(e,t|32,67174411),n=n?.createChildScope(1);let f=null,c=null,g=0,d=null,a=e.getToken()===86088||e.getToken()===241737||e.getToken()===86090,h,{tokenStart:A}=e,b=e.getToken();if(a)b===241737?(d=N(e,t),e.getToken()&2240512?(e.getToken()===8673330?t&1&&e.report(67):d=e.finishNode({type:"VariableDeclaration",kind:"let",declarations:ue(e,t|131072,n,u,8,32)},A),e.assignable=1):t&1?e.report(67):(a=!1,e.assignable=1,d=F(e,t,u,d,0,0,A),e.getToken()===471156&&e.report(115))):(r(e,t),d=e.finishNode(b===86088?{type:"VariableDeclaration",kind:"var",declarations:ue(e,t|131072,n,u,4,32)}:{type:"VariableDeclaration",kind:"const",declarations:ue(e,t|131072,n,u,16,32)},A),e.assignable=1);else if(b===1074790417)l&&e.report(82);else if((b&2097152)===2097152){let T=e.tokenStart;d=b===2162700?j(e,t,void 0,u,1,0,0,2,32):X(e,t,void 0,u,1,0,0,2,32),g=e.destructible,g&64&&e.report(63),e.assignable=g&16?2:1,d=F(e,t|131072,u,d,0,0,T)}else d=_(e,t|131072,u,1,0,1);if((e.getToken()&262144)===262144){if(e.getToken()===471156){e.assignable&2&&e.report(80,l?"await":"of"),K(e,d),r(e,t|32),h=L(e,t,u,1,0,e.tokenStart),y(e,t|32,16);let D=de(e,t,n,u,o);return e.finishNode({type:"ForOfStatement",left:d,right:h,body:D,await:l},i)}e.assignable&2&&e.report(80,"in"),K(e,d),r(e,t|32),l&&e.report(82),h=V(e,t,u,0,1,e.tokenStart),y(e,t|32,16);let T=de(e,t,n,u,o);return e.finishNode({type:"ForInStatement",body:T,left:d,right:h},i)}l&&e.report(82),a||(g&8&&e.getToken()!==1077936155&&e.report(80,"loop"),d=I(e,t|131072,u,0,0,A,d)),e.getToken()===18&&(d=W(e,t,u,0,A,d)),y(e,t|32,1074790417),e.getToken()!==1074790417&&(f=V(e,t,u,0,1,e.tokenStart)),y(e,t|32,1074790417),e.getToken()!==16&&(c=V(e,t,u,0,1,e.tokenStart)),y(e,t|32,16);let w=de(e,t,n,u,o);return e.finishNode({type:"ForStatement",init:d,test:f,update:c,body:w},i)}function Jt(e,t,n){return ge(t,e.getToken())||e.report(118),(e.getToken()&537079808)===537079808&&e.report(119),n?.addBlockName(t,e.tokenValue,8,0),N(e,t)}function Vn(e,t,n){let u=e.tokenStart;r(e,t);let o=null,{tokenStart:i}=e,l=[];if(e.getToken()===134283267)o=O(e,t);else{if(e.getToken()&143360){let g=Jt(e,t,n);if(l=[e.finishNode({type:"ImportDefaultSpecifier",local:g},i)],C(e,t,18))switch(e.getToken()){case 8391476:l.push(bt(e,t,n));break;case 2162700:Dt(e,t,n,l);break;default:e.report(107)}}else switch(e.getToken()){case 8391476:l=[bt(e,t,n)];break;case 2162700:Dt(e,t,n,l);break;case 67174411:return Xt(e,t,void 0,u);case 67108877:return _t(e,t,u);default:e.report(30,B[e.getToken()&255])}o=Rn(e,t)}let f=ze(e,t),c={type:"ImportDeclaration",specifiers:l,source:o,attributes:f};return M(e,t|32),e.finishNode(c,u)}function bt(e,t,n){let{tokenStart:u}=e;if(r(e,t),y(e,t,77932),(e.getToken()&134217728)===134217728)throw new q(u,e.currentLocation,30,B[e.getToken()&255]);return e.finishNode({type:"ImportNamespaceSpecifier",local:Jt(e,t,n)},u)}function Rn(e,t){return y(e,t,209011),e.getToken()!==134283267&&e.report(105,"Import"),O(e,t)}function Dt(e,t,n,u){for(r(e,t);e.getToken()&143360||e.getToken()===134283267;){let{tokenValue:o,tokenStart:i}=e,l=e.getToken(),f=Ce(e,t),c;C(e,t,77932)?((e.getToken()&134217728)===134217728||e.getToken()===18?e.report(106):Be(e,t,16,e.getToken(),0),o=e.tokenValue,c=N(e,t)):f.type==="Identifier"?(Be(e,t,16,l,0),c=e.cloneIdentifier(f)):e.report(25,B[108]),n?.addBlockName(t,o,8,0),u.push(e.finishNode({type:"ImportSpecifier",local:c,imported:f},i)),e.getToken()!==1074790415&&y(e,t,18)}return y(e,t,1074790415),u}function _t(e,t,n){let u=jt(e,t,e.finishNode({type:"Identifier",name:"import"},n),n);return u=F(e,t,void 0,u,0,0,n),u=I(e,t,void 0,0,0,n,u),e.getToken()===18&&(u=W(e,t,void 0,0,n,u)),ie(e,t,u,n)}function Xt(e,t,n,u){let o=Ht(e,t,n,0,u);return o=F(e,t,n,o,0,0,u),e.getToken()===18&&(o=W(e,t,n,0,u,o)),ie(e,t,o,u)}function Mn(e,t,n){let u=e.leadingDecorators.decorators.length?e.leadingDecorators.start:e.tokenStart;r(e,t|32);let o=[],i=null,l=null,f=[];if(C(e,t|32,20561)){switch(e.getToken()){case 86104:{i=x(e,t,n,void 0,4,1,1,0,e.tokenStart);break}case 132:case 86094:i=Ke(e,t,n,void 0,1);break;case 209005:{let{tokenStart:g}=e;i=N(e,t);let{flags:d}=e;(d&1)===0&&(e.getToken()===86104?i=x(e,t,n,void 0,4,1,1,1,g):e.getToken()===67174411?(i=it(e,t,void 0,i,1,1,0,d,g),i=F(e,t,void 0,i,0,0,g),i=I(e,t,void 0,0,0,g,i)):e.getToken()&143360&&(n&&(n=qe(e,t,e.tokenValue)),i=N(e,t),i=ke(e,t,n,void 0,[i],1,g)));break}default:i=L(e,t,void 0,1,0,e.tokenStart),M(e,t|32)}return n&&e.declareUnboundVariable("default"),e.finishNode({type:"ExportDefaultDeclaration",declaration:i},u)}switch(e.getToken()){case 8391476:{r(e,t);let g=null;C(e,t,77932)&&(n&&e.declareUnboundVariable(e.tokenValue),g=Ce(e,t)),y(e,t,209011),e.getToken()!==134283267&&e.report(105,"Export"),l=O(e,t);let a=ze(e,t),h={type:"ExportAllDeclaration",source:l,exported:g,attributes:a};return M(e,t|32),e.finishNode(h,u)}case 2162700:{r(e,t);let g=[],d=[],a=0;for(;e.getToken()&143360||e.getToken()===134283267;){let{tokenStart:h,tokenValue:A}=e,b=Ce(e,t);b.type==="Literal"&&(a=1);let w;e.getToken()===77932?(r(e,t),(e.getToken()&143360)===0&&e.getToken()!==134283267&&e.report(106),n&&(g.push(e.tokenValue),d.push(A)),w=Ce(e,t)):(n&&(g.push(e.tokenValue),d.push(e.tokenValue)),w=b.type==="Literal"?e.cloneStringLiteral(b):e.cloneIdentifier(b)),o.push(e.finishNode({type:"ExportSpecifier",local:b,exported:w},h)),e.getToken()!==1074790415&&y(e,t,18)}y(e,t,1074790415),C(e,t,209011)?(e.getToken()!==134283267&&e.report(105,"Export"),l=O(e,t),f=ze(e,t),n&&g.forEach(h=>e.declareUnboundVariable(h))):(a&&e.report(172),n&&(g.forEach(h=>e.declareUnboundVariable(h)),d.forEach(h=>e.addBindingToExports(h)))),M(e,t|32);break}case 132:case 86094:i=Ke(e,t,n,void 0,2);break;case 86104:i=x(e,t,n,void 0,4,1,2,0,e.tokenStart);break;case 241737:i=He(e,t,n,void 0,8,64);break;case 86090:i=He(e,t,n,void 0,16,64);break;case 86088:i=Ut(e,t,n,void 0,64);break;case 209005:{let{tokenStart:g}=e;if(r(e,t),(e.flags&1)===0&&e.getToken()===86104){i=x(e,t,n,void 0,4,1,2,1,g);break}}default:e.report(30,B[e.getToken()&255])}let c={type:"ExportNamedDeclaration",declaration:i,specifiers:o,source:l,attributes:f};return e.finishNode(c,u)}function L(e,t,n,u,o,i){let l=U(e,t,n,2,0,u,o,1,i);return l=F(e,t,n,l,o,0,i),I(e,t,n,o,0,i,l)}function W(e,t,n,u,o,i){let l=[i];for(;C(e,t|32,18);)l.push(L(e,t,n,1,u,e.tokenStart));return e.finishNode({type:"SequenceExpression",expressions:l},o)}function V(e,t,n,u,o,i){let l=L(e,t,n,o,u,i);return e.getToken()===18?W(e,t,n,u,i,l):l}function I(e,t,n,u,o,i,l){let f=e.getToken();if((f&4194304)===4194304){e.assignable&2&&e.report(26),(!o&&f===1077936155&&l.type==="ArrayExpression"||l.type==="ObjectExpression")&&K(e,l),r(e,t|32);let c=L(e,t,n,1,u,e.tokenStart);return e.assignable=2,e.finishNode(o?{type:"AssignmentPattern",left:l,right:c}:{type:"AssignmentExpression",left:l,operator:B[f&255],right:c},i)}return(f&8388608)===8388608&&(l=G(e,t,n,u,i,4,f,l)),C(e,t|32,22)&&(l=ee(e,t,n,l,i)),l}function be(e,t,n,u,o,i,l){let f=e.getToken();r(e,t|32);let c=L(e,t,n,1,u,e.tokenStart);return l=e.finishNode(o?{type:"AssignmentPattern",left:l,right:c}:{type:"AssignmentExpression",left:l,operator:B[f&255],right:c},i),e.assignable=2,l}function ee(e,t,n,u,o){let i=L(e,(t|131072)^131072,n,1,0,e.tokenStart);y(e,t|32,21),e.assignable=1;let l=L(e,t,n,1,0,e.tokenStart);return e.assignable=2,e.finishNode({type:"ConditionalExpression",test:u,consequent:i,alternate:l},o)}function G(e,t,n,u,o,i,l,f){let c=-((t&131072)>0)&8673330,g,d;for(e.assignable=2;e.getToken()&8388608&&(g=e.getToken(),d=g&3840,(g&524288&&l&268435456||l&524288&&g&268435456)&&e.report(165),!(d+((g===8391735)<<8)-((c===g)<<12)<=i));)r(e,t|32),f=e.finishNode({type:g&524288||g&268435456?"LogicalExpression":"BinaryExpression",left:f,right:G(e,t,n,u,e.tokenStart,d,g,_(e,t,n,0,u,1)),operator:B[g&255]},o);return e.getToken()===1077936155&&e.report(26),f}function vn(e,t,n,u,o){u||e.report(0);let{tokenStart:i}=e,l=e.getToken();r(e,t|32);let f=_(e,t,n,0,o,1);return e.getToken()===8391735&&e.report(33),t&1&&l===16863276&&(f.type==="Identifier"?e.report(121):ln(f)&&e.report(127)),e.assignable=2,e.finishNode({type:"UnaryExpression",operator:B[l&255],argument:f,prefix:!0},i)}function Un(e,t,n,u,o,i,l,f){let c=e.getToken(),g=N(e,t),{flags:d}=e;if((d&1)===0){if(e.getToken()===86104)return Kt(e,t,n,1,u,f);if(ge(t,e.getToken()))return o||e.report(0),(e.getToken()&36864)===36864&&(e.flags|=256),Yt(e,t,n,i,f)}return!l&&e.getToken()===67174411?it(e,t,n,g,i,1,0,d,f):e.getToken()===10?(Ie(e,t,c),l&&e.report(51),(c&36864)===36864&&(e.flags|=256),Oe(e,t,n,e.tokenValue,g,l,i,0,f)):(e.assignable=1,g)}function Jn(e,t,n,u,o,i){if(u&&(e.destructible|=256),t&1024){r(e,t|32),t&8192&&e.report(32),o||e.report(26),e.getToken()===22&&e.report(124);let l=null,f=!1;return(e.flags&1)===0?(f=C(e,t|32,8391476),(e.getToken()&77824||f)&&(l=L(e,t,n,1,0,e.tokenStart))):e.getToken()===8391476&&e.report(30,B[e.getToken()&255]),e.assignable=2,e.finishNode({type:"YieldExpression",argument:l,delegate:f},i)}return t&1&&e.report(97,"yield"),ut(e,t,n)}function _n(e,t,n,u,o,i){o&&(e.destructible|=128),t&524288&&e.report(177);let l=ut(e,t,n);if(l.type==="ArrowFunctionExpression"||(e.getToken()&65536)===0){if(t&2048)throw new q(i,{index:e.startIndex,line:e.startLine,column:e.startColumn},176);if(t&2)throw new q(i,{index:e.startIndex,line:e.startLine,column:e.startColumn},110);if(t&8192&&t&2048)throw new q(i,{index:e.startIndex,line:e.startLine,column:e.startColumn},110);return l}if(t&8192)throw new q(i,{index:e.startIndex,line:e.startLine,column:e.startColumn},31);if(t&2048||t&2&&t&8){if(u)throw new q(i,{index:e.startIndex,line:e.startLine,column:e.startColumn},0);let c=_(e,t,n,0,0,1);return e.getToken()===8391735&&e.report(33),e.assignable=2,e.finishNode({type:"AwaitExpression",argument:c},i)}if(t&2)throw new q(i,{index:e.startIndex,line:e.startLine,column:e.startColumn},98);return l}function Pe(e,t,n,u,o,i,l){let{tokenStart:f}=e;y(e,t|32,2162700);let c=[];if(e.getToken()!==1074790415){for(;e.getToken()===134283267;){let{index:g,tokenStart:d,tokenIndex:a,tokenValue:h}=e,A=e.getToken(),b=O(e,t);if(Ot(e,g,a,h)){if(t|=1,e.flags&128)throw new q(d,e.currentLocation,66);if(e.flags&64)throw new q(d,e.currentLocation,9);if(e.flags&4096)throw new q(d,e.currentLocation,15);l?.reportScopeError()}c.push(xe(e,t,b,A,d))}t&1&&(i&&((i&537079808)===537079808&&e.report(119),(i&36864)===36864&&e.report(40)),e.flags&512&&e.report(119),e.flags&256&&e.report(118))}for(e.flags=(e.flags|512|256|64|4096)^4928,e.destructible=(e.destructible|256)^256;e.getToken()!==1074790415;)c.push(re(e,t,n,u,4,{}));return y(e,o&24?t|32:t,1074790415),e.flags&=-4289,e.getToken()===1077936155&&e.report(26),e.finishNode({type:"BlockStatement",body:c},f)}function Xn(e,t){let{tokenStart:n}=e;switch(r(e,t),e.getToken()){case 67108990:e.report(167);case 67174411:{(t&512)===0&&e.report(28),e.assignable=2;break}case 69271571:case 67108877:{(t&256)===0&&e.report(29),e.assignable=1;break}default:e.report(30,"super")}return e.finishNode({type:"Super"},n)}function _(e,t,n,u,o,i){let l=e.tokenStart,f=U(e,t,n,2,0,u,o,i,l);return F(e,t,n,f,o,0,l)}function jn(e,t,n,u){e.assignable&2&&e.report(55);let o=e.getToken();return r(e,t),e.assignable=2,e.finishNode({type:"UpdateExpression",argument:n,operator:B[o&255],prefix:!1},u)}function F(e,t,n,u,o,i,l){if((e.getToken()&33619968)===33619968&&(e.flags&1)===0)u=jn(e,t,u,l);else if((e.getToken()&67108864)===67108864){switch(t=(t|131072)^131072,e.getToken()){case 67108877:{r(e,(t|262144|8)^8),t&16&&e.getToken()===130&&e.tokenValue==="super"&&e.report(173),e.assignable=1;let f=pe(e,t|64,n);u=e.finishNode({type:"MemberExpression",object:u,computed:!1,property:f,optional:!1},l);break}case 69271571:{let f=!1;(e.flags&2048)===2048&&(f=!0,e.flags=(e.flags|2048)^2048),r(e,t|32);let{tokenStart:c}=e,g=V(e,t,n,o,1,c);y(e,t,20),e.assignable=1,u=e.finishNode({type:"MemberExpression",object:u,computed:!0,property:g,optional:!1},l),f&&(e.flags|=2048);break}case 67174411:{if((e.flags&1024)===1024)return e.flags=(e.flags|1024)^1024,u;let f=!1;(e.flags&2048)===2048&&(f=!0,e.flags=(e.flags|2048)^2048);let c=nt(e,t,n,o);e.assignable=2,u=e.finishNode({type:"CallExpression",callee:u,arguments:c,optional:!1},l),f&&(e.flags|=2048);break}case 67108990:{r(e,(t|262144|8)^8),e.flags|=2048,e.assignable=2,u=Hn(e,t,n,u,l);break}default:(e.flags&2048)===2048&&e.report(166),e.assignable=2,u=e.finishNode({type:"TaggedTemplateExpression",tag:u,quasi:e.getToken()===67174408?tt(e,t|64,n):et(e,t)},l)}u=F(e,t,n,u,0,1,l)}return i===0&&(e.flags&2048)===2048&&(e.flags=(e.flags|2048)^2048,u=e.finishNode({type:"ChainExpression",expression:u},l)),u}function Hn(e,t,n,u,o){let i=!1,l;if((e.getToken()===69271571||e.getToken()===67174411)&&(e.flags&2048)===2048&&(i=!0,e.flags=(e.flags|2048)^2048),e.getToken()===69271571){r(e,t|32);let{tokenStart:f}=e,c=V(e,t,n,0,1,f);y(e,t,20),e.assignable=2,l=e.finishNode({type:"MemberExpression",object:u,computed:!0,optional:!0,property:c},o)}else if(e.getToken()===67174411){let f=nt(e,t,n,0);e.assignable=2,l=e.finishNode({type:"CallExpression",callee:u,arguments:f,optional:!0},o)}else{let f=pe(e,t,n);e.assignable=2,l=e.finishNode({type:"MemberExpression",object:u,computed:!1,optional:!0,property:f},o)}return i&&(e.flags|=2048),l}function pe(e,t,n){return(e.getToken()&143360)===0&&e.getToken()!==-2147483528&&e.getToken()!==-2147483527&&e.getToken()!==130&&e.report(160),e.getToken()===130?Le(e,t,n,0):N(e,t)}function zn(e,t,n,u,o,i){u&&e.report(56),o||e.report(0);let l=e.getToken();r(e,t|32);let f=_(e,t,n,0,0,1);return e.assignable&2&&e.report(55),e.assignable=2,e.finishNode({type:"UpdateExpression",argument:f,operator:B[l&255],prefix:!0},i)}function U(e,t,n,u,o,i,l,f,c){if((e.getToken()&143360)===143360){switch(e.getToken()){case 209006:return _n(e,t,n,o,l,c);case 241771:return Jn(e,t,n,l,i,c);case 209005:return Un(e,t,n,l,f,i,o,c)}let{tokenValue:g}=e,d=e.getToken(),a=N(e,t|64);return e.getToken()===10?(f||e.report(0),Ie(e,t,d),(d&36864)===36864&&(e.flags|=256),Oe(e,t,n,g,a,o,i,0,c)):(t&16&&!(t&32768)&&!(t&8192)&&e.tokenValue==="arguments"&&e.report(130),(d&255)===73&&(t&1&&e.report(113),u&24&&e.report(100)),e.assignable=t&1&&(d&537079808)===537079808?2:1,a)}if((e.getToken()&134217728)===134217728)return O(e,t);switch(e.getToken()){case 33619993:case 33619994:return zn(e,t,n,o,f,c);case 16863276:case 16842798:case 16842799:case 25233968:case 25233969:case 16863275:case 16863277:return vn(e,t,n,f,l);case 86104:return Kt(e,t,n,0,l,c);case 2162700:return xn(e,t,n,i?0:1,l);case 69271571:return Gn(e,t,n,i?0:1,l);case 67174411:return eu(e,t|64,n,i,1,0,c);case 86021:case 86022:case 86023:return Qn(e,t);case 86111:return Zn(e,t);case 65540:return uu(e,t);case 132:case 86094:return iu(e,t,n,l,c);case 86109:return Xn(e,t);case 67174409:return et(e,t);case 67174408:return tt(e,t,n);case 86107:return tu(e,t,n,l);case 134283388:return zt(e,t);case 130:return Le(e,t,n,0);case 86106:return Kn(e,t,n,o,l,c);case 8456256:if(e.options.jsx)return Re(e,t,n,0,e.tokenStart);default:if(ge(t,e.getToken()))return ut(e,t,n);e.report(30,B[e.getToken()&255])}}function Kn(e,t,n,u,o,i){let l=N(e,t);return e.getToken()===67108877?jt(e,t,l,i):(u&&e.report(142),l=Ht(e,t,n,o,i),e.assignable=2,F(e,t,n,l,o,0,i))}function jt(e,t,n,u){(t&2)===0&&e.report(169),r(e,t);let o=e.getToken();return o!==209030&&e.tokenValue!=="meta"?e.report(174):o&-2147483648&&e.report(175),e.assignable=2,e.finishNode({type:"MetaProperty",meta:n,property:N(e,t)},u)}function Ht(e,t,n,u,o){y(e,t|32,67174411),e.getToken()===14&&e.report(143);let i=L(e,t,n,1,u,e.tokenStart),l=null;if(e.getToken()===18){if(y(e,t,18),e.getToken()!==16){let c=(t|131072)^131072;l=L(e,c,n,1,u,e.tokenStart)}C(e,t,18)}let f={type:"ImportExpression",source:i,options:l};return y(e,t,16),e.finishNode(f,o)}function ze(e,t){if(!C(e,t,20579))return[];y(e,t,2162700);let n=[],u=new Set;for(;e.getToken()!==1074790415;){let o=e.tokenStart,i=Wn(e,t);y(e,t,21);let l=$n(e,t),f=i.type==="Literal"?i.value:i.name;u.has(f)&&e.report(145,`${f}`),u.add(f),n.push(e.finishNode({type:"ImportAttribute",key:i,value:l},o)),e.getToken()!==1074790415&&y(e,t,18)}return y(e,t,1074790415),n}function $n(e,t){if(e.getToken()===134283267)return O(e,t);e.report(30,B[e.getToken()&255])}function Wn(e,t){if(e.getToken()===134283267)return O(e,t);if(e.getToken()&143360)return N(e,t);e.report(30,B[e.getToken()&255])}function Ce(e,t){if(e.getToken()===134283267){let n=e.tokenValue;return rt(0,n)||e.report(171),O(e,t)}else{if(e.getToken()&143360)return N(e,t);e.report(30,B[e.getToken()&255])}}function zt(e,t){let{tokenRaw:n,tokenValue:u,tokenStart:o}=e;r(e,t),e.assignable=2;let i={type:"Literal",value:u,bigint:String(u)};return e.options.raw&&(i.raw=n),e.finishNode(i,o)}function et(e,t){e.assignable=2;let{tokenValue:n,tokenRaw:u,tokenStart:o}=e;y(e,t,67174409);let i=[Ee(e,n,u,o,!0)];return e.finishNode({type:"TemplateLiteral",expressions:[],quasis:i},o)}function tt(e,t,n){t=(t|131072)^131072;let{tokenValue:u,tokenRaw:o,tokenStart:i}=e;y(e,t&-65|32,67174408);let l=[Ee(e,u,o,i,!1)],f=[V(e,t&-65,n,0,1,e.tokenStart)];for(e.getToken()!==1074790415&&e.report(83);e.setToken(un(e,t),!0)!==67174409;){let{tokenValue:c,tokenRaw:g,tokenStart:d}=e;y(e,t&-65|32,67174408),l.push(Ee(e,c,g,d,!1)),f.push(V(e,t,n,0,1,e.tokenStart)),e.getToken()!==1074790415&&e.report(83)}{let{tokenValue:c,tokenRaw:g,tokenStart:d}=e;y(e,t,67174409),l.push(Ee(e,c,g,d,!0))}return e.finishNode({type:"TemplateLiteral",expressions:f,quasis:l},i)}function Ee(e,t,n,u,o){let i=e.finishNode({type:"TemplateElement",value:{cooked:t,raw:n},tail:o},u),l=o?1:2;return e.options.ranges&&(i.start+=1,i.range[0]+=1,i.end-=l,i.range[1]-=l),e.options.loc&&(i.loc.start.column+=1,i.loc.end.column-=l),i}function Yn(e,t,n){let u=e.tokenStart;t=(t|131072)^131072,y(e,t|32,14);let o=L(e,t,n,1,0,e.tokenStart);return e.assignable=1,e.finishNode({type:"SpreadElement",argument:o},u)}function nt(e,t,n,u){r(e,t|32);let o=[];if(e.getToken()===16)return r(e,t|64),o;for(;e.getToken()!==16&&(e.getToken()===14?o.push(Yn(e,t,n)):o.push(L(e,t,n,1,u,e.tokenStart)),!(e.getToken()!==18||(r(e,t|32),e.getToken()===16))););return y(e,t|64,16),o}function N(e,t){let{tokenValue:n,tokenStart:u}=e,o=n==="await"&&(e.getToken()&-2147483648)===0;return r(e,t|(o?32:0)),e.finishNode({type:"Identifier",name:n},u)}function O(e,t){let{tokenValue:n,tokenRaw:u,tokenStart:o}=e;if(e.getToken()===134283388)return zt(e,t);let i={type:"Literal",value:n};return e.options.raw&&(i.raw=u),r(e,t),e.assignable=2,e.finishNode(i,o)}function Qn(e,t){let n=e.tokenStart,u=B[e.getToken()&255],i={type:"Literal",value:e.getToken()===86023?null:u==="true"};return e.options.raw&&(i.raw=u),r(e,t),e.assignable=2,e.finishNode(i,n)}function Zn(e,t){let{tokenStart:n}=e;return r(e,t),e.assignable=2,e.finishNode({type:"ThisExpression"},n)}function x(e,t,n,u,o,i,l,f,c){r(e,t|32);let g=i?Ze(e,t,8391476):0,d=null,a,h=n?e.createScope():void 0;if(e.getToken()===67174411)(l&1)===0&&e.report(39,"Function");else{let T=o&4&&((t&8)===0||(t&2)===0)?4:64|(f?1024:0)|(g?1024:0);Vt(e,t,e.getToken()),n&&(T&4?n.addVarName(t,e.tokenValue,T):n.addBlockName(t,e.tokenValue,T,o),h=h?.createChildScope(128),l&&l&2&&e.declareUnboundVariable(e.tokenValue)),a=e.getToken(),e.getToken()&143360?d=N(e,t):e.report(30,B[e.getToken()&255])}t=(t|28416)^28416|65536|(f?2048:0)|(g?1024:0)|(g?0:262144),h=h?.createChildScope(256);let A=Wt(e,(t|8192)&-524289,h,u,0,1),b=524428,w=Pe(e,(t|b)^b|32768|4096,h?.createChildScope(64),u,8,a,h);return e.finishNode({type:"FunctionDeclaration",id:d,params:A,body:w,async:f===1,generator:g===1},c)}function Kt(e,t,n,u,o,i){r(e,t|32);let l=Ze(e,t,8391476),f=(u?2048:0)|(l?1024:0),c=null,g,d=e.createScopeIfLexical(),a=552704;e.getToken()&143360&&(Vt(e,(t|a)^a|f,e.getToken()),d=d?.createChildScope(128),g=e.getToken(),c=N(e,t)),t=(t|a)^a|65536|f|(l?0:262144),d=d?.createChildScope(256);let h=Wt(e,(t|8192)&-524289,d,n,o,1),A=Pe(e,t&-131229|32768|4096,d?.createChildScope(64),n,0,g,d);return e.assignable=2,e.finishNode({type:"FunctionExpression",id:c,params:h,body:A,async:u===1,generator:l===1},i)}function Gn(e,t,n,u,o){let i=X(e,t,void 0,n,u,o,0,2,0);return e.destructible&64&&e.report(63),e.destructible&8&&e.report(62),i}function X(e,t,n,u,o,i,l,f,c){let{tokenStart:g}=e;r(e,t|32);let d=[],a=0;for(t=(t|131072)^131072;e.getToken()!==20;)if(C(e,t|32,18))d.push(null);else{let A,{tokenStart:b,tokenValue:w}=e,T=e.getToken();if(T&143360)if(A=U(e,t,u,f,0,1,i,1,b),e.getToken()===1077936155){e.assignable&2&&e.report(26),r(e,t|32),n?.addVarOrBlock(t,w,f,c);let D=L(e,t,u,1,i,e.tokenStart);A=e.finishNode(l?{type:"AssignmentPattern",left:A,right:D}:{type:"AssignmentExpression",operator:"=",left:A,right:D},b),a|=e.destructible&256?256:0|e.destructible&128?128:0}else e.getToken()===18||e.getToken()===20?(e.assignable&2?a|=16:n?.addVarOrBlock(t,w,f,c),a|=e.destructible&256?256:0|e.destructible&128?128:0):(a|=f&1?32:(f&2)===0?16:0,A=F(e,t,u,A,i,0,b),e.getToken()!==18&&e.getToken()!==20?(e.getToken()!==1077936155&&(a|=16),A=I(e,t,u,i,l,b,A)):e.getToken()!==1077936155&&(a|=e.assignable&2?16:32));else T&2097152?(A=e.getToken()===2162700?j(e,t,n,u,0,i,l,f,c):X(e,t,n,u,0,i,l,f,c),a|=e.destructible,e.assignable=e.destructible&16?2:1,e.getToken()===18||e.getToken()===20?e.assignable&2&&(a|=16):e.destructible&8?e.report(71):(A=F(e,t,u,A,i,0,b),a=e.assignable&2?16:0,e.getToken()!==18&&e.getToken()!==20?A=I(e,t,u,i,l,b,A):e.getToken()!==1077936155&&(a|=e.assignable&2?16:32))):T===14?(A=oe(e,t,n,u,20,f,c,0,i,l),a|=e.destructible,e.getToken()!==18&&e.getToken()!==20&&e.report(30,B[e.getToken()&255])):(A=_(e,t,u,1,0,1),e.getToken()!==18&&e.getToken()!==20?(A=I(e,t,u,i,l,b,A),(f&3)===0&&T===67174411&&(a|=16)):e.assignable&2?a|=16:T===67174411&&(a|=e.assignable&1&&f&3?32:16));if(d.push(A),C(e,t|32,18)){if(e.getToken()===20)break}else break}y(e,t,20);let h=e.finishNode({type:l?"ArrayPattern":"ArrayExpression",elements:d},g);return!o&&e.getToken()&4194304?$t(e,t,u,a,i,l,g,h):(e.destructible=a,h)}function $t(e,t,n,u,o,i,l,f){e.getToken()!==1077936155&&e.report(26),r(e,t|32),u&16&&e.report(26),i||K(e,f);let{tokenStart:c}=e,g=L(e,t,n,1,o,c);return e.destructible=(u|64|8)^72|(e.destructible&128?128:0)|(e.destructible&256?256:0),e.finishNode(i?{type:"AssignmentPattern",left:f,right:g}:{type:"AssignmentExpression",left:f,operator:"=",right:g},l)}function oe(e,t,n,u,o,i,l,f,c,g){let{tokenStart:d}=e;r(e,t|32);let a=null,h=0,{tokenValue:A,tokenStart:b}=e,w=e.getToken();if(w&143360)e.assignable=1,a=U(e,t,u,i,0,1,c,1,b),w=e.getToken(),a=F(e,t,u,a,c,0,b),e.getToken()!==18&&e.getToken()!==o&&(e.assignable&2&&e.getToken()===1077936155&&e.report(71),h|=16,a=I(e,t,u,c,g,b,a)),e.assignable&2?h|=16:w===o||w===18?n?.addVarOrBlock(t,A,i,l):h|=32,h|=e.destructible&128?128:0;else if(w===o)e.report(41);else if(w&2097152)a=e.getToken()===2162700?j(e,t,n,u,1,c,g,i,l):X(e,t,n,u,1,c,g,i,l),w=e.getToken(),w!==1077936155&&w!==o&&w!==18?(e.destructible&8&&e.report(71),a=F(e,t,u,a,c,0,b),h|=e.assignable&2?16:0,(e.getToken()&4194304)===4194304?(e.getToken()!==1077936155&&(h|=16),a=I(e,t,u,c,g,b,a)):((e.getToken()&8388608)===8388608&&(a=G(e,t,u,1,b,4,w,a)),C(e,t|32,22)&&(a=ee(e,t,u,a,b)),h|=e.assignable&2?16:32)):h|=o===1074790415&&w!==1077936155?16:e.destructible;else{h|=32,a=_(e,t,u,1,c,1);let{tokenStart:T}=e,D=e.getToken();return D===1077936155?(e.assignable&2&&e.report(26),a=I(e,t,u,c,g,T,a),h|=16):(D===18?h|=16:D!==o&&(a=I(e,t,u,c,g,T,a)),h|=e.assignable&1?32:16),e.destructible=h,e.getToken()!==o&&e.getToken()!==18&&e.report(161),e.finishNode({type:g?"RestElement":"SpreadElement",argument:a},d)}if(e.getToken()!==o)if(i&1&&(h|=f?16:32),C(e,t|32,1077936155)){h&16&&e.report(26),K(e,a);let T=L(e,t,u,1,c,e.tokenStart);a=e.finishNode(g?{type:"AssignmentPattern",left:a,right:T}:{type:"AssignmentExpression",left:a,operator:"=",right:T},b),h=16}else h|=16;return e.destructible=h,e.finishNode({type:g?"RestElement":"SpreadElement",argument:a},d)}function z(e,t,n,u,o,i){let l=11264|((u&64)===0?16896:0);t=(t|l)^l|(u&8?1024:0)|(u&16?2048:0)|(u&64?16384:0)|256|32768|65536;let f=e.createScopeIfLexical(256),c=pn(e,(t|8192)&-524289,f,n,u,1,o);f=f?.createChildScope(64);let g=Pe(e,t&-655373|32768|4096,f,n,0,void 0,f?.parent);return e.finishNode({type:"FunctionExpression",params:c,body:g,async:(u&16)>0,generator:(u&8)>0,id:null},i)}function xn(e,t,n,u,o){let i=j(e,t,void 0,n,u,o,0,2,0);return e.destructible&64&&e.report(63),e.destructible&8&&e.report(62),i}function j(e,t,n,u,o,i,l,f,c){let{tokenStart:g}=e;r(e,t);let d=[],a=0,h=0;for(t=(t|131072)^131072;e.getToken()!==1074790415;){let{tokenValue:b,tokenStart:w}=e,T=e.getToken();if(T===14)d.push(oe(e,t,n,u,1074790415,f,c,0,i,l));else{let D=0,R=null,k;if(e.getToken()&143360||e.getToken()===-2147483528||e.getToken()===-2147483527)if(e.getToken()===-2147483527&&(a|=16),R=N(e,t),e.getToken()===18||e.getToken()===1074790415||e.getToken()===1077936155)if(D|=4,t&1&&(T&537079808)===537079808?a|=16:Be(e,t,f,T,0),n?.addVarOrBlock(t,b,f,c),C(e,t|32,1077936155)){a|=8;let E=L(e,t,u,1,i,e.tokenStart);a|=e.destructible&256?256:0|e.destructible&128?128:0,k=e.finishNode({type:"AssignmentPattern",left:e.cloneIdentifier(R),right:E},w)}else a|=(T===209006?128:0)|(T===-2147483528?16:0),k=e.cloneIdentifier(R);else if(C(e,t|32,21)){let{tokenStart:E}=e;if(b==="__proto__"&&h++,e.getToken()&143360){let ce=e.getToken(),Y=e.tokenValue;k=U(e,t,u,f,0,1,i,1,E);let $=e.getToken();k=F(e,t,u,k,i,0,E),e.getToken()===18||e.getToken()===1074790415?$===1077936155||$===1074790415||$===18?(a|=e.destructible&128?128:0,e.assignable&2?a|=16:(ce&143360)===143360&&n?.addVarOrBlock(t,Y,f,c)):a|=e.assignable&1?32:16:(e.getToken()&4194304)===4194304?(e.assignable&2?a|=16:$!==1077936155?a|=32:n?.addVarOrBlock(t,Y,f,c),k=I(e,t,u,i,l,E,k)):(a|=16,(e.getToken()&8388608)===8388608&&(k=G(e,t,u,1,E,4,$,k)),C(e,t|32,22)&&(k=ee(e,t,u,k,E)))}else(e.getToken()&2097152)===2097152?(k=e.getToken()===69271571?X(e,t,n,u,0,i,l,f,c):j(e,t,n,u,0,i,l,f,c),a=e.destructible,e.assignable=a&16?2:1,e.getToken()===18||e.getToken()===1074790415?e.assignable&2&&(a|=16):e.destructible&8?e.report(71):(k=F(e,t,u,k,i,0,E),a=e.assignable&2?16:0,(e.getToken()&4194304)===4194304?k=be(e,t,u,i,l,E,k):((e.getToken()&8388608)===8388608&&(k=G(e,t,u,1,E,4,T,k)),C(e,t|32,22)&&(k=ee(e,t,u,k,E)),a|=e.assignable&2?16:32))):(k=_(e,t,u,1,i,1),a|=e.assignable&1?32:16,e.getToken()===18||e.getToken()===1074790415?e.assignable&2&&(a|=16):(k=F(e,t,u,k,i,0,E),a=e.assignable&2?16:0,e.getToken()!==18&&T!==1074790415&&(e.getToken()!==1077936155&&(a|=16),k=I(e,t,u,i,l,E,k))))}else e.getToken()===69271571?(a|=16,T===209005&&(D|=16),D|=(T===209008?256:T===209009?512:1)|2,R=ne(e,t,u,i),a|=e.assignable,k=z(e,t,u,D,i,e.tokenStart)):e.getToken()&143360?(a|=16,T===-2147483528&&e.report(95),T===209005?(e.flags&1&&e.report(132),D|=17):T===209008?D|=256:T===209009?D|=512:e.report(0),R=N(e,t),k=z(e,t,u,D,i,e.tokenStart)):e.getToken()===67174411?(a|=16,D|=1,k=z(e,t,u,D,i,e.tokenStart)):e.getToken()===8391476?(a|=16,T===209008?e.report(42):T===209009?e.report(43):T!==209005&&e.report(30,B[52]),r(e,t),D|=9|(T===209005?16:0),e.getToken()&143360?R=N(e,t):(e.getToken()&134217728)===134217728?R=O(e,t):e.getToken()===69271571?(D|=2,R=ne(e,t,u,i),a|=e.assignable):e.report(30,B[e.getToken()&255]),k=z(e,t,u,D,i,e.tokenStart)):(e.getToken()&134217728)===134217728?(T===209005&&(D|=16),D|=T===209008?256:T===209009?512:1,a|=16,R=O(e,t),k=z(e,t,u,D,i,e.tokenStart)):e.report(133);else if((e.getToken()&134217728)===134217728)if(R=O(e,t),e.getToken()===21){y(e,t|32,21);let{tokenStart:E}=e;if(b==="__proto__"&&h++,e.getToken()&143360){k=U(e,t,u,f,0,1,i,1,E);let{tokenValue:ce}=e,Y=e.getToken();k=F(e,t,u,k,i,0,E),e.getToken()===18||e.getToken()===1074790415?Y===1077936155||Y===1074790415||Y===18?e.assignable&2?a|=16:n?.addVarOrBlock(t,ce,f,c):a|=e.assignable&1?32:16:e.getToken()===1077936155?(e.assignable&2&&(a|=16),k=I(e,t,u,i,l,E,k)):(a|=16,k=I(e,t,u,i,l,E,k))}else(e.getToken()&2097152)===2097152?(k=e.getToken()===69271571?X(e,t,n,u,0,i,l,f,c):j(e,t,n,u,0,i,l,f,c),a=e.destructible,e.assignable=a&16?2:1,e.getToken()===18||e.getToken()===1074790415?e.assignable&2&&(a|=16):(e.destructible&8)!==8&&(k=F(e,t,u,k,i,0,E),a=e.assignable&2?16:0,(e.getToken()&4194304)===4194304?k=be(e,t,u,i,l,E,k):((e.getToken()&8388608)===8388608&&(k=G(e,t,u,1,E,4,T,k)),C(e,t|32,22)&&(k=ee(e,t,u,k,E)),a|=e.assignable&2?16:32))):(k=_(e,t,u,1,0,1),a|=e.assignable&1?32:16,e.getToken()===18||e.getToken()===1074790415?e.assignable&2&&(a|=16):(k=F(e,t,u,k,i,0,E),a=e.assignable&1?0:16,e.getToken()!==18&&e.getToken()!==1074790415&&(e.getToken()!==1077936155&&(a|=16),k=I(e,t,u,i,l,E,k))))}else e.getToken()===67174411?(D|=1,k=z(e,t,u,D,i,e.tokenStart),a=e.assignable|16):e.report(134);else if(e.getToken()===69271571)if(R=ne(e,t,u,i),a|=e.destructible&256?256:0,D|=2,e.getToken()===21){r(e,t|32);let{tokenStart:E,tokenValue:ce}=e,Y=e.getToken();if(e.getToken()&143360){k=U(e,t,u,f,0,1,i,1,E);let $=e.getToken();k=F(e,t,u,k,i,0,E),(e.getToken()&4194304)===4194304?(a|=e.assignable&2?16:$===1077936155?0:32,k=be(e,t,u,i,l,E,k)):e.getToken()===18||e.getToken()===1074790415?$===1077936155||$===1074790415||$===18?e.assignable&2?a|=16:(Y&143360)===143360&&n?.addVarOrBlock(t,ce,f,c):a|=e.assignable&1?32:16:(a|=16,k=I(e,t,u,i,l,E,k))}else(e.getToken()&2097152)===2097152?(k=e.getToken()===69271571?X(e,t,n,u,0,i,l,f,c):j(e,t,n,u,0,i,l,f,c),a=e.destructible,e.assignable=a&16?2:1,e.getToken()===18||e.getToken()===1074790415?e.assignable&2&&(a|=16):a&8?e.report(62):(k=F(e,t,u,k,i,0,E),a=e.assignable&2?a|16:0,(e.getToken()&4194304)===4194304?(e.getToken()!==1077936155&&(a|=16),k=be(e,t,u,i,l,E,k)):((e.getToken()&8388608)===8388608&&(k=G(e,t,u,1,E,4,T,k)),C(e,t|32,22)&&(k=ee(e,t,u,k,E)),a|=e.assignable&2?16:32))):(k=_(e,t,u,1,0,1),a|=e.assignable&1?32:16,e.getToken()===18||e.getToken()===1074790415?e.assignable&2&&(a|=16):(k=F(e,t,u,k,i,0,E),a=e.assignable&1?0:16,e.getToken()!==18&&e.getToken()!==1074790415&&(e.getToken()!==1077936155&&(a|=16),k=I(e,t,u,i,l,E,k))))}else e.getToken()===67174411?(D|=1,k=z(e,t,u,D,i,e.tokenStart),a=16):e.report(44);else if(T===8391476)if(y(e,t|32,8391476),D|=8,e.getToken()&143360){let E=e.getToken();if(R=N(e,t),D|=1,e.getToken()===67174411)a|=16,k=z(e,t,u,D,i,e.tokenStart);else throw new q(e.tokenStart,e.currentLocation,E===209005?46:E===209008||e.getToken()===209009?45:47,B[E&255])}else(e.getToken()&134217728)===134217728?(a|=16,R=O(e,t),D|=1,k=z(e,t,u,D,i,e.tokenStart)):e.getToken()===69271571?(a|=16,D|=3,R=ne(e,t,u,i),k=z(e,t,u,D,i,e.tokenStart)):e.report(126);else e.report(30,B[T&255]);a|=e.destructible&128?128:0,e.destructible=a,d.push(e.finishNode({type:"Property",key:R,value:k,kind:D&768?D&512?"set":"get":"init",computed:(D&2)>0,method:(D&1)>0,shorthand:(D&4)>0},w))}if(a|=e.destructible,e.getToken()!==18)break;r(e,t)}y(e,t,1074790415),h>1&&(a|=64);let A=e.finishNode({type:l?"ObjectPattern":"ObjectExpression",properties:d},g);return!o&&e.getToken()&4194304?$t(e,t,u,a,i,l,g,A):(e.destructible=a,A)}function pn(e,t,n,u,o,i,l){y(e,t,67174411);let f=[];if(e.flags=(e.flags|128)^128,e.getToken()===16)return o&512&&e.report(37,"Setter","one",""),r(e,t),f;o&256&&e.report(37,"Getter","no","s"),o&512&&e.getToken()===14&&e.report(38),t=(t|131072)^131072;let c=0,g=0;for(;e.getToken()!==18;){let d=null,{tokenStart:a}=e;if(e.getToken()&143360?((t&1)===0&&((e.getToken()&36864)===36864&&(e.flags|=256),(e.getToken()&537079808)===537079808&&(e.flags|=512)),d=ot(e,t,n,o|1,0)):(e.getToken()===2162700?d=j(e,t,n,u,1,l,1,i,0):e.getToken()===69271571?d=X(e,t,n,u,1,l,1,i,0):e.getToken()===14&&(d=oe(e,t,n,u,16,i,0,0,l,1)),g=1,e.destructible&48&&e.report(50)),e.getToken()===1077936155){r(e,t|32),g=1;let h=L(e,t,u,1,0,e.tokenStart);d=e.finishNode({type:"AssignmentPattern",left:d,right:h},a)}if(c++,f.push(d),!C(e,t,18)||e.getToken()===16)break}return o&512&&c!==1&&e.report(37,"Setter","one",""),n?.reportScopeError(),g&&(e.flags|=128),y(e,t,16),f}function ne(e,t,n,u){r(e,t|32);let o=L(e,(t|131072)^131072,n,1,u,e.tokenStart);return y(e,t,20),o}function eu(e,t,n,u,o,i,l){e.flags=(e.flags|128)^128;let f=e.tokenStart;r(e,t|32|262144);let c=e.createScopeIfLexical()?.createChildScope(512);if(t=(t|131072)^131072,C(e,t,16))return Ne(e,t,c,n,[],u,0,l);let g=0;e.destructible&=-385;let d,a=[],h=0,A=0,b=0,w=e.tokenStart;for(e.assignable=1;e.getToken()!==16;){let{tokenStart:T}=e,D=e.getToken();if(D&143360)c?.addBlockName(t,e.tokenValue,1,0),(D&537079808)===537079808?A=1:(D&36864)===36864&&(b=1),d=U(e,t,n,o,0,1,1,1,T),e.getToken()===16||e.getToken()===18?e.assignable&2&&(g|=16,A=1):(e.getToken()===1077936155?A=1:g|=16,d=F(e,t,n,d,1,0,T),e.getToken()!==16&&e.getToken()!==18&&(d=I(e,t,n,1,0,T,d)));else if((D&2097152)===2097152)d=D===2162700?j(e,t|262144,c,n,0,1,0,o,i):X(e,t|262144,c,n,0,1,0,o,i),g|=e.destructible,A=1,e.assignable=2,e.getToken()!==16&&e.getToken()!==18&&(g&8&&e.report(122),d=F(e,t,n,d,0,0,T),g|=16,e.getToken()!==16&&e.getToken()!==18&&(d=I(e,t,n,0,0,T,d)));else if(D===14){d=oe(e,t,c,n,16,o,i,0,1,0),e.destructible&16&&e.report(74),A=1,h&&(e.getToken()===16||e.getToken()===18)&&a.push(d),g|=8;break}else{if(g|=16,d=L(e,t,n,1,1,T),h&&(e.getToken()===16||e.getToken()===18)&&a.push(d),e.getToken()===18&&(h||(h=1,a=[d])),h){for(;C(e,t|32,18);)a.push(L(e,t,n,1,1,e.tokenStart));e.assignable=2,d=e.finishNode({type:"SequenceExpression",expressions:a},w)}return y(e,t,16),e.destructible=g,e.options.preserveParens?e.finishNode({type:"ParenthesizedExpression",expression:d},f):d}if(h&&(e.getToken()===16||e.getToken()===18)&&a.push(d),!C(e,t|32,18))break;if(h||(h=1,a=[d]),e.getToken()===16){g|=8;break}}return h&&(e.assignable=2,d=e.finishNode({type:"SequenceExpression",expressions:a},w)),y(e,t,16),g&16&&g&8&&e.report(151),g|=e.destructible&256?256:0|e.destructible&128?128:0,e.getToken()===10?(g&48&&e.report(49),t&2050&&g&128&&e.report(31),t&1025&&g&256&&e.report(32),A&&(e.flags|=128),b&&(e.flags|=256),Ne(e,t,c,n,h?a:[d],u,0,l)):(g&64&&e.report(63),g&8&&e.report(144),e.destructible=(e.destructible|256)^256|g,e.options.preserveParens?e.finishNode({type:"ParenthesizedExpression",expression:d},f):d)}function ut(e,t,n){let{tokenStart:u}=e,{tokenValue:o}=e,i=0,l=0;(e.getToken()&537079808)===537079808?i=1:(e.getToken()&36864)===36864&&(l=1);let f=N(e,t);if(e.assignable=1,e.getToken()===10){let c=e.options.lexical?qe(e,t,o):void 0;return i&&(e.flags|=128),l&&(e.flags|=256),ke(e,t,c,n,[f],0,u)}return f}function Oe(e,t,n,u,o,i,l,f,c){l||e.report(57),i&&e.report(51),e.flags&=-129;let g=e.options.lexical?qe(e,t,u):void 0;return ke(e,t,g,n,[o],f,c)}function Ne(e,t,n,u,o,i,l,f){i||e.report(57);for(let c=0;c0&&e.tokenValue==="constructor"&&e.report(109),e.getToken()===1074790415&&e.report(108),C(e,t,1074790417)){b.length>0&&e.report(120);continue}h.push(Zt(e,t,u,g,n,i,b,0,f,b.length>0?A:e.tokenStart))}return y(e,l&8?t|32:t,1074790415),g?.validatePrivateIdentifierRefs(),e.flags=e.flags&-33|a,e.finishNode({type:"ClassBody",body:h},c)}function Zt(e,t,n,u,o,i,l,f,c,g){let d=f?32:0,a=null,h=e.getToken();if(h&176128||h===-2147483528)switch(a=N(e,t),h){case 36970:if(!f&&e.getToken()!==67174411&&(e.getToken()&1048576)!==1048576&&e.getToken()!==1077936155)return Zt(e,t,n,u,o,i,l,1,c,g);break;case 209005:if(e.getToken()!==67174411&&(e.flags&1)===0){if((e.getToken()&1073741824)===1073741824)return se(e,t,u,a,d,l,g);d|=16|(Ze(e,t,8391476)?8:0)}break;case 209008:if(e.getToken()!==67174411){if((e.getToken()&1073741824)===1073741824)return se(e,t,u,a,d,l,g);d|=256}break;case 209009:if(e.getToken()!==67174411){if((e.getToken()&1073741824)===1073741824)return se(e,t,u,a,d,l,g);d|=512}break;case 12402:if(e.getToken()!==67174411&&(e.flags&1)===0){if((e.getToken()&1073741824)===1073741824)return se(e,t,u,a,d,l,g);e.options.next&&(d|=1024)}break}else if(h===69271571)d|=2,a=ne(e,o,u,c);else if((h&134217728)===134217728)a=O(e,t);else if(h===8391476)d|=8,r(e,t);else if(e.getToken()===130)d|=8192,a=Le(e,t|16,u,768);else if((e.getToken()&1073741824)===1073741824)d|=128;else{if(f&&h===2162700)return In(e,t|16,n,u,g);h===-2147483527?(a=N(e,t),e.getToken()!==67174411&&e.report(30,B[e.getToken()&255])):e.report(30,B[e.getToken()&255])}if(d&1816&&(e.getToken()&143360||e.getToken()===-2147483528||e.getToken()===-2147483527?a=N(e,t):(e.getToken()&134217728)===134217728?a=O(e,t):e.getToken()===69271571?(d|=2,a=ne(e,t,u,0)):e.getToken()===130?(d|=8192,a=Le(e,t,u,d)):e.report(135)),(d&2)===0&&(e.tokenValue==="constructor"?((e.getToken()&1073741824)===1073741824?e.report(129):(d&32)===0&&e.getToken()===67174411&&(d&920?e.report(53,"accessor"):(t&512)===0&&(e.flags&32?e.report(54):e.flags|=32)),d|=64):(d&8192)===0&&d&32&&e.tokenValue==="prototype"&&e.report(52)),d&1024||e.getToken()!==67174411&&(d&768)===0)return se(e,t,u,a,d,l,g);let A=z(e,t|16,u,d,c,e.tokenStart);return e.finishNode({type:"MethodDefinition",kind:(d&32)===0&&d&64?"constructor":d&256?"get":d&512?"set":"method",static:(d&32)>0,computed:(d&2)>0,key:a,value:A,...e.options.next?{decorators:l}:null},g)}function Le(e,t,n,u){let{tokenStart:o}=e;r(e,t);let{tokenValue:i}=e;return i==="constructor"&&e.report(128),e.options.lexical&&(n||e.report(4,i),u?n.addPrivateIdentifier(i,u):n.addPrivateIdentifierRef(i)),r(e,t),e.finishNode({type:"PrivateIdentifier",name:i},o)}function se(e,t,n,u,o,i,l){let f=null;if(o&8&&e.report(0),e.getToken()===1077936155){r(e,t|32);let{tokenStart:c}=e;e.getToken()===537079927&&e.report(119);let g=11264|((o&64)===0?16896:0);t=(t|g)^g|(o&8?1024:0)|(o&16?2048:0)|(o&64?16384:0)|256|65536,f=U(e,t|16,n,2,0,1,0,1,c),((e.getToken()&1073741824)!==1073741824||(e.getToken()&4194304)===4194304)&&(f=F(e,t|16,n,f,0,0,c),f=I(e,t|16,n,0,0,c,f))}return M(e,t),e.finishNode({type:o&1024?"AccessorProperty":"PropertyDefinition",key:u,value:f,static:(o&32)>0,computed:(o&2)>0,...e.options.next?{decorators:i}:null},l)}function Gt(e,t,n,u,o,i){if(e.getToken()&143360||(t&1)===0&&e.getToken()===-2147483527)return ot(e,t,n,o,i);(e.getToken()&2097152)!==2097152&&e.report(30,B[e.getToken()&255]);let l=e.getToken()===69271571?X(e,t,n,u,1,0,1,o,i):j(e,t,n,u,1,0,1,o,i);return e.destructible&16&&e.report(50),e.destructible&32&&e.report(50),l}function ot(e,t,n,u,o){let i=e.getToken();t&1&&((i&537079808)===537079808?e.report(119):((i&36864)===36864||i===-2147483527)&&e.report(118)),(i&20480)===20480&&e.report(102),i===241771&&(t&1024&&e.report(32),t&2&&e.report(111)),(i&255)===73&&u&24&&e.report(100),i===209006&&(t&2048&&e.report(176),t&2&&e.report(110));let{tokenValue:l,tokenStart:f}=e;return r(e,t),n?.addVarOrBlock(t,l,u,o),e.finishNode({type:"Identifier",name:l},f)}function Re(e,t,n,u,o){if(u||y(e,t,8456256),e.getToken()===8390721){let c=lu(e,o),[g,d]=du(e,t,n,u);return e.finishNode({type:"JSXFragment",openingFragment:c,children:g,closingFragment:d},o)}e.getToken()===8457014&&e.report(30,B[e.getToken()&255]);let i=null,l=[],f=mu(e,t,n,u,o);if(!f.selfClosing){[l,i]=su(e,t,n,u);let c=Fe(i.name);Fe(f.name)!==c&&e.report(155,c)}return e.finishNode({type:"JSXElement",children:l,openingElement:f,closingElement:i},o)}function lu(e,t){return me(e),e.finishNode({type:"JSXOpeningFragment"},t)}function fu(e,t,n,u){y(e,t,8457014);let o=pt(e,t);return e.getToken()!==8390721&&e.report(25,B[65]),n?me(e):r(e,t),e.finishNode({type:"JSXClosingElement",name:o},u)}function cu(e,t,n,u){return y(e,t,8457014),e.getToken()!==8390721&&e.report(25,B[65]),n?me(e):r(e,t),e.finishNode({type:"JSXClosingFragment"},u)}function su(e,t,n,u){let o=[];for(;;){let i=au(e,t,n,u);if(i.type==="JSXClosingElement")return[o,i];o.push(i)}}function du(e,t,n,u){let o=[];for(;;){let i=gu(e,t,n,u);if(i.type==="JSXClosingFragment")return[o,i];o.push(i)}}function au(e,t,n,u){if(e.getToken()===137)return xt(e,t);if(e.getToken()===2162700)return lt(e,t,n,1,0);if(e.getToken()===8456256){let{tokenStart:o}=e;return r(e,t),e.getToken()===8457014?fu(e,t,u,o):Re(e,t,n,1,o)}e.report(0)}function gu(e,t,n,u){if(e.getToken()===137)return xt(e,t);if(e.getToken()===2162700)return lt(e,t,n,1,0);if(e.getToken()===8456256){let{tokenStart:o}=e;return r(e,t),e.getToken()===8457014?cu(e,t,u,o):Re(e,t,n,1,o)}e.report(0)}function xt(e,t){let n=e.tokenStart;r(e,t);let u={type:"JSXText",value:e.tokenValue};return e.options.raw&&(u.raw=e.tokenRaw),e.finishNode(u,n)}function mu(e,t,n,u,o){(e.getToken()&143360)!==143360&&(e.getToken()&4096)!==4096&&e.report(0);let i=pt(e,t),l=hu(e,t,n),f=e.getToken()===8457014;return f&&y(e,t,8457014),e.getToken()!==8390721&&e.report(25,B[65]),u||!f?me(e):r(e,t),e.finishNode({type:"JSXOpeningElement",name:i,attributes:l,selfClosing:f},o)}function pt(e,t){let{tokenStart:n}=e;Je(e);let u=Me(e,t);if(e.getToken()===21)return e2(e,t,u,n);for(;C(e,t,67108877);)Je(e),u=ru(e,t,u,n);return u}function ru(e,t,n,u){let o=Me(e,t);return e.finishNode({type:"JSXMemberExpression",object:n,property:o},u)}function hu(e,t,n){let u=[];for(;e.getToken()!==8457014&&e.getToken()!==8390721&&e.getToken()!==1048576;)u.push(yu(e,t,n));return u}function ku(e,t,n){let u=e.tokenStart;r(e,t),y(e,t,14);let o=L(e,t,n,1,0,e.tokenStart);return y(e,t,1074790415),e.finishNode({type:"JSXSpreadAttribute",argument:o},u)}function yu(e,t,n){let{tokenStart:u}=e;if(e.getToken()===2162700)return ku(e,t,n);Je(e);let o=null,i=Me(e,t);if(e.getToken()===21&&(i=e2(e,t,i,u)),e.getToken()===1077936155)switch(cn(e,t)){case 134283267:o=O(e,t);break;case 8456256:o=Re(e,t,n,0,e.tokenStart);break;case 2162700:o=lt(e,t,n,0,1);break;default:e.report(154)}return e.finishNode({type:"JSXAttribute",value:o,name:i},u)}function e2(e,t,n,u){y(e,t,21);let o=Me(e,t);return e.finishNode({type:"JSXNamespacedName",namespace:n,name:o},u)}function lt(e,t,n,u,o){let{tokenStart:i}=e;r(e,t|32);let{tokenStart:l}=e;if(e.getToken()===14)return Au(e,t,n,i);let f=null;return e.getToken()===1074790415?(o&&e.report(157),f=Tu(e,{index:e.startIndex,line:e.startLine,column:e.startColumn})):f=L(e,t,n,1,0,l),e.getToken()!==1074790415&&e.report(25,B[15]),u?me(e):r(e,t),e.finishNode({type:"JSXExpressionContainer",expression:f},i)}function Au(e,t,n,u){y(e,t,14);let o=L(e,t,n,1,0,e.tokenStart);return y(e,t,1074790415),e.finishNode({type:"JSXSpreadChild",expression:o},u)}function Tu(e,t){return e.finishNode({type:"JSXEmptyExpression"},t,e.tokenStart)}function Me(e,t){let n=e.tokenStart;e.getToken()&143360||e.report(30,B[e.getToken()&255]);let{tokenValue:u}=e;return r(e,t),e.finishNode({type:"JSXIdentifier",name:u},n)}function t2(e,t){return mn(e,t)}function bu(e,t){let n=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(n,t)}var n2=bu;function u2(e){let t=[];for(let n of e)try{return n()}catch(u){t.push(u)}throw Object.assign(new Error("All combinations failed"),{errors:t})}var Du=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let n=this[t];if(e(n,t,this))return n}},Cu=Q("findLast",function(){if(Array.isArray(this))return Du}),i2=Cu;function Eu(e){return this[e<0?this.length+e:e]}var wu=Q("at",function(){if(Array.isArray(this)||typeof this=="string")return Eu}),o2=wu;function H(e){let t=e.range?.[0]??e.start,n=(e.declaration?.decorators??e.decorators)?.[0];return n?Math.min(H(n),t):t}function J(e){return e.range?.[1]??e.end}function Su(e){let t=new Set(e);return n=>t.has(n?.type)}var le=Su;var Bu=le(["Block","CommentBlock","MultiLine"]),fe=Bu;var Fu=le(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),l2=Fu;var ft=new WeakMap;function Nu(e){return ft.has(e)||ft.set(e,fe(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)),ft.get(e)}var f2=Nu;function Lu(e){if(!fe(e))return!1;let t=`*${e.value}*`.split(` +`);return t.length>1&&t.every(n=>n.trimStart()[0]==="*")}var ct=new WeakMap;function Iu(e){return ct.has(e)||ct.set(e,Lu(e)),ct.get(e)}var st=Iu;function qu(e){if(e.length<2)return;let t;for(let n=e.length-1;n>=0;n--){let u=e[n];if(t&&J(u)===H(t)&&st(u)&&st(t)&&(e.splice(n+1,1),u.value+="*//*"+t.value,u.range=[H(u),J(t)]),!l2(u)&&!fe(u))throw new TypeError(`Unknown comment type: "${u.type}".`);t=u}}var c2=qu;function Pu(e){return e!==null&&typeof e=="object"}var s2=Pu;var ye=null;function Ae(e){if(ye!==null&&typeof ye.property){let t=ye;return ye=Ae.prototype=null,t}return ye=Ae.prototype=e??Object.create(null),new Ae}var Ou=10;for(let e=0;e<=Ou;e++)Ae();function dt(e){return Ae(e)}function Vu(e,t="type"){dt(e);function n(u){let o=u[t],i=e[o];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${o}'.`),{node:u});return i}return n}var d2=Vu;var s=[["decorators","key","typeAnnotation","value"],[],["elementType"],["expression"],["expression","typeAnnotation"],["left","right"],["argument"],["directives","body"],["label"],["callee","typeArguments","arguments"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body","superTypeParameters"],["id","typeParameters"],["decorators","key","typeParameters","params","returnType","body"],["decorators","variance","key","typeAnnotation","value"],["name","typeAnnotation"],["test","consequent","alternate"],["checkType","extendsType","trueType","falseType"],["value"],["id","body"],["declaration","specifiers","source","attributes"],["id"],["id","typeParameters","extends","body"],["typeAnnotation"],["id","typeParameters","right"],["body","test"],["members"],["id","init"],["exported"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["id","params","body","typeParameters","returnType"],["key","value"],["local"],["objectType","indexType"],["typeParameter"],["types"],["node"],["object","property"],["argument","cases"],["pattern","body","guard"],["literal"],["decorators","key","value"],["expressions"],["qualification","id"],["decorators","key","typeAnnotation"],["typeParameters","params","returnType"],["expression","typeArguments"],["params"],["parameterName","typeAnnotation"]],a2={AccessorProperty:s[0],AnyTypeAnnotation:s[1],ArgumentPlaceholder:s[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:s[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:s[3],AsExpression:s[4],AssignmentExpression:s[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:s[6],BigIntLiteral:s[1],BigIntLiteralTypeAnnotation:s[1],BigIntTypeAnnotation:s[1],BinaryExpression:s[5],BindExpression:["object","callee"],BlockStatement:s[7],BooleanLiteral:s[1],BooleanLiteralTypeAnnotation:s[1],BooleanTypeAnnotation:s[1],BreakStatement:s[8],CallExpression:s[9],CatchClause:["param","body"],ChainExpression:s[3],ClassAccessorProperty:s[0],ClassBody:s[10],ClassDeclaration:s[11],ClassExpression:s[11],ClassImplements:s[12],ClassMethod:s[13],ClassPrivateMethod:s[13],ClassPrivateProperty:s[14],ClassProperty:s[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:s[15],ConditionalExpression:s[16],ConditionalTypeAnnotation:s[17],ContinueStatement:s[8],DebuggerStatement:s[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:s[18],DeclareEnum:s[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:s[20],DeclareFunction:["id","predicate"],DeclareHook:s[21],DeclareInterface:s[22],DeclareModule:s[19],DeclareModuleExports:s[23],DeclareNamespace:s[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:s[24],DeclareVariable:s[21],Decorator:s[3],Directive:s[18],DirectiveLiteral:s[1],DoExpression:s[10],DoWhileStatement:s[25],EmptyStatement:s[1],EmptyTypeAnnotation:s[1],EnumBigIntBody:s[26],EnumBigIntMember:s[27],EnumBooleanBody:s[26],EnumBooleanMember:s[27],EnumDeclaration:s[19],EnumDefaultedMember:s[21],EnumNumberBody:s[26],EnumNumberMember:s[27],EnumStringBody:s[26],EnumStringMember:s[27],EnumSymbolBody:s[26],ExistsTypeAnnotation:s[1],ExperimentalRestProperty:s[6],ExperimentalSpreadProperty:s[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:s[28],ExportNamedDeclaration:s[20],ExportNamespaceSpecifier:s[28],ExportSpecifier:["local","exported"],ExpressionStatement:s[3],File:["program"],ForInStatement:s[29],ForOfStatement:s[29],ForStatement:["init","test","update","body"],FunctionDeclaration:s[30],FunctionExpression:s[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:s[15],GenericTypeAnnotation:s[12],HookDeclaration:s[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:s[16],ImportAttribute:s[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:s[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:s[33],ImportSpecifier:["imported","local"],IndexedAccessType:s[34],InferredPredicate:s[1],InferTypeAnnotation:s[35],InterfaceDeclaration:s[22],InterfaceExtends:s[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:s[1],IntersectionTypeAnnotation:s[36],JsExpressionRoot:s[37],JsonRoot:s[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:s[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:s[1],JSXExpressionContainer:s[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:s[1],JSXMemberExpression:s[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:s[1],JSXSpreadAttribute:s[6],JSXSpreadChild:s[3],JSXText:s[1],KeyofTypeAnnotation:s[6],LabeledStatement:["label","body"],Literal:s[1],LogicalExpression:s[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:s[21],MatchExpression:s[39],MatchExpressionCase:s[40],MatchIdentifierPattern:s[21],MatchLiteralPattern:s[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:s[6],MatchStatement:s[39],MatchStatementCase:s[40],MatchUnaryPattern:s[6],MatchWildcardPattern:s[1],MemberExpression:s[38],MetaProperty:["meta","property"],MethodDefinition:s[42],MixedTypeAnnotation:s[1],ModuleExpression:s[10],NeverTypeAnnotation:s[1],NewExpression:s[9],NGChainedExpression:s[43],NGEmptyExpression:s[1],NGMicrosyntax:s[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:s[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:s[32],NGPipeExpression:["left","right","arguments"],NGRoot:s[37],NullableTypeAnnotation:s[23],NullLiteral:s[1],NullLiteralTypeAnnotation:s[1],NumberLiteralTypeAnnotation:s[1],NumberTypeAnnotation:s[1],NumericLiteral:s[1],ObjectExpression:["properties"],ObjectMethod:s[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:s[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:s[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:s[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:s[9],OptionalIndexedAccessType:s[34],OptionalMemberExpression:s[38],ParenthesizedExpression:s[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:s[1],PipelineTopicExpression:s[3],Placeholder:s[1],PrivateIdentifier:s[1],PrivateName:s[21],Program:s[7],Property:s[32],PropertyDefinition:s[14],QualifiedTypeIdentifier:s[44],QualifiedTypeofIdentifier:s[44],RegExpLiteral:s[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:s[6],SatisfiesExpression:s[4],SequenceExpression:s[43],SpreadElement:s[6],StaticBlock:s[10],StringLiteral:s[1],StringLiteralTypeAnnotation:s[1],StringTypeAnnotation:s[1],Super:s[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:s[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:s[1],TemplateLiteral:["quasis","expressions"],ThisExpression:s[1],ThisTypeAnnotation:s[1],ThrowStatement:s[6],TopicReference:s[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:s[45],TSAbstractKeyword:s[1],TSAbstractMethodDefinition:s[32],TSAbstractPropertyDefinition:s[45],TSAnyKeyword:s[1],TSArrayType:s[2],TSAsExpression:s[4],TSAsyncKeyword:s[1],TSBigIntKeyword:s[1],TSBooleanKeyword:s[1],TSCallSignatureDeclaration:s[46],TSClassImplements:s[47],TSConditionalType:s[17],TSConstructorType:s[46],TSConstructSignatureDeclaration:s[46],TSDeclareFunction:s[31],TSDeclareKeyword:s[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:s[26],TSEnumDeclaration:s[19],TSEnumMember:["id","initializer"],TSExportAssignment:s[3],TSExportKeyword:s[1],TSExternalModuleReference:s[3],TSFunctionType:s[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:s[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:s[35],TSInstantiationExpression:s[47],TSInterfaceBody:s[10],TSInterfaceDeclaration:s[22],TSInterfaceHeritage:s[47],TSIntersectionType:s[36],TSIntrinsicKeyword:s[1],TSJSDocAllType:s[1],TSJSDocNonNullableType:s[23],TSJSDocNullableType:s[23],TSJSDocUnknownType:s[1],TSLiteralType:s[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:s[10],TSModuleDeclaration:s[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:s[21],TSNeverKeyword:s[1],TSNonNullExpression:s[3],TSNullKeyword:s[1],TSNumberKeyword:s[1],TSObjectKeyword:s[1],TSOptionalType:s[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:s[23],TSPrivateKeyword:s[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:s[1],TSPublicKeyword:s[1],TSQualifiedName:s[5],TSReadonlyKeyword:s[1],TSRestType:s[23],TSSatisfiesExpression:s[4],TSStaticKeyword:s[1],TSStringKeyword:s[1],TSSymbolKeyword:s[1],TSTemplateLiteralType:["quasis","types"],TSThisType:s[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:s[23],TSTypeAssertion:s[4],TSTypeLiteral:s[26],TSTypeOperator:s[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:s[48],TSTypeParameterInstantiation:s[48],TSTypePredicate:s[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:s[1],TSUnionType:s[36],TSUnknownKeyword:s[1],TSVoidKeyword:s[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:s[24],TypeAnnotation:s[23],TypeCastExpression:s[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:s[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:s[48],TypeParameterInstantiation:s[48],TypePredicate:s[49],UnaryExpression:s[6],UndefinedTypeAnnotation:s[1],UnionTypeAnnotation:s[36],UnknownTypeAnnotation:s[1],UpdateExpression:s[6],V8IntrinsicIdentifier:s[1],VariableDeclaration:["declarations"],VariableDeclarator:s[27],Variance:s[1],VoidPattern:s[1],VoidTypeAnnotation:s[1],WhileStatement:s[25],WithStatement:["object","body"],YieldExpression:s[6]};var Ru=d2(a2),g2=Ru;function ve(e,t){if(!s2(e))return e;if(Array.isArray(e)){for(let u=0;uA<=d);a=h&&u.slice(h,d).trim().length===0}return a?void 0:(g.extra={...g.extra,parenthesized:!0},g)}case"TemplateLiteral":if(c.expressions.length!==c.quasis.length-1)throw new Error("Malformed template literal.");break;case"TemplateElement":if(n==="flow"||n==="hermes"||n==="espree"||n==="typescript"||i){let g=H(c)+1,d=J(c)-(c.tail?1:2);c.range=[g,d]}break;case"VariableDeclaration":{let g=o2(0,c.declarations,-1);g?.init&&u[J(g)]!==";"&&(c.range=[H(c),J(g)]);break}case"TSParenthesizedType":return c.typeAnnotation;case"TopicReference":e.extra={...e.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(c.types.length===1)return c.types[0];break;case"ImportExpression":n==="hermes"&&c.attributes&&!c.options&&(c.options=c.attributes);break}},onLeave(c){switch(c.type){case"LogicalExpression":if(r2(c))return at(c);break;case"TSImportType":!c.source&&c.argument.type==="TSLiteralType"&&(c.source=c.argument.literal,delete c.argument);break}}}),e}function r2(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function at(e){return r2(e)?at({type:"LogicalExpression",operator:e.operator,left:at({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[H(e.left),J(e.right.left)]}),right:e.right.right,range:[H(e),J(e)]}):e}var h2=Mu;var vu=/\*\/$/,Uu=/^\/\*\*?/,Ju=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,_u=/(^|\s+)\/\/([^\n\r]*)/g,k2=/^(\r?\n)+/,Xu=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,y2=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,ju=/(\r?\n|^) *\* ?/g,Hu=[];function A2(e){let t=e.match(Ju);return t?t[0].trimStart():""}function T2(e){e=p(0,e.replace(Uu,"").replace(vu,""),ju,"$1");let n="";for(;n!==e;)n=e,e=p(0,e,Xu,` +$1 $2 +`);e=e.replace(k2,"").trimEnd();let u=Object.create(null),o=p(0,e,y2,"").replace(k2,"").trimEnd(),i;for(;i=y2.exec(e);){let l=p(0,i[2],_u,"");if(typeof u[i[1]]=="string"||Array.isArray(u[i[1]])){let f=u[i[1]];u[i[1]]=[...Hu,...Array.isArray(f)?f:[f],l]}else u[i[1]]=l}return{comments:o,pragmas:u}}var b2=["noformat","noprettier"],D2=["format","prettier"];function zu(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` +`);return t===-1?e:e.slice(0,t)}var C2=zu;function E2(e){let t=C2(e);t&&(e=e.slice(t.length+1));let n=A2(e),{pragmas:u,comments:o}=T2(n);return{shebang:t,text:e,pragmas:u,comments:o}}function w2(e){let{pragmas:t}=E2(e);return D2.some(n=>Object.prototype.hasOwnProperty.call(t,n))}function S2(e){let{pragmas:t}=E2(e);return b2.some(n=>Object.prototype.hasOwnProperty.call(t,n))}function Ku(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:w2,hasIgnorePragma:S2,locStart:H,locEnd:J,...e}}var B2=Ku;var F2="module";var N2="commonjs",L2=[F2,N2];function I2(e){if(typeof e=="string"){if(e=e.toLowerCase(),/\.(?:mjs|mts)$/iu.test(e))return F2;if(/\.(?:cjs|cts)$/iu.test(e))return N2}}var $u={next:!0,ranges:!0,webcompat:!0,loc:!1,raw:!0,directives:!0,impliedStrict:!1,preserveParens:!0,lexical:!1,jsx:!0,validateRegex:!1};function Wu(e,t){let n=[],u=t2(e,{...$u,sourceType:t,onComment:n});return u.comments=n,u}function Yu(e){let{description:t,loc:n}=e;return n?n2(t,{loc:{start:{line:n.start.line,column:n.start.column+1},end:{line:n.end.line,column:n.end.column+1}},cause:e}):e}function Qu(e,t){let n=I2(t?.filepath),u=(n?[n]:L2).map(i=>()=>Wu(e,i)),o;try{o=u2(u)}catch({errors:[i]}){throw Yu(i)}return h2(o,{parser:"meriyah",text:e})}var Zu=B2(Qu);return R2(Gu);}); \ No newline at end of file diff --git a/node_modules/prettier/plugins/meriyah.mjs b/node_modules/prettier/plugins/meriyah.mjs new file mode 100644 index 0000000000000000000000000000000000000000..11c501bdce774f53328dd5f23a234dd243a1ee87 --- /dev/null +++ b/node_modules/prettier/plugins/meriyah.mjs @@ -0,0 +1,5 @@ +var q2=Object.defineProperty;var gt=(e,t)=>{for(var n in t)q2(e,n,{get:t[n],enumerable:!0})};var I2={};gt(I2,{parsers:()=>at});var at={};gt(at,{meriyah:()=>$u});var Q=(e,t)=>(n,u,...o)=>n|1&&u==null?void 0:(t.call(u)??u[e]).apply(u,o);var P2=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},O2=Q("replaceAll",function(){if(typeof this=="string")return P2}),p=O2;var V2=55296,R2=56319,M2=56320,v2=String.prototype.isWellFormed??function(){let{length:e}=this;for(let t=0;tR2||++t>=e||(this.charCodeAt(t)&64512)!==M2))return!1}return!0},U2=Q("isWellFormed",function(){if(typeof this=="string")return v2}),mt=U2;var Dt=((e,t)=>{let n=new Uint32Array(69632),u=0,o=0;for(;u<2597;){let i=e[u++];if(i<0)o-=i;else{let l=e[u++];i&2&&(l=t[l]),i&1?n.fill(l,o,o+=e[u++]):n[o++]=l}}return n})([-1,2,26,2,27,2,5,-1,0,77595648,3,44,2,3,0,14,2,61,2,62,3,0,3,0,3168796671,0,4294956992,2,1,2,0,2,41,3,0,4,0,4294966523,3,0,4,2,16,2,63,2,0,0,4294836735,0,3221225471,0,4294901942,2,64,0,134152192,3,0,2,0,4294951935,3,0,2,0,2683305983,0,2684354047,2,17,2,0,0,4294961151,3,0,2,2,19,2,0,0,608174079,2,0,2,58,2,7,2,6,0,4286643967,3,0,2,2,1,3,0,3,0,4294901711,2,40,0,4089839103,0,2961209759,0,1342439375,0,4294543342,0,3547201023,0,1577204103,0,4194240,0,4294688750,2,2,0,80831,0,4261478351,0,4294549486,2,2,0,2967484831,0,196559,0,3594373100,0,3288319768,0,8469959,0,65472,2,3,0,4093640191,0,929054175,0,65487,0,4294828015,0,4092591615,0,1885355487,0,982991,2,3,2,0,0,2163244511,0,4227923919,0,4236247022,2,69,0,4284449919,0,851904,2,4,2,12,0,67076095,-1,2,70,0,1073741743,0,4093607775,-1,0,50331649,0,3265266687,2,33,0,4294844415,0,4278190047,2,20,2,137,-1,3,0,2,2,23,2,0,2,9,2,0,2,15,2,22,3,0,10,2,72,2,0,2,73,2,74,2,75,2,0,2,76,2,0,2,11,0,261632,2,25,3,0,2,2,13,2,4,3,0,18,2,77,2,5,3,0,2,2,78,0,2151677951,2,29,2,10,0,909311,3,0,2,0,814743551,2,48,0,67090432,3,0,2,2,42,2,0,2,6,2,0,2,30,2,8,0,268374015,2,108,2,51,2,0,2,79,0,134153215,-1,2,7,2,0,2,8,0,2684354559,0,67044351,0,3221160064,2,9,2,18,3,0,2,2,53,0,1046528,3,0,3,2,10,2,0,2,127,0,4294960127,2,9,2,6,2,11,0,4294377472,2,12,3,0,16,2,13,2,0,2,80,2,9,2,0,2,81,2,82,2,83,0,12288,2,54,0,1048577,2,84,2,14,-1,2,14,0,131042,2,85,2,86,2,87,2,0,2,34,-83,3,0,7,0,1046559,2,0,2,15,2,0,0,2147516671,2,21,3,88,2,2,0,-16,2,89,0,524222462,2,4,2,0,0,4269801471,2,4,3,0,2,2,28,2,16,3,0,2,2,49,2,0,-1,2,17,-16,3,0,206,-2,3,0,692,2,71,-1,2,17,2,9,3,0,8,2,91,2,18,2,0,0,3220242431,3,0,3,2,19,2,92,2,93,3,0,2,2,94,2,0,2,20,2,95,2,0,0,4351,2,0,2,10,3,0,2,0,67043391,0,3909091327,2,0,2,24,2,10,2,20,3,0,2,0,67076097,2,8,2,0,2,21,0,67059711,0,4236247039,3,0,2,0,939524103,0,8191999,2,99,2,100,2,22,2,23,3,0,3,0,67057663,3,0,349,2,101,2,102,2,7,-264,3,0,11,2,24,3,0,2,2,32,-1,0,3774349439,2,103,2,104,3,0,2,2,19,2,105,3,0,10,2,9,2,17,2,0,2,46,2,0,2,31,2,106,2,25,0,1638399,0,57344,2,107,3,0,3,2,20,2,26,2,27,2,5,2,28,2,0,2,8,2,109,-1,2,110,2,111,2,112,-1,3,0,3,2,12,-2,2,0,2,29,-3,0,536870912,-4,2,20,2,0,2,36,0,1,2,0,2,65,2,6,2,12,2,9,2,0,2,113,-1,3,0,4,2,9,2,23,2,114,2,7,2,0,2,115,2,0,2,116,2,117,2,118,2,0,2,10,3,0,9,2,21,2,30,2,31,2,119,2,120,-2,2,121,2,122,2,30,2,21,2,8,-2,2,123,2,30,3,32,2,-1,2,0,2,39,-2,0,4277137519,0,2269118463,-1,3,20,2,-1,2,33,2,38,2,0,3,30,2,2,35,2,19,-3,3,0,2,2,34,-1,2,0,2,35,2,0,2,35,2,0,2,47,2,0,0,4294950463,2,37,-7,2,0,0,203775,2,125,0,4227858432,2,20,2,43,2,36,2,17,2,37,2,17,2,124,2,21,3,0,2,2,38,0,2151677888,2,0,2,12,0,4294901764,2,145,2,0,2,56,2,55,0,5242879,3,0,2,0,402644511,-1,2,128,2,39,0,3,-1,2,129,2,130,2,0,0,67045375,2,40,0,4226678271,0,3766565279,0,2039759,2,132,2,41,0,1046437,0,6,3,0,2,0,3288270847,0,3,3,0,2,0,67043519,-5,2,0,0,4282384383,0,1056964609,-1,3,0,2,0,67043345,-1,2,0,2,42,2,23,2,50,2,11,2,59,2,38,-5,2,0,2,12,-3,3,0,2,0,2147484671,2,133,0,4190109695,2,52,-2,2,134,0,4244635647,0,27,2,0,2,8,2,43,2,0,2,66,2,17,2,0,2,42,-3,2,31,-2,2,0,2,45,2,57,2,44,2,45,2,135,2,46,0,8388351,-2,2,136,0,3028287487,2,47,2,138,0,33259519,2,23,2,7,2,48,-7,2,21,0,4294836223,0,3355443199,0,134152199,-2,2,67,-2,3,0,28,2,32,-3,3,0,3,2,49,3,0,6,2,50,-81,2,17,3,0,2,2,36,3,0,33,2,25,2,30,3,0,124,2,12,3,0,18,2,38,-213,2,0,2,32,-54,3,0,17,2,42,2,8,2,23,2,0,2,8,2,23,2,51,2,0,2,21,2,52,2,139,2,25,-13,2,0,2,53,-6,3,0,2,-1,2,140,2,10,-1,3,0,2,0,4294936575,2,0,0,4294934783,-2,0,8323099,3,0,230,2,30,2,54,2,8,-3,3,0,3,2,35,-271,2,141,3,0,9,2,142,2,143,2,55,3,0,11,2,7,-72,3,0,3,2,144,0,1677656575,-130,2,26,-16,2,0,2,24,2,38,-16,0,4161266656,0,4071,0,15360,-4,0,28,-13,3,0,2,2,56,2,0,2,146,2,147,2,60,2,0,2,148,2,149,2,150,3,0,10,2,151,2,152,2,22,3,56,2,3,153,2,3,57,2,0,4294954999,2,0,-16,2,0,2,90,2,0,0,2105343,0,4160749584,0,65534,-34,2,8,2,155,-6,0,4194303871,0,4294903771,2,0,2,58,2,98,-3,2,0,0,1073684479,0,17407,-9,2,17,2,49,2,0,2,32,-14,2,17,2,32,-6,2,17,2,12,-6,2,8,0,3225419775,-7,2,156,3,0,6,0,8323103,-1,3,0,2,2,59,-37,2,60,2,157,2,158,2,159,2,160,2,161,-105,2,26,-32,3,0,1335,-1,3,0,136,2,9,3,0,180,2,24,3,0,233,2,162,3,0,18,2,9,-77,3,0,16,2,9,-47,3,0,154,2,6,3,0,264,2,32,-22116,3,0,7,2,25,-6130,3,5,2,-1,0,69207040,3,44,2,3,0,14,2,61,2,62,-3,0,3168731136,0,4294956864,2,1,2,0,2,41,3,0,4,0,4294966275,3,0,4,2,16,2,63,2,0,2,34,-1,2,17,2,64,-1,2,0,0,2047,0,4294885376,3,0,2,0,3145727,0,2617294944,0,4294770688,2,25,2,65,3,0,2,0,131135,2,96,0,70256639,0,71303167,0,272,2,42,2,6,0,65279,2,0,2,48,-1,2,97,2,66,0,4278255616,0,4294836227,0,4294549473,0,600178175,0,2952806400,0,268632067,0,4294543328,0,57540095,0,1577058304,0,1835008,0,4294688736,2,68,2,67,0,33554435,2,131,2,68,0,2952790016,0,131075,0,3594373096,0,67094296,2,67,-1,0,4294828e3,0,603979263,0,922746880,0,3,0,4294828001,0,602930687,0,1879048192,0,393219,0,4294828016,0,671088639,0,2154840064,0,4227858435,0,4236247008,2,69,2,38,-1,2,4,0,917503,2,38,-1,2,70,0,537788335,0,4026531935,-1,0,1,-1,2,33,2,71,0,7936,-3,2,0,0,2147485695,0,1010761728,0,4292984930,0,16387,2,0,2,15,2,22,3,0,10,2,72,2,0,2,73,2,74,2,75,2,0,2,76,2,0,2,12,-1,2,25,3,0,2,2,13,2,4,3,0,18,2,77,2,5,3,0,2,2,78,0,2147745791,3,19,2,0,122879,2,0,2,10,0,276824064,-2,3,0,2,2,42,2,0,0,4294903295,2,0,2,30,2,8,-1,2,17,2,51,2,0,2,79,2,48,-1,2,21,2,0,2,29,-2,0,128,-2,2,28,2,10,0,8160,-1,2,126,0,4227907585,2,0,2,37,2,0,2,50,0,4227915776,2,9,2,6,2,11,-1,0,74440192,3,0,6,-2,3,0,8,2,13,2,0,2,80,2,9,2,0,2,81,2,82,2,83,-3,2,84,2,14,-3,2,85,2,86,2,87,2,0,2,34,-83,3,0,7,0,817183,2,0,2,15,2,0,0,33023,2,21,3,88,2,-17,2,89,0,524157950,2,4,2,0,2,90,2,4,2,0,2,22,2,28,2,16,3,0,2,2,49,2,0,-1,2,17,-16,3,0,206,-2,3,0,692,2,71,-1,2,17,2,9,3,0,8,2,91,0,3072,2,0,0,2147516415,2,9,3,0,2,2,25,2,92,2,93,3,0,2,2,94,2,0,2,20,2,95,0,4294965179,0,7,2,0,2,10,2,93,2,10,-1,0,1761345536,2,96,0,4294901823,2,38,2,20,2,97,2,35,2,98,0,2080440287,2,0,2,34,2,154,0,3296722943,2,0,0,1046675455,0,939524101,0,1837055,2,99,2,100,2,22,2,23,3,0,3,0,7,3,0,349,2,101,2,102,2,7,-264,3,0,11,2,24,3,0,2,2,32,-1,0,2700607615,2,103,2,104,3,0,2,2,19,2,105,3,0,10,2,9,2,17,2,0,2,46,2,0,2,31,2,106,-3,2,107,3,0,3,2,20,-1,3,5,2,2,108,2,0,2,8,2,109,-1,2,110,2,111,2,112,-1,3,0,3,2,12,-2,2,0,2,29,-8,2,20,2,0,2,36,-1,2,0,2,65,2,6,2,30,2,9,2,0,2,113,-1,3,0,4,2,9,2,17,2,114,2,7,2,0,2,115,2,0,2,116,2,117,2,118,2,0,2,10,3,0,9,2,21,2,30,2,31,2,119,2,120,-2,2,121,2,122,2,30,2,21,2,8,-2,2,123,2,30,3,32,2,-1,2,0,2,39,-2,0,4277075969,2,30,-1,3,20,2,-1,2,33,2,124,2,0,3,30,2,2,35,2,19,-3,3,0,2,2,34,-1,2,0,2,35,2,0,2,35,2,0,2,50,2,96,0,4294934591,2,37,-7,2,0,0,197631,2,125,-1,2,20,2,43,2,37,2,17,0,3,2,17,2,124,2,21,2,126,2,127,-1,0,2490368,2,126,2,25,2,17,2,34,2,126,2,38,0,4294901904,0,4718591,2,126,2,35,0,335544350,-1,2,128,0,2147487743,0,1,-1,2,129,2,130,2,8,-1,2,131,2,68,0,3758161920,0,3,2,132,0,12582911,0,655360,-1,2,0,2,29,0,2147485568,0,3,2,0,2,25,0,176,-5,2,0,2,49,0,251658240,-1,2,0,2,25,0,16,-1,2,0,0,16779263,-2,2,12,-1,2,38,-5,2,0,2,18,-3,3,0,2,2,54,2,133,0,2147549183,0,2,-2,2,134,2,36,0,10,0,4294965249,0,67633151,0,4026597376,2,0,0,536871935,2,17,2,0,2,42,-6,2,0,0,1,2,57,2,49,0,1,2,135,2,25,-3,2,136,2,36,2,137,2,138,0,16778239,2,17,2,7,-8,2,35,0,4294836212,2,10,-3,2,67,-2,3,0,28,2,32,-3,3,0,3,2,49,3,0,6,2,50,-81,2,17,3,0,2,2,36,3,0,33,2,25,0,126,3,0,124,2,12,3,0,18,2,38,-213,2,9,-55,3,0,17,2,42,2,8,2,17,2,0,2,8,2,17,2,58,2,0,2,25,2,50,2,139,2,25,-13,2,0,2,71,-6,3,0,2,-1,2,140,2,10,-1,3,0,2,0,67583,-1,2,105,-2,0,8126475,3,0,230,2,30,2,54,2,8,-3,3,0,3,2,35,-271,2,141,3,0,9,2,142,2,143,2,55,3,0,11,2,7,-72,3,0,3,2,144,2,145,-187,3,0,2,2,56,2,0,2,146,2,147,2,60,2,0,2,148,2,149,2,150,3,0,10,2,151,2,152,2,22,3,56,2,3,153,2,3,57,2,2,154,-57,2,8,2,155,-7,2,17,2,0,2,58,-4,2,0,0,1065361407,0,16384,-9,2,17,2,58,2,0,2,18,-14,2,17,2,18,-6,2,17,0,81919,-6,2,8,0,3223273399,-7,2,156,3,0,6,2,124,-1,3,0,2,0,2063,-37,2,60,2,157,2,158,2,159,2,160,2,161,-138,3,0,1335,-1,3,0,136,2,9,3,0,180,2,24,3,0,233,2,162,3,0,18,2,9,-77,3,0,16,2,9,-47,3,0,154,2,6,3,0,264,2,32,-28252],[4294967295,4294967291,4092460543,4294828031,4294967294,134217726,4294903807,268435455,2147483647,1073741823,1048575,3892314111,134217727,1061158911,536805376,4294910143,4294901759,4294901760,4095,262143,536870911,8388607,4160749567,4294902783,4294918143,65535,67043328,2281701374,4294967264,2097151,4194303,255,67108863,4294967039,511,524287,131071,63,127,3238002687,4294549487,4290772991,33554431,4294901888,4286578687,67043329,4294770687,67043583,1023,32767,15,2047999,67043343,67051519,2147483648,4294902e3,4292870143,4294966783,16383,67047423,4294967279,262083,20511,41943039,493567,4294959104,603979775,65536,602799615,805044223,4294965206,8191,1031749119,4294917631,2134769663,4286578493,4282253311,4294942719,33540095,4294905855,2868854591,1608515583,265232348,534519807,2147614720,1060109444,4093640016,17376,2139062143,224,4169138175,4294909951,4286578688,4294967292,4294965759,4294836224,4294966272,4294967280,32768,8289918,4294934399,4294901775,4294965375,1602223615,4294967259,4294443008,268369920,4292804608,4294967232,486341884,4294963199,3087007615,1073692671,4128527,4279238655,4294902015,4160684047,4290246655,469499899,4294967231,134086655,4294966591,2445279231,3670015,31,252,4294967288,16777215,4294705151,3221208447,4294902271,4294549472,4294921215,4285526655,4294966527,4294705152,4294966143,64,4294966719,3774873592,4194303999,1877934080,262151,2555904,536807423,67043839,3758096383,3959414372,3755993023,2080374783,4294835295,4294967103,4160749565,4294934527,4087,2016,2147446655,184024726,2862017156,1593309078,268434431,268434414,4294901761]),J2=e=>(Dt[(e>>>5)+0]>>>e&31&1)!==0,Ct=e=>(Dt[(e>>>5)+34816]>>>e&31&1)!==0,S=[0,0,0,0,0,0,0,0,0,0,1032,0,0,2056,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8192,0,3,0,0,8192,0,0,0,256,0,33024,0,0,242,242,114,114,114,114,114,114,594,594,0,0,16384,0,0,0,0,67,67,67,67,67,67,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,0,1,0,0,4099,0,71,71,71,71,71,71,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,16384,0,0,0,0],_2=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Et=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0];function Se(e){return e<=127?_2[e]>0:Ct(e)}function De(e){return e<=127?Et[e]>0:J2(e)||e===8204||e===8205}function m(e){return e.column++,e.currentChar=e.source.charCodeAt(++e.index)}function Ke(e){let t=e.currentChar;if((t&64512)!==55296)return 0;let n=e.source.charCodeAt(e.index+1);return(n&64512)!==56320?0:65536+((t&1023)<<10)+(n&1023)}function $e(e,t){e.currentChar=e.source.charCodeAt(++e.index),e.flags|=1,(t&4)===0&&(e.column=0,e.line++)}function te(e){e.flags|=1,e.currentChar=e.source.charCodeAt(++e.index),e.column=0,e.line++}function X2(e){return e===160||e===65279||e===133||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===8201||e===65519}function v(e){return e<65?e-48:e-65+10&15}function j2(e){switch(e){case 134283266:return"NumericLiteral";case 134283267:return"StringLiteral";case 86021:case 86022:return"BooleanLiteral";case 86023:return"NullLiteral";case 65540:return"RegularExpression";case 67174408:case 67174409:case 131:return"TemplateLiteral";default:return(e&143360)===143360?"Identifier":(e&4096)===4096?"Keyword":"Punctuator"}}var wt=["SingleLine","MultiLine","HTMLOpen","HTMLClose","HashbangComment"];function H2(e){let{source:t}=e;e.currentChar===35&&t.charCodeAt(e.index+1)===33&&(m(e),m(e),We(e,t,0,4,e.tokenStart))}function rt(e,t,n,u,o,i){return u&2&&e.report(0),We(e,t,n,o,i)}function We(e,t,n,u,o){let{index:i}=e;for(e.tokenIndex=e.index,e.tokenLine=e.line,e.tokenColumn=e.column;e.index'",49:"The left-hand side of the arrow can only be destructed through assignment",50:"The binding declaration is not destructible",51:"Async arrow can not be followed by new expression",52:"Classes may not have a static property named 'prototype'",53:"Class constructor may not be a %0",54:"Duplicate constructor method in class",55:"Invalid increment/decrement operand",56:"Invalid use of `new` keyword on an increment/decrement expression",57:"`=>` is an invalid assignment target",58:"Rest element may not have a trailing comma",59:"Missing initializer in %0 declaration",60:"'for-%0' loop head declarations can not have an initializer",61:"Invalid left-hand side in for-%0 loop: Must have a single binding",62:"Invalid shorthand property initializer",63:"Property name __proto__ appears more than once in object literal",64:"Let is disallowed as a lexically bound name",65:"Invalid use of '%0' inside new expression",66:"Illegal 'use strict' directive in function with non-simple parameter list",67:'Identifier "let" disallowed as left-hand side expression in strict mode',68:"Illegal continue statement",69:"Illegal break statement",70:"Cannot have `let[...]` as a var name in strict mode",71:"Invalid destructuring assignment target",72:"Rest parameter may not have a default initializer",73:"The rest argument must the be last parameter",74:"Invalid rest argument",76:"In strict mode code, functions can only be declared at top level or inside a block",77:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement",78:"Without web compatibility enabled functions can not be declared at top level, inside a block, or as the body of an if statement",79:"Class declaration can't appear in single-statement context",80:"Invalid left-hand side in for-%0",81:"Invalid assignment in for-%0",82:"for await (... of ...) is only valid in async functions and async generators",83:"The first token after the template expression should be a continuation of the template",85:"`let` declaration not allowed here and `let` cannot be a regular var name in strict mode",84:"`let \n [` is a restricted production at the start of a statement",86:"Catch clause requires exactly one parameter, not more (and no trailing comma)",87:"Catch clause parameter does not support default values",88:"Missing catch or finally after try",89:"More than one default clause in switch statement",90:"Illegal newline after throw",91:"Strict mode code may not include a with statement",92:"Illegal return statement",93:"The left hand side of the for-header binding declaration is not destructible",94:"new.target only allowed within functions or static blocks",96:"'#' not followed by identifier",102:"Invalid keyword",101:"Can not use 'let' as a class name",100:"'A lexical declaration can't define a 'let' binding",99:"Can not use `let` as variable name in strict mode",97:"'%0' may not be used as an identifier in this context",98:"Await is only valid in async functions",103:"The %0 keyword can only be used with the module goal",104:"Unicode codepoint must not be greater than 0x10FFFF",105:"%0 source must be string",106:"Only a identifier or string can be used to indicate alias",107:"Only '*' or '{...}' can be imported after default",108:"Trailing decorator may be followed by method",109:"Decorators can't be used with a constructor",110:"Can not use `await` as identifier in module or async func",111:"Can not use `await` as identifier in module",112:"HTML comments are only allowed with web compatibility (Annex B)",113:"The identifier 'let' must not be in expression position in strict mode",114:"Cannot assign to `eval` and `arguments` in strict mode",115:"The left-hand side of a for-of loop may not start with 'let'",116:"Block body arrows can not be immediately invoked without a group",117:"Block body arrows can not be immediately accessed without a group",118:"Unexpected strict mode reserved word",119:"Unexpected eval or arguments in strict mode",120:"Decorators must not be followed by a semicolon",121:"Calling delete on expression not allowed in strict mode",122:"Pattern can not have a tail",124:"Can not have a `yield` expression on the left side of a ternary",125:"An arrow function can not have a postfix update operator",126:"Invalid object literal key character after generator star",127:"Private fields can not be deleted",129:"Classes may not have a field called constructor",128:"Classes may not have a private element named constructor",130:"A class field initializer or static block may not contain arguments",131:"Generators can only be declared at the top level or inside a block",132:"Async methods are a restricted production and cannot have a newline following it",133:"Unexpected character after object literal property name",135:"Invalid key token",136:"Label '%0' has already been declared",137:"continue statement must be nested within an iteration statement",138:"Undefined label '%0'",139:"Trailing comma is disallowed inside import(...) arguments",140:"Invalid binding in JSON import",141:"import() requires exactly one argument",142:"Cannot use new with import(...)",143:"... is not allowed in import()",144:"Expected '=>'",145:"Duplicate binding '%0'",146:"Duplicate private identifier #%0",147:"Cannot export a duplicate name '%0'",150:"Duplicate %0 for-binding",148:"Exported binding '%0' needs to refer to a top-level declared variable",149:"Unexpected private field",153:"Numeric separators are not allowed at the end of numeric literals",152:"Only one underscore is allowed as numeric separator",154:"JSX value should be either an expression or a quoted JSX text",155:"Expected corresponding JSX closing tag for %0",156:"Adjacent JSX elements must be wrapped in an enclosing tag",157:"JSX attributes must only be assigned a non-empty 'expression'",158:"'%0' has already been declared",159:"'%0' shadowed a catch clause binding",160:"Dot property must be an identifier",161:"Encountered invalid input after spread/rest argument",162:"Catch without try",163:"Finally without try",164:"Expected corresponding closing tag for JSX fragment",165:"Coalescing and logical operators used together in the same expression must be disambiguated with parentheses",166:"Invalid tagged template on optional chain",167:"Invalid optional chain from super property",168:"Invalid optional chain from new expression",169:'Cannot use "import.meta" outside a module',170:"Leading decorators must be attached to a class declaration",171:"An export name cannot include a lone surrogate",172:"A string literal cannot be used as an exported binding without `from`",173:"Private fields can't be accessed on super",174:"The only valid meta property for import is 'import.meta'",175:"'import.meta' must not contain escaped characters",176:'cannot use "await" as identifier inside an async function',177:'cannot use "await" in static blocks'},q=class extends SyntaxError{start;end;range;loc;description;constructor(t,n,u,...o){let i=K2[u].replace(/%(\d+)/g,(f,c)=>o[c]),l="["+t.line+":"+t.column+"-"+n.line+":"+n.column+"]: "+i;super(l),this.start=t.index,this.end=n.index,this.range=[t.index,n.index],this.loc={start:{line:t.line,column:t.column},end:{line:n.line,column:n.column}},this.description=i}};function St(e,t){return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0}var B=["end of source","identifier","number","string","regular expression","false","true","null","template continuation","template tail","=>","(","{",".","...","}",")",";",",","[","]",":","?","'",'"',"++","--","=","<<=",">>=",">>>=","**=","+=","-=","*=","/=","%=","^=","|=","&=","||=","&&=","??=","typeof","delete","void","!","~","+","-","in","instanceof","*","%","/","**","&&","||","===","!==","==","!=","<=",">=","<",">","<<",">>",">>>","&","|","^","var","let","const","break","case","catch","class","continue","debugger","default","do","else","export","extends","finally","for","function","if","import","new","return","super","switch","this","throw","try","while","with","implements","interface","package","private","protected","public","static","yield","as","async","await","constructor","get","set","accessor","from","of","enum","eval","arguments","escaped keyword","escaped future reserved keyword","reserved if strict","#","BigIntLiteral","??","?.","WhiteSpace","Illegal","LineTerminator","PrivateField","Template","@","target","meta","LineFeed","Escaped","JSXText"],Bt={this:86111,function:86104,if:20569,return:20572,var:86088,else:20563,for:20567,new:86107,in:8673330,typeof:16863275,while:20578,case:20556,break:20555,try:20577,catch:20557,delete:16863276,throw:86112,switch:86110,continue:20559,default:20561,instanceof:8411187,do:20562,void:16863277,finally:20566,async:209005,await:209006,class:86094,const:86090,constructor:12399,debugger:20560,export:20564,extends:20565,false:86021,from:209011,get:209008,implements:36964,import:86106,interface:36965,let:241737,null:86023,of:471156,package:36966,private:36967,protected:36968,public:36969,set:209009,static:36970,super:86109,true:86022,with:20579,yield:241771,enum:86133,eval:537079926,as:77932,arguments:537079927,target:209029,meta:209030,accessor:12402};function ht(e,t,n){for(;Et[m(e)];);return e.tokenValue=e.source.slice(e.tokenIndex,e.index),e.currentChar!==92&&e.currentChar<=126?St(Bt,e.tokenValue)??208897:Ye(e,t,0,n)}function $2(e,t){let n=Ft(e);return Se(n)||e.report(5),e.tokenValue=String.fromCodePoint(n),Ye(e,t,1,S[n]&4)}function Ye(e,t,n,u){let o=e.index;for(;e.index0)De(l)||e.report(20,String.fromCodePoint(l)),e.currentChar=l,e.index++,e.column++;else if(!De(e.currentChar))break;m(e)}e.index<=e.end&&(e.tokenValue+=e.source.slice(o,e.index));let{length:i}=e.tokenValue;if(u&&i>=2&&i<=11){let l=St(Bt,e.tokenValue);return l===void 0?208897|(n?-2147483648:0):n?l===209006?(t&2050)===0?l|-2147483648:-2147483528:t&1?l===36970||(l&36864)===36864?-2147483527:(l&20480)===20480?t&262144&&(t&8)===0?l|-2147483648:-2147483528:-2147274630:t&262144&&(t&8)===0&&(l&20480)===20480?l|-2147483648:l===241771?t&262144?-2147274630:t&1024?-2147483528:l|-2147483648:l===209005?-2147274630:(l&36864)===36864?l|12288|-2147483648:-2147483528:l}return 208897|(n?-2147483648:0)}function W2(e){let t=m(e);if(t===92)return 130;let n=Ke(e);return n&&(t=n),Se(t)||e.report(96),130}function Ft(e){return e.source.charCodeAt(e.index+1)!==117&&e.report(5),e.currentChar=e.source.charCodeAt(e.index+=2),e.column+=2,Y2(e)}function Y2(e){let t=0,n=e.currentChar;if(n===123){let l=e.index-2;for(;S[m(e)]&64;)if(t=t<<4|v(e.currentChar),t>1114111)throw new q({index:l,line:e.line,column:e.column},e.currentLocation,104);if(e.currentChar!==125)throw new q({index:l,line:e.line,column:e.column},e.currentLocation,7);return m(e),t}(S[n]&64)===0&&e.report(7);let u=e.source.charCodeAt(e.index+1);(S[u]&64)===0&&e.report(7);let o=e.source.charCodeAt(e.index+2);(S[o]&64)===0&&e.report(7);let i=e.source.charCodeAt(e.index+3);return(S[i]&64)===0&&e.report(7),t=v(n)<<12|v(u)<<8|v(o)<<4|v(i),e.currentChar=e.source.charCodeAt(e.index+=4),e.column+=4,t}function kt(e,t,n){let u=e.currentChar,o=0,i=9,l=n&64?0:1,f=0,c=0;if(n&64)o="."+Te(e,u),u=e.currentChar,u===110&&e.report(12);else{if(u===48)if(u=m(e),(u|32)===120){for(n=136,u=m(e);S[u]&4160;){if(u===95){c||e.report(152),c=0,u=m(e);continue}c=1,o=o*16+v(u),f++,u=m(e)}(f===0||!c)&&e.report(f===0?21:153)}else if((u|32)===111){for(n=132,u=m(e);S[u]&4128;){if(u===95){c||e.report(152),c=0,u=m(e);continue}c=1,o=o*8+(u-48),f++,u=m(e)}(f===0||!c)&&e.report(f===0?0:153)}else if((u|32)===98){for(n=130,u=m(e);S[u]&4224;){if(u===95){c||e.report(152),c=0,u=m(e);continue}c=1,o=o*2+(u-48),f++,u=m(e)}(f===0||!c)&&e.report(f===0?0:153)}else if(S[u]&32)for(t&1&&e.report(1),n=1;S[u]&16;){if(S[u]&512){n=32,l=0;break}o=o*8+(u-48),u=m(e)}else S[u]&512?(t&1&&e.report(1),e.flags|=64,n=32):u===95&&e.report(0);if(n&48){if(l){for(;i>=0&&S[u]&4112;){if(u===95){if(u=m(e),u===95||n&32)throw new q(e.currentLocation,{index:e.index+1,line:e.line,column:e.column},152);c=1;continue}c=0,o=10*o+(u-48),u=m(e),--i}if(c)throw new q(e.currentLocation,{index:e.index+1,line:e.line,column:e.column},153);if(i>=0&&!Se(u)&&u!==46)return e.tokenValue=o,e.options.raw&&(e.tokenRaw=e.source.slice(e.tokenIndex,e.index)),134283266}o+=Te(e,u),u=e.currentChar,u===46&&(m(e)===95&&e.report(0),n=64,o+="."+Te(e,e.currentChar),u=e.currentChar)}}let g=e.index,d=0;if(u===110&&n&128)d=1,u=m(e);else if((u|32)===101){u=m(e),S[u]&256&&(u=m(e));let{index:a}=e;(S[u]&16)===0&&e.report(11),o+=e.source.substring(g,a)+Te(e,u),u=e.currentChar}return(e.index=e.source.length)return e.report(34)}let u=e.index-1,o=P.Empty,i=e.currentChar,{index:l}=e;for(;De(i);){switch(i){case 103:o&P.Global&&e.report(36,"g"),o|=P.Global;break;case 105:o&P.IgnoreCase&&e.report(36,"i"),o|=P.IgnoreCase;break;case 109:o&P.Multiline&&e.report(36,"m"),o|=P.Multiline;break;case 117:o&P.Unicode&&e.report(36,"u"),o&P.UnicodeSets&&e.report(36,"vu"),o|=P.Unicode;break;case 118:o&P.Unicode&&e.report(36,"uv"),o&P.UnicodeSets&&e.report(36,"v"),o|=P.UnicodeSets;break;case 121:o&P.Sticky&&e.report(36,"y"),o|=P.Sticky;break;case 115:o&P.DotAll&&e.report(36,"s"),o|=P.DotAll;break;case 100:o&P.Indices&&e.report(36,"d"),o|=P.Indices;break;default:e.report(35)}i=m(e)}let f=e.source.slice(l,e.index),c=e.source.slice(t,u);return e.tokenRegExp={pattern:c,flags:f},e.options.raw&&(e.tokenRaw=e.source.slice(e.tokenIndex,e.index)),e.tokenValue=Z2(e,c,f),65540}function Z2(e,t,n){try{return new RegExp(t,n)}catch{if(!e.options.validateRegex)return null;e.report(34)}}function G2(e,t,n){let{index:u}=e,o="",i=m(e),l=e.index;for(;(S[i]&8)===0;){if(i===n)return o+=e.source.slice(l,e.index),m(e),e.options.raw&&(e.tokenRaw=e.source.slice(u,e.index)),e.tokenValue=o,134283267;if((i&8)===8&&i===92){if(o+=e.source.slice(l,e.index),i=m(e),i<127||i===8232||i===8233){let f=Nt(e,t,i);f>=0?o+=String.fromCodePoint(f):Lt(e,f,0)}else o+=String.fromCodePoint(i);l=e.index+1}else(i===8232||i===8233)&&(e.column=-1,e.line++);e.index>=e.end&&e.report(16),i=m(e)}e.report(16)}function Nt(e,t,n,u=0){switch(n){case 98:return 8;case 102:return 12;case 114:return 13;case 110:return 10;case 116:return 9;case 118:return 11;case 13:if(e.index1114111)return-5;return e.currentChar<1||e.currentChar!==125?-4:i}else{if((S[o]&64)===0)return-4;let i=e.source.charCodeAt(e.index+1);if((S[i]&64)===0)return-4;let l=e.source.charCodeAt(e.index+2);if((S[l]&64)===0)return-4;let f=e.source.charCodeAt(e.index+3);return(S[f]&64)===0?-4:(e.index+=3,e.column+=3,e.currentChar=e.source.charCodeAt(e.index),v(o)<<12|v(i)<<8|v(l)<<4|v(f))}}case 56:case 57:if(u||!e.options.webcompat||t&1)return-3;e.flags|=4096;default:return n}}function Lt(e,t,n){switch(t){case-1:return;case-2:e.report(n?2:1);case-3:e.report(n?3:14);case-4:e.report(7);case-5:e.report(104)}}function It(e,t){let{index:n}=e,u=67174409,o="",i=m(e);for(;i!==96;){if(i===36&&e.source.charCodeAt(e.index+1)===123){m(e),u=67174408;break}else if(i===92)if(i=m(e),i>126)o+=String.fromCodePoint(i);else{let{index:l,line:f,column:c}=e,g=Nt(e,t|1,i,1);if(g>=0)o+=String.fromCodePoint(g);else if(g!==-1&&t&64){e.index=l,e.line=f,e.column=c,o=null,i=x2(e,i),i<0&&(u=67174408);break}else Lt(e,g,1)}else e.index=e.end&&e.report(17),i=m(e)}return m(e),e.tokenValue=o,e.tokenRaw=e.source.slice(n+1,e.index-(u===67174409?1:2)),u}function x2(e,t){for(;t!==96;){switch(t){case 36:{let n=e.index+1;if(n=e.end&&e.report(17),t=m(e)}return t}function p2(e,t){return e.index>=e.end&&e.report(0),e.index--,e.column--,It(e,t)}var en=[128,128,128,128,128,128,128,128,128,127,135,127,127,129,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,127,16842798,134283267,130,208897,8391477,8390213,134283267,67174411,16,8391476,25233968,18,25233969,67108877,8457014,134283266,134283266,134283266,134283266,134283266,134283266,134283266,134283266,134283266,134283266,21,1074790417,8456256,1077936155,8390721,22,132,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,69271571,136,20,8389959,208897,131,4096,4096,4096,4096,4096,4096,4096,208897,4096,208897,208897,4096,208897,4096,208897,4096,208897,4096,4096,4096,208897,4096,4096,208897,4096,4096,2162700,8389702,1074790415,16842799,128];function r(e,t){e.flags=(e.flags|1)^1,e.startIndex=e.index,e.startColumn=e.column,e.startLine=e.line,e.setToken(qt(e,t,0))}function qt(e,t,n){let u=e.index===0,{source:o}=e;for(;e.index=e.end)return 8391476;let f=e.currentChar;return f===61?(m(e),4194338):f!==42?8391476:m(e)!==61?8391735:(m(e),4194335)}case 8389959:return m(e)!==61?8389959:(m(e),4194341);case 25233968:{m(e);let f=e.currentChar;return f===43?(m(e),33619993):f===61?(m(e),4194336):25233968}case 25233969:{m(e);let f=e.currentChar;if(f===45){if(m(e),(n&1||u)&&e.currentChar===62){e.options.webcompat||e.report(112),m(e),n=rt(e,o,n,t,3,e.tokenStart);continue}return 33619994}return f===61?(m(e),4194337):25233969}case 8457014:{if(m(e),e.index=48&&f<=57)return kt(e,t,80);if(f===46){let c=e.index+1;if(c=48&&f<=57)))return m(e),67108990}return 22}}}else{if((i^8232)<=1){n=n&-5|1,te(e);continue}let l=Ke(e);if(l>0&&(i=l),Ct(i))return e.tokenValue="",Ye(e,t,0,0);if(X2(i)){m(e);continue}e.report(20,String.fromCodePoint(i))}}return 1048576}function M(e,t){(e.flags&1)===0&&(e.getToken()&1048576)!==1048576&&e.report(30,B[e.getToken()&255]),C(e,t,1074790417)||e.options.onInsertedSemicolon?.(e.startIndex)}function Pt(e,t,n,u){return t-n<13&&u==="use strict"&&((e.getToken()&1048576)===1048576||e.flags&1)?1:0}function Qe(e,t,n){return e.getToken()!==n?0:(r(e,t),1)}function C(e,t,n){return e.getToken()!==n?!1:(r(e,t),!0)}function y(e,t,n){e.getToken()!==n&&e.report(25,B[n&255]),r(e,t)}function K(e,t){switch(t.type){case"ArrayExpression":{t.type="ArrayPattern";let{elements:n}=t;for(let u=0,o=n.length;u=e.end&&e.report(16),n=m(e);return n!==t&&e.report(16),e.tokenValue=e.source.slice(u,e.index),m(e),e.options.raw&&(e.tokenRaw=e.source.slice(e.tokenIndex,e.index)),134283267}function me(e){if(e.startIndex=e.tokenIndex=e.index,e.startColumn=e.tokenColumn=e.column,e.startLine=e.tokenLine=e.line,e.index>=e.end){e.setToken(1048576);return}if(e.currentChar===60){m(e),e.setToken(8456256);return}if(e.currentChar===123){m(e),e.setToken(2162700);return}let t=0;for(;e.index1&&i&32&&e.getToken()&262144&&e.report(61,B[e.getToken()&255]),f}function At(e,t,n,u,o,i){let{tokenStart:l}=e,f=e.getToken(),c=null,g=Zt(e,t,n,u,o,i);if(e.getToken()===1077936155){if(r(e,t|32),c=L(e,t,u,1,0,e.tokenStart),(i&32||(f&2097152)===0)&&(e.getToken()===471156||e.getToken()===8673330&&(f&2097152||(o&4)===0||t&1)))throw new q(l,e.currentLocation,60,e.getToken()===471156?"of":"in")}else(o&16||(f&2097152)>0)&&(e.getToken()&262144)!==262144&&e.report(59,o&16?"const":"destructuring");return e.finishNode({type:"VariableDeclarator",id:g,init:c},l)}function Ln(e,t,n,u,o){let i=e.tokenStart;r(e,t);let l=((t&2048)>0||(t&2)>0&&(t&8)>0)&&C(e,t,209006);y(e,t|32,67174411),n=n?.createChildScope(1);let f=null,c=null,g=0,d=null,a=e.getToken()===86088||e.getToken()===241737||e.getToken()===86090,h,{tokenStart:A}=e,b=e.getToken();if(a)b===241737?(d=N(e,t),e.getToken()&2240512?(e.getToken()===8673330?t&1&&e.report(67):d=e.finishNode({type:"VariableDeclaration",kind:"let",declarations:ue(e,t|131072,n,u,8,32)},A),e.assignable=1):t&1?e.report(67):(a=!1,e.assignable=1,d=F(e,t,u,d,0,0,A),e.getToken()===471156&&e.report(115))):(r(e,t),d=e.finishNode(b===86088?{type:"VariableDeclaration",kind:"var",declarations:ue(e,t|131072,n,u,4,32)}:{type:"VariableDeclaration",kind:"const",declarations:ue(e,t|131072,n,u,16,32)},A),e.assignable=1);else if(b===1074790417)l&&e.report(82);else if((b&2097152)===2097152){let T=e.tokenStart;d=b===2162700?j(e,t,void 0,u,1,0,0,2,32):X(e,t,void 0,u,1,0,0,2,32),g=e.destructible,g&64&&e.report(63),e.assignable=g&16?2:1,d=F(e,t|131072,u,d,0,0,T)}else d=_(e,t|131072,u,1,0,1);if((e.getToken()&262144)===262144){if(e.getToken()===471156){e.assignable&2&&e.report(80,l?"await":"of"),K(e,d),r(e,t|32),h=L(e,t,u,1,0,e.tokenStart),y(e,t|32,16);let D=de(e,t,n,u,o);return e.finishNode({type:"ForOfStatement",left:d,right:h,body:D,await:l},i)}e.assignable&2&&e.report(80,"in"),K(e,d),r(e,t|32),l&&e.report(82),h=V(e,t,u,0,1,e.tokenStart),y(e,t|32,16);let T=de(e,t,n,u,o);return e.finishNode({type:"ForInStatement",body:T,left:d,right:h},i)}l&&e.report(82),a||(g&8&&e.getToken()!==1077936155&&e.report(80,"loop"),d=I(e,t|131072,u,0,0,A,d)),e.getToken()===18&&(d=W(e,t,u,0,A,d)),y(e,t|32,1074790417),e.getToken()!==1074790417&&(f=V(e,t,u,0,1,e.tokenStart)),y(e,t|32,1074790417),e.getToken()!==16&&(c=V(e,t,u,0,1,e.tokenStart)),y(e,t|32,16);let w=de(e,t,n,u,o);return e.finishNode({type:"ForStatement",init:d,test:f,update:c,body:w},i)}function Ut(e,t,n){return ge(t,e.getToken())||e.report(118),(e.getToken()&537079808)===537079808&&e.report(119),n?.addBlockName(t,e.tokenValue,8,0),N(e,t)}function In(e,t,n){let u=e.tokenStart;r(e,t);let o=null,{tokenStart:i}=e,l=[];if(e.getToken()===134283267)o=O(e,t);else{if(e.getToken()&143360){let g=Ut(e,t,n);if(l=[e.finishNode({type:"ImportDefaultSpecifier",local:g},i)],C(e,t,18))switch(e.getToken()){case 8391476:l.push(Tt(e,t,n));break;case 2162700:bt(e,t,n,l);break;default:e.report(107)}}else switch(e.getToken()){case 8391476:l=[Tt(e,t,n)];break;case 2162700:bt(e,t,n,l);break;case 67174411:return _t(e,t,void 0,u);case 67108877:return Jt(e,t,u);default:e.report(30,B[e.getToken()&255])}o=qn(e,t)}let f=He(e,t),c={type:"ImportDeclaration",specifiers:l,source:o,attributes:f};return M(e,t|32),e.finishNode(c,u)}function Tt(e,t,n){let{tokenStart:u}=e;if(r(e,t),y(e,t,77932),(e.getToken()&134217728)===134217728)throw new q(u,e.currentLocation,30,B[e.getToken()&255]);return e.finishNode({type:"ImportNamespaceSpecifier",local:Ut(e,t,n)},u)}function qn(e,t){return y(e,t,209011),e.getToken()!==134283267&&e.report(105,"Import"),O(e,t)}function bt(e,t,n,u){for(r(e,t);e.getToken()&143360||e.getToken()===134283267;){let{tokenValue:o,tokenStart:i}=e,l=e.getToken(),f=Ce(e,t),c;C(e,t,77932)?((e.getToken()&134217728)===134217728||e.getToken()===18?e.report(106):Be(e,t,16,e.getToken(),0),o=e.tokenValue,c=N(e,t)):f.type==="Identifier"?(Be(e,t,16,l,0),c=e.cloneIdentifier(f)):e.report(25,B[108]),n?.addBlockName(t,o,8,0),u.push(e.finishNode({type:"ImportSpecifier",local:c,imported:f},i)),e.getToken()!==1074790415&&y(e,t,18)}return y(e,t,1074790415),u}function Jt(e,t,n){let u=Xt(e,t,e.finishNode({type:"Identifier",name:"import"},n),n);return u=F(e,t,void 0,u,0,0,n),u=I(e,t,void 0,0,0,n,u),e.getToken()===18&&(u=W(e,t,void 0,0,n,u)),ie(e,t,u,n)}function _t(e,t,n,u){let o=jt(e,t,n,0,u);return o=F(e,t,n,o,0,0,u),e.getToken()===18&&(o=W(e,t,n,0,u,o)),ie(e,t,o,u)}function Pn(e,t,n){let u=e.leadingDecorators.decorators.length?e.leadingDecorators.start:e.tokenStart;r(e,t|32);let o=[],i=null,l=null,f=[];if(C(e,t|32,20561)){switch(e.getToken()){case 86104:{i=x(e,t,n,void 0,4,1,1,0,e.tokenStart);break}case 132:case 86094:i=ze(e,t,n,void 0,1);break;case 209005:{let{tokenStart:g}=e;i=N(e,t);let{flags:d}=e;(d&1)===0&&(e.getToken()===86104?i=x(e,t,n,void 0,4,1,1,1,g):e.getToken()===67174411?(i=ut(e,t,void 0,i,1,1,0,d,g),i=F(e,t,void 0,i,0,0,g),i=I(e,t,void 0,0,0,g,i)):e.getToken()&143360&&(n&&(n=qe(e,t,e.tokenValue)),i=N(e,t),i=ke(e,t,n,void 0,[i],1,g)));break}default:i=L(e,t,void 0,1,0,e.tokenStart),M(e,t|32)}return n&&e.declareUnboundVariable("default"),e.finishNode({type:"ExportDefaultDeclaration",declaration:i},u)}switch(e.getToken()){case 8391476:{r(e,t);let g=null;C(e,t,77932)&&(n&&e.declareUnboundVariable(e.tokenValue),g=Ce(e,t)),y(e,t,209011),e.getToken()!==134283267&&e.report(105,"Export"),l=O(e,t);let a=He(e,t),h={type:"ExportAllDeclaration",source:l,exported:g,attributes:a};return M(e,t|32),e.finishNode(h,u)}case 2162700:{r(e,t);let g=[],d=[],a=0;for(;e.getToken()&143360||e.getToken()===134283267;){let{tokenStart:h,tokenValue:A}=e,b=Ce(e,t);b.type==="Literal"&&(a=1);let w;e.getToken()===77932?(r(e,t),(e.getToken()&143360)===0&&e.getToken()!==134283267&&e.report(106),n&&(g.push(e.tokenValue),d.push(A)),w=Ce(e,t)):(n&&(g.push(e.tokenValue),d.push(e.tokenValue)),w=b.type==="Literal"?e.cloneStringLiteral(b):e.cloneIdentifier(b)),o.push(e.finishNode({type:"ExportSpecifier",local:b,exported:w},h)),e.getToken()!==1074790415&&y(e,t,18)}y(e,t,1074790415),C(e,t,209011)?(e.getToken()!==134283267&&e.report(105,"Export"),l=O(e,t),f=He(e,t),n&&g.forEach(h=>e.declareUnboundVariable(h))):(a&&e.report(172),n&&(g.forEach(h=>e.declareUnboundVariable(h)),d.forEach(h=>e.addBindingToExports(h)))),M(e,t|32);break}case 132:case 86094:i=ze(e,t,n,void 0,2);break;case 86104:i=x(e,t,n,void 0,4,1,2,0,e.tokenStart);break;case 241737:i=je(e,t,n,void 0,8,64);break;case 86090:i=je(e,t,n,void 0,16,64);break;case 86088:i=vt(e,t,n,void 0,64);break;case 209005:{let{tokenStart:g}=e;if(r(e,t),(e.flags&1)===0&&e.getToken()===86104){i=x(e,t,n,void 0,4,1,2,1,g);break}}default:e.report(30,B[e.getToken()&255])}let c={type:"ExportNamedDeclaration",declaration:i,specifiers:o,source:l,attributes:f};return e.finishNode(c,u)}function L(e,t,n,u,o,i){let l=U(e,t,n,2,0,u,o,1,i);return l=F(e,t,n,l,o,0,i),I(e,t,n,o,0,i,l)}function W(e,t,n,u,o,i){let l=[i];for(;C(e,t|32,18);)l.push(L(e,t,n,1,u,e.tokenStart));return e.finishNode({type:"SequenceExpression",expressions:l},o)}function V(e,t,n,u,o,i){let l=L(e,t,n,o,u,i);return e.getToken()===18?W(e,t,n,u,i,l):l}function I(e,t,n,u,o,i,l){let f=e.getToken();if((f&4194304)===4194304){e.assignable&2&&e.report(26),(!o&&f===1077936155&&l.type==="ArrayExpression"||l.type==="ObjectExpression")&&K(e,l),r(e,t|32);let c=L(e,t,n,1,u,e.tokenStart);return e.assignable=2,e.finishNode(o?{type:"AssignmentPattern",left:l,right:c}:{type:"AssignmentExpression",left:l,operator:B[f&255],right:c},i)}return(f&8388608)===8388608&&(l=G(e,t,n,u,i,4,f,l)),C(e,t|32,22)&&(l=ee(e,t,n,l,i)),l}function be(e,t,n,u,o,i,l){let f=e.getToken();r(e,t|32);let c=L(e,t,n,1,u,e.tokenStart);return l=e.finishNode(o?{type:"AssignmentPattern",left:l,right:c}:{type:"AssignmentExpression",left:l,operator:B[f&255],right:c},i),e.assignable=2,l}function ee(e,t,n,u,o){let i=L(e,(t|131072)^131072,n,1,0,e.tokenStart);y(e,t|32,21),e.assignable=1;let l=L(e,t,n,1,0,e.tokenStart);return e.assignable=2,e.finishNode({type:"ConditionalExpression",test:u,consequent:i,alternate:l},o)}function G(e,t,n,u,o,i,l,f){let c=-((t&131072)>0)&8673330,g,d;for(e.assignable=2;e.getToken()&8388608&&(g=e.getToken(),d=g&3840,(g&524288&&l&268435456||l&524288&&g&268435456)&&e.report(165),!(d+((g===8391735)<<8)-((c===g)<<12)<=i));)r(e,t|32),f=e.finishNode({type:g&524288||g&268435456?"LogicalExpression":"BinaryExpression",left:f,right:G(e,t,n,u,e.tokenStart,d,g,_(e,t,n,0,u,1)),operator:B[g&255]},o);return e.getToken()===1077936155&&e.report(26),f}function On(e,t,n,u,o){u||e.report(0);let{tokenStart:i}=e,l=e.getToken();r(e,t|32);let f=_(e,t,n,0,o,1);return e.getToken()===8391735&&e.report(33),t&1&&l===16863276&&(f.type==="Identifier"?e.report(121):tn(f)&&e.report(127)),e.assignable=2,e.finishNode({type:"UnaryExpression",operator:B[l&255],argument:f,prefix:!0},i)}function Vn(e,t,n,u,o,i,l,f){let c=e.getToken(),g=N(e,t),{flags:d}=e;if((d&1)===0){if(e.getToken()===86104)return zt(e,t,n,1,u,f);if(ge(t,e.getToken()))return o||e.report(0),(e.getToken()&36864)===36864&&(e.flags|=256),Wt(e,t,n,i,f)}return!l&&e.getToken()===67174411?ut(e,t,n,g,i,1,0,d,f):e.getToken()===10?(Ie(e,t,c),l&&e.report(51),(c&36864)===36864&&(e.flags|=256),Oe(e,t,n,e.tokenValue,g,l,i,0,f)):(e.assignable=1,g)}function Rn(e,t,n,u,o,i){if(u&&(e.destructible|=256),t&1024){r(e,t|32),t&8192&&e.report(32),o||e.report(26),e.getToken()===22&&e.report(124);let l=null,f=!1;return(e.flags&1)===0?(f=C(e,t|32,8391476),(e.getToken()&77824||f)&&(l=L(e,t,n,1,0,e.tokenStart))):e.getToken()===8391476&&e.report(30,B[e.getToken()&255]),e.assignable=2,e.finishNode({type:"YieldExpression",argument:l,delegate:f},i)}return t&1&&e.report(97,"yield"),nt(e,t,n)}function Mn(e,t,n,u,o,i){o&&(e.destructible|=128),t&524288&&e.report(177);let l=nt(e,t,n);if(l.type==="ArrowFunctionExpression"||(e.getToken()&65536)===0){if(t&2048)throw new q(i,{index:e.startIndex,line:e.startLine,column:e.startColumn},176);if(t&2)throw new q(i,{index:e.startIndex,line:e.startLine,column:e.startColumn},110);if(t&8192&&t&2048)throw new q(i,{index:e.startIndex,line:e.startLine,column:e.startColumn},110);return l}if(t&8192)throw new q(i,{index:e.startIndex,line:e.startLine,column:e.startColumn},31);if(t&2048||t&2&&t&8){if(u)throw new q(i,{index:e.startIndex,line:e.startLine,column:e.startColumn},0);let c=_(e,t,n,0,0,1);return e.getToken()===8391735&&e.report(33),e.assignable=2,e.finishNode({type:"AwaitExpression",argument:c},i)}if(t&2)throw new q(i,{index:e.startIndex,line:e.startLine,column:e.startColumn},98);return l}function Pe(e,t,n,u,o,i,l){let{tokenStart:f}=e;y(e,t|32,2162700);let c=[];if(e.getToken()!==1074790415){for(;e.getToken()===134283267;){let{index:g,tokenStart:d,tokenIndex:a,tokenValue:h}=e,A=e.getToken(),b=O(e,t);if(Pt(e,g,a,h)){if(t|=1,e.flags&128)throw new q(d,e.currentLocation,66);if(e.flags&64)throw new q(d,e.currentLocation,9);if(e.flags&4096)throw new q(d,e.currentLocation,15);l?.reportScopeError()}c.push(Ge(e,t,b,A,d))}t&1&&(i&&((i&537079808)===537079808&&e.report(119),(i&36864)===36864&&e.report(40)),e.flags&512&&e.report(119),e.flags&256&&e.report(118))}for(e.flags=(e.flags|512|256|64|4096)^4928,e.destructible=(e.destructible|256)^256;e.getToken()!==1074790415;)c.push(re(e,t,n,u,4,{}));return y(e,o&24?t|32:t,1074790415),e.flags&=-4289,e.getToken()===1077936155&&e.report(26),e.finishNode({type:"BlockStatement",body:c},f)}function vn(e,t){let{tokenStart:n}=e;switch(r(e,t),e.getToken()){case 67108990:e.report(167);case 67174411:{(t&512)===0&&e.report(28),e.assignable=2;break}case 69271571:case 67108877:{(t&256)===0&&e.report(29),e.assignable=1;break}default:e.report(30,"super")}return e.finishNode({type:"Super"},n)}function _(e,t,n,u,o,i){let l=e.tokenStart,f=U(e,t,n,2,0,u,o,i,l);return F(e,t,n,f,o,0,l)}function Un(e,t,n,u){e.assignable&2&&e.report(55);let o=e.getToken();return r(e,t),e.assignable=2,e.finishNode({type:"UpdateExpression",argument:n,operator:B[o&255],prefix:!1},u)}function F(e,t,n,u,o,i,l){if((e.getToken()&33619968)===33619968&&(e.flags&1)===0)u=Un(e,t,u,l);else if((e.getToken()&67108864)===67108864){switch(t=(t|131072)^131072,e.getToken()){case 67108877:{r(e,(t|262144|8)^8),t&16&&e.getToken()===130&&e.tokenValue==="super"&&e.report(173),e.assignable=1;let f=xe(e,t|64,n);u=e.finishNode({type:"MemberExpression",object:u,computed:!1,property:f,optional:!1},l);break}case 69271571:{let f=!1;(e.flags&2048)===2048&&(f=!0,e.flags=(e.flags|2048)^2048),r(e,t|32);let{tokenStart:c}=e,g=V(e,t,n,o,1,c);y(e,t,20),e.assignable=1,u=e.finishNode({type:"MemberExpression",object:u,computed:!0,property:g,optional:!1},l),f&&(e.flags|=2048);break}case 67174411:{if((e.flags&1024)===1024)return e.flags=(e.flags|1024)^1024,u;let f=!1;(e.flags&2048)===2048&&(f=!0,e.flags=(e.flags|2048)^2048);let c=tt(e,t,n,o);e.assignable=2,u=e.finishNode({type:"CallExpression",callee:u,arguments:c,optional:!1},l),f&&(e.flags|=2048);break}case 67108990:{r(e,(t|262144|8)^8),e.flags|=2048,e.assignable=2,u=Jn(e,t,n,u,l);break}default:(e.flags&2048)===2048&&e.report(166),e.assignable=2,u=e.finishNode({type:"TaggedTemplateExpression",tag:u,quasi:e.getToken()===67174408?et(e,t|64,n):pe(e,t)},l)}u=F(e,t,n,u,0,1,l)}return i===0&&(e.flags&2048)===2048&&(e.flags=(e.flags|2048)^2048,u=e.finishNode({type:"ChainExpression",expression:u},l)),u}function Jn(e,t,n,u,o){let i=!1,l;if((e.getToken()===69271571||e.getToken()===67174411)&&(e.flags&2048)===2048&&(i=!0,e.flags=(e.flags|2048)^2048),e.getToken()===69271571){r(e,t|32);let{tokenStart:f}=e,c=V(e,t,n,0,1,f);y(e,t,20),e.assignable=2,l=e.finishNode({type:"MemberExpression",object:u,computed:!0,optional:!0,property:c},o)}else if(e.getToken()===67174411){let f=tt(e,t,n,0);e.assignable=2,l=e.finishNode({type:"CallExpression",callee:u,arguments:f,optional:!0},o)}else{let f=xe(e,t,n);e.assignable=2,l=e.finishNode({type:"MemberExpression",object:u,computed:!1,optional:!0,property:f},o)}return i&&(e.flags|=2048),l}function xe(e,t,n){return(e.getToken()&143360)===0&&e.getToken()!==-2147483528&&e.getToken()!==-2147483527&&e.getToken()!==130&&e.report(160),e.getToken()===130?Le(e,t,n,0):N(e,t)}function _n(e,t,n,u,o,i){u&&e.report(56),o||e.report(0);let l=e.getToken();r(e,t|32);let f=_(e,t,n,0,0,1);return e.assignable&2&&e.report(55),e.assignable=2,e.finishNode({type:"UpdateExpression",argument:f,operator:B[l&255],prefix:!0},i)}function U(e,t,n,u,o,i,l,f,c){if((e.getToken()&143360)===143360){switch(e.getToken()){case 209006:return Mn(e,t,n,o,l,c);case 241771:return Rn(e,t,n,l,i,c);case 209005:return Vn(e,t,n,l,f,i,o,c)}let{tokenValue:g}=e,d=e.getToken(),a=N(e,t|64);return e.getToken()===10?(f||e.report(0),Ie(e,t,d),(d&36864)===36864&&(e.flags|=256),Oe(e,t,n,g,a,o,i,0,c)):(t&16&&!(t&32768)&&!(t&8192)&&e.tokenValue==="arguments"&&e.report(130),(d&255)===73&&(t&1&&e.report(113),u&24&&e.report(100)),e.assignable=t&1&&(d&537079808)===537079808?2:1,a)}if((e.getToken()&134217728)===134217728)return O(e,t);switch(e.getToken()){case 33619993:case 33619994:return _n(e,t,n,o,f,c);case 16863276:case 16842798:case 16842799:case 25233968:case 25233969:case 16863275:case 16863277:return On(e,t,n,f,l);case 86104:return zt(e,t,n,0,l,c);case 2162700:return Yn(e,t,n,i?0:1,l);case 69271571:return Wn(e,t,n,i?0:1,l);case 67174411:return Zn(e,t|64,n,i,1,0,c);case 86021:case 86022:case 86023:return Kn(e,t);case 86111:return $n(e,t);case 65540:return pn(e,t);case 132:case 86094:return eu(e,t,n,l,c);case 86109:return vn(e,t);case 67174409:return pe(e,t);case 67174408:return et(e,t,n);case 86107:return Gn(e,t,n,l);case 134283388:return Ht(e,t);case 130:return Le(e,t,n,0);case 86106:return Xn(e,t,n,o,l,c);case 8456256:if(e.options.jsx)return Re(e,t,n,0,e.tokenStart);default:if(ge(t,e.getToken()))return nt(e,t,n);e.report(30,B[e.getToken()&255])}}function Xn(e,t,n,u,o,i){let l=N(e,t);return e.getToken()===67108877?Xt(e,t,l,i):(u&&e.report(142),l=jt(e,t,n,o,i),e.assignable=2,F(e,t,n,l,o,0,i))}function Xt(e,t,n,u){(t&2)===0&&e.report(169),r(e,t);let o=e.getToken();return o!==209030&&e.tokenValue!=="meta"?e.report(174):o&-2147483648&&e.report(175),e.assignable=2,e.finishNode({type:"MetaProperty",meta:n,property:N(e,t)},u)}function jt(e,t,n,u,o){y(e,t|32,67174411),e.getToken()===14&&e.report(143);let i=L(e,t,n,1,u,e.tokenStart),l=null;if(e.getToken()===18){if(y(e,t,18),e.getToken()!==16){let c=(t|131072)^131072;l=L(e,c,n,1,u,e.tokenStart)}C(e,t,18)}let f={type:"ImportExpression",source:i,options:l};return y(e,t,16),e.finishNode(f,o)}function He(e,t){if(!C(e,t,20579))return[];y(e,t,2162700);let n=[],u=new Set;for(;e.getToken()!==1074790415;){let o=e.tokenStart,i=Hn(e,t);y(e,t,21);let l=jn(e,t),f=i.type==="Literal"?i.value:i.name;u.has(f)&&e.report(145,`${f}`),u.add(f),n.push(e.finishNode({type:"ImportAttribute",key:i,value:l},o)),e.getToken()!==1074790415&&y(e,t,18)}return y(e,t,1074790415),n}function jn(e,t){if(e.getToken()===134283267)return O(e,t);e.report(30,B[e.getToken()&255])}function Hn(e,t){if(e.getToken()===134283267)return O(e,t);if(e.getToken()&143360)return N(e,t);e.report(30,B[e.getToken()&255])}function Ce(e,t){if(e.getToken()===134283267){let n=e.tokenValue;return mt(0,n)||e.report(171),O(e,t)}else{if(e.getToken()&143360)return N(e,t);e.report(30,B[e.getToken()&255])}}function Ht(e,t){let{tokenRaw:n,tokenValue:u,tokenStart:o}=e;r(e,t),e.assignable=2;let i={type:"Literal",value:u,bigint:String(u)};return e.options.raw&&(i.raw=n),e.finishNode(i,o)}function pe(e,t){e.assignable=2;let{tokenValue:n,tokenRaw:u,tokenStart:o}=e;y(e,t,67174409);let i=[Ee(e,n,u,o,!0)];return e.finishNode({type:"TemplateLiteral",expressions:[],quasis:i},o)}function et(e,t,n){t=(t|131072)^131072;let{tokenValue:u,tokenRaw:o,tokenStart:i}=e;y(e,t&-65|32,67174408);let l=[Ee(e,u,o,i,!1)],f=[V(e,t&-65,n,0,1,e.tokenStart)];for(e.getToken()!==1074790415&&e.report(83);e.setToken(p2(e,t),!0)!==67174409;){let{tokenValue:c,tokenRaw:g,tokenStart:d}=e;y(e,t&-65|32,67174408),l.push(Ee(e,c,g,d,!1)),f.push(V(e,t,n,0,1,e.tokenStart)),e.getToken()!==1074790415&&e.report(83)}{let{tokenValue:c,tokenRaw:g,tokenStart:d}=e;y(e,t,67174409),l.push(Ee(e,c,g,d,!0))}return e.finishNode({type:"TemplateLiteral",expressions:f,quasis:l},i)}function Ee(e,t,n,u,o){let i=e.finishNode({type:"TemplateElement",value:{cooked:t,raw:n},tail:o},u),l=o?1:2;return e.options.ranges&&(i.start+=1,i.range[0]+=1,i.end-=l,i.range[1]-=l),e.options.loc&&(i.loc.start.column+=1,i.loc.end.column-=l),i}function zn(e,t,n){let u=e.tokenStart;t=(t|131072)^131072,y(e,t|32,14);let o=L(e,t,n,1,0,e.tokenStart);return e.assignable=1,e.finishNode({type:"SpreadElement",argument:o},u)}function tt(e,t,n,u){r(e,t|32);let o=[];if(e.getToken()===16)return r(e,t|64),o;for(;e.getToken()!==16&&(e.getToken()===14?o.push(zn(e,t,n)):o.push(L(e,t,n,1,u,e.tokenStart)),!(e.getToken()!==18||(r(e,t|32),e.getToken()===16))););return y(e,t|64,16),o}function N(e,t){let{tokenValue:n,tokenStart:u}=e,o=n==="await"&&(e.getToken()&-2147483648)===0;return r(e,t|(o?32:0)),e.finishNode({type:"Identifier",name:n},u)}function O(e,t){let{tokenValue:n,tokenRaw:u,tokenStart:o}=e;if(e.getToken()===134283388)return Ht(e,t);let i={type:"Literal",value:n};return e.options.raw&&(i.raw=u),r(e,t),e.assignable=2,e.finishNode(i,o)}function Kn(e,t){let n=e.tokenStart,u=B[e.getToken()&255],i={type:"Literal",value:e.getToken()===86023?null:u==="true"};return e.options.raw&&(i.raw=u),r(e,t),e.assignable=2,e.finishNode(i,n)}function $n(e,t){let{tokenStart:n}=e;return r(e,t),e.assignable=2,e.finishNode({type:"ThisExpression"},n)}function x(e,t,n,u,o,i,l,f,c){r(e,t|32);let g=i?Qe(e,t,8391476):0,d=null,a,h=n?e.createScope():void 0;if(e.getToken()===67174411)(l&1)===0&&e.report(39,"Function");else{let T=o&4&&((t&8)===0||(t&2)===0)?4:64|(f?1024:0)|(g?1024:0);Ot(e,t,e.getToken()),n&&(T&4?n.addVarName(t,e.tokenValue,T):n.addBlockName(t,e.tokenValue,T,o),h=h?.createChildScope(128),l&&l&2&&e.declareUnboundVariable(e.tokenValue)),a=e.getToken(),e.getToken()&143360?d=N(e,t):e.report(30,B[e.getToken()&255])}t=(t|28416)^28416|65536|(f?2048:0)|(g?1024:0)|(g?0:262144),h=h?.createChildScope(256);let A=$t(e,(t|8192)&-524289,h,u,0,1),b=524428,w=Pe(e,(t|b)^b|32768|4096,h?.createChildScope(64),u,8,a,h);return e.finishNode({type:"FunctionDeclaration",id:d,params:A,body:w,async:f===1,generator:g===1},c)}function zt(e,t,n,u,o,i){r(e,t|32);let l=Qe(e,t,8391476),f=(u?2048:0)|(l?1024:0),c=null,g,d=e.createScopeIfLexical(),a=552704;e.getToken()&143360&&(Ot(e,(t|a)^a|f,e.getToken()),d=d?.createChildScope(128),g=e.getToken(),c=N(e,t)),t=(t|a)^a|65536|f|(l?0:262144),d=d?.createChildScope(256);let h=$t(e,(t|8192)&-524289,d,n,o,1),A=Pe(e,t&-131229|32768|4096,d?.createChildScope(64),n,0,g,d);return e.assignable=2,e.finishNode({type:"FunctionExpression",id:c,params:h,body:A,async:u===1,generator:l===1},i)}function Wn(e,t,n,u,o){let i=X(e,t,void 0,n,u,o,0,2,0);return e.destructible&64&&e.report(63),e.destructible&8&&e.report(62),i}function X(e,t,n,u,o,i,l,f,c){let{tokenStart:g}=e;r(e,t|32);let d=[],a=0;for(t=(t|131072)^131072;e.getToken()!==20;)if(C(e,t|32,18))d.push(null);else{let A,{tokenStart:b,tokenValue:w}=e,T=e.getToken();if(T&143360)if(A=U(e,t,u,f,0,1,i,1,b),e.getToken()===1077936155){e.assignable&2&&e.report(26),r(e,t|32),n?.addVarOrBlock(t,w,f,c);let D=L(e,t,u,1,i,e.tokenStart);A=e.finishNode(l?{type:"AssignmentPattern",left:A,right:D}:{type:"AssignmentExpression",operator:"=",left:A,right:D},b),a|=e.destructible&256?256:0|e.destructible&128?128:0}else e.getToken()===18||e.getToken()===20?(e.assignable&2?a|=16:n?.addVarOrBlock(t,w,f,c),a|=e.destructible&256?256:0|e.destructible&128?128:0):(a|=f&1?32:(f&2)===0?16:0,A=F(e,t,u,A,i,0,b),e.getToken()!==18&&e.getToken()!==20?(e.getToken()!==1077936155&&(a|=16),A=I(e,t,u,i,l,b,A)):e.getToken()!==1077936155&&(a|=e.assignable&2?16:32));else T&2097152?(A=e.getToken()===2162700?j(e,t,n,u,0,i,l,f,c):X(e,t,n,u,0,i,l,f,c),a|=e.destructible,e.assignable=e.destructible&16?2:1,e.getToken()===18||e.getToken()===20?e.assignable&2&&(a|=16):e.destructible&8?e.report(71):(A=F(e,t,u,A,i,0,b),a=e.assignable&2?16:0,e.getToken()!==18&&e.getToken()!==20?A=I(e,t,u,i,l,b,A):e.getToken()!==1077936155&&(a|=e.assignable&2?16:32))):T===14?(A=oe(e,t,n,u,20,f,c,0,i,l),a|=e.destructible,e.getToken()!==18&&e.getToken()!==20&&e.report(30,B[e.getToken()&255])):(A=_(e,t,u,1,0,1),e.getToken()!==18&&e.getToken()!==20?(A=I(e,t,u,i,l,b,A),(f&3)===0&&T===67174411&&(a|=16)):e.assignable&2?a|=16:T===67174411&&(a|=e.assignable&1&&f&3?32:16));if(d.push(A),C(e,t|32,18)){if(e.getToken()===20)break}else break}y(e,t,20);let h=e.finishNode({type:l?"ArrayPattern":"ArrayExpression",elements:d},g);return!o&&e.getToken()&4194304?Kt(e,t,u,a,i,l,g,h):(e.destructible=a,h)}function Kt(e,t,n,u,o,i,l,f){e.getToken()!==1077936155&&e.report(26),r(e,t|32),u&16&&e.report(26),i||K(e,f);let{tokenStart:c}=e,g=L(e,t,n,1,o,c);return e.destructible=(u|64|8)^72|(e.destructible&128?128:0)|(e.destructible&256?256:0),e.finishNode(i?{type:"AssignmentPattern",left:f,right:g}:{type:"AssignmentExpression",left:f,operator:"=",right:g},l)}function oe(e,t,n,u,o,i,l,f,c,g){let{tokenStart:d}=e;r(e,t|32);let a=null,h=0,{tokenValue:A,tokenStart:b}=e,w=e.getToken();if(w&143360)e.assignable=1,a=U(e,t,u,i,0,1,c,1,b),w=e.getToken(),a=F(e,t,u,a,c,0,b),e.getToken()!==18&&e.getToken()!==o&&(e.assignable&2&&e.getToken()===1077936155&&e.report(71),h|=16,a=I(e,t,u,c,g,b,a)),e.assignable&2?h|=16:w===o||w===18?n?.addVarOrBlock(t,A,i,l):h|=32,h|=e.destructible&128?128:0;else if(w===o)e.report(41);else if(w&2097152)a=e.getToken()===2162700?j(e,t,n,u,1,c,g,i,l):X(e,t,n,u,1,c,g,i,l),w=e.getToken(),w!==1077936155&&w!==o&&w!==18?(e.destructible&8&&e.report(71),a=F(e,t,u,a,c,0,b),h|=e.assignable&2?16:0,(e.getToken()&4194304)===4194304?(e.getToken()!==1077936155&&(h|=16),a=I(e,t,u,c,g,b,a)):((e.getToken()&8388608)===8388608&&(a=G(e,t,u,1,b,4,w,a)),C(e,t|32,22)&&(a=ee(e,t,u,a,b)),h|=e.assignable&2?16:32)):h|=o===1074790415&&w!==1077936155?16:e.destructible;else{h|=32,a=_(e,t,u,1,c,1);let{tokenStart:T}=e,D=e.getToken();return D===1077936155?(e.assignable&2&&e.report(26),a=I(e,t,u,c,g,T,a),h|=16):(D===18?h|=16:D!==o&&(a=I(e,t,u,c,g,T,a)),h|=e.assignable&1?32:16),e.destructible=h,e.getToken()!==o&&e.getToken()!==18&&e.report(161),e.finishNode({type:g?"RestElement":"SpreadElement",argument:a},d)}if(e.getToken()!==o)if(i&1&&(h|=f?16:32),C(e,t|32,1077936155)){h&16&&e.report(26),K(e,a);let T=L(e,t,u,1,c,e.tokenStart);a=e.finishNode(g?{type:"AssignmentPattern",left:a,right:T}:{type:"AssignmentExpression",left:a,operator:"=",right:T},b),h=16}else h|=16;return e.destructible=h,e.finishNode({type:g?"RestElement":"SpreadElement",argument:a},d)}function z(e,t,n,u,o,i){let l=11264|((u&64)===0?16896:0);t=(t|l)^l|(u&8?1024:0)|(u&16?2048:0)|(u&64?16384:0)|256|32768|65536;let f=e.createScopeIfLexical(256),c=Qn(e,(t|8192)&-524289,f,n,u,1,o);f=f?.createChildScope(64);let g=Pe(e,t&-655373|32768|4096,f,n,0,void 0,f?.parent);return e.finishNode({type:"FunctionExpression",params:c,body:g,async:(u&16)>0,generator:(u&8)>0,id:null},i)}function Yn(e,t,n,u,o){let i=j(e,t,void 0,n,u,o,0,2,0);return e.destructible&64&&e.report(63),e.destructible&8&&e.report(62),i}function j(e,t,n,u,o,i,l,f,c){let{tokenStart:g}=e;r(e,t);let d=[],a=0,h=0;for(t=(t|131072)^131072;e.getToken()!==1074790415;){let{tokenValue:b,tokenStart:w}=e,T=e.getToken();if(T===14)d.push(oe(e,t,n,u,1074790415,f,c,0,i,l));else{let D=0,R=null,k;if(e.getToken()&143360||e.getToken()===-2147483528||e.getToken()===-2147483527)if(e.getToken()===-2147483527&&(a|=16),R=N(e,t),e.getToken()===18||e.getToken()===1074790415||e.getToken()===1077936155)if(D|=4,t&1&&(T&537079808)===537079808?a|=16:Be(e,t,f,T,0),n?.addVarOrBlock(t,b,f,c),C(e,t|32,1077936155)){a|=8;let E=L(e,t,u,1,i,e.tokenStart);a|=e.destructible&256?256:0|e.destructible&128?128:0,k=e.finishNode({type:"AssignmentPattern",left:e.cloneIdentifier(R),right:E},w)}else a|=(T===209006?128:0)|(T===-2147483528?16:0),k=e.cloneIdentifier(R);else if(C(e,t|32,21)){let{tokenStart:E}=e;if(b==="__proto__"&&h++,e.getToken()&143360){let ce=e.getToken(),Y=e.tokenValue;k=U(e,t,u,f,0,1,i,1,E);let $=e.getToken();k=F(e,t,u,k,i,0,E),e.getToken()===18||e.getToken()===1074790415?$===1077936155||$===1074790415||$===18?(a|=e.destructible&128?128:0,e.assignable&2?a|=16:(ce&143360)===143360&&n?.addVarOrBlock(t,Y,f,c)):a|=e.assignable&1?32:16:(e.getToken()&4194304)===4194304?(e.assignable&2?a|=16:$!==1077936155?a|=32:n?.addVarOrBlock(t,Y,f,c),k=I(e,t,u,i,l,E,k)):(a|=16,(e.getToken()&8388608)===8388608&&(k=G(e,t,u,1,E,4,$,k)),C(e,t|32,22)&&(k=ee(e,t,u,k,E)))}else(e.getToken()&2097152)===2097152?(k=e.getToken()===69271571?X(e,t,n,u,0,i,l,f,c):j(e,t,n,u,0,i,l,f,c),a=e.destructible,e.assignable=a&16?2:1,e.getToken()===18||e.getToken()===1074790415?e.assignable&2&&(a|=16):e.destructible&8?e.report(71):(k=F(e,t,u,k,i,0,E),a=e.assignable&2?16:0,(e.getToken()&4194304)===4194304?k=be(e,t,u,i,l,E,k):((e.getToken()&8388608)===8388608&&(k=G(e,t,u,1,E,4,T,k)),C(e,t|32,22)&&(k=ee(e,t,u,k,E)),a|=e.assignable&2?16:32))):(k=_(e,t,u,1,i,1),a|=e.assignable&1?32:16,e.getToken()===18||e.getToken()===1074790415?e.assignable&2&&(a|=16):(k=F(e,t,u,k,i,0,E),a=e.assignable&2?16:0,e.getToken()!==18&&T!==1074790415&&(e.getToken()!==1077936155&&(a|=16),k=I(e,t,u,i,l,E,k))))}else e.getToken()===69271571?(a|=16,T===209005&&(D|=16),D|=(T===209008?256:T===209009?512:1)|2,R=ne(e,t,u,i),a|=e.assignable,k=z(e,t,u,D,i,e.tokenStart)):e.getToken()&143360?(a|=16,T===-2147483528&&e.report(95),T===209005?(e.flags&1&&e.report(132),D|=17):T===209008?D|=256:T===209009?D|=512:e.report(0),R=N(e,t),k=z(e,t,u,D,i,e.tokenStart)):e.getToken()===67174411?(a|=16,D|=1,k=z(e,t,u,D,i,e.tokenStart)):e.getToken()===8391476?(a|=16,T===209008?e.report(42):T===209009?e.report(43):T!==209005&&e.report(30,B[52]),r(e,t),D|=9|(T===209005?16:0),e.getToken()&143360?R=N(e,t):(e.getToken()&134217728)===134217728?R=O(e,t):e.getToken()===69271571?(D|=2,R=ne(e,t,u,i),a|=e.assignable):e.report(30,B[e.getToken()&255]),k=z(e,t,u,D,i,e.tokenStart)):(e.getToken()&134217728)===134217728?(T===209005&&(D|=16),D|=T===209008?256:T===209009?512:1,a|=16,R=O(e,t),k=z(e,t,u,D,i,e.tokenStart)):e.report(133);else if((e.getToken()&134217728)===134217728)if(R=O(e,t),e.getToken()===21){y(e,t|32,21);let{tokenStart:E}=e;if(b==="__proto__"&&h++,e.getToken()&143360){k=U(e,t,u,f,0,1,i,1,E);let{tokenValue:ce}=e,Y=e.getToken();k=F(e,t,u,k,i,0,E),e.getToken()===18||e.getToken()===1074790415?Y===1077936155||Y===1074790415||Y===18?e.assignable&2?a|=16:n?.addVarOrBlock(t,ce,f,c):a|=e.assignable&1?32:16:e.getToken()===1077936155?(e.assignable&2&&(a|=16),k=I(e,t,u,i,l,E,k)):(a|=16,k=I(e,t,u,i,l,E,k))}else(e.getToken()&2097152)===2097152?(k=e.getToken()===69271571?X(e,t,n,u,0,i,l,f,c):j(e,t,n,u,0,i,l,f,c),a=e.destructible,e.assignable=a&16?2:1,e.getToken()===18||e.getToken()===1074790415?e.assignable&2&&(a|=16):(e.destructible&8)!==8&&(k=F(e,t,u,k,i,0,E),a=e.assignable&2?16:0,(e.getToken()&4194304)===4194304?k=be(e,t,u,i,l,E,k):((e.getToken()&8388608)===8388608&&(k=G(e,t,u,1,E,4,T,k)),C(e,t|32,22)&&(k=ee(e,t,u,k,E)),a|=e.assignable&2?16:32))):(k=_(e,t,u,1,0,1),a|=e.assignable&1?32:16,e.getToken()===18||e.getToken()===1074790415?e.assignable&2&&(a|=16):(k=F(e,t,u,k,i,0,E),a=e.assignable&1?0:16,e.getToken()!==18&&e.getToken()!==1074790415&&(e.getToken()!==1077936155&&(a|=16),k=I(e,t,u,i,l,E,k))))}else e.getToken()===67174411?(D|=1,k=z(e,t,u,D,i,e.tokenStart),a=e.assignable|16):e.report(134);else if(e.getToken()===69271571)if(R=ne(e,t,u,i),a|=e.destructible&256?256:0,D|=2,e.getToken()===21){r(e,t|32);let{tokenStart:E,tokenValue:ce}=e,Y=e.getToken();if(e.getToken()&143360){k=U(e,t,u,f,0,1,i,1,E);let $=e.getToken();k=F(e,t,u,k,i,0,E),(e.getToken()&4194304)===4194304?(a|=e.assignable&2?16:$===1077936155?0:32,k=be(e,t,u,i,l,E,k)):e.getToken()===18||e.getToken()===1074790415?$===1077936155||$===1074790415||$===18?e.assignable&2?a|=16:(Y&143360)===143360&&n?.addVarOrBlock(t,ce,f,c):a|=e.assignable&1?32:16:(a|=16,k=I(e,t,u,i,l,E,k))}else(e.getToken()&2097152)===2097152?(k=e.getToken()===69271571?X(e,t,n,u,0,i,l,f,c):j(e,t,n,u,0,i,l,f,c),a=e.destructible,e.assignable=a&16?2:1,e.getToken()===18||e.getToken()===1074790415?e.assignable&2&&(a|=16):a&8?e.report(62):(k=F(e,t,u,k,i,0,E),a=e.assignable&2?a|16:0,(e.getToken()&4194304)===4194304?(e.getToken()!==1077936155&&(a|=16),k=be(e,t,u,i,l,E,k)):((e.getToken()&8388608)===8388608&&(k=G(e,t,u,1,E,4,T,k)),C(e,t|32,22)&&(k=ee(e,t,u,k,E)),a|=e.assignable&2?16:32))):(k=_(e,t,u,1,0,1),a|=e.assignable&1?32:16,e.getToken()===18||e.getToken()===1074790415?e.assignable&2&&(a|=16):(k=F(e,t,u,k,i,0,E),a=e.assignable&1?0:16,e.getToken()!==18&&e.getToken()!==1074790415&&(e.getToken()!==1077936155&&(a|=16),k=I(e,t,u,i,l,E,k))))}else e.getToken()===67174411?(D|=1,k=z(e,t,u,D,i,e.tokenStart),a=16):e.report(44);else if(T===8391476)if(y(e,t|32,8391476),D|=8,e.getToken()&143360){let E=e.getToken();if(R=N(e,t),D|=1,e.getToken()===67174411)a|=16,k=z(e,t,u,D,i,e.tokenStart);else throw new q(e.tokenStart,e.currentLocation,E===209005?46:E===209008||e.getToken()===209009?45:47,B[E&255])}else(e.getToken()&134217728)===134217728?(a|=16,R=O(e,t),D|=1,k=z(e,t,u,D,i,e.tokenStart)):e.getToken()===69271571?(a|=16,D|=3,R=ne(e,t,u,i),k=z(e,t,u,D,i,e.tokenStart)):e.report(126);else e.report(30,B[T&255]);a|=e.destructible&128?128:0,e.destructible=a,d.push(e.finishNode({type:"Property",key:R,value:k,kind:D&768?D&512?"set":"get":"init",computed:(D&2)>0,method:(D&1)>0,shorthand:(D&4)>0},w))}if(a|=e.destructible,e.getToken()!==18)break;r(e,t)}y(e,t,1074790415),h>1&&(a|=64);let A=e.finishNode({type:l?"ObjectPattern":"ObjectExpression",properties:d},g);return!o&&e.getToken()&4194304?Kt(e,t,u,a,i,l,g,A):(e.destructible=a,A)}function Qn(e,t,n,u,o,i,l){y(e,t,67174411);let f=[];if(e.flags=(e.flags|128)^128,e.getToken()===16)return o&512&&e.report(37,"Setter","one",""),r(e,t),f;o&256&&e.report(37,"Getter","no","s"),o&512&&e.getToken()===14&&e.report(38),t=(t|131072)^131072;let c=0,g=0;for(;e.getToken()!==18;){let d=null,{tokenStart:a}=e;if(e.getToken()&143360?((t&1)===0&&((e.getToken()&36864)===36864&&(e.flags|=256),(e.getToken()&537079808)===537079808&&(e.flags|=512)),d=it(e,t,n,o|1,0)):(e.getToken()===2162700?d=j(e,t,n,u,1,l,1,i,0):e.getToken()===69271571?d=X(e,t,n,u,1,l,1,i,0):e.getToken()===14&&(d=oe(e,t,n,u,16,i,0,0,l,1)),g=1,e.destructible&48&&e.report(50)),e.getToken()===1077936155){r(e,t|32),g=1;let h=L(e,t,u,1,0,e.tokenStart);d=e.finishNode({type:"AssignmentPattern",left:d,right:h},a)}if(c++,f.push(d),!C(e,t,18)||e.getToken()===16)break}return o&512&&c!==1&&e.report(37,"Setter","one",""),n?.reportScopeError(),g&&(e.flags|=128),y(e,t,16),f}function ne(e,t,n,u){r(e,t|32);let o=L(e,(t|131072)^131072,n,1,u,e.tokenStart);return y(e,t,20),o}function Zn(e,t,n,u,o,i,l){e.flags=(e.flags|128)^128;let f=e.tokenStart;r(e,t|32|262144);let c=e.createScopeIfLexical()?.createChildScope(512);if(t=(t|131072)^131072,C(e,t,16))return Ne(e,t,c,n,[],u,0,l);let g=0;e.destructible&=-385;let d,a=[],h=0,A=0,b=0,w=e.tokenStart;for(e.assignable=1;e.getToken()!==16;){let{tokenStart:T}=e,D=e.getToken();if(D&143360)c?.addBlockName(t,e.tokenValue,1,0),(D&537079808)===537079808?A=1:(D&36864)===36864&&(b=1),d=U(e,t,n,o,0,1,1,1,T),e.getToken()===16||e.getToken()===18?e.assignable&2&&(g|=16,A=1):(e.getToken()===1077936155?A=1:g|=16,d=F(e,t,n,d,1,0,T),e.getToken()!==16&&e.getToken()!==18&&(d=I(e,t,n,1,0,T,d)));else if((D&2097152)===2097152)d=D===2162700?j(e,t|262144,c,n,0,1,0,o,i):X(e,t|262144,c,n,0,1,0,o,i),g|=e.destructible,A=1,e.assignable=2,e.getToken()!==16&&e.getToken()!==18&&(g&8&&e.report(122),d=F(e,t,n,d,0,0,T),g|=16,e.getToken()!==16&&e.getToken()!==18&&(d=I(e,t,n,0,0,T,d)));else if(D===14){d=oe(e,t,c,n,16,o,i,0,1,0),e.destructible&16&&e.report(74),A=1,h&&(e.getToken()===16||e.getToken()===18)&&a.push(d),g|=8;break}else{if(g|=16,d=L(e,t,n,1,1,T),h&&(e.getToken()===16||e.getToken()===18)&&a.push(d),e.getToken()===18&&(h||(h=1,a=[d])),h){for(;C(e,t|32,18);)a.push(L(e,t,n,1,1,e.tokenStart));e.assignable=2,d=e.finishNode({type:"SequenceExpression",expressions:a},w)}return y(e,t,16),e.destructible=g,e.options.preserveParens?e.finishNode({type:"ParenthesizedExpression",expression:d},f):d}if(h&&(e.getToken()===16||e.getToken()===18)&&a.push(d),!C(e,t|32,18))break;if(h||(h=1,a=[d]),e.getToken()===16){g|=8;break}}return h&&(e.assignable=2,d=e.finishNode({type:"SequenceExpression",expressions:a},w)),y(e,t,16),g&16&&g&8&&e.report(151),g|=e.destructible&256?256:0|e.destructible&128?128:0,e.getToken()===10?(g&48&&e.report(49),t&2050&&g&128&&e.report(31),t&1025&&g&256&&e.report(32),A&&(e.flags|=128),b&&(e.flags|=256),Ne(e,t,c,n,h?a:[d],u,0,l)):(g&64&&e.report(63),g&8&&e.report(144),e.destructible=(e.destructible|256)^256|g,e.options.preserveParens?e.finishNode({type:"ParenthesizedExpression",expression:d},f):d)}function nt(e,t,n){let{tokenStart:u}=e,{tokenValue:o}=e,i=0,l=0;(e.getToken()&537079808)===537079808?i=1:(e.getToken()&36864)===36864&&(l=1);let f=N(e,t);if(e.assignable=1,e.getToken()===10){let c=e.options.lexical?qe(e,t,o):void 0;return i&&(e.flags|=128),l&&(e.flags|=256),ke(e,t,c,n,[f],0,u)}return f}function Oe(e,t,n,u,o,i,l,f,c){l||e.report(57),i&&e.report(51),e.flags&=-129;let g=e.options.lexical?qe(e,t,u):void 0;return ke(e,t,g,n,[o],f,c)}function Ne(e,t,n,u,o,i,l,f){i||e.report(57);for(let c=0;c0&&e.tokenValue==="constructor"&&e.report(109),e.getToken()===1074790415&&e.report(108),C(e,t,1074790417)){b.length>0&&e.report(120);continue}h.push(Qt(e,t,u,g,n,i,b,0,f,b.length>0?A:e.tokenStart))}return y(e,l&8?t|32:t,1074790415),g?.validatePrivateIdentifierRefs(),e.flags=e.flags&-33|a,e.finishNode({type:"ClassBody",body:h},c)}function Qt(e,t,n,u,o,i,l,f,c,g){let d=f?32:0,a=null,h=e.getToken();if(h&176128||h===-2147483528)switch(a=N(e,t),h){case 36970:if(!f&&e.getToken()!==67174411&&(e.getToken()&1048576)!==1048576&&e.getToken()!==1077936155)return Qt(e,t,n,u,o,i,l,1,c,g);break;case 209005:if(e.getToken()!==67174411&&(e.flags&1)===0){if((e.getToken()&1073741824)===1073741824)return se(e,t,u,a,d,l,g);d|=16|(Qe(e,t,8391476)?8:0)}break;case 209008:if(e.getToken()!==67174411){if((e.getToken()&1073741824)===1073741824)return se(e,t,u,a,d,l,g);d|=256}break;case 209009:if(e.getToken()!==67174411){if((e.getToken()&1073741824)===1073741824)return se(e,t,u,a,d,l,g);d|=512}break;case 12402:if(e.getToken()!==67174411&&(e.flags&1)===0){if((e.getToken()&1073741824)===1073741824)return se(e,t,u,a,d,l,g);e.options.next&&(d|=1024)}break}else if(h===69271571)d|=2,a=ne(e,o,u,c);else if((h&134217728)===134217728)a=O(e,t);else if(h===8391476)d|=8,r(e,t);else if(e.getToken()===130)d|=8192,a=Le(e,t|16,u,768);else if((e.getToken()&1073741824)===1073741824)d|=128;else{if(f&&h===2162700)return Bn(e,t|16,n,u,g);h===-2147483527?(a=N(e,t),e.getToken()!==67174411&&e.report(30,B[e.getToken()&255])):e.report(30,B[e.getToken()&255])}if(d&1816&&(e.getToken()&143360||e.getToken()===-2147483528||e.getToken()===-2147483527?a=N(e,t):(e.getToken()&134217728)===134217728?a=O(e,t):e.getToken()===69271571?(d|=2,a=ne(e,t,u,0)):e.getToken()===130?(d|=8192,a=Le(e,t,u,d)):e.report(135)),(d&2)===0&&(e.tokenValue==="constructor"?((e.getToken()&1073741824)===1073741824?e.report(129):(d&32)===0&&e.getToken()===67174411&&(d&920?e.report(53,"accessor"):(t&512)===0&&(e.flags&32?e.report(54):e.flags|=32)),d|=64):(d&8192)===0&&d&32&&e.tokenValue==="prototype"&&e.report(52)),d&1024||e.getToken()!==67174411&&(d&768)===0)return se(e,t,u,a,d,l,g);let A=z(e,t|16,u,d,c,e.tokenStart);return e.finishNode({type:"MethodDefinition",kind:(d&32)===0&&d&64?"constructor":d&256?"get":d&512?"set":"method",static:(d&32)>0,computed:(d&2)>0,key:a,value:A,...e.options.next?{decorators:l}:null},g)}function Le(e,t,n,u){let{tokenStart:o}=e;r(e,t);let{tokenValue:i}=e;return i==="constructor"&&e.report(128),e.options.lexical&&(n||e.report(4,i),u?n.addPrivateIdentifier(i,u):n.addPrivateIdentifierRef(i)),r(e,t),e.finishNode({type:"PrivateIdentifier",name:i},o)}function se(e,t,n,u,o,i,l){let f=null;if(o&8&&e.report(0),e.getToken()===1077936155){r(e,t|32);let{tokenStart:c}=e;e.getToken()===537079927&&e.report(119);let g=11264|((o&64)===0?16896:0);t=(t|g)^g|(o&8?1024:0)|(o&16?2048:0)|(o&64?16384:0)|256|65536,f=U(e,t|16,n,2,0,1,0,1,c),((e.getToken()&1073741824)!==1073741824||(e.getToken()&4194304)===4194304)&&(f=F(e,t|16,n,f,0,0,c),f=I(e,t|16,n,0,0,c,f))}return M(e,t),e.finishNode({type:o&1024?"AccessorProperty":"PropertyDefinition",key:u,value:f,static:(o&32)>0,computed:(o&2)>0,...e.options.next?{decorators:i}:null},l)}function Zt(e,t,n,u,o,i){if(e.getToken()&143360||(t&1)===0&&e.getToken()===-2147483527)return it(e,t,n,o,i);(e.getToken()&2097152)!==2097152&&e.report(30,B[e.getToken()&255]);let l=e.getToken()===69271571?X(e,t,n,u,1,0,1,o,i):j(e,t,n,u,1,0,1,o,i);return e.destructible&16&&e.report(50),e.destructible&32&&e.report(50),l}function it(e,t,n,u,o){let i=e.getToken();t&1&&((i&537079808)===537079808?e.report(119):((i&36864)===36864||i===-2147483527)&&e.report(118)),(i&20480)===20480&&e.report(102),i===241771&&(t&1024&&e.report(32),t&2&&e.report(111)),(i&255)===73&&u&24&&e.report(100),i===209006&&(t&2048&&e.report(176),t&2&&e.report(110));let{tokenValue:l,tokenStart:f}=e;return r(e,t),n?.addVarOrBlock(t,l,u,o),e.finishNode({type:"Identifier",name:l},f)}function Re(e,t,n,u,o){if(u||y(e,t,8456256),e.getToken()===8390721){let c=nu(e,o),[g,d]=lu(e,t,n,u);return e.finishNode({type:"JSXFragment",openingFragment:c,children:g,closingFragment:d},o)}e.getToken()===8457014&&e.report(30,B[e.getToken()&255]);let i=null,l=[],f=su(e,t,n,u,o);if(!f.selfClosing){[l,i]=ou(e,t,n,u);let c=Fe(i.name);Fe(f.name)!==c&&e.report(155,c)}return e.finishNode({type:"JSXElement",children:l,openingElement:f,closingElement:i},o)}function nu(e,t){return me(e),e.finishNode({type:"JSXOpeningFragment"},t)}function uu(e,t,n,u){y(e,t,8457014);let o=xt(e,t);return e.getToken()!==8390721&&e.report(25,B[65]),n?me(e):r(e,t),e.finishNode({type:"JSXClosingElement",name:o},u)}function iu(e,t,n,u){return y(e,t,8457014),e.getToken()!==8390721&&e.report(25,B[65]),n?me(e):r(e,t),e.finishNode({type:"JSXClosingFragment"},u)}function ou(e,t,n,u){let o=[];for(;;){let i=fu(e,t,n,u);if(i.type==="JSXClosingElement")return[o,i];o.push(i)}}function lu(e,t,n,u){let o=[];for(;;){let i=cu(e,t,n,u);if(i.type==="JSXClosingFragment")return[o,i];o.push(i)}}function fu(e,t,n,u){if(e.getToken()===137)return Gt(e,t);if(e.getToken()===2162700)return ot(e,t,n,1,0);if(e.getToken()===8456256){let{tokenStart:o}=e;return r(e,t),e.getToken()===8457014?uu(e,t,u,o):Re(e,t,n,1,o)}e.report(0)}function cu(e,t,n,u){if(e.getToken()===137)return Gt(e,t);if(e.getToken()===2162700)return ot(e,t,n,1,0);if(e.getToken()===8456256){let{tokenStart:o}=e;return r(e,t),e.getToken()===8457014?iu(e,t,u,o):Re(e,t,n,1,o)}e.report(0)}function Gt(e,t){let n=e.tokenStart;r(e,t);let u={type:"JSXText",value:e.tokenValue};return e.options.raw&&(u.raw=e.tokenRaw),e.finishNode(u,n)}function su(e,t,n,u,o){(e.getToken()&143360)!==143360&&(e.getToken()&4096)!==4096&&e.report(0);let i=xt(e,t),l=au(e,t,n),f=e.getToken()===8457014;return f&&y(e,t,8457014),e.getToken()!==8390721&&e.report(25,B[65]),u||!f?me(e):r(e,t),e.finishNode({type:"JSXOpeningElement",name:i,attributes:l,selfClosing:f},o)}function xt(e,t){let{tokenStart:n}=e;Ue(e);let u=Me(e,t);if(e.getToken()===21)return pt(e,t,u,n);for(;C(e,t,67108877);)Ue(e),u=du(e,t,u,n);return u}function du(e,t,n,u){let o=Me(e,t);return e.finishNode({type:"JSXMemberExpression",object:n,property:o},u)}function au(e,t,n){let u=[];for(;e.getToken()!==8457014&&e.getToken()!==8390721&&e.getToken()!==1048576;)u.push(mu(e,t,n));return u}function gu(e,t,n){let u=e.tokenStart;r(e,t),y(e,t,14);let o=L(e,t,n,1,0,e.tokenStart);return y(e,t,1074790415),e.finishNode({type:"JSXSpreadAttribute",argument:o},u)}function mu(e,t,n){let{tokenStart:u}=e;if(e.getToken()===2162700)return gu(e,t,n);Ue(e);let o=null,i=Me(e,t);if(e.getToken()===21&&(i=pt(e,t,i,u)),e.getToken()===1077936155)switch(un(e,t)){case 134283267:o=O(e,t);break;case 8456256:o=Re(e,t,n,0,e.tokenStart);break;case 2162700:o=ot(e,t,n,0,1);break;default:e.report(154)}return e.finishNode({type:"JSXAttribute",value:o,name:i},u)}function pt(e,t,n,u){y(e,t,21);let o=Me(e,t);return e.finishNode({type:"JSXNamespacedName",namespace:n,name:o},u)}function ot(e,t,n,u,o){let{tokenStart:i}=e;r(e,t|32);let{tokenStart:l}=e;if(e.getToken()===14)return ru(e,t,n,i);let f=null;return e.getToken()===1074790415?(o&&e.report(157),f=hu(e,{index:e.startIndex,line:e.startLine,column:e.startColumn})):f=L(e,t,n,1,0,l),e.getToken()!==1074790415&&e.report(25,B[15]),u?me(e):r(e,t),e.finishNode({type:"JSXExpressionContainer",expression:f},i)}function ru(e,t,n,u){y(e,t,14);let o=L(e,t,n,1,0,e.tokenStart);return y(e,t,1074790415),e.finishNode({type:"JSXSpreadChild",expression:o},u)}function hu(e,t){return e.finishNode({type:"JSXEmptyExpression"},t,e.tokenStart)}function Me(e,t){let n=e.tokenStart;e.getToken()&143360||e.report(30,B[e.getToken()&255]);let{tokenValue:u}=e;return r(e,t),e.finishNode({type:"JSXIdentifier",name:u},n)}function e2(e,t){return sn(e,t)}function ku(e,t){let n=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(n,t)}var t2=ku;function n2(e){let t=[];for(let n of e)try{return n()}catch(u){t.push(u)}throw Object.assign(new Error("All combinations failed"),{errors:t})}var yu=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let n=this[t];if(e(n,t,this))return n}},Au=Q("findLast",function(){if(Array.isArray(this))return yu}),u2=Au;function Tu(e){return this[e<0?this.length+e:e]}var bu=Q("at",function(){if(Array.isArray(this)||typeof this=="string")return Tu}),i2=bu;function H(e){let t=e.range?.[0]??e.start,n=(e.declaration?.decorators??e.decorators)?.[0];return n?Math.min(H(n),t):t}function J(e){return e.range?.[1]??e.end}function Du(e){let t=new Set(e);return n=>t.has(n?.type)}var le=Du;var Cu=le(["Block","CommentBlock","MultiLine"]),fe=Cu;var Eu=le(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),o2=Eu;var lt=new WeakMap;function wu(e){return lt.has(e)||lt.set(e,fe(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)),lt.get(e)}var l2=wu;function Su(e){if(!fe(e))return!1;let t=`*${e.value}*`.split(` +`);return t.length>1&&t.every(n=>n.trimStart()[0]==="*")}var ft=new WeakMap;function Bu(e){return ft.has(e)||ft.set(e,Su(e)),ft.get(e)}var ct=Bu;function Fu(e){if(e.length<2)return;let t;for(let n=e.length-1;n>=0;n--){let u=e[n];if(t&&J(u)===H(t)&&ct(u)&&ct(t)&&(e.splice(n+1,1),u.value+="*//*"+t.value,u.range=[H(u),J(t)]),!o2(u)&&!fe(u))throw new TypeError(`Unknown comment type: "${u.type}".`);t=u}}var f2=Fu;function Nu(e){return e!==null&&typeof e=="object"}var c2=Nu;var ye=null;function Ae(e){if(ye!==null&&typeof ye.property){let t=ye;return ye=Ae.prototype=null,t}return ye=Ae.prototype=e??Object.create(null),new Ae}var Lu=10;for(let e=0;e<=Lu;e++)Ae();function st(e){return Ae(e)}function Iu(e,t="type"){st(e);function n(u){let o=u[t],i=e[o];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${o}'.`),{node:u});return i}return n}var s2=Iu;var s=[["decorators","key","typeAnnotation","value"],[],["elementType"],["expression"],["expression","typeAnnotation"],["left","right"],["argument"],["directives","body"],["label"],["callee","typeArguments","arguments"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body","superTypeParameters"],["id","typeParameters"],["decorators","key","typeParameters","params","returnType","body"],["decorators","variance","key","typeAnnotation","value"],["name","typeAnnotation"],["test","consequent","alternate"],["checkType","extendsType","trueType","falseType"],["value"],["id","body"],["declaration","specifiers","source","attributes"],["id"],["id","typeParameters","extends","body"],["typeAnnotation"],["id","typeParameters","right"],["body","test"],["members"],["id","init"],["exported"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["id","params","body","typeParameters","returnType"],["key","value"],["local"],["objectType","indexType"],["typeParameter"],["types"],["node"],["object","property"],["argument","cases"],["pattern","body","guard"],["literal"],["decorators","key","value"],["expressions"],["qualification","id"],["decorators","key","typeAnnotation"],["typeParameters","params","returnType"],["expression","typeArguments"],["params"],["parameterName","typeAnnotation"]],d2={AccessorProperty:s[0],AnyTypeAnnotation:s[1],ArgumentPlaceholder:s[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:s[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:s[3],AsExpression:s[4],AssignmentExpression:s[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:s[6],BigIntLiteral:s[1],BigIntLiteralTypeAnnotation:s[1],BigIntTypeAnnotation:s[1],BinaryExpression:s[5],BindExpression:["object","callee"],BlockStatement:s[7],BooleanLiteral:s[1],BooleanLiteralTypeAnnotation:s[1],BooleanTypeAnnotation:s[1],BreakStatement:s[8],CallExpression:s[9],CatchClause:["param","body"],ChainExpression:s[3],ClassAccessorProperty:s[0],ClassBody:s[10],ClassDeclaration:s[11],ClassExpression:s[11],ClassImplements:s[12],ClassMethod:s[13],ClassPrivateMethod:s[13],ClassPrivateProperty:s[14],ClassProperty:s[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:s[15],ConditionalExpression:s[16],ConditionalTypeAnnotation:s[17],ContinueStatement:s[8],DebuggerStatement:s[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:s[18],DeclareEnum:s[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:s[20],DeclareFunction:["id","predicate"],DeclareHook:s[21],DeclareInterface:s[22],DeclareModule:s[19],DeclareModuleExports:s[23],DeclareNamespace:s[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:s[24],DeclareVariable:s[21],Decorator:s[3],Directive:s[18],DirectiveLiteral:s[1],DoExpression:s[10],DoWhileStatement:s[25],EmptyStatement:s[1],EmptyTypeAnnotation:s[1],EnumBigIntBody:s[26],EnumBigIntMember:s[27],EnumBooleanBody:s[26],EnumBooleanMember:s[27],EnumDeclaration:s[19],EnumDefaultedMember:s[21],EnumNumberBody:s[26],EnumNumberMember:s[27],EnumStringBody:s[26],EnumStringMember:s[27],EnumSymbolBody:s[26],ExistsTypeAnnotation:s[1],ExperimentalRestProperty:s[6],ExperimentalSpreadProperty:s[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:s[28],ExportNamedDeclaration:s[20],ExportNamespaceSpecifier:s[28],ExportSpecifier:["local","exported"],ExpressionStatement:s[3],File:["program"],ForInStatement:s[29],ForOfStatement:s[29],ForStatement:["init","test","update","body"],FunctionDeclaration:s[30],FunctionExpression:s[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:s[15],GenericTypeAnnotation:s[12],HookDeclaration:s[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:s[16],ImportAttribute:s[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:s[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:s[33],ImportSpecifier:["imported","local"],IndexedAccessType:s[34],InferredPredicate:s[1],InferTypeAnnotation:s[35],InterfaceDeclaration:s[22],InterfaceExtends:s[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:s[1],IntersectionTypeAnnotation:s[36],JsExpressionRoot:s[37],JsonRoot:s[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:s[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:s[1],JSXExpressionContainer:s[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:s[1],JSXMemberExpression:s[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:s[1],JSXSpreadAttribute:s[6],JSXSpreadChild:s[3],JSXText:s[1],KeyofTypeAnnotation:s[6],LabeledStatement:["label","body"],Literal:s[1],LogicalExpression:s[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:s[21],MatchExpression:s[39],MatchExpressionCase:s[40],MatchIdentifierPattern:s[21],MatchLiteralPattern:s[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:s[6],MatchStatement:s[39],MatchStatementCase:s[40],MatchUnaryPattern:s[6],MatchWildcardPattern:s[1],MemberExpression:s[38],MetaProperty:["meta","property"],MethodDefinition:s[42],MixedTypeAnnotation:s[1],ModuleExpression:s[10],NeverTypeAnnotation:s[1],NewExpression:s[9],NGChainedExpression:s[43],NGEmptyExpression:s[1],NGMicrosyntax:s[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:s[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:s[32],NGPipeExpression:["left","right","arguments"],NGRoot:s[37],NullableTypeAnnotation:s[23],NullLiteral:s[1],NullLiteralTypeAnnotation:s[1],NumberLiteralTypeAnnotation:s[1],NumberTypeAnnotation:s[1],NumericLiteral:s[1],ObjectExpression:["properties"],ObjectMethod:s[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:s[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:s[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:s[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:s[9],OptionalIndexedAccessType:s[34],OptionalMemberExpression:s[38],ParenthesizedExpression:s[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:s[1],PipelineTopicExpression:s[3],Placeholder:s[1],PrivateIdentifier:s[1],PrivateName:s[21],Program:s[7],Property:s[32],PropertyDefinition:s[14],QualifiedTypeIdentifier:s[44],QualifiedTypeofIdentifier:s[44],RegExpLiteral:s[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:s[6],SatisfiesExpression:s[4],SequenceExpression:s[43],SpreadElement:s[6],StaticBlock:s[10],StringLiteral:s[1],StringLiteralTypeAnnotation:s[1],StringTypeAnnotation:s[1],Super:s[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:s[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:s[1],TemplateLiteral:["quasis","expressions"],ThisExpression:s[1],ThisTypeAnnotation:s[1],ThrowStatement:s[6],TopicReference:s[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:s[45],TSAbstractKeyword:s[1],TSAbstractMethodDefinition:s[32],TSAbstractPropertyDefinition:s[45],TSAnyKeyword:s[1],TSArrayType:s[2],TSAsExpression:s[4],TSAsyncKeyword:s[1],TSBigIntKeyword:s[1],TSBooleanKeyword:s[1],TSCallSignatureDeclaration:s[46],TSClassImplements:s[47],TSConditionalType:s[17],TSConstructorType:s[46],TSConstructSignatureDeclaration:s[46],TSDeclareFunction:s[31],TSDeclareKeyword:s[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:s[26],TSEnumDeclaration:s[19],TSEnumMember:["id","initializer"],TSExportAssignment:s[3],TSExportKeyword:s[1],TSExternalModuleReference:s[3],TSFunctionType:s[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:s[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:s[35],TSInstantiationExpression:s[47],TSInterfaceBody:s[10],TSInterfaceDeclaration:s[22],TSInterfaceHeritage:s[47],TSIntersectionType:s[36],TSIntrinsicKeyword:s[1],TSJSDocAllType:s[1],TSJSDocNonNullableType:s[23],TSJSDocNullableType:s[23],TSJSDocUnknownType:s[1],TSLiteralType:s[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:s[10],TSModuleDeclaration:s[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:s[21],TSNeverKeyword:s[1],TSNonNullExpression:s[3],TSNullKeyword:s[1],TSNumberKeyword:s[1],TSObjectKeyword:s[1],TSOptionalType:s[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:s[23],TSPrivateKeyword:s[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:s[1],TSPublicKeyword:s[1],TSQualifiedName:s[5],TSReadonlyKeyword:s[1],TSRestType:s[23],TSSatisfiesExpression:s[4],TSStaticKeyword:s[1],TSStringKeyword:s[1],TSSymbolKeyword:s[1],TSTemplateLiteralType:["quasis","types"],TSThisType:s[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:s[23],TSTypeAssertion:s[4],TSTypeLiteral:s[26],TSTypeOperator:s[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:s[48],TSTypeParameterInstantiation:s[48],TSTypePredicate:s[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:s[1],TSUnionType:s[36],TSUnknownKeyword:s[1],TSVoidKeyword:s[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:s[24],TypeAnnotation:s[23],TypeCastExpression:s[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:s[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:s[48],TypeParameterInstantiation:s[48],TypePredicate:s[49],UnaryExpression:s[6],UndefinedTypeAnnotation:s[1],UnionTypeAnnotation:s[36],UnknownTypeAnnotation:s[1],UpdateExpression:s[6],V8IntrinsicIdentifier:s[1],VariableDeclaration:["declarations"],VariableDeclarator:s[27],Variance:s[1],VoidPattern:s[1],VoidTypeAnnotation:s[1],WhileStatement:s[25],WithStatement:["object","body"],YieldExpression:s[6]};var qu=s2(d2),a2=qu;function ve(e,t){if(!c2(e))return e;if(Array.isArray(e)){for(let u=0;uA<=d);a=h&&u.slice(h,d).trim().length===0}return a?void 0:(g.extra={...g.extra,parenthesized:!0},g)}case"TemplateLiteral":if(c.expressions.length!==c.quasis.length-1)throw new Error("Malformed template literal.");break;case"TemplateElement":if(n==="flow"||n==="hermes"||n==="espree"||n==="typescript"||i){let g=H(c)+1,d=J(c)-(c.tail?1:2);c.range=[g,d]}break;case"VariableDeclaration":{let g=i2(0,c.declarations,-1);g?.init&&u[J(g)]!==";"&&(c.range=[H(c),J(g)]);break}case"TSParenthesizedType":return c.typeAnnotation;case"TopicReference":e.extra={...e.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(c.types.length===1)return c.types[0];break;case"ImportExpression":n==="hermes"&&c.attributes&&!c.options&&(c.options=c.attributes);break}},onLeave(c){switch(c.type){case"LogicalExpression":if(m2(c))return dt(c);break;case"TSImportType":!c.source&&c.argument.type==="TSLiteralType"&&(c.source=c.argument.literal,delete c.argument);break}}}),e}function m2(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function dt(e){return m2(e)?dt({type:"LogicalExpression",operator:e.operator,left:dt({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[H(e.left),J(e.right.left)]}),right:e.right.right,range:[H(e),J(e)]}):e}var r2=Pu;var Ou=/\*\/$/,Vu=/^\/\*\*?/,Ru=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Mu=/(^|\s+)\/\/([^\n\r]*)/g,h2=/^(\r?\n)+/,vu=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,k2=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,Uu=/(\r?\n|^) *\* ?/g,Ju=[];function y2(e){let t=e.match(Ru);return t?t[0].trimStart():""}function A2(e){e=p(0,e.replace(Vu,"").replace(Ou,""),Uu,"$1");let n="";for(;n!==e;)n=e,e=p(0,e,vu,` +$1 $2 +`);e=e.replace(h2,"").trimEnd();let u=Object.create(null),o=p(0,e,k2,"").replace(h2,"").trimEnd(),i;for(;i=k2.exec(e);){let l=p(0,i[2],Mu,"");if(typeof u[i[1]]=="string"||Array.isArray(u[i[1]])){let f=u[i[1]];u[i[1]]=[...Ju,...Array.isArray(f)?f:[f],l]}else u[i[1]]=l}return{comments:o,pragmas:u}}var T2=["noformat","noprettier"],b2=["format","prettier"];function _u(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` +`);return t===-1?e:e.slice(0,t)}var D2=_u;function C2(e){let t=D2(e);t&&(e=e.slice(t.length+1));let n=y2(e),{pragmas:u,comments:o}=A2(n);return{shebang:t,text:e,pragmas:u,comments:o}}function E2(e){let{pragmas:t}=C2(e);return b2.some(n=>Object.prototype.hasOwnProperty.call(t,n))}function w2(e){let{pragmas:t}=C2(e);return T2.some(n=>Object.prototype.hasOwnProperty.call(t,n))}function Xu(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:E2,hasIgnorePragma:w2,locStart:H,locEnd:J,...e}}var S2=Xu;var B2="module";var F2="commonjs",N2=[B2,F2];function L2(e){if(typeof e=="string"){if(e=e.toLowerCase(),/\.(?:mjs|mts)$/iu.test(e))return B2;if(/\.(?:cjs|cts)$/iu.test(e))return F2}}var ju={next:!0,ranges:!0,webcompat:!0,loc:!1,raw:!0,directives:!0,impliedStrict:!1,preserveParens:!0,lexical:!1,jsx:!0,validateRegex:!1};function Hu(e,t){let n=[],u=e2(e,{...ju,sourceType:t,onComment:n});return u.comments=n,u}function zu(e){let{description:t,loc:n}=e;return n?t2(t,{loc:{start:{line:n.start.line,column:n.start.column+1},end:{line:n.end.line,column:n.end.column+1}},cause:e}):e}function Ku(e,t){let n=L2(t?.filepath),u=(n?[n]:N2).map(i=>()=>Hu(e,i)),o;try{o=n2(u)}catch({errors:[i]}){throw zu(i)}return r2(o,{parser:"meriyah",text:e})}var $u=S2(Ku);export{I2 as default,at as parsers}; diff --git a/node_modules/prettier/plugins/postcss.d.ts b/node_modules/prettier/plugins/postcss.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..9580f31223f272a73a2fab18cccb7695b2a35c43 --- /dev/null +++ b/node_modules/prettier/plugins/postcss.d.ts @@ -0,0 +1,11 @@ +import { Parser, Printer } from "../index.js"; + +export declare const parsers: { + css: Parser; + less: Parser; + scss: Parser; +}; + +export declare const printers: { + postcss: Printer; +}; diff --git a/node_modules/prettier/plugins/postcss.js b/node_modules/prettier/plugins/postcss.js new file mode 100644 index 0000000000000000000000000000000000000000..b6094220f14879ebdc206b9980d689c3227bbbef --- /dev/null +++ b/node_modules/prettier/plugins/postcss.js @@ -0,0 +1,61 @@ +(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.postcss=e()}})(function(){"use strict";var bl=Object.create;var bt=Object.defineProperty;var El=Object.getOwnPropertyDescriptor;var Sl=Object.getOwnPropertyNames;var kl=Object.getPrototypeOf,Tl=Object.prototype.hasOwnProperty;var w=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),sn=(t,e)=>{for(var s in e)bt(t,s,{get:e[s],enumerable:!0})},nn=(t,e,s,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Sl(e))!Tl.call(t,n)&&n!==s&&bt(t,n,{get:()=>e[n],enumerable:!(r=El(e,n))||r.enumerable});return t};var Te=(t,e,s)=>(s=t!=null?bl(kl(t)):{},nn(e||!t||!t.__esModule?bt(s,"default",{value:t,enumerable:!0}):s,t)),Al=t=>nn(bt({},"__esModule",{value:!0}),t);var Ci=w((lx,os)=>{var x=String,Oi=function(){return{isColorSupported:!1,reset:x,bold:x,dim:x,italic:x,underline:x,inverse:x,hidden:x,strikethrough:x,black:x,red:x,green:x,yellow:x,blue:x,magenta:x,cyan:x,white:x,gray:x,bgBlack:x,bgRed:x,bgGreen:x,bgYellow:x,bgBlue:x,bgMagenta:x,bgCyan:x,bgWhite:x,blackBright:x,redBright:x,greenBright:x,yellowBright:x,blueBright:x,magentaBright:x,cyanBright:x,whiteBright:x,bgBlackBright:x,bgRedBright:x,bgGreenBright:x,bgYellowBright:x,bgBlueBright:x,bgMagentaBright:x,bgCyanBright:x,bgWhiteBright:x}};os.exports=Oi();os.exports.createColors=Oi});var as=w(()=>{});var jt=w((px,Ri)=>{"use strict";var Ni=Ci(),Pi=as(),st=class t extends Error{constructor(e,s,r,n,i,o){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),n&&(this.source=n),o&&(this.plugin=o),typeof s<"u"&&typeof r<"u"&&(typeof s=="number"?(this.line=s,this.column=r):(this.line=s.line,this.column=s.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,t)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let s=this.source;e==null&&(e=Ni.isColorSupported);let r=f=>f,n=f=>f,i=f=>f;if(e){let{bold:f,gray:h,red:c}=Ni.createColors(!0);n=g=>f(c(g)),r=g=>h(g),Pi&&(i=g=>Pi(g))}let o=s.split(/\r?\n/),u=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),l=String(a).length;return o.slice(u,a).map((f,h)=>{let c=u+1+h,g=" "+(" "+c).slice(-l)+" | ";if(c===this.line){if(f.length>160){let d=20,p=Math.max(0,this.column-d),m=Math.max(this.column+d,this.endColumn+d),y=f.slice(p,m),v=r(g.replace(/\d/g," "))+f.slice(0,Math.min(this.column-1,d-1)).replace(/[^\t]/g," ");return n(">")+r(g)+i(y)+` + `+v+n("^")}let b=r(g.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+r(g)+i(f)+` + `+b+n("^")}return" "+r(g)+i(f)}).join(` +`)}toString(){let e=this.showSourceCode();return e&&(e=` + +`+e+` +`),this.name+": "+this.message+e}};Ri.exports=st;st.default=st});var Ht=w((hx,qi)=>{"use strict";var Ii={after:` +`,beforeClose:` +`,beforeComment:` +`,beforeDecl:` +`,beforeOpen:" ",beforeRule:` +`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Rc(t){return t[0].toUpperCase()+t.slice(1)}var nt=class{constructor(e){this.builder=e}atrule(e,s){let r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{let i=(e.raws.between||"")+(s?";":"");this.builder(r+n+i,e)}}beforeAfter(e,s){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):s==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let n=e.parent,i=0;for(;n&&n.type!=="root";)i+=1,n=n.parent;if(r.includes(` +`)){let o=this.raw(e,null,"indent");if(o.length)for(let u=0;u0&&e.nodes[s].type==="comment";)s-=1;let r=this.raw(e,"semicolon");for(let n=0;n{if(n=a.raws[s],typeof n<"u")return!1})}return typeof n>"u"&&(n=Ii[r]),o.rawCache[r]=n,n}rawBeforeClose(e){let s;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return s=r.raws.after,s.includes(` +`)&&(s=s.replace(/[^\n]+$/,"")),!1}),s&&(s=s.replace(/\S/g,"")),s}rawBeforeComment(e,s){let r;return e.walkComments(n=>{if(typeof n.raws.before<"u")return r=n.raws.before,r.includes(` +`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(s,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,s){let r;return e.walkDecls(n=>{if(typeof n.raws.before<"u")return r=n.raws.before,r.includes(` +`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(s,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let s;return e.walk(r=>{if(r.type!=="decl"&&(s=r.raws.between,typeof s<"u"))return!1}),s}rawBeforeRule(e){let s;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before<"u")return s=r.raws.before,s.includes(` +`)&&(s=s.replace(/[^\n]+$/,"")),!1}),s&&(s=s.replace(/\S/g,"")),s}rawColon(e){let s;return e.walkDecls(r=>{if(typeof r.raws.between<"u")return s=r.raws.between.replace(/[^\s:]/g,""),!1}),s}rawEmptyBody(e){let s;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(s=r.raws.after,typeof s<"u"))return!1}),s}rawIndent(e){if(e.raws.indent)return e.raws.indent;let s;return e.walk(r=>{let n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&typeof r.raws.before<"u"){let i=r.raws.before.split(` +`);return s=i[i.length-1],s=s.replace(/\S/g,""),!1}}),s}rawSemicolon(e){let s;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(s=r.raws.semicolon,typeof s<"u"))return!1}),s}rawValue(e,s){let r=e[s],n=e.raws[s];return n&&n.value===r?n.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,s){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,s)}};qi.exports=nt;nt.default=nt});var it=w((dx,Li)=>{"use strict";var Ic=Ht();function us(t,e){new Ic(e).stringify(t)}Li.exports=us;us.default=us});var Kt=w((mx,ls)=>{"use strict";ls.exports.isClean=Symbol("isClean");ls.exports.my=Symbol("my")});var ut=w((yx,Di)=>{"use strict";var qc=jt(),Lc=Ht(),Dc=it(),{isClean:ot,my:Mc}=Kt();function cs(t,e){let s=new t.constructor;for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||r==="proxyCache")continue;let n=t[r],i=typeof n;r==="parent"&&i==="object"?e&&(s[r]=e):r==="source"?s[r]=n:Array.isArray(n)?s[r]=n.map(o=>cs(o,s)):(i==="object"&&n!==null&&(n=cs(n)),s[r]=n)}return s}function ee(t,e){if(e&&typeof e.offset<"u")return e.offset;let s=1,r=1,n=0;for(let i=0;ie.root().toProxy():e[s]},set(e,s,r){return e[s]===r||(e[s]=r,(s==="prop"||s==="value"||s==="name"||s==="params"||s==="important"||s==="text")&&e.markDirty()),!0}}}markClean(){this[ot]=!0}markDirty(){if(this[ot]){this[ot]=!1;let e=this;for(;e=e.parent;)e[ot]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let s=this.source.start;if(e.index)s=this.positionInside(e.index);else if(e.word){let r="document"in this.source.input?this.source.input.document:this.source.input.css,i=r.slice(ee(r,this.source.start),ee(r,this.source.end)).indexOf(e.word);i!==-1&&(s=this.positionInside(i))}return s}positionInside(e){let s=this.source.start.column,r=this.source.start.line,n="document"in this.source.input?this.source.input.document:this.source.input.css,i=ee(n,this.source.start),o=i+e;for(let u=i;utypeof a=="object"&&a.toJSON?a.toJSON(null,s):a);else if(typeof u=="object"&&u.toJSON)r[o]=u.toJSON(null,s);else if(o==="source"){if(u==null)continue;let a=s.get(u.input);a==null&&(a=i,s.set(u.input,i),i++),r[o]={end:u.end,inputId:a,start:u.start}}else r[o]=u}return n&&(r.inputs=[...s.keys()].map(o=>o.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Dc){e.stringify&&(e=e.stringify);let s="";return e(this,r=>{s+=r}),s}warn(e,s,r={}){let n={node:this};for(let i in r)n[i]=r[i];return e.warn(s,n)}};Di.exports=at;at.default=at});var Me=w((gx,Mi)=>{"use strict";var Bc=ut(),lt=class extends Bc{constructor(e){super(e),this.type="comment"}};Mi.exports=lt;lt.default=lt});var ft=w((wx,Bi)=>{"use strict";var Uc=ut(),ct=class extends Uc{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}};Bi.exports=ct;ct.default=ct});var fe=w((vx,ji)=>{"use strict";var Ui=Me(),Fi=ft(),Fc=ut(),{isClean:$i,my:Wi}=Kt(),fs,Gi,Yi,ps;function Vi(t){return t.map(e=>(e.nodes&&(e.nodes=Vi(e.nodes)),delete e.source,e))}function zi(t){if(t[$i]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)zi(e)}var z=class t extends Fc{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let s of e){let r=this.normalize(s,this.last);for(let n of r)this.proxyOf.nodes.push(n)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let s of this.nodes)s.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let s=this.getIterator(),r,n;for(;this.indexes[s]e[s](...r.map(n=>typeof n=="function"?(i,o)=>n(i.toProxy(),o):n)):s==="every"||s==="some"?r=>e[s]((n,...i)=>r(n.toProxy(),...i)):s==="root"?()=>e.root().toProxy():s==="nodes"?e.nodes.map(r=>r.toProxy()):s==="first"||s==="last"?e[s].toProxy():e[s]:e[s]},set(e,s,r){return e[s]===r||(e[s]=r,(s==="name"||s==="params"||s==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,s){let r=this.index(e),n=this.normalize(s,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let o of n)this.proxyOf.nodes.splice(r+1,0,o);let i;for(let o in this.indexes)i=this.indexes[o],r"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Fi(e)]}else if(e.selector||e.selectors)e=[new ps(e)];else if(e.name)e=[new fs(e)];else if(e.text)e=[new Ui(e)];else throw new Error("Unknown node type in node creation");return e.map(n=>(n[Wi]||t.rebuild(n),n=n.proxyOf,n.parent&&n.parent.removeChild(n),n[$i]&&zi(n),n.raws||(n.raws={}),typeof n.raws.before>"u"&&s&&typeof s.raws.before<"u"&&(n.raws.before=s.raws.before.replace(/\S/g,"")),n.parent=this.proxyOf,n))}prepend(...e){e=e.reverse();for(let s of e){let r=this.normalize(s,this.first,"prepend").reverse();for(let n of r)this.proxyOf.nodes.unshift(n);for(let n in this.indexes)this.indexes[n]=this.indexes[n]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let s;for(let r in this.indexes)s=this.indexes[r],s>=e&&(this.indexes[r]=s-1);return this.markDirty(),this}replaceValues(e,s,r){return r||(r=s,s={}),this.walkDecls(n=>{s.props&&!s.props.includes(n.prop)||s.fast&&!n.value.includes(s.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((s,r)=>{let n;try{n=e(s,r)}catch(i){throw s.addToError(i)}return n!==!1&&s.walk&&(n=s.walk(e)),n})}walkAtRules(e,s){return s?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="atrule"&&e.test(r.name))return s(r,n)}):this.walk((r,n)=>{if(r.type==="atrule"&&r.name===e)return s(r,n)}):(s=e,this.walk((r,n)=>{if(r.type==="atrule")return s(r,n)}))}walkComments(e){return this.walk((s,r)=>{if(s.type==="comment")return e(s,r)})}walkDecls(e,s){return s?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="decl"&&e.test(r.prop))return s(r,n)}):this.walk((r,n)=>{if(r.type==="decl"&&r.prop===e)return s(r,n)}):(s=e,this.walk((r,n)=>{if(r.type==="decl")return s(r,n)}))}walkRules(e,s){return s?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="rule"&&e.test(r.selector))return s(r,n)}):this.walk((r,n)=>{if(r.type==="rule"&&r.selector===e)return s(r,n)}):(s=e,this.walk((r,n)=>{if(r.type==="rule")return s(r,n)}))}};z.registerParse=t=>{Gi=t};z.registerRule=t=>{ps=t};z.registerAtRule=t=>{fs=t};z.registerRoot=t=>{Yi=t};ji.exports=z;z.default=z;z.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,fs.prototype):t.type==="rule"?Object.setPrototypeOf(t,ps.prototype):t.type==="decl"?Object.setPrototypeOf(t,Fi.prototype):t.type==="comment"?Object.setPrototypeOf(t,Ui.prototype):t.type==="root"&&Object.setPrototypeOf(t,Yi.prototype),t[Wi]=!0,t.nodes&&t.nodes.forEach(e=>{z.rebuild(e)})}});var Ki=w((xx,Hi)=>{var $c="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Wc=(t,e=21)=>(s=e)=>{let r="",n=s|0;for(;n--;)r+=t[Math.random()*t.length|0];return r},Gc=(t=21)=>{let e="",s=t|0;for(;s--;)e+=$c[Math.random()*64|0];return e};Hi.exports={nanoid:Gc,customAlphabet:Wc}});var Qi=w(()=>{});var hs=w((Ex,Xi)=>{Xi.exports=class{}});var Ue=w((kx,ro)=>{"use strict";var{nanoid:Yc}=Ki(),{isAbsolute:ys,resolve:gs}={},{SourceMapConsumer:Vc,SourceMapGenerator:zc}=Qi(),{fileURLToPath:Ji,pathToFileURL:Qt}={},Zi=jt(),jc=hs(),ds=as(),ms=Symbol("lineToIndexCache"),Hc=!!(Vc&&zc),eo=!!(gs&&ys);function to(t){if(t[ms])return t[ms];let e=t.css.split(` +`),s=new Array(e.length),r=0;for(let n=0,i=e.length;n"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,s.document&&(this.document=s.document.toString()),s.from&&(!eo||/^\w+:\/\//.test(s.from)||ys(s.from)?this.file=s.from:this.file=gs(s.from)),eo&&Hc){let r=new jc(this.css,s);if(r.text){this.map=r;let n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}error(e,s,r,n={}){let i,o,u,a,l;if(s&&typeof s=="object"){let h=s,c=r;if(typeof h.offset=="number"){a=h.offset;let g=this.fromOffset(a);s=g.line,r=g.col}else s=h.line,r=h.column,a=this.fromLineAndColumn(s,r);if(typeof c.offset=="number"){u=c.offset;let g=this.fromOffset(u);o=g.line,i=g.col}else o=c.line,i=c.column,u=this.fromLineAndColumn(c.line,c.column)}else if(r)a=this.fromLineAndColumn(s,r);else{a=s;let h=this.fromOffset(a);s=h.line,r=h.col}let f=this.origin(s,r,o,i);return f?l=new Zi(e,f.endLine===void 0?f.line:{column:f.column,line:f.line},f.endLine===void 0?f.column:{column:f.endColumn,line:f.endLine},f.source,f.file,n.plugin):l=new Zi(e,o===void 0?s:{column:r,line:s},o===void 0?r:{column:i,line:o},this.css,this.file,n.plugin),l.input={column:r,endColumn:i,endLine:o,endOffset:u,line:s,offset:a,source:this.css},this.file&&(Qt&&(l.input.url=Qt(this.file).toString()),l.input.file=this.file),l}fromLineAndColumn(e,s){return to(this)[e-1]+s-1}fromOffset(e){let s=to(this),r=s[s.length-1],n=0;if(e>=r)n=s.length-1;else{let i=s.length-2,o;for(;n>1),e=s[o+1])n=o+1;else{n=o;break}}return{col:e-s[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:gs(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,s,r,n){if(!this.map)return!1;let i=this.map.consumer(),o=i.originalPositionFor({column:s,line:e});if(!o.source)return!1;let u;typeof r=="number"&&(u=i.originalPositionFor({column:n,line:r}));let a;ys(o.source)?a=Qt(o.source):a=new URL(o.source,this.map.consumer().sourceRoot||Qt(this.map.mapFile));let l={column:o.column,endColumn:u&&u.column,endLine:u&&u.line,line:o.line,url:a.toString()};if(a.protocol==="file:")if(Ji)l.file=Ji(a);else throw new Error("file: protocol is not available in this PostCSS build");let f=i.sourceContentFor(o.source);return f&&(l.source=f),l}toJSON(){let e={};for(let s of["hasBOM","css","file","id"])this[s]!=null&&(e[s]=this[s]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};ro.exports=Be;Be.default=Be;ds&&ds.registerInput&&ds.registerInput(Be)});var Xt=w((Tx,no)=>{"use strict";var so=fe(),Fe=class extends so{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};no.exports=Fe;Fe.default=Fe;so.registerAtRule(Fe)});var $e=w((Ax,uo)=>{"use strict";var io=fe(),oo,ao,pe=class extends io{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,s,r){let n=super.normalize(e);if(s){if(r==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(let i of n)i.raws.before=s.raws.before}return n}removeChild(e,s){let r=this.index(e);return!s&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new oo(new ao,this,e).stringify()}};pe.registerLazyResult=t=>{oo=t};pe.registerProcessor=t=>{ao=t};uo.exports=pe;pe.default=pe;io.registerRoot(pe)});var ws=w((Ox,lo)=>{"use strict";var pt={comma(t){return pt.split(t,[","],!0)},space(t){let e=[" ",` +`," "];return pt.split(t,e)},split(t,e,s){let r=[],n="",i=!1,o=0,u=!1,a="",l=!1;for(let f of t)l?l=!1:f==="\\"?l=!0:u?f===a&&(u=!1):f==='"'||f==="'"?(u=!0,a=f):f==="("?o+=1:f===")"?o>0&&(o-=1):o===0&&e.includes(f)&&(i=!0),i?(n!==""&&r.push(n.trim()),n="",i=!1):n+=f;return(s||n!=="")&&r.push(n.trim()),r}};lo.exports=pt;pt.default=pt});var Jt=w((Cx,fo)=>{"use strict";var co=fe(),Kc=ws(),We=class extends co{get selectors(){return Kc.comma(this.selector)}set selectors(e){let s=this.selector?this.selector.match(/,\s*/):null,r=s?s[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};fo.exports=We;We.default=We;co.registerRule(We)});var tr=w((Nx,ho)=>{"use strict";var Zt=/[\t\n\f\r "#'()/;[\\\]{}]/g,er=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Qc=/.[\r\n"'(/\\]/,po=/[\da-f]/i;ho.exports=function(e,s={}){let r=e.css.valueOf(),n=s.ignoreErrors,i,o,u,a,l,f,h,c,g,b,d=r.length,p=0,m=[],y=[];function v(){return p}function O(W){throw e.error("Unclosed "+W,p)}function q(){return y.length===0&&p>=d}function H(W){if(y.length)return y.pop();if(p>=d)return;let A=W?W.ignoreUnclosed:!1;switch(i=r.charCodeAt(p),i){case 10:case 32:case 9:case 13:case 12:{a=p;do a+=1,i=r.charCodeAt(a);while(i===32||i===10||i===9||i===13||i===12);f=["space",r.slice(p,a)],p=a-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let k=String.fromCharCode(i);f=[k,k,p];break}case 40:{if(b=m.length?m.pop()[1]:"",g=r.charCodeAt(p+1),b==="url"&&g!==39&&g!==34&&g!==32&&g!==10&&g!==9&&g!==12&&g!==13){a=p;do{if(h=!1,a=r.indexOf(")",a+1),a===-1)if(n||A){a=p;break}else O("bracket");for(c=a;r.charCodeAt(c-1)===92;)c-=1,h=!h}while(h);f=["brackets",r.slice(p,a+1),p,a],p=a}else a=r.indexOf(")",p+1),o=r.slice(p,a+1),a===-1||Qc.test(o)?f=["(","(",p]:(f=["brackets",o,p,a],p=a);break}case 39:case 34:{l=i===39?"'":'"',a=p;do{if(h=!1,a=r.indexOf(l,a+1),a===-1)if(n||A){a=p+1;break}else O("string");for(c=a;r.charCodeAt(c-1)===92;)c-=1,h=!h}while(h);f=["string",r.slice(p,a+1),p,a],p=a;break}case 64:{Zt.lastIndex=p+1,Zt.test(r),Zt.lastIndex===0?a=r.length-1:a=Zt.lastIndex-2,f=["at-word",r.slice(p,a+1),p,a],p=a;break}case 92:{for(a=p,u=!0;r.charCodeAt(a+1)===92;)a+=1,u=!u;if(i=r.charCodeAt(a+1),u&&i!==47&&i!==32&&i!==10&&i!==9&&i!==13&&i!==12&&(a+=1,po.test(r.charAt(a)))){for(;po.test(r.charAt(a+1));)a+=1;r.charCodeAt(a+1)===32&&(a+=1)}f=["word",r.slice(p,a+1),p,a],p=a;break}default:{i===47&&r.charCodeAt(p+1)===42?(a=r.indexOf("*/",p+2)+1,a===0&&(n||A?a=r.length:O("comment")),f=["comment",r.slice(p,a+1),p,a],p=a):(er.lastIndex=p+1,er.test(r),er.lastIndex===0?a=r.length-1:a=er.lastIndex-2,f=["word",r.slice(p,a+1),p,a],m.push(f),p=a);break}}return p++,f}function ne(W){y.push(W)}return{back:ne,endOfFile:q,nextToken:H,position:v}}});var rr=w((Px,go)=>{"use strict";var Xc=Xt(),Jc=Me(),Zc=ft(),ef=$e(),mo=Jt(),tf=tr(),yo={empty:!0,space:!0};function rf(t){for(let e=t.length-1;e>=0;e--){let s=t[e],r=s[3]||s[2];if(r)return r}}var vs=class{constructor(e){this.input=e,this.root=new ef,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let s=new Xc;s.name=e[1].slice(1),s.name===""&&this.unnamedAtrule(s,e),this.init(s,e[2]);let r,n,i,o=!1,u=!1,a=[],l=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?l.push(r==="("?")":"]"):r==="{"&&l.length>0?l.push("}"):r===l[l.length-1]&&l.pop(),l.length===0)if(r===";"){s.source.end=this.getPosition(e[2]),s.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){u=!0;break}else if(r==="}"){if(a.length>0){for(i=a.length-1,n=a[i];n&&n[0]==="space";)n=a[--i];n&&(s.source.end=this.getPosition(n[3]||n[2]),s.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(s.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(s,"params",a),o&&(e=a[a.length-1],s.source.end=this.getPosition(e[3]||e[2]),s.source.end.offset++,this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),u&&(s.nodes=[],this.current=s)}checkMissedSemicolon(e){let s=this.colon(e);if(s===!1)return;let r=0,n;for(let i=s-1;i>=0&&(n=e[i],!(n[0]!=="space"&&(r+=1,r===2)));i--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(e){let s=0,r,n,i;for(let[o,u]of e.entries()){if(n=u,i=n[0],i==="("&&(s+=1),i===")"&&(s-=1),s===0&&i===":")if(!r)this.doubleColon(n);else{if(r[0]==="word"&&r[1]==="progid")continue;return o}r=n}return!1}comment(e){let s=new Jc;this.init(s,e[2]),s.source.end=this.getPosition(e[3]||e[2]),s.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))s.text="",s.raws.left=r,s.raws.right="";else{let n=r.match(/^(\s*)([^]*\S)(\s*)$/);s.text=n[2],s.raws.left=n[1],s.raws.right=n[3]}}createTokenizer(){this.tokenizer=tf(this.input)}decl(e,s){let r=new Zc;this.init(r,e[0][2]);let n=e[e.length-1];for(n[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(n[3]||n[2]||rf(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let l=e[0][0];if(l===":"||l==="space"||l==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let i;for(;e.length;)if(i=e.shift(),i[0]===":"){r.raws.between+=i[1];break}else i[0]==="word"&&/\w/.test(i[1])&&this.unknownWord([i]),r.raws.between+=i[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let o=[],u;for(;e.length&&(u=e[0][0],!(u!=="space"&&u!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let l=e.length-1;l>=0;l--){if(i=e[l],i[1].toLowerCase()==="!important"){r.important=!0;let f=this.stringFrom(e,l);f=this.spacesFromEnd(e)+f,f!==" !important"&&(r.raws.important=f);break}else if(i[1].toLowerCase()==="important"){let f=e.slice(0),h="";for(let c=l;c>0;c--){let g=f[c][0];if(h.trim().startsWith("!")&&g!=="space")break;h=f.pop()[1]+h}h.trim().startsWith("!")&&(r.important=!0,r.raws.important=h,e=f)}if(i[0]!=="space"&&i[0]!=="comment")break}e.some(l=>l[0]!=="space"&&l[0]!=="comment")&&(r.raws.between+=o.map(l=>l[1]).join(""),o=[]),this.raw(r,"value",o.concat(e),s),r.value.includes(":")&&!s&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let s=new mo;this.init(s,e[2]),s.selector="",s.raws.between="",this.current=s}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let s=this.current.nodes[this.current.nodes.length-1];s&&s.type==="rule"&&!s.raws.ownSemicolon&&(s.raws.ownSemicolon=this.spaces,this.spaces="",s.source.end=this.getPosition(e[2]),s.source.end.offset+=s.raws.ownSemicolon.length)}}getPosition(e){let s=this.input.fromOffset(e);return{column:s.col,line:s.line,offset:e}}init(e,s){this.current.push(e),e.source={input:this.input,start:this.getPosition(s)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let s=!1,r=null,n=!1,i=null,o=[],u=e[1].startsWith("--"),a=[],l=e;for(;l;){if(r=l[0],a.push(l),r==="("||r==="[")i||(i=l),o.push(r==="("?")":"]");else if(u&&n&&r==="{")i||(i=l),o.push("}");else if(o.length===0)if(r===";")if(n){this.decl(a,u);return}else break;else if(r==="{"){this.rule(a);return}else if(r==="}"){this.tokenizer.back(a.pop()),s=!0;break}else r===":"&&(n=!0);else r===o[o.length-1]&&(o.pop(),o.length===0&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(s=!0),o.length>0&&this.unclosedBracket(i),s&&n){if(!u)for(;a.length&&(l=a[a.length-1][0],!(l!=="space"&&l!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,u)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,s,r,n){let i,o,u=r.length,a="",l=!0,f,h;for(let c=0;cg+b[1],"");e.raws[s]={raw:c,value:a}}e[s]=a}rule(e){e.pop();let s=new mo;this.init(s,e[0][2]),s.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(s,"selector",e),this.current=s}spacesAndCommentsFromEnd(e){let s,r="";for(;e.length&&(s=e[e.length-1][0],!(s!=="space"&&s!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let s,r="";for(;e.length&&(s=e[0][0],!(s!=="space"&&s!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let s,r="";for(;e.length&&(s=e[e.length-1][0],s==="space");)r=e.pop()[1]+r;return r}stringFrom(e,s){let r="";for(let n=s;n{"use strict";var sf=fe(),nf=Ue(),of=rr();function sr(t,e){let s=new nf(t,e),r=new of(s);try{r.parse()}catch(n){throw n}return r.root}wo.exports=sr;sr.default=sr;sf.registerParse(sr)});var vo=w((Ix,xs)=>{var af=tr(),uf=Ue();xs.exports={isInlineComment(t){if(t[0]==="word"&&t[1].slice(0,2)==="//"){let e=t,s=[],r,n;for(;t;){if(/\r?\n/.test(t[1])){if(/['"].*\r?\n/.test(t[1])){s.push(t[1].substring(0,t[1].indexOf(` +`))),n=t[1].substring(t[1].indexOf(` +`));let o=this.input.css.valueOf().substring(this.tokenizer.position());n+=o,r=t[3]+o.length-n.length}else this.tokenizer.back(t);break}s.push(t[1]),r=t[2],t=this.tokenizer.nextToken({ignoreUnclosed:!0})}let i=["comment",s.join(""),e[2],r];return this.inlineComment(i),n&&(this.input=new uf(n),this.tokenizer=af(this.input)),!0}else if(t[1]==="/"){let e=this.tokenizer.nextToken({ignoreUnclosed:!0});if(e[0]==="comment"&&/^\/\*/.test(e[1]))return e[0]="word",e[1]=e[1].slice(1),t[1]="//",this.tokenizer.back(e),xs.exports.isInlineComment.bind(this)(t)}return!1}}});var _o=w((qx,xo)=>{xo.exports={interpolation(t){let e=[t,this.tokenizer.nextToken()],s=["word","}"];if(e[0][1].length>1||e[1][0]!=="{")return this.tokenizer.back(e[1]),!1;for(t=this.tokenizer.nextToken();t&&s.includes(t[0]);)e.push(t),t=this.tokenizer.nextToken();let r=e.map(u=>u[1]),[n]=e,i=e.pop(),o=["word",r.join(""),n[2],i[2]];return this.tokenizer.back(t),this.tokenizer.back(o),!0}}});var Eo=w((Lx,bo)=>{var lf=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,cf=/\.[0-9]/,ff=t=>{let[,e]=t,[s]=e;return(s==="."||s==="#")&&lf.test(e)===!1&&cf.test(e)===!1};bo.exports={isMixinToken:ff}});var ko=w((Dx,So)=>{var pf=tr(),hf=/^url\((.+)\)/;So.exports=t=>{let{name:e,params:s=""}=t;if(e==="import"&&s.length){t.import=!0;let r=pf({css:s});for(t.filename=s.replace(hf,"$1");!r.endOfFile();){let[n,i]=r.nextToken();if(n==="word"&&i==="url")return;if(n==="brackets"){t.options=i,t.filename=s.replace(i,"").trim();break}}}}});var Co=w((Mx,Oo)=>{var To=/:$/,Ao=/^:(\s+)?/;Oo.exports=t=>{let{name:e,params:s=""}=t;if(t.name.slice(-1)===":"){if(To.test(e)){let[r]=e.match(To);t.name=e.replace(r,""),t.raws.afterName=r+(t.raws.afterName||""),t.variable=!0,t.value=t.params}if(Ao.test(s)){let[r]=s.match(Ao);t.value=s.replace(r,""),t.raws.afterName=(t.raws.afterName||"")+r,t.variable=!0}}}});var Ro=w((Ux,Po)=>{var df=Me(),mf=rr(),{isInlineComment:yf}=vo(),{interpolation:No}=_o(),{isMixinToken:gf}=Eo(),wf=ko(),vf=Co(),xf=/(!\s*important)$/i;Po.exports=class extends mf{constructor(...e){super(...e),this.lastNode=null}atrule(e){No.bind(this)(e)||(super.atrule(e),wf(this.lastNode),vf(this.lastNode))}decl(...e){super.decl(...e),/extend\(.+\)/i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(e){e[0][1]=` ${e[0][1]}`;let s=e.findIndex(u=>u[0]==="("),r=e.reverse().find(u=>u[0]===")"),n=e.reverse().indexOf(r),o=e.splice(s,n).map(u=>u[1]).join("");for(let u of e.reverse())this.tokenizer.back(u);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=o}init(e,s,r){super.init(e,s,r),this.lastNode=e}inlineComment(e){let s=new df,r=e[1].slice(2);if(this.init(s,e[2]),s.source.end=this.getPosition(e[3]||e[2]),s.inline=!0,s.raws.begin="//",/^\s*$/.test(r))s.text="",s.raws.left=r,s.raws.right="";else{let n=r.match(/^(\s*)([^]*[^\s])(\s*)$/);[,s.raws.left,s.text,s.raws.right]=n}}mixin(e){let[s]=e,r=s[1].slice(0,1),n=e.findIndex(l=>l[0]==="brackets"),i=e.findIndex(l=>l[0]==="("),o="";if((n<0||n>3)&&i>0){let l=e.reduce((v,O,q)=>O[0]===")"?q:v),h=e.slice(i,l+i).map(v=>v[1]).join(""),[c]=e.slice(i),g=[c[2],c[3]],[b]=e.slice(l,l+1),d=[b[2],b[3]],p=["brackets",h].concat(g,d),m=e.slice(0,i),y=e.slice(l+1);e=m,e.push(p),e=e.concat(y)}let u=[];for(let l of e)if((l[1]==="!"||u.length)&&u.push(l),l[1]==="important")break;if(u.length){let[l]=u,f=e.indexOf(l),h=u[u.length-1],c=[l[2],l[3]],g=[h[4],h[5]],d=["word",u.map(p=>p[1]).join("")].concat(c,g);e.splice(f,u.length,d)}let a=e.findIndex(l=>xf.test(l[1]));a>0&&([,o]=e[a],e.splice(a,1));for(let l of e.reverse())this.tokenizer.back(l);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=r,o&&(this.lastNode.important=!0,this.lastNode.raws.important=o)}other(e){yf.bind(this)(e)||super.other(e)}rule(e){let s=e[e.length-1],r=e[e.length-2];if(r[0]==="at-word"&&s[0]==="{"&&(this.tokenizer.back(s),No.bind(this)(r))){let i=this.tokenizer.nextToken();e=e.slice(0,e.length-2).concat([i]);for(let o of e.reverse())this.tokenizer.back(o);return}super.rule(e),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0)}unknownWord(e){let[s]=e;if(e[0][1]==="each"&&e[1][0]==="("){this.each(e);return}if(gf(s)){this.mixin(e);return}super.unknownWord(e)}}});var qo=w(($x,Io)=>{var _f=Ht();Io.exports=class extends _f{atrule(e,s){if(!e.mixin&&!e.variable&&!e.function){super.atrule(e,s);return}let n=`${e.function?"":e.raws.identifier||"@"}${e.name}`,i=e.params?this.rawValue(e,"params"):"",o=e.raws.important||"";if(e.variable&&(i=e.value),typeof e.raws.afterName<"u"?n+=e.raws.afterName:i&&(n+=" "),e.nodes)this.block(e,n+i+o);else{let u=(e.raws.between||"")+o+(s?";":"");this.builder(n+i+u,e)}}comment(e){if(e.inline){let s=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder(`//${s}${e.text}${r}`,e)}else super.comment(e)}}});var Lo=w((Wx,_s)=>{var bf=Ue(),Ef=Ro(),Sf=qo();_s.exports={parse(t,e){let s=new bf(t,e),r=new Ef(s);return r.parse(),r.root.walk(n=>{let i=s.css.lastIndexOf(n.source.input.css);if(i===0)return;if(i+n.source.input.css.length!==s.css.length)throw new Error("Invalid state detected in postcss-less");let o=i+n.source.start.offset,u=s.fromOffset(i+n.source.start.offset);if(n.source.start={offset:o,line:u.line,column:u.col},n.source.end){let a=i+n.source.end.offset,l=s.fromOffset(i+n.source.end.offset);n.source.end={offset:a,line:l.line,column:l.col}}}),r.root},stringify(t,e){new Sf(e).stringify(t)},nodeToString(t){let e="";return _s.exports.stringify(t,s=>{e+=s}),e}}});var nr=w((Gx,Bo)=>{"use strict";var kf=fe(),Do,Mo,be=class extends kf{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Do(new Mo,this,e).stringify()}};be.registerLazyResult=t=>{Do=t};be.registerProcessor=t=>{Mo=t};Bo.exports=be;be.default=be});var Fo=w((Yx,Uo)=>{"use strict";var Tf=Xt(),Af=Me(),Of=ft(),Cf=Ue(),Nf=hs(),Pf=$e(),Rf=Jt();function dt(t,e){if(Array.isArray(t))return t.map(n=>dt(n));let{inputs:s,...r}=t;if(s){e=[];for(let n of s){let i={...n,__proto__:Cf.prototype};i.map&&(i.map={...i.map,__proto__:Nf.prototype}),e.push(i)}}if(r.nodes&&(r.nodes=t.nodes.map(n=>dt(n,e))),r.source){let{inputId:n,...i}=r.source;r.source=i,n!=null&&(r.source.input=e[n])}if(r.type==="root")return new Pf(r);if(r.type==="decl")return new Of(r);if(r.type==="rule")return new Rf(r);if(r.type==="comment")return new Af(r);if(r.type==="atrule")return new Tf(r);throw new Error("Unknown node type: "+t.type)}Uo.exports=dt;dt.default=dt});var bs=w((Vx,$o)=>{$o.exports=class{generate(){}}});var Es=w((jx,Wo)=>{"use strict";var mt=class{constructor(e,s={}){if(this.type="warning",this.text=e,s.node&&s.node.source){let r=s.node.rangeBy(s);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in s)this[r]=s[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};Wo.exports=mt;mt.default=mt});var ir=w((Hx,Go)=>{"use strict";var If=Es(),yt=class{get content(){return this.css}constructor(e,s,r){this.processor=e,this.messages=[],this.root=s,this.opts=r,this.css="",this.map=void 0}toString(){return this.css}warn(e,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let r=new If(e,s);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}};Go.exports=yt;yt.default=yt});var Ss=w((Kx,Vo)=>{"use strict";var Yo={};Vo.exports=function(e){Yo[e]||(Yo[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))}});var As=w((Xx,Ko)=>{"use strict";var qf=fe(),Lf=nr(),Df=bs(),Mf=ht(),zo=ir(),Bf=$e(),Uf=it(),{isClean:Q,my:Ff}=Kt(),Qx=Ss(),$f={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Wf={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Gf={Once:!0,postcssPlugin:!0,prepare:!0},Ge=0;function gt(t){return typeof t=="object"&&typeof t.then=="function"}function Ho(t){let e=!1,s=$f[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[s,s+"-"+e,Ge,s+"Exit",s+"Exit-"+e]:e?[s,s+"-"+e,s+"Exit",s+"Exit-"+e]:t.append?[s,Ge,s+"Exit"]:[s,s+"Exit"]}function jo(t){let e;return t.type==="document"?e=["Document",Ge,"DocumentExit"]:t.type==="root"?e=["Root",Ge,"RootExit"]:e=Ho(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function ks(t){return t[Q]=!1,t.nodes&&t.nodes.forEach(e=>ks(e)),t}var Ts={},he=class t{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,s,r){this.stringified=!1,this.processed=!1;let n;if(typeof s=="object"&&s!==null&&(s.type==="root"||s.type==="document"))n=ks(s);else if(s instanceof t||s instanceof zo)n=ks(s.root),s.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=s.map);else{let i=Mf;r.syntax&&(i=r.syntax.parse),r.parser&&(i=r.parser),i.parse&&(i=i.parse);try{n=i(s,r)}catch(o){this.processed=!0,this.error=o}n&&!n[Ff]&&qf.rebuild(n)}this.result=new zo(e,n,r),this.helpers={...Ts,postcss:Ts,result:this.result},this.plugins=this.processor.plugins.map(i=>typeof i=="object"&&i.prepare?{...i,...i.prepare(this.result)}:i)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,s){let r=this.result.lastPlugin;try{s&&s.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(n){console&&console.error&&console.error(n)}return e}prepareVisitors(){this.listeners={};let e=(s,r,n)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([s,n])};for(let s of this.plugins)if(typeof s=="object")for(let r in s){if(!Wf[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${s.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Gf[r])if(typeof s[r]=="object")for(let n in s[r])n==="*"?e(s,r,s[r][n]):e(s,r+"-"+n.toLowerCase(),s[r][n]);else typeof s[r]=="function"&&e(s,r,s[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e0;){let r=this.visitTick(s);if(gt(r))try{await r}catch(n){let i=s[s.length-1].node;throw this.handleError(n,i)}}}if(this.listeners.OnceExit)for(let[s,r]of this.listeners.OnceExit){this.result.lastPlugin=s;try{if(e.type==="document"){let n=e.nodes.map(i=>r(i,this.helpers));await Promise.all(n)}else await r(e,this.helpers)}catch(n){throw this.handleError(n)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let s=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return gt(s[0])?Promise.all(s):s}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(s){throw this.handleError(s)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,s=Uf;e.syntax&&(s=e.syntax.stringify),e.stringifier&&(s=e.stringifier),s.stringify&&(s=s.stringify);let n=new Df(s,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let s=this.runOnRoot(e);if(gt(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Q];)e[Q]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let s of e.nodes)this.visitSync(this.listeners.OnceExit,s);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,s){return this.async().then(e,s)}toString(){return this.css}visitSync(e,s){for(let[r,n]of e){this.result.lastPlugin=r;let i;try{i=n(s,this.helpers)}catch(o){throw this.handleError(o,s.proxyOf)}if(s.type!=="root"&&s.type!=="document"&&!s.parent)return!0;if(gt(i))throw this.getAsyncError()}}visitTick(e){let s=e[e.length-1],{node:r,visitors:n}=s;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(n.length>0&&s.visitorIndex{n[Q]||this.walkSync(n)});else{let n=this.listeners[r];if(n&&this.visitSync(n,e.toProxy()))return}}warnings(){return this.sync().warnings()}};he.registerPostcss=t=>{Ts=t};Ko.exports=he;he.default=he;Bf.registerLazyResult(he);Lf.registerLazyResult(he)});var Xo=w((Zx,Qo)=>{"use strict";var Yf=bs(),Vf=ht(),zf=ir(),jf=it(),Jx=Ss(),wt=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,s=Vf;try{e=s(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,s,r){s=s.toString(),this.stringified=!1,this._processor=e,this._css=s,this._opts=r,this._map=void 0;let n,i=jf;this.result=new zf(this._processor,n,this._opts),this.result.css=s;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let u=new Yf(i,n,this._opts,s);if(u.isMap()){let[a,l]=u.generate();a&&(this.result.css=a),l&&(this.result.map=l)}else u.clearAnnotation(),this.result.css=u.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,s){return this.async().then(e,s)}toString(){return this._css}warnings(){return[]}};Qo.exports=wt;wt.default=wt});var Zo=w((e_,Jo)=>{"use strict";var Hf=nr(),Kf=As(),Qf=Xo(),Xf=$e(),Ee=class{constructor(e=[]){this.version="8.5.6",this.plugins=this.normalize(e)}normalize(e){let s=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))s=s.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)s.push(r);else if(typeof r=="function")s.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return s}process(e,s={}){return!this.plugins.length&&!s.parser&&!s.stringifier&&!s.syntax?new Qf(this,e,s):new Kf(this,e,s)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};Jo.exports=Ee;Ee.default=Ee;Xf.registerProcessor(Ee);Hf.registerProcessor(Ee)});var or=w((t_,oa)=>{"use strict";var ea=Xt(),ta=Me(),Jf=fe(),Zf=jt(),ra=ft(),sa=nr(),ep=Fo(),tp=Ue(),rp=As(),sp=ws(),np=ut(),ip=ht(),Os=Zo(),op=ir(),na=$e(),ia=Jt(),ap=it(),up=Es();function S(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new Os(t)}S.plugin=function(e,s){let r=!1;function n(...o){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide: +https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let u=s(...o);return u.postcssPlugin=e,u.postcssVersion=new Os().version,u}let i;return Object.defineProperty(n,"postcss",{get(){return i||(i=n()),i}}),n.process=function(o,u,a){return S([n(a)]).process(o,u)},n};S.stringify=ap;S.parse=ip;S.fromJSON=ep;S.list=sp;S.comment=t=>new ta(t);S.atRule=t=>new ea(t);S.decl=t=>new ra(t);S.rule=t=>new ia(t);S.root=t=>new na(t);S.document=t=>new sa(t);S.CssSyntaxError=Zf;S.Declaration=ra;S.Container=Jf;S.Processor=Os;S.Document=sa;S.Comment=ta;S.Warning=up;S.AtRule=ea;S.Result=op;S.Input=tp;S.Rule=ia;S.Root=na;S.Node=np;rp.registerPostcss(S);oa.exports=S;S.default=S});var ua=w((r_,aa)=>{var{Container:lp}=or(),Cs=class extends lp{constructor(e){super(e),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}};aa.exports=Cs});var fa=w((s_,ca)=>{"use strict";var ar=/[\t\n\f\r "#'()/;[\\\]{}]/g,ur=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,cp=/.[\r\n"'(/\\]/,la=/[\da-f]/i,lr=/[\n\f\r]/g;ca.exports=function(e,s={}){let r=e.css.valueOf(),n=s.ignoreErrors,i,o,u,a,l,f,h,c,g,b=r.length,d=0,p=[],m=[],y;function v(){return d}function O(A){throw e.error("Unclosed "+A,d)}function q(){return m.length===0&&d>=b}function H(){let A=1,k=!1,N=!1;for(;A>0;)o+=1,r.length<=o&&O("interpolation"),i=r.charCodeAt(o),c=r.charCodeAt(o+1),k?!N&&i===k?(k=!1,N=!1):i===92?N=!N:N&&(N=!1):i===39||i===34?k=i:i===125?A-=1:i===35&&c===123&&(A+=1)}function ne(A){if(m.length)return m.pop();if(d>=b)return;let k=A?A.ignoreUnclosed:!1;switch(i=r.charCodeAt(d),i){case 10:case 32:case 9:case 13:case 12:{o=d;do o+=1,i=r.charCodeAt(o);while(i===32||i===10||i===9||i===13||i===12);g=["space",r.slice(d,o)],d=o-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let N=String.fromCharCode(i);g=[N,N,d];break}case 44:{g=["word",",",d,d+1];break}case 40:{if(h=p.length?p.pop()[1]:"",c=r.charCodeAt(d+1),h==="url"&&c!==39&&c!==34){for(y=1,f=!1,o=d+1;o<=r.length-1;){if(c=r.charCodeAt(o),c===92)f=!f;else if(c===40)y+=1;else if(c===41&&(y-=1,y===0))break;o+=1}a=r.slice(d,o+1),g=["brackets",a,d,o],d=o}else o=r.indexOf(")",d+1),a=r.slice(d,o+1),o===-1||cp.test(a)?g=["(","(",d]:(g=["brackets",a,d,o],d=o);break}case 39:case 34:{for(u=i,o=d,f=!1;o{var{Comment:fp}=or(),pp=rr(),hp=ua(),dp=fa(),Ns=class extends pp{atrule(e){let s=e[1],r=e;for(;!this.tokenizer.endOfFile();){let n=this.tokenizer.nextToken();if(n[0]==="word"&&n[2]===r[3]+1)s+=n[1],r=n;else{this.tokenizer.back(n);break}}super.atrule(["at-word",s,e[2],r[3]])}comment(e){if(e[4]==="inline"){let s=new fp;this.init(s,e[2]),s.raws.inline=!0;let r=this.input.fromOffset(e[3]);s.source.end={column:r.col,line:r.line,offset:e[3]+1};let n=e[1].slice(2);if(/^\s*$/.test(n))s.text="",s.raws.left=n,s.raws.right="";else{let i=n.match(/^(\s*)([^]*\S)(\s*)$/),o=i[2].replace(/(\*\/|\/\*)/g,"*//*");s.text=o,s.raws.left=i[1],s.raws.right=i[3],s.raws.text=i[2]}}else super.comment(e)}createTokenizer(){this.tokenizer=dp(this.input)}raw(e,s,r,n){if(super.raw(e,s,r,n),e.raws[s]){let i=e.raws[s].raw;e.raws[s].raw=r.reduce((o,u)=>{if(u[0]==="comment"&&u[4]==="inline"){let a=u[1].slice(2).replace(/(\*\/|\/\*)/g,"*//*");return o+"/*"+a+"*/"}else return o+u[1]},""),i!==e.raws[s].raw&&(e.raws[s].scss=i)}}rule(e){let s=!1,r=0,n="";for(let i of e)if(s)i[0]!=="comment"&&i[0]!=="{"&&(n+=i[1]);else{if(i[0]==="space"&&i[1].includes(` +`))break;i[0]==="("?r+=1:i[0]===")"?r-=1:r===0&&i[0]===":"&&(s=!0)}if(!s||n.trim()===""||/^[#:A-Za-z-]/.test(n))super.rule(e);else{e.pop();let i=new hp;this.init(i,e[0][2]);let o;for(let a=e.length-1;a>=0;a--)if(e[a][0]!=="space"){o=e[a];break}if(o[3]){let a=this.input.fromOffset(o[3]);i.source.end={column:a.col,line:a.line,offset:o[3]+1}}else{let a=this.input.fromOffset(o[2]);i.source.end={column:a.col,line:a.line,offset:o[2]+1}}for(;e[0][0]!=="word";)i.raws.before+=e.shift()[1];if(e[0][2]){let a=this.input.fromOffset(e[0][2]);i.source.start={column:a.col,line:a.line,offset:e[0][2]}}for(i.prop="";e.length;){let a=e[0][0];if(a===":"||a==="space"||a==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let u;for(;e.length;)if(u=e.shift(),u[0]===":"){i.raws.between+=u[1];break}else i.raws.between+=u[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1)),i.raws.between+=this.spacesAndCommentsFromStart(e),this.precheckMissedSemicolon(e);for(let a=e.length-1;a>0;a--){if(u=e[a],u[1]==="!important"){i.important=!0;let l=this.stringFrom(e,a);l=this.spacesFromEnd(e)+l,l!==" !important"&&(i.raws.important=l);break}else if(u[1]==="important"){let l=e.slice(0),f="";for(let h=a;h>0;h--){let c=l[h][0];if(f.trim().indexOf("!")===0&&c!=="space")break;f=l.pop()[1]+f}f.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=f,e=l)}if(u[0]!=="space"&&u[0]!=="comment")break}this.raw(i,"value",e),i.value.includes(":")&&this.checkMissedSemicolon(e),this.current=i}}};pa.exports=Ns});var ma=w((i_,da)=>{var{Input:mp}=or(),yp=ha();da.exports=function(e,s){let r=new mp(e,s),n=new yp(r);return n.parse(),n.root}});var Rs=w(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});function vp(t){this.after=t.after,this.before=t.before,this.type=t.type,this.value=t.value,this.sourceIndex=t.sourceIndex}Ps.default=vp});var qs=w(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});var xp=Rs(),ga=_p(xp);function _p(t){return t&&t.__esModule?t:{default:t}}function vt(t){var e=this;this.constructor(t),this.nodes=t.nodes,this.after===void 0&&(this.after=this.nodes.length>0?this.nodes[this.nodes.length-1].after:""),this.before===void 0&&(this.before=this.nodes.length>0?this.nodes[0].before:""),this.sourceIndex===void 0&&(this.sourceIndex=this.before.length),this.nodes.forEach(function(s){s.parent=e})}vt.prototype=Object.create(ga.default.prototype);vt.constructor=ga.default;vt.prototype.walk=function(e,s){for(var r=typeof e=="string"||e instanceof RegExp,n=r?s:e,i=typeof e=="string"?new RegExp(e):e,o=0;o{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.parseMediaFeature=xa;xt.parseMediaQuery=Ds;xt.parseMediaList=Sp;var bp=Rs(),wa=va(bp),Ep=qs(),Ls=va(Ep);function va(t){return t&&t.__esModule?t:{default:t}}function xa(t){var e=arguments.length<=1||arguments[1]===void 0?0:arguments[1],s=[{mode:"normal",character:null}],r=[],n=0,i="",o=null,u=null,a=e,l=t;t[0]==="("&&t[t.length-1]===")"&&(l=t.substring(1,t.length-1),a++);for(var f=0;f0&&(s[l-1].after=i.before),i.type===void 0){if(l>0){if(s[l-1].type==="media-feature-expression"){i.type="keyword";continue}if(s[l-1].value==="not"||s[l-1].value==="only"){i.type="media-type";continue}if(s[l-1].value==="and"){i.type="media-feature-expression";continue}s[l-1].type==="media-type"&&(s[l+1]?i.type=s[l+1].type==="media-feature-expression"?"keyword":"media-feature-expression":i.type="media-feature-expression")}if(l===0){if(!s[l+1]){i.type="media-type";continue}if(s[l+1]&&(s[l+1].type==="media-feature-expression"||s[l+1].type==="keyword")){i.type="media-type";continue}if(s[l+2]){if(s[l+2].type==="media-feature-expression"){i.type="media-type",s[l+1].type="keyword";continue}if(s[l+2].type==="keyword"){i.type="keyword",s[l+1].type="media-type";continue}}if(s[l+3]&&s[l+3].type==="media-feature-expression"){i.type="keyword",s[l+1].type="media-type",s[l+2].type="keyword";continue}}}return s}function Sp(t){var e=[],s=0,r=0,n=/^(\s*)url\s*\(/.exec(t);if(n!==null){for(var i=n[0].length,o=1;o>0;){var u=t[i];u==="("&&o++,u===")"&&o--,i++}e.unshift(new wa.default({type:"url",value:t.substring(0,i).trim(),sourceIndex:n[1].length,before:n[1],after:/^(\s*)/.exec(t.substring(i))[1]})),s=i}for(var a=s;a{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.default=Cp;var kp=qs(),Tp=Op(kp),Ap=_a();function Op(t){return t&&t.__esModule?t:{default:t}}function Cp(t){return new Tp.default({nodes:(0,Ap.parseMediaList)(t),type:"media-query-list",value:t.trim()})}});var Us=w((y_,ka)=>{ka.exports=function(e,s){if(s=typeof s=="number"?s:1/0,!s)return Array.isArray(e)?e.map(function(n){return n}):e;return r(e,1);function r(n,i){return n.reduce(function(o,u){return Array.isArray(u)&&i{Ta.exports=function(t,e){for(var s=-1,r=[];(s=t.indexOf(e,s+1))!==-1;)r.push(s);return r}});var $s=w((w_,Aa)=>{"use strict";function Rp(t,e){for(var s=1,r=t.length,n=t[0],i=t[0],o=1;o{"use strict";cr.__esModule=!0;var Oa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function Lp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Dp=function t(e,s){if((typeof e>"u"?"undefined":Oa(e))!=="object")return e;var r=new e.constructor;for(var n in e)if(e.hasOwnProperty(n)){var i=e[n],o=typeof i>"u"?"undefined":Oa(i);n==="parent"&&o==="object"?s&&(r[n]=s):i instanceof Array?r[n]=i.map(function(u){return t(u,r)}):r[n]=t(i,r)}return r},Mp=(function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Lp(this,t);for(var s in e)this[s]=e[s];var r=e.spaces;r=r===void 0?{}:r;var n=r.before,i=n===void 0?"":n,o=r.after,u=o===void 0?"":o;this.spaces={before:i,after:u}}return t.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.prototype.replaceWith=function(){if(this.parent){for(var s in arguments)this.parent.insertBefore(this,arguments[s]);this.remove()}return this},t.prototype.next=function(){return this.parent.at(this.parent.index(this)+1)},t.prototype.prev=function(){return this.parent.at(this.parent.index(this)-1)},t.prototype.clone=function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=Dp(this);for(var n in s)r[n]=s[n];return r},t.prototype.toString=function(){return[this.spaces.before,String(this.value),this.spaces.after].join("")},t})();cr.default=Mp;Ca.exports=cr.default});var B=w(U=>{"use strict";U.__esModule=!0;var v_=U.TAG="tag",x_=U.STRING="string",__=U.SELECTOR="selector",b_=U.ROOT="root",E_=U.PSEUDO="pseudo",S_=U.NESTING="nesting",k_=U.ID="id",T_=U.COMMENT="comment",A_=U.COMBINATOR="combinator",O_=U.CLASS="class",C_=U.ATTRIBUTE="attribute",N_=U.UNIVERSAL="universal"});var pr=w((fr,Na)=>{"use strict";fr.__esModule=!0;var Bp=(function(){function t(e,s){for(var r=0;r=r&&(this.indexes[i]=n-1);return this},e.prototype.removeAll=function(){for(var i=this.nodes,r=Array.isArray(i),n=0,i=r?i:i[Symbol.iterator]();;){var o;if(r){if(n>=i.length)break;o=i[n++]}else{if(n=i.next(),n.done)break;o=n.value}var u=o;u.parent=void 0}return this.nodes=[],this},e.prototype.empty=function(){return this.removeAll()},e.prototype.insertAfter=function(r,n){var i=this.index(r);this.nodes.splice(i+1,0,n);var o=void 0;for(var u in this.indexes)o=this.indexes[u],i<=o&&(this.indexes[u]=o+this.nodes.length);return this},e.prototype.insertBefore=function(r,n){var i=this.index(r);this.nodes.splice(i,0,n);var o=void 0;for(var u in this.indexes)o=this.indexes[u],i<=o&&(this.indexes[u]=o+this.nodes.length);return this},e.prototype.each=function(r){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var n=this.lastEach;if(this.indexes[n]=0,!!this.length){for(var i=void 0,o=void 0;this.indexes[n]{"use strict";hr.__esModule=!0;var Hp=pr(),Kp=Xp(Hp),Qp=B();function Xp(t){return t&&t.__esModule?t:{default:t}}function Jp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Zp(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function eh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var th=(function(t){eh(e,t);function e(s){Jp(this,e);var r=Zp(this,t.call(this,s));return r.type=Qp.ROOT,r}return e.prototype.toString=function(){var r=this.reduce(function(n,i){var o=String(i);return o?n+o+",":""},"").slice(0,-1);return this.trailingComma?r+",":r},e})(Kp.default);hr.default=th;Pa.exports=hr.default});var qa=w((dr,Ia)=>{"use strict";dr.__esModule=!0;var rh=pr(),sh=ih(rh),nh=B();function ih(t){return t&&t.__esModule?t:{default:t}}function oh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ah(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function uh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var lh=(function(t){uh(e,t);function e(s){oh(this,e);var r=ah(this,t.call(this,s));return r.type=nh.SELECTOR,r}return e})(sh.default);dr.default=lh;Ia.exports=dr.default});var Ye=w((mr,La)=>{"use strict";mr.__esModule=!0;var ch=(function(){function t(e,s){for(var r=0;r{"use strict";yr.__esModule=!0;var wh=Ye(),vh=_h(wh),xh=B();function _h(t){return t&&t.__esModule?t:{default:t}}function bh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Eh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Sh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var kh=(function(t){Sh(e,t);function e(s){bh(this,e);var r=Eh(this,t.call(this,s));return r.type=xh.CLASS,r}return e.prototype.toString=function(){return[this.spaces.before,this.ns,"."+this.value,this.spaces.after].join("")},e})(vh.default);yr.default=kh;Da.exports=yr.default});var Ua=w((gr,Ba)=>{"use strict";gr.__esModule=!0;var Th=ke(),Ah=Ch(Th),Oh=B();function Ch(t){return t&&t.__esModule?t:{default:t}}function Nh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ph(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Rh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Ih=(function(t){Rh(e,t);function e(s){Nh(this,e);var r=Ph(this,t.call(this,s));return r.type=Oh.COMMENT,r}return e})(Ah.default);gr.default=Ih;Ba.exports=gr.default});var $a=w((wr,Fa)=>{"use strict";wr.__esModule=!0;var qh=Ye(),Lh=Mh(qh),Dh=B();function Mh(t){return t&&t.__esModule?t:{default:t}}function Bh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Uh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Fh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var $h=(function(t){Fh(e,t);function e(s){Bh(this,e);var r=Uh(this,t.call(this,s));return r.type=Dh.ID,r}return e.prototype.toString=function(){return[this.spaces.before,this.ns,"#"+this.value,this.spaces.after].join("")},e})(Lh.default);wr.default=$h;Fa.exports=wr.default});var Ga=w((vr,Wa)=>{"use strict";vr.__esModule=!0;var Wh=Ye(),Gh=Vh(Wh),Yh=B();function Vh(t){return t&&t.__esModule?t:{default:t}}function zh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function jh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Hh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Kh=(function(t){Hh(e,t);function e(s){zh(this,e);var r=jh(this,t.call(this,s));return r.type=Yh.TAG,r}return e})(Gh.default);vr.default=Kh;Wa.exports=vr.default});var Va=w((xr,Ya)=>{"use strict";xr.__esModule=!0;var Qh=ke(),Xh=Zh(Qh),Jh=B();function Zh(t){return t&&t.__esModule?t:{default:t}}function ed(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function td(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function rd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var sd=(function(t){rd(e,t);function e(s){ed(this,e);var r=td(this,t.call(this,s));return r.type=Jh.STRING,r}return e})(Xh.default);xr.default=sd;Ya.exports=xr.default});var ja=w((_r,za)=>{"use strict";_r.__esModule=!0;var nd=pr(),id=ad(nd),od=B();function ad(t){return t&&t.__esModule?t:{default:t}}function ud(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ld(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function cd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var fd=(function(t){cd(e,t);function e(s){ud(this,e);var r=ld(this,t.call(this,s));return r.type=od.PSEUDO,r}return e.prototype.toString=function(){var r=this.length?"("+this.map(String).join(",")+")":"";return[this.spaces.before,String(this.value),r,this.spaces.after].join("")},e})(id.default);_r.default=fd;za.exports=_r.default});var Ka=w((br,Ha)=>{"use strict";br.__esModule=!0;var pd=Ye(),hd=md(pd),dd=B();function md(t){return t&&t.__esModule?t:{default:t}}function yd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gd(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function wd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var vd=(function(t){wd(e,t);function e(s){yd(this,e);var r=gd(this,t.call(this,s));return r.type=dd.ATTRIBUTE,r.raws={},r}return e.prototype.toString=function(){var r=[this.spaces.before,"[",this.ns,this.attribute];return this.operator&&r.push(this.operator),this.value&&r.push(this.value),this.raws.insensitive?r.push(this.raws.insensitive):this.insensitive&&r.push(" i"),r.push("]"),r.concat(this.spaces.after).join("")},e})(hd.default);br.default=vd;Ha.exports=br.default});var Xa=w((Er,Qa)=>{"use strict";Er.__esModule=!0;var xd=Ye(),_d=Ed(xd),bd=B();function Ed(t){return t&&t.__esModule?t:{default:t}}function Sd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function kd(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Td(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Ad=(function(t){Td(e,t);function e(s){Sd(this,e);var r=kd(this,t.call(this,s));return r.type=bd.UNIVERSAL,r.value="*",r}return e})(_d.default);Er.default=Ad;Qa.exports=Er.default});var Za=w((Sr,Ja)=>{"use strict";Sr.__esModule=!0;var Od=ke(),Cd=Pd(Od),Nd=B();function Pd(t){return t&&t.__esModule?t:{default:t}}function Rd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Id(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function qd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Ld=(function(t){qd(e,t);function e(s){Rd(this,e);var r=Id(this,t.call(this,s));return r.type=Nd.COMBINATOR,r}return e})(Cd.default);Sr.default=Ld;Ja.exports=Sr.default});var tu=w((kr,eu)=>{"use strict";kr.__esModule=!0;var Dd=ke(),Md=Ud(Dd),Bd=B();function Ud(t){return t&&t.__esModule?t:{default:t}}function Fd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $d(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Wd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Gd=(function(t){Wd(e,t);function e(s){Fd(this,e);var r=$d(this,t.call(this,s));return r.type=Bd.NESTING,r.value="&",r}return e})(Md.default);kr.default=Gd;eu.exports=kr.default});var su=w((Tr,ru)=>{"use strict";Tr.__esModule=!0;Tr.default=Yd;function Yd(t){return t.sort(function(e,s){return e-s})}ru.exports=Tr.default});var pu=w((Cr,fu)=>{"use strict";Cr.__esModule=!0;Cr.default=tm;var nu=39,Vd=34,Ws=92,iu=47,_t=10,Gs=32,Ys=12,Vs=9,zs=13,ou=43,au=62,uu=126,lu=124,zd=44,jd=40,Hd=41,Kd=91,Qd=93,Xd=59,cu=42,Jd=58,Zd=38,em=64,Ar=/[ \n\t\r\{\(\)'"\\;/]/g,Or=/[ \n\t\r\(\)\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g;function tm(t){for(var e=[],s=t.css.valueOf(),r=void 0,n=void 0,i=void 0,o=void 0,u=void 0,a=void 0,l=void 0,f=void 0,h=void 0,c=void 0,g=void 0,b=s.length,d=-1,p=1,m=0,y=function(O,q){if(t.safe)s+=q,n=s.length-1;else throw t.error("Unclosed "+O,p,m-d,m)};m0?(f=p+u,h=n-o[u].length):(f=p,h=d),e.push(["comment",a,p,m-d,f,n-h,m]),d=h,p=f,m=n):(Or.lastIndex=m+1,Or.test(s),Or.lastIndex===0?n=s.length-1:n=Or.lastIndex-2,e.push(["word",s.slice(m,n+1),p,m-d,p,n-d,m]),m=n);break}m++}return e}fu.exports=Cr.default});var mu=w((Nr,du)=>{"use strict";Nr.__esModule=!0;var rm=(function(){function t(e,s){for(var r=0;r1?(o[0]===""&&(o[0]=!0),u.attribute=this.parseValue(o[2]),u.namespace=this.parseNamespace(o[0])):u.attribute=this.parseValue(i[0]),r=new Sm.default(u),i[2]){var a=i[2].split(/(\s+i\s*?)$/),l=a[0].trim();r.value=this.lossy?l:a[0],a[1]&&(r.insensitive=!0,this.lossy||(r.raws.insensitive=a[1])),r.quoted=l[0]==="'"||l[0]==='"',r.raws.unquoted=r.quoted?l.slice(1,-1):l}this.newNode(r),this.position++},t.prototype.combinator=function(){if(this.currToken[1]==="|")return this.namespace();for(var s=new Om.default({value:"",source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]});this.position1&&s.nextToken&&s.nextToken[0]==="("&&s.error("Misplaced parenthesis.")})}else this.error('Unexpected "'+this.currToken[0]+'" found.')},t.prototype.space=function(){var s=this.currToken;this.position===0||this.prevToken[0]===","||this.prevToken[0]==="("?(this.spaces=this.parseSpace(s[1]),this.position++):this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.spaces.after=this.parseSpace(s[1]),this.position++):this.combinator()},t.prototype.string=function(){var s=this.currToken;this.newNode(new xm.default({value:this.currToken[1],source:{start:{line:s[2],column:s[3]},end:{line:s[4],column:s[5]}},sourceIndex:s[6]})),this.position++},t.prototype.universal=function(s){var r=this.nextToken;if(r&&r[1]==="|")return this.position++,this.namespace();this.newNode(new Tm.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),s),this.position++},t.prototype.splitWord=function(s,r){for(var n=this,i=this.nextToken,o=this.currToken[1];i&&i[0]==="word";){this.position++;var u=this.currToken[1];if(o+=u,u.lastIndexOf("\\")===u.length-1){var a=this.nextToken;a&&a[0]==="space"&&(o+=this.parseSpace(a[1]," "),this.position++)}i=this.nextToken}var l=(0,js.default)(o,"."),f=(0,js.default)(o,"#"),h=(0,js.default)(o,"#{");h.length&&(f=f.filter(function(g){return!~h.indexOf(g)}));var c=(0,Rm.default)((0,am.default)((0,nm.default)([[0],l,f])));c.forEach(function(g,b){var d=c[b+1]||o.length,p=o.slice(g,d);if(b===0&&r)return r.call(n,p,c.length);var m=void 0;~l.indexOf(g)?m=new pm.default({value:p.slice(1),source:{start:{line:n.currToken[2],column:n.currToken[3]+g},end:{line:n.currToken[4],column:n.currToken[3]+(d-1)}},sourceIndex:n.currToken[6]+c[b]}):~f.indexOf(g)?m=new ym.default({value:p.slice(1),source:{start:{line:n.currToken[2],column:n.currToken[3]+g},end:{line:n.currToken[4],column:n.currToken[3]+(d-1)}},sourceIndex:n.currToken[6]+c[b]}):m=new wm.default({value:p,source:{start:{line:n.currToken[2],column:n.currToken[3]+g},end:{line:n.currToken[4],column:n.currToken[3]+(d-1)}},sourceIndex:n.currToken[6]+c[b]}),n.newNode(m,s)}),this.position++},t.prototype.word=function(s){var r=this.nextToken;return r&&r[1]==="|"?(this.position++,this.namespace()):this.splitWord(s)},t.prototype.loop=function(){for(;this.position{"use strict";Pr.__esModule=!0;var Um=(function(){function t(e,s){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},n=new $m.default({css:s,error:function(o){throw new Error(o)},options:r});return this.res=n,this.func(n),this},Um(t,[{key:"result",get:function(){return String(this.res)}}]),t})();Pr.default=Ym;yu.exports=Pr.default});var j=w((D_,vu)=>{"use strict";var Ks=function(t,e){let s=new t.constructor;for(let r in t){if(!t.hasOwnProperty(r))continue;let n=t[r],i=typeof n;r==="parent"&&i==="object"?e&&(s[r]=e):r==="source"?s[r]=n:n instanceof Array?s[r]=n.map(o=>Ks(o,s)):r!=="before"&&r!=="after"&&r!=="between"&&r!=="semicolon"&&(i==="object"&&n!==null&&(n=Ks(n)),s[r]=n)}return s};vu.exports=class{constructor(e){e=e||{},this.raws={before:"",after:""};for(let s in e)this[s]=e[s]}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(){return[this.raws.before,String(this.value),this.raws.after].join("")}clone(e){e=e||{};let s=Ks(this);for(let r in e)s[r]=e[r];return s}cloneBefore(e){e=e||{};let s=this.clone(e);return this.parent.insertBefore(this,s),s}cloneAfter(e){e=e||{};let s=this.clone(e);return this.parent.insertAfter(this,s),s}replaceWith(){let e=Array.prototype.slice.call(arguments);if(this.parent){for(let s of e)this.parent.insertBefore(this,s);this.remove()}return this}moveTo(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.append(this),this}moveBefore(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertBefore(e,this),this}moveAfter(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertAfter(e,this),this}next(){let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){let e=this.parent.index(this);return this.parent.nodes[e-1]}toJSON(){let e={};for(let s in this){if(!this.hasOwnProperty(s)||s==="parent")continue;let r=this[s];r instanceof Array?e[s]=r.map(n=>typeof n=="object"&&n.toJSON?n.toJSON():n):typeof r=="object"&&r.toJSON?e[s]=r.toJSON():e[s]=r}return e}root(){let e=this;for(;e.parent;)e=e.parent;return e}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}positionInside(e){let s=this.toString(),r=this.source.start.column,n=this.source.start.line;for(let i=0;i{"use strict";var zm=j(),Ve=class extends zm{constructor(e){super(e),this.nodes||(this.nodes=[])}push(e){return e.parent=this,this.nodes.push(e),this}each(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let s=this.lastEach,r,n;if(this.indexes[s]=0,!!this.nodes){for(;this.indexes[s]{let n=e(s,r);return n!==!1&&s.walk&&(n=s.walk(e)),n})}walkType(e,s){if(!e||!s)throw new Error("Parameters {type} and {callback} are required.");let r=typeof e=="function";return this.walk((n,i)=>{if(r&&n instanceof e||!r&&n.type===e)return s.call(this,n,i)})}append(e){return e.parent=this,this.nodes.push(e),this}prepend(e){return e.parent=this,this.nodes.unshift(e),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let s of this.nodes)s.cleanRaws(e)}insertAfter(e,s){let r=this.index(e),n;this.nodes.splice(r+1,0,s);for(let i in this.indexes)n=this.indexes[i],r<=n&&(this.indexes[i]=n+this.nodes.length);return this}insertBefore(e,s){let r=this.index(e),n;this.nodes.splice(r,0,s);for(let i in this.indexes)n=this.indexes[i],r<=n&&(this.indexes[i]=n+this.nodes.length);return this}removeChild(e){e=this.index(e),this.nodes[e].parent=void 0,this.nodes.splice(e,1);let s;for(let r in this.indexes)s=this.indexes[r],s>=e&&(this.indexes[r]=s-1);return this}removeAll(){for(let e of this.nodes)e.parent=void 0;return this.nodes=[],this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return typeof e=="number"?e:this.nodes.indexOf(e)}get first(){if(this.nodes)return this.nodes[0]}get last(){if(this.nodes)return this.nodes[this.nodes.length-1]}toString(){let e=this.nodes.map(String).join("");return this.value&&(e=this.value+e),this.raws.before&&(e=this.raws.before+e),this.raws.after&&(e+=this.raws.after),e}};Ve.registerWalker=t=>{let e="walk"+t.name;e.lastIndexOf("s")!==e.length-1&&(e+="s"),!Ve.prototype[e]&&(Ve.prototype[e]=function(s){return this.walkType(t,s)})};xu.exports=Ve});var bu=w((U_,_u)=>{"use strict";var jm=F();_u.exports=class extends jm{constructor(e){super(e),this.type="root"}}});var Su=w(($_,Eu)=>{"use strict";var Hm=F();Eu.exports=class extends Hm{constructor(e){super(e),this.type="value",this.unbalanced=0}}});var Au=w((W_,Tu)=>{"use strict";var ku=F(),Rr=class extends ku{constructor(e){super(e),this.type="atword"}toString(){let e=this.quoted?this.raws.quote:"";return[this.raws.before,"@",String.prototype.toString.call(this.value),this.raws.after].join("")}};ku.registerWalker(Rr);Tu.exports=Rr});var Cu=w((G_,Ou)=>{"use strict";var Km=F(),Qm=j(),Ir=class extends Qm{constructor(e){super(e),this.type="colon"}};Km.registerWalker(Ir);Ou.exports=Ir});var Pu=w((Y_,Nu)=>{"use strict";var Xm=F(),Jm=j(),qr=class extends Jm{constructor(e){super(e),this.type="comma"}};Xm.registerWalker(qr);Nu.exports=qr});var Iu=w((V_,Ru)=>{"use strict";var Zm=F(),ey=j(),Lr=class extends ey{constructor(e){super(e),this.type="comment",this.inline=Object(e).inline||!1}toString(){return[this.raws.before,this.inline?"//":"/*",String(this.value),this.inline?"":"*/",this.raws.after].join("")}};Zm.registerWalker(Lr);Ru.exports=Lr});var Du=w((z_,Lu)=>{"use strict";var qu=F(),Dr=class extends qu{constructor(e){super(e),this.type="func",this.unbalanced=-1}};qu.registerWalker(Dr);Lu.exports=Dr});var Bu=w((j_,Mu)=>{"use strict";var ty=F(),ry=j(),Mr=class extends ry{constructor(e){super(e),this.type="number",this.unit=Object(e).unit||""}toString(){return[this.raws.before,String(this.value),this.unit,this.raws.after].join("")}};ty.registerWalker(Mr);Mu.exports=Mr});var Fu=w((H_,Uu)=>{"use strict";var sy=F(),ny=j(),Br=class extends ny{constructor(e){super(e),this.type="operator"}};sy.registerWalker(Br);Uu.exports=Br});var Wu=w((K_,$u)=>{"use strict";var iy=F(),oy=j(),Ur=class extends oy{constructor(e){super(e),this.type="paren",this.parenType=""}};iy.registerWalker(Ur);$u.exports=Ur});var Yu=w((Q_,Gu)=>{"use strict";var ay=F(),uy=j(),Fr=class extends uy{constructor(e){super(e),this.type="string"}toString(){let e=this.quoted?this.raws.quote:"";return[this.raws.before,e,this.value+"",e,this.raws.after].join("")}};ay.registerWalker(Fr);Gu.exports=Fr});var zu=w((X_,Vu)=>{"use strict";var ly=F(),cy=j(),$r=class extends cy{constructor(e){super(e),this.type="word"}};ly.registerWalker($r);Vu.exports=$r});var Hu=w((J_,ju)=>{"use strict";var fy=F(),py=j(),Wr=class extends py{constructor(e){super(e),this.type="unicode-range"}};fy.registerWalker(Wr);ju.exports=Wr});var Qu=w((Z_,Ku)=>{"use strict";var Qs=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||"An error ocurred while tokzenizing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}};Ku.exports=Qs});var Zu=w((eb,Ju)=>{"use strict";var Gr=/[ \n\t\r\{\(\)'"\\;,/]/g,hy=/[ \n\t\r\(\)\{\}\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g,ze=/[ \n\t\r\(\)\{\}\*:;@!&'"\-\+\|~>,\[\]\\]|\//g,dy=/^[a-z0-9]/i,my=/^[a-f0-9?\-]/i,Xu=Qu();Ju.exports=function(e,s){s=s||{};let r=[],n=e.valueOf(),i=n.length,o=-1,u=1,a=0,l=0,f=null,h,c,g,b,d,p,m,y,v,O,q,H;function ne(A){let k=`Unclosed ${A} at line: ${u}, column: ${a-o}, token: ${a}`;throw new Xu(k)}function W(){let A=`Syntax error at line: ${u}, column: ${a-o}, token: ${a}`;throw new Xu(A)}for(;a0&&r[r.length-1][0]==="word"&&r[r.length-1][1]==="url",r.push(["(","(",u,a-o,u,c-o,a]);break;case 41:l--,f=f&&l>0,r.push([")",")",u,a-o,u,c-o,a]);break;case 39:case 34:g=h===39?"'":'"',c=a;do for(O=!1,c=n.indexOf(g,c+1),c===-1&&ne("quote",g),q=c;n.charCodeAt(q-1)===92;)q-=1,O=!O;while(O);r.push(["string",n.slice(a,c+1),u,a-o,u,c-o,a]),a=c;break;case 64:Gr.lastIndex=a+1,Gr.test(n),Gr.lastIndex===0?c=n.length-1:c=Gr.lastIndex-2,r.push(["atword",n.slice(a,c+1),u,a-o,u,c-o,a]),a=c;break;case 92:c=a,h=n.charCodeAt(c+1),m&&h!==47&&h!==32&&h!==10&&h!==9&&h!==13&&h!==12&&(c+=1),r.push(["word",n.slice(a,c+1),u,a-o,u,c-o,a]),a=c;break;case 43:case 45:case 42:c=a+1,H=n.slice(a+1,c+1);let A=n.slice(a-1,a);if(h===45&&H.charCodeAt(0)===45){c++,r.push(["word",n.slice(a,c),u,a-o,u,c-o,a]),a=c-1;break}r.push(["operator",n.slice(a,c),u,a-o,u,c-o,a]),a=c-1;break;default:if(h===47&&(n.charCodeAt(a+1)===42||s.loose&&!f&&n.charCodeAt(a+1)===47)){if(n.charCodeAt(a+1)===42)c=n.indexOf("*/",a+2)+1,c===0&&ne("comment","*/");else{let N=n.indexOf(` +`,a+2);c=N!==-1?N-1:i}p=n.slice(a,c+1),b=p.split(` +`),d=b.length-1,d>0?(y=u+d,v=c-b[d].length):(y=u,v=o),r.push(["comment",p,u,a-o,y,c-v,a]),o=v,u=y,a=c}else if(h===35&&!dy.test(n.slice(a+1,a+2)))c=a+1,r.push(["#",n.slice(a,c),u,a-o,u,c-o,a]),a=c-1;else if((h===117||h===85)&&n.charCodeAt(a+1)===43){c=a+2;do c+=1,h=n.charCodeAt(c);while(c=48&&h<=57&&(k=ze),k.lastIndex=a+1,k.test(n),k.lastIndex===0?c=n.length-1:c=k.lastIndex-2,k===ze||h===46){let N=n.charCodeAt(c),tn=n.charCodeAt(c+1),rn=n.charCodeAt(c+2);(N===101||N===69)&&(tn===45||tn===43)&&rn>=48&&rn<=57&&(ze.lastIndex=c+2,ze.test(n),ze.lastIndex===0?c=n.length-1:c=ze.lastIndex-2)}r.push(["word",n.slice(a,c+1),u,a-o,u,c-o,a]),a=c}break}a++}return r}});var tl=w((tb,el)=>{"use strict";var Xs=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||"An error ocurred while parsing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}};el.exports=Xs});var il=w((sb,nl)=>{"use strict";var yy=bu(),gy=Su(),wy=Au(),vy=Cu(),xy=Pu(),_y=Iu(),by=Du(),Ey=Bu(),Sy=Fu(),rl=Wu(),ky=Yu(),sl=zu(),Ty=Hu(),Ay=Zu(),Oy=Us(),Cy=Fs(),Ny=$s(),Py=tl();function Ry(t){return t.sort((e,s)=>e-s)}nl.exports=class{constructor(e,s){let r={loose:!1};this.cache=[],this.input=e,this.options=Object.assign({},r,s),this.position=0,this.unbalanced=0,this.root=new yy;let n=new gy;this.root.append(n),this.current=n,this.tokens=Ay(e,this.options)}parse(){return this.loop()}colon(){let e=this.currToken;this.newNode(new vy({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comma(){let e=this.currToken;this.newNode(new xy({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comment(){let e=!1,s=this.currToken[1].replace(/\/\*|\*\//g,""),r;this.options.loose&&s.startsWith("//")&&(s=s.substring(2),e=!0),r=new _y({value:s,inline:e,source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]}),this.newNode(r),this.position++}error(e,s){throw new Py(e+` at line: ${s[2]}, column ${s[3]}`)}loop(){for(;this.position0&&(this.current.type==="func"&&this.current.value==="calc"?this.prevToken[0]!=="space"&&this.prevToken[0]!=="("?this.error("Syntax Error",this.currToken):this.nextToken[0]!=="space"&&this.nextToken[0]!=="word"?this.error("Syntax Error",this.currToken):this.nextToken[0]==="word"&&this.current.last.type!=="operator"&&this.current.last.value!=="("&&this.error("Syntax Error",this.currToken):(this.nextToken[0]==="space"||this.nextToken[0]==="operator"||this.prevToken[0]==="operator")&&this.error("Syntax Error",this.currToken)),this.options.loose){if((!this.current.nodes.length||this.current.last&&this.current.last.type==="operator")&&this.nextToken[0]==="word")return this.word()}else if(this.nextToken[0]==="word")return this.word()}return s=new Sy({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),this.position++,this.newNode(s)}parseTokens(){switch(this.currToken[0]){case"space":this.space();break;case"colon":this.colon();break;case"comma":this.comma();break;case"comment":this.comment();break;case"(":this.parenOpen();break;case")":this.parenClose();break;case"atword":case"word":this.word();break;case"operator":this.operator();break;case"string":this.string();break;case"unicoderange":this.unicodeRange();break;default:this.word();break}}parenOpen(){let e=1,s=this.position+1,r=this.currToken,n;for(;s=this.tokens.length-1&&!this.current.unbalanced)&&(this.current.unbalanced--,this.current.unbalanced<0&&this.error("Expected opening parenthesis",e),!this.current.unbalanced&&this.cache.length&&(this.current=this.cache.pop()))}space(){let e=this.currToken;this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.raws.after+=e[1],this.position++):(this.spaces=e[1],this.position++)}unicodeRange(){let e=this.currToken;this.newNode(new Ty({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}splitWord(){let e=this.nextToken,s=this.currToken[1],r=/^[\+\-]?((\d+(\.\d*)?)|(\.\d+))([eE][\+\-]?\d+)?/,n=/^(?!\#([a-z0-9]+))[\#\{\}]/gi,i,o;if(!n.test(s))for(;e&&e[0]==="word";){this.position++;let u=this.currToken[1];s+=u,e=this.nextToken}i=Cy(s,"@"),o=Ry(Ny(Oy([[0],i]))),o.forEach((u,a)=>{let l=o[a+1]||s.length,f=s.slice(u,l),h;if(~i.indexOf(u))h=new wy({value:f.slice(1),source:{start:{line:this.currToken[2],column:this.currToken[3]+u},end:{line:this.currToken[4],column:this.currToken[3]+(l-1)}},sourceIndex:this.currToken[6]+o[a]});else if(r.test(this.currToken[1])){let c=f.replace(r,"");h=new Ey({value:f.replace(c,""),source:{start:{line:this.currToken[2],column:this.currToken[3]+u},end:{line:this.currToken[4],column:this.currToken[3]+(l-1)}},sourceIndex:this.currToken[6]+o[a],unit:c})}else h=new(e&&e[0]==="("?by:sl)({value:f,source:{start:{line:this.currToken[2],column:this.currToken[3]+u},end:{line:this.currToken[4],column:this.currToken[3]+(l-1)}},sourceIndex:this.currToken[6]+o[a]}),h.type==="word"?(h.isHex=/^#(.+)/.test(f),h.isColor=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(f)):this.cache.push(this.current);this.newNode(h)}),this.position++}string(){let e=this.currToken,s=this.currToken[1],r=/^(\"|\')/,n=r.test(s),i="",o;n&&(i=s.match(r)[0],s=s.slice(1,s.length-1)),o=new ky({value:s,source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6],quoted:n}),o.raws.quote=i,this.newNode(o),this.position++}word(){return this.splitWord()}newNode(e){return this.spaces&&(e.raws.before+=this.spaces,this.spaces=""),this.current.append(e)}get currToken(){return this.tokens[this.position]}get nextToken(){return this.tokens[this.position+1]}get prevToken(){return this.tokens[this.position-1]}}});var Ky={};sn(Ky,{languages:()=>ki,options:()=>Ai,parsers:()=>en,printers:()=>Hy});var Et=(t,e)=>(s,r,...n)=>s|1&&r==null?void 0:(e.call(r)??r[t]).apply(r,n);var Ol=String.prototype.replaceAll??function(t,e){return t.global?this.replace(t,e):this.split(t).join(e)},Cl=Et("replaceAll",function(){if(typeof this=="string")return Ol}),E=Cl;function Nl(t){return this[t<0?this.length+t:t]}var Pl=Et("at",function(){if(Array.isArray(this)||typeof this=="string")return Nl}),G=Pl;var Rl=()=>{},K=Rl;var je="string",He="array",St="cursor",ie="indent",Ae="align",kt="trim",oe="group",ae="fill",me="if-break",Tt="indent-if-break",Oe="line-suffix",At="line-suffix-boundary",X="line",Ot="label",Ce="break-parent",Ct=new Set([St,ie,Ae,kt,oe,ae,me,Tt,Oe,At,X,Ot,Ce]);function Il(t){if(typeof t=="string")return je;if(Array.isArray(t))return He;if(!t)return;let{type:e}=t;if(Ct.has(e))return e}var ue=Il;var ql=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function Ll(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}', +Expected it to be 'string' or 'object'.`;if(ue(t))throw new Error("doc is valid.");let s=Object.prototype.toString.call(t);if(s!=="[object Object]")return`Unexpected doc '${s}'.`;let r=ql([...Ct].map(n=>`'${n}'`));return`Unexpected doc.type '${t.type}'. +Expected it to be ${r}.`}var zr=class extends Error{name="InvalidDocError";constructor(e){super(Ll(e)),this.doc=e}},on=zr;function Dl(t,e){if(typeof t=="string")return e(t);let s=new Map;return r(t);function r(i){if(s.has(i))return s.get(i);let o=n(i);return s.set(i,o),o}function n(i){switch(ue(i)){case He:return e(i.map(r));case ae:return e({...i,parts:i.parts.map(r)});case me:return e({...i,breakContents:r(i.breakContents),flatContents:r(i.flatContents)});case oe:{let{expandedStates:o,contents:u}=i;return o?(o=o.map(r),u=o[0]):u=r(u),e({...i,contents:u,expandedStates:o})}case Ae:case ie:case Tt:case Ot:case Oe:return e({...i,contents:r(i.contents)});case je:case St:case kt:case At:case X:case Ce:return e(i);default:throw new on(i)}}}function Ml(t){return t.type===X&&!t.hard?t.soft?"":" ":t.type===me?t.flatContents:t}function an(t){return Dl(t,Ml)}var $=K,ye=K,un=K,ln=K;function L(t){return $(t),{type:ie,contents:t}}function Bl(t,e){return ln(t),$(e),{type:Ae,contents:e,n:t}}function le(t){return Bl(-1,t)}var Ne={type:Ce};function Pe(t){return un(t),{type:ae,parts:t}}function D(t,e={}){return $(t),ye(e.expandedStates,!0),{type:oe,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function Nt(t,e="",s={}){return $(t),e!==""&&$(e),{type:me,breakContents:t,flatContents:e,groupId:s.groupId}}function Y(t,e){$(t),ye(e);let s=[];for(let r=0;r0}var ce=$l;var fn=Object.freeze({character:"'",codePoint:39}),pn=Object.freeze({character:'"',codePoint:34}),Wl=Object.freeze({preferred:fn,alternate:pn}),Gl=Object.freeze({preferred:pn,alternate:fn});function Yl(t,e){let{preferred:s,alternate:r}=e===!0||e==="'"?Wl:Gl,{length:n}=t,i=0,o=0;for(let u=0;uo?r:s).character}var hn=Yl;var Vl=/\\(["'\\])|(["'])/gu;function zl(t,e){let s=e==='"'?"'":'"',r=E(0,t,Vl,(n,i,o)=>i?i===s?s:n:o===e?"\\"+o:o);return e+r+e}var dn=zl;function jl(t,e){K(/^(?["']).*\k$/su.test(t));let s=t.slice(1,-1),r=e.parser==="json"||e.parser==="jsonc"||e.parser==="json5"&&e.quoteProps==="preserve"&&!e.singleQuote?'"':e.__isInHtmlAttribute?"'":hn(s,e.singleQuote);return t.charAt(0)===r?t:dn(s,r)}var Pt=jl;var jr=class extends Error{name="UnexpectedNodeError";constructor(e,s,r="type"){super(`Unexpected ${s} node ${r}: ${JSON.stringify(e[r])}.`),this.node=e}},mn=jr;var Rt=Symbol.for("PRETTIER_IS_FRONT_MATTER");function Hl(t){return!!t?.[Rt]}var Re=Hl;var Ke=3;function Kl(t){let e=t.slice(0,Ke);if(e!=="---"&&e!=="+++")return;let s=t.indexOf(` +`,Ke);if(s===-1)return;let r=t.slice(Ke,s).trim(),n=t.indexOf(` +${e}`,s),i=r;if(i||(i=e==="+++"?"toml":"yaml"),n===-1&&e==="---"&&i==="yaml"&&(n=t.indexOf(` +...`,s)),n===-1)return;let o=n+1+Ke,u=t.charAt(o+1);if(!/\s?/u.test(u))return;let a=t.slice(0,o),l;return{language:i,explicitLanguage:r||null,value:t.slice(s+1,n),startDelimiter:e,endDelimiter:a.slice(-Ke),raw:a,start:{line:1,column:0,index:0},end:{index:a.length,get line(){return l??(l=a.split(` +`)),l.length},get column(){return l??(l=a.split(` +`)),G(0,l,-1).length}},[Rt]:!0}}function Ql(t){let e=Kl(t);return e?{frontMatter:e,get content(){let{raw:s}=e;return E(0,s,/[^\n]/gu," ")+t.slice(s.length)}}:{content:t}}var ge=Ql;var Xl=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma","spaces"]);function yn(t,e,s){if(t.type==="css-comment"&&s.type==="css-root"&&s.nodes.length>0&&((s.nodes[0]===t||Re(s.nodes[0])&&s.nodes[1]===t)&&(delete e.text,/^\*\s*@(?:format|prettier)\s*$/u.test(t.text))||s.type==="css-root"&&G(0,s.nodes,-1)===t))return null;if(t.type==="value-root"&&delete e.text,(t.type==="media-query"||t.type==="media-query-list"||t.type==="media-feature-expression")&&delete e.value,t.type==="css-rule"&&delete e.params,(t.type==="media-feature"||t.type==="media-keyword"||t.type==="media-type"||t.type==="media-unknown"||t.type==="media-url"||t.type==="media-value"||t.type==="selector-attribute"||t.type==="selector-string"||t.type==="selector-class"||t.type==="selector-combinator"||t.type==="value-string")&&t.value&&(e.value=Jl(t.value)),t.type==="selector-combinator"&&(e.value=E(0,e.value,/\s+/gu," ")),t.type==="media-feature"&&(e.value=E(0,e.value," ","")),(t.type==="value-word"&&(t.isColor&&t.isHex||["initial","inherit","unset","revert"].includes(t.value.toLowerCase()))||t.type==="media-feature"||t.type==="selector-root-invalid"||t.type==="selector-pseudo")&&(e.value=e.value.toLowerCase()),t.type==="css-decl"&&(e.prop=t.prop.toLowerCase()),(t.type==="css-atrule"||t.type==="css-import")&&(e.name=t.name.toLowerCase()),t.type==="value-number"&&(e.unit=t.unit.toLowerCase()),t.type==="value-unknown"&&(e.value=E(0,e.value,/;$/gu,"")),t.type==="selector-attribute"&&(e.attribute=t.attribute.trim(),t.namespace&&typeof t.namespace=="string"&&(e.namespace=t.namespace.trim()||!0),t.value)){let{value:r}=e;/\s[a-zA-Z]$/u.test(r)&&(e.__prettier_attribute_selector_flag=G(0,r,-1),r=r.slice(0,-1)),r=r.trim(),r=r.replace(/^(?["'])(?.*?)\k$/u,"$"),e.value=r,delete e.quoted}if((t.type==="media-value"||t.type==="media-type"||t.type==="value-number"||t.type==="selector-root-invalid"||t.type==="selector-class"||t.type==="selector-combinator"||t.type==="selector-tag")&&t.value&&(e.value=E(0,e.value,/([\d+.e-]+)([a-z]*)/giu,(r,n,i)=>{let o=Number(n);return Number.isNaN(o)?r:o+i.toLowerCase()})),t.type==="selector-tag"){let r=e.value.toLowerCase();["from","to"].includes(r)&&(e.value=r)}if(t.type==="css-atrule"&&t.name.toLowerCase()==="supports"&&delete e.value,t.type==="selector-unknown"&&delete e.value,t.type==="value-comma_group"){let r=t.groups.findIndex(n=>n.type==="value-number"&&n.unit==="...");r!==-1&&(e.groups[r].unit="",e.groups.splice(r+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}if(t.type==="value-comma_group"&&t.groups.some(r=>r.type==="value-atword"&&(r.value.endsWith("[")||r.value.endsWith("]"))||r.type==="value-word"&&(r.value.startsWith("]")||r.value.startsWith("["))))return{type:"value-atword",value:t.groups.map(r=>r.value).join(""),group:{open:null,close:null,groups:[],type:"value-paren_group"}}}yn.ignoredProperties=Xl;function Jl(t){return E(0,E(0,t,"'",'"'),/\\([^\da-f])/giu,"$1")}var gn=yn;function wn(){}wn.getVisitorKeys=t=>t.type==="css-root"?["frontMatter"]:[];var vn=wn;var Qe=null;function Xe(t){if(Qe!==null&&typeof Qe.property){let e=Qe;return Qe=Xe.prototype=null,e}return Qe=Xe.prototype=t??Object.create(null),new Xe}var Zl=10;for(let t=0;t<=Zl;t++)Xe();function Hr(t){return Xe(t)}function ec(t,e="type"){Hr(t);function s(r){let n=r[e],i=t[n];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${n}'.`),{node:r});return i}return s}var xn=ec;var _=[[],["nodes"],["group"]],_n={"css-root":["frontMatter","nodes"],"css-comment":_[0],"css-rule":["selector","nodes"],"css-decl":["value","selector","nodes"],"css-atrule":["selector","params","value","nodes"],"media-query-list":_[1],"media-query":_[1],"media-type":_[0],"media-feature-expression":_[1],"media-feature":_[0],"media-colon":_[0],"media-value":_[0],"media-keyword":_[0],"media-url":_[0],"media-unknown":_[0],"selector-root":_[1],"selector-selector":_[1],"selector-comment":_[0],"selector-string":_[0],"selector-tag":_[0],"selector-id":_[0],"selector-class":_[0],"selector-attribute":_[0],"selector-combinator":_[1],"selector-universal":_[0],"selector-pseudo":_[1],"selector-nesting":_[0],"selector-unknown":_[0],"value-value":_[2],"value-root":_[2],"value-comment":_[0],"value-comma_group":["groups"],"value-paren_group":["open","groups","close"],"value-func":_[2],"value-paren":_[0],"value-number":_[0],"value-operator":_[0],"value-word":_[0],"value-colon":_[0],"value-comma":_[0],"value-string":_[0],"value-atword":_[0],"value-unicode-range":_[0],"value-unknown":_[0]};var tc=xn(_n),bn=tc;function rc(t,e){let s=0;for(let r=0;r{let n=!!r?.backwards;if(s===!1)return!1;let{length:i}=e,o=s;for(;o>=0&&ot.source?.startOffset,R=t=>t.source?.endOffset;var nc=/\*\/$/,ic=/^\/\*\*?/,Pn=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,oc=/(^|\s+)\/\/([^\n\r]*)/g,On=/^(\r?\n)+/,ac=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,Cn=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,uc=/(\r?\n|^) *\* ?/g,Rn=[];function In(t){let e=t.match(Pn);return e?e[0].trimStart():""}function qn(t){let s=t.match(Pn)?.[0];return s==null?t:t.slice(s.length)}function Ln(t){t=E(0,t.replace(ic,"").replace(nc,""),uc,"$1");let s="";for(;s!==t;)s=t,t=E(0,t,ac,` +$1 $2 +`);t=t.replace(On,"").trimEnd();let r=Object.create(null),n=E(0,t,Cn,"").replace(On,"").trimEnd(),i;for(;i=Cn.exec(t);){let o=E(0,i[2],oc,"");if(typeof r[i[1]]=="string"||Array.isArray(r[i[1]])){let u=r[i[1]];r[i[1]]=[...Rn,...Array.isArray(u)?u:[u],o]}else r[i[1]]=o}return{comments:n,pragmas:r}}function Dn({comments:t="",pragmas:e={}}){let o=Object.keys(e),u=o.flatMap(l=>Nn(l,e[l])).map(l=>` * ${l} +`).join("");if(!t){if(o.length===0)return"";if(o.length===1&&!Array.isArray(e[o[0]])){let l=e[o[0]];return`/** ${Nn(o[0],l)[0]} */`}}let a=t.split(` +`).map(l=>` * ${l}`).join(` +`)+` +`;return`/** +`+(t?a:"")+(t&&o.length>0?` * +`:"")+u+" */"}function Nn(t,e){return[...Rn,...Array.isArray(e)?e:[e]].map(s=>`@${t} ${s}`.trim())}var Mn=["noformat","noprettier"],Bn=["format","prettier"],Un="format";function lc(t){if(!t.startsWith("#!"))return"";let e=t.indexOf(` +`);return e===-1?t:t.slice(0,e)}var Fn=lc;function Jr(t){let e=Fn(t);e&&(t=t.slice(e.length+1));let s=In(t),{pragmas:r,comments:n}=Ln(s);return{shebang:e,text:t,pragmas:r,comments:n}}function $n(t){let{pragmas:e}=Jr(t);return Bn.some(s=>Object.prototype.hasOwnProperty.call(e,s))}function Wn(t){let{pragmas:e}=Jr(t);return Mn.some(s=>Object.prototype.hasOwnProperty.call(e,s))}function Gn(t){let{shebang:e,text:s,pragmas:r,comments:n}=Jr(t),i=qn(s),o=Dn({pragmas:{[Un]:"",...r},comments:n.trimStart()});return(e?`${e} +`:"")+o+(i.startsWith(` +`)?` +`:` + +`)+i}var Yn=t=>$n(ge(t).content),Vn=t=>Wn(ge(t).content),zn=t=>{let{frontMatter:e,content:s}=ge(t);return(e?e.raw+` + +`:"")+Gn(s)};var cc=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function jn(t){return t.findAncestor(e=>e.type==="css-decl")?.prop?.toLowerCase()}var fc=new Set(["initial","inherit","unset","revert"]);function Hn(t){return fc.has(t.toLowerCase())}function Kn(t,e){return t.findAncestor(r=>r.type==="css-atrule")?.name?.toLowerCase().endsWith("keyframes")&&["from","to"].includes(e.toLowerCase())}function Ie(t){return t.includes("$")||t.includes("@")||t.includes("#")||t.startsWith("%")||t.startsWith("--")||t.startsWith(":--")||t.includes("(")&&t.includes(")")?t:t.toLowerCase()}function qe(t,e){return t.findAncestor(r=>r.type==="value-func")?.value?.toLowerCase()===e}function Qn(t){return t.hasAncestor(e=>{if(e.type!=="css-rule")return!1;let s=e.raws?.selector;return s&&(s.startsWith(":import")||s.startsWith(":export"))})}function we(t,e){let s=Array.isArray(e)?e:[e],r=t.findAncestor(n=>n.type==="css-atrule");return r&&s.includes(r.name.toLowerCase())}function Xn(t){let{node:e}=t;return e.groups[0]?.value==="url"&&e.groups.length===2&&t.findAncestor(s=>s.type==="css-atrule")?.name==="import"}function Jn(t){return t.type==="value-func"&&t.value.toLowerCase()==="url"}function Zn(t){return t.type==="value-func"&&t.value.toLowerCase()==="var"}function ei(t){let{selector:e}=t;return e?typeof e=="string"&&/^@.+:.*$/u.test(e)||e.value&&/^@.+:.*$/u.test(e.value):!1}function ti(t){return t.type==="value-word"&&["from","through","end"].includes(t.value)}function ri(t){return t.type==="value-word"&&["and","or","not"].includes(t.value)}function si(t){return t.type==="value-word"&&t.value==="in"}function Dt(t){return t.type==="value-operator"&&t.value==="*"}function ve(t){return t?.type==="value-operator"&&t.value==="/"}function J(t){return t.type==="value-operator"&&t.value==="+"}function xe(t){return t.type==="value-operator"&&t.value==="-"}function pc(t){return t.type==="value-operator"&&t.value==="%"}function Mt(t){return Dt(t)||ve(t)||J(t)||xe(t)||pc(t)}function ni(t){return t.type==="value-word"&&["==","!="].includes(t.value)}function ii(t){return t.type==="value-word"&&["<",">","<=",">="].includes(t.value)}function Je(t,e){return e.parser==="scss"&&t.type==="css-atrule"&&["if","else","for","each","while"].includes(t.name)}function es(t){return t.raws?.params&&/^\(\s*\)$/u.test(t.raws.params)}function Bt(t){return t.name.startsWith("prettier-placeholder")}function oi(t){return t.prop.startsWith("@prettier-placeholder")}function ai(t,e){return t.value==="$$"&&t.type==="value-func"&&e?.type==="value-word"&&!e.raws.before}function ui(t){return t.value?.type==="value-root"&&t.value.group?.type==="value-value"&&t.prop.toLowerCase()==="composes"}function li(t){return t.value?.group?.group?.type==="value-paren_group"&&t.value.group.group.open!==null&&t.value.group.group.close!==null}function Z(t){return t?.raws?.before===""}function Ut(t){return t.type==="value-comma_group"&&t.groups?.[1]?.type==="value-colon"}function Zr(t){return t.type==="value-paren_group"&&t.groups?.[0]&&Ut(t.groups[0])}function ts(t,e){if(e.parser!=="scss")return!1;let{node:s}=t;if(s.groups.length===0)return!1;let r=t.parent;if(r&&r.type==="value-func"&&r.value==="if")return!1;let n=t.grandparent;return!Zr(s)&&!(n&&Zr(n))?!1:!!(t.findAncestor(o=>o.type==="css-decl")?.prop?.startsWith("$")||Zr(n)||n.type==="value-func")}function Ze(t){return t.type==="value-comment"&&t.inline}function Ft(t){return t.type==="value-word"&&t.value==="#"}function rs(t){return t.type==="value-word"&&t.value==="{"}function $t(t){return t.type==="value-word"&&t.value==="}"}function et(t){return["value-word","value-atword"].includes(t.type)}function Wt(t){return t?.type==="value-colon"}function ci(t,e){if(!Ut(e))return!1;let{groups:s}=e,r=s.indexOf(t);return r===-1?!1:Wt(s[r+1])}function fi(t){return t.value&&["not","and","or"].includes(t.value.toLowerCase())}function pi(t){return t.type!=="value-func"?!1:cc.has(t.value.toLowerCase())}function Le(t){return/\/\//u.test(t.split(/[\n\r]/u).pop())}function tt(t){return t?.type==="value-atword"&&t.value.startsWith("prettier-placeholder-")}function hi(t,e){if(t.open?.value!=="("||t.close?.value!==")"||t.groups.some(s=>s.type!=="value-comma_group"))return!1;if(e.type==="value-comma_group"){let s=e.groups.indexOf(t)-1,r=e.groups[s];if(r?.type==="value-word"&&r.value==="with")return!0}return!1}function rt(t){return t.type==="value-paren_group"&&t.open?.value==="("&&t.close?.value===")"}function hc(t,e,s){let{node:r}=t,n=t.parent,i=t.grandparent,o=jn(t),u=o&&n.type==="value-value"&&(o==="grid"||o.startsWith("grid-template")),a=t.findAncestor(p=>p.type==="css-atrule"),l=a&&Je(a,e),f=r.groups.some(p=>Ze(p)),h=t.map(s,"groups"),c=[""],g=qe(t,"url"),b=!1,d=!1;for(let p=0;pN:k!==-1?b=!0:N!==-1&&(b=!1)}if(b||Wt(y)||Wt(v)||y.type==="value-atword"&&(y.value===""||y.value.endsWith("["))||v.type==="value-word"&&v.value.startsWith("]")||y.value==="~"||e.parser==="less"&&(v?.type==="value-word"&&v.value==="["||y.type==="value-word"&&y.value==="["&&(v?.type==="value-atword"||v?.type==="value-word")||y.type==="value-word"&&y.value==="]["&&v?.type==="value-word")||y.type!=="value-string"&&y.value&&y.value.includes("\\")&&v&&v.type!=="value-comment"||m?.value&&m.value.indexOf("\\")===m.value.length-1&&y.type==="value-operator"&&y.value==="/"||y.value==="\\"||ai(y,v)||Ft(y)||rs(y)||$t(v)||rs(v)&&Z(v)||$t(y)&&Z(v)||y.value==="--"&&Ft(v))continue;let q=Mt(y),H=Mt(v);if((q&&Ft(v)||H&&$t(y))&&Z(v)||!m&&ve(y)||qe(t,"calc")&&(J(y)||J(v)||xe(y)||xe(v))&&Z(v))continue;let ne=(J(y)||xe(y))&&p===0&&(v.type==="value-number"||v.isHex)&&i&&pi(i)&&!Z(v);if(e.parser==="scss"&&q&&y.value==="-"&&v.type==="value-func"&&R(y)!==P(v)){c.push([c.pop()," "]);continue}let W=O?.type==="value-func"||O&&et(O)||y.type==="value-func"||et(y),A=v.type==="value-func"||et(v)||m?.type==="value-func"||m&&et(m);if(!(!(Dt(v)||Dt(y))&&!qe(t,"calc")&&!ne&&(ve(v)&&!W||ve(y)&&!A||J(v)&&!W||J(y)&&!A||xe(v)||xe(y))&&(Z(v)||q&&(!m||m&&Mt(m))))&&!((e.parser==="scss"||e.parser==="less")&&q&&y.value==="-"&&rt(v)&&R(y)===P(v.open)&&v.open.value==="(")){if(Ze(y)){if(n.type==="value-paren_group"){c.push(le(T),"");continue}c.push(T,"");continue}if(l&&(ni(v)||ii(v)||ri(v)||si(y)||ti(y))){c.push([c.pop()," "]);continue}if(a&&a.name.toLowerCase()==="namespace"){c.push([c.pop()," "]);continue}if(u){y.source&&v.source&&y.source.start.line!==v.source.start.line?(c.push(T,""),d=!0):c.push([c.pop()," "]);continue}if(!(o&&(o==="font"||o.startsWith("--"))&&(ve(v)&&Z(v)&&di(y)||ve(y)&&Z(y)&&di(m)))){if(H){c.push([c.pop()," "]);continue}if(v?.value!=="..."&&!(tt(y)&&tt(v)&&R(y)===P(v))){if(tt(y)&&rt(v)&&R(y)===P(v.open)){c.push(M,"");continue}if(y.value==="with"&&rt(v)){c=[[Pe(c)," "]];continue}if(!(y.value?.endsWith("#")&&v.value==="{"&&rt(v.group))&&!(Ze(v)&&!O)){if(!a&&y.type==="value-comment"&&!y.inline&&r.groups.slice(0,p).every(k=>k.type==="value-comment")){c.push(le(C),"");continue}c.push(C,"")}}}}}return f&&c.push([c.pop(),Ne]),d&&c.unshift("",T),l?D(L(c)):Xn(t)?D(Pe(c)):D(L(Pe(c)))}function di(t){if(t?.type==="value-number")return!0;if(t?.type!=="value-func")return!1;let e=t.value.toLowerCase();return e==="var"||e==="calc"||e==="min"||e==="max"||e==="clamp"||e.startsWith("--")}var mi=hc;function dc(t){return t.length===1?t:t.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")}var yi=dc;var Gt=new Map([["em","em"],["rem","rem"],["ex","ex"],["rex","rex"],["cap","cap"],["rcap","rcap"],["ch","ch"],["rch","rch"],["ic","ic"],["ric","ric"],["lh","lh"],["rlh","rlh"],["vw","vw"],["svw","svw"],["lvw","lvw"],["dvw","dvw"],["vh","vh"],["svh","svh"],["lvh","lvh"],["dvh","dvh"],["vi","vi"],["svi","svi"],["lvi","lvi"],["dvi","dvi"],["vb","vb"],["svb","svb"],["lvb","lvb"],["dvb","dvb"],["vmin","vmin"],["svmin","svmin"],["lvmin","lvmin"],["dvmin","dvmin"],["vmax","vmax"],["svmax","svmax"],["lvmax","lvmax"],["dvmax","dvmax"],["cm","cm"],["mm","mm"],["q","Q"],["in","in"],["pt","pt"],["pc","pc"],["px","px"],["deg","deg"],["grad","grad"],["rad","rad"],["turn","turn"],["s","s"],["ms","ms"],["hz","Hz"],["khz","kHz"],["dpi","dpi"],["dpcm","dpcm"],["dppx","dppx"],["x","x"],["cqw","cqw"],["cqh","cqh"],["cqi","cqi"],["cqb","cqb"],["cqmin","cqmin"],["cqmax","cqmax"],["fr","fr"]]);function ss(t){let e=t.toLowerCase();return Gt.has(e)?Gt.get(e):t}var gi=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gsu,mc=/(?:\d*\.\d+|\d+\.?)(?:e[+-]?\d+)?/giu,yc=/[a-z]+/giu,gc=/[$@]?[_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/giu,wc=new RegExp(gi.source+`|(${gc.source})?(${mc.source})(${yc.source})?`,"giu");function V(t,e){return E(0,t,gi,s=>Pt(s,e))}function wi(t,e){let s=e.singleQuote?"'":'"',r="",n=t.match(/^(?.+?)\s+(?[a-zA-Z])$/u);return n&&({value:t,flag:r}=n.groups),(t.includes('"')||t.includes("'")?t:s+t+s)+(r?` ${r}`:"")}function _e(t){return E(0,t,wc,(e,s,r,n,i)=>!r&&n&&(i??(i=""),i=i.toLowerCase(),!i||i==="n"||Gt.has(i))?ns(n)+(i?ss(i):""):e)}function ns(t){return yi(t).replace(/\.0(?=$|e)/u,"")}function vi(t){return t.trailingComma==="es5"||t.trailingComma==="all"}var xi=t=>t===` +`||t==="\r"||t==="\u2028"||t==="\u2029";function vc(t,e,s){let r=!!s?.backwards;if(e===!1)return!1;let n=t.charAt(e);if(r){if(t.charAt(e-1)==="\r"&&n===` +`)return e-2;if(xi(n))return e-1}else{if(n==="\r"&&t.charAt(e+1)===` +`)return e+2;if(xi(n))return e+1}return e}var Yt=vc;function xc(t,e,s={}){let r=qt(t,s.backwards?e-1:e,s),n=Yt(t,r,s);return r!==n}var Vt=xc;function _c(t,e){if(e===!1)return!1;if(t.charAt(e)==="/"&&t.charAt(e+1)==="*"){for(let s=e+2;ss.type==="value-comment"))&&vi(e)&&t.callParent(()=>ts(t,e))?Nt(","):""}function Ei(t,e,s){let{node:r,parent:n}=t,i=t.map(({node:g})=>typeof g=="string"?g:s(),"groups");if(n&&Jn(n)&&(r.groups.length===1||r.groups.length>0&&r.groups[0].type==="value-comma_group"&&r.groups[0].groups.length>0&&r.groups[0].groups[0].type==="value-word"&&r.groups[0].groups[0].value.startsWith("data:")))return[r.open?s("open"):"",Y(",",i),r.close?s("close"):""];if(!r.open){let g=is(t);ye(i);let b=Ac(Y(",",i),2),d=Y(g?T:C,b);return L(g?[T,d]:D([Tc(t)?M:"",Pe(d)]))}let o=t.map(({node:g,isLast:b,index:d})=>{let p=i[d];Ut(g)&&g.type==="value-comma_group"&&g.groups&&g.groups[0].type!=="value-paren_group"&&g.groups[2]?.type==="value-paren_group"&&ue(p)===oe&&ue(p.contents)===ie&&ue(p.contents.contents)===ae&&(p=D(le(p)));let m=[p,b?kc(t,e):","];if(!b&&g.type==="value-comma_group"&&ce(g.groups)){let y=G(0,g.groups,-1);!y.source&&y.close&&(y=y.close),y.source&&zt(e.originalText,R(y))&&m.push(T)}return m},"groups"),u=ci(r,n),a=hi(r,n),l=ts(t,e),f=a||l&&!u,h=a||u,c=D([r.open?s("open"):"",L([M,Y(C,o)]),M,r.close?s("close"):""],{shouldBreak:f});return h?le(c):c}function is(t){return t.match(e=>e.type==="value-paren_group"&&!e.open&&e.groups.some(s=>s.type==="value-comma_group"),(e,s)=>s==="group"&&e.type==="value-value",(e,s)=>s==="group"&&e.type==="value-root",(e,s)=>s==="value"&&(e.type==="css-decl"&&!e.prop.startsWith("--")||e.type==="css-atrule"&&e.variable))}function Tc(t){return t.match(e=>e.type==="value-paren_group"&&!e.open,(e,s)=>s==="group"&&e.type==="value-value",(e,s)=>s==="group"&&e.type==="value-root",(e,s)=>s==="value"&&e.type==="css-decl")}function Ac(t,e){let s=[];for(let r=0;r{let{node:n,previous:i}=t;if(i?.type==="css-comment"&&i.text.trim()==="prettier-ignore"?r.push(e.originalText.slice(P(n),R(n))):r.push(s()),t.isLast)return;let{next:o}=t;o.type==="css-comment"&&!Vt(e.originalText,P(o),{backwards:!0})&&!Re(n)||o.type==="css-atrule"&&o.name==="else"&&n.type!=="css-comment"?r.push(" "):(r.push(e.__isHTMLStyleAttribute?C:T),zt(e.originalText,R(n))&&!Re(n)&&r.push(T))},"nodes"),r}var De=Oc;function Cc(t,e,s){let{node:r}=t;switch(r.type){case"css-root":{let n=De(t,e,s),i=r.raws.after.trim();return i.startsWith(";")&&(i=i.slice(1).trim()),[r.frontMatter?[s("frontMatter"),T,r.nodes.length>0?T:""]:"",n,i?` ${i}`:"",r.nodes.length>0?T:""]}case"css-comment":{let n=r.inline||r.raws.inline,i=e.originalText.slice(P(r),R(r));return n?i.trimEnd():i}case"css-rule":return[s("selector"),r.important?" !important":"",r.nodes?[r.selector?.type==="selector-unknown"&&Le(r.selector.value)?C:r.selector?" ":"","{",r.nodes.length>0?L([T,De(t,e,s)]):"",T,"}",ei(r)?";":""]:";"];case"css-decl":{let n=t.parent,{between:i}=r.raws,o=i.trim(),u=o===":",a=typeof r.value=="string"&&/^ *$/u.test(r.value),l=typeof r.value=="string"?r.value:s("value");return l=ui(r)?an(l):l,!u&&Le(o)&&!t.call(()=>is(t),"value","group","group")&&(l=L([T,le(l)])),[E(0,r.raws.before,/[\s;]/gu,""),n.type==="css-atrule"&&n.variable||Qn(t)?r.prop:Ie(r.prop),o.startsWith("//")?" ":"",o,r.extend||a?"":" ",e.parser==="less"&&r.extend&&r.selector?["extend(",s("selector"),")"]:"",l,r.raws.important?r.raws.important.replace(/\s*!\s*important/iu," !important"):r.important?" !important":"",r.raws.scssDefault?r.raws.scssDefault.replace(/\s*!default/iu," !default"):r.scssDefault?" !default":"",r.raws.scssGlobal?r.raws.scssGlobal.replace(/\s*!global/iu," !global"):r.scssGlobal?" !global":"",r.nodes?[" {",L([M,De(t,e,s)]),M,"}"]:oi(r)&&!n.raws.semicolon&&e.originalText[R(r)-1]!==";"?"":e.__isHTMLStyleAttribute&&t.isLast?Nt(";"):";"]}case"css-atrule":{let n=t.parent,i=Bt(r)&&!n.raws.semicolon&&e.originalText[R(r)-1]!==";";if(e.parser==="less"){if(r.mixin)return[s("selector"),r.important?" !important":"",i?"":";"];if(r.function)return[r.name,typeof r.params=="string"?r.params:s("params"),i?"":";"];if(r.variable)return["@",r.name,": ",r.value?s("value"):"",r.raws.between.trim()?r.raws.between.trim()+" ":"",r.nodes?["{",L([r.nodes.length>0?M:"",De(t,e,s)]),M,"}"]:"",i?"":";"]}let o=r.name==="import"&&r.params?.type==="value-unknown"&&r.params.value.endsWith(";");return["@",es(r)||r.name.endsWith(":")||Bt(r)?r.name:Ie(r.name),r.params?[es(r)?"":Bt(r)?r.raws.afterName===""?"":r.name.endsWith(":")?" ":/^\s*\n\s*\n/u.test(r.raws.afterName)?[T,T]:/^\s*\n/u.test(r.raws.afterName)?T:" ":" ",typeof r.params=="string"?r.params:s("params")]:"",r.selector?L([" ",s("selector")]):"",r.value?D([" ",s("value"),Je(r,e)?li(r)?" ":C:""]):r.name==="else"?" ":"",r.nodes?[Je(r,e)?"":r.selector&&!r.selector.nodes&&typeof r.selector.value=="string"&&Le(r.selector.value)||!r.selector&&typeof r.params=="string"&&Le(r.params)?C:" ","{",L([r.nodes.length>0?M:"",De(t,e,s)]),M,"}"]:i||o?"":";"]}case"media-query-list":{let n=[];return t.each(({node:i})=>{i.type==="media-query"&&i.value===""||n.push(s())},"nodes"),D(L(Y(C,n)))}case"media-query":return[Y(" ",t.map(s,"nodes")),t.isLast?"":","];case"media-type":return _e(V(r.value,e));case"media-feature-expression":return r.nodes?["(",...t.map(s,"nodes"),")"]:r.value;case"media-feature":return Ie(V(E(0,r.value,/ +/gu," "),e));case"media-colon":return[r.value," "];case"media-value":return _e(V(r.value,e));case"media-keyword":return V(r.value,e);case"media-url":return V(E(0,E(0,r.value,/^url\(\s+/giu,"url("),/\s+\)$/gu,")"),e);case"media-unknown":return r.value;case"selector-root":return D([we(t,"custom-selector")?[t.findAncestor(n=>n.type==="css-atrule").customSelector,C]:"",Y([",",we(t,["extend","custom-selector","nest"])?C:T],t.map(s,"nodes"))]);case"selector-selector":{let n=r.nodes.length>2;return D((n?L:i=>i)(t.map(s,"nodes")))}case"selector-comment":return r.value;case"selector-string":return V(r.value,e);case"selector-tag":return[r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",t.previous?.type==="selector-nesting"?r.value:_e(Kn(t,r.value)?r.value.toLowerCase():r.value)];case"selector-id":return["#",r.value];case"selector-class":return[".",_e(V(r.value,e))];case"selector-attribute":return["[",r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",r.attribute.trim(),r.operator??"",r.value?wi(V(r.value.trim(),e),e):"",r.insensitive?" i":"","]"];case"selector-combinator":{if(r.value==="+"||r.value===">"||r.value==="~"||r.value===">>>"){let o=t.parent;return[o.type==="selector-selector"&&o.nodes[0]===r?"":C,r.value,t.isLast?"":" "]}let n=r.value.trim().startsWith("(")?C:"",i=_e(V(r.value.trim(),e))||C;return[n,i]}case"selector-universal":return[r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",r.value];case"selector-pseudo":return[Ie(r.value),ce(r.nodes)?D(["(",L([M,Y([",",C],t.map(s,"nodes"))]),M,")"]):""];case"selector-nesting":return r.value;case"selector-unknown":{if(t.findAncestor(u=>u.type==="css-rule")?.isSCSSNesterProperty)return _e(V(Ie(r.value),e));let i=t.parent;if(i.raws?.selector){let u=P(i),a=u+i.raws.selector.length;return e.originalText.slice(u,a).trim()}let o=t.grandparent;if(i.type==="value-paren_group"&&o?.type==="value-func"&&o.value==="selector"){let u=R(i.open)+1,a=P(i.close),l=e.originalText.slice(u,a).trim();return Le(l)?[Ne,l]:l}return r.value}case"value-value":case"value-root":return s("group");case"value-comment":return e.originalText.slice(P(r),R(r));case"value-comma_group":return mi(t,e,s);case"value-paren_group":return Ei(t,e,s);case"value-func":return[r.value,we(t,"supports")&&fi(r)?" ":"",s("group")];case"value-paren":return r.value;case"value-number":return[ns(r.value),ss(r.unit)];case"value-operator":return r.value;case"value-word":return r.isColor&&r.isHex||Hn(r.value)?r.value.toLowerCase():r.value;case"value-colon":{let{previous:n}=t;return D([r.value,typeof n?.value=="string"&&n.value.endsWith("\\")||qe(t,"url")?"":C])}case"value-string":return Pt(r.raws.quote+r.value+r.raws.quote,e);case"value-atword":return["@",r.value];case"value-unicode-range":return r.value;case"value-unknown":return r.value;case"front-matter":case"value-comma":default:throw new mn(r,"PostCSS")}}var Nc={features:{experimental_frontMatterSupport:{massageAstNode:!0,embed:!0,print:!0}},print:Cc,embed:vn,insertPragma:zn,massageAstNode:gn,getVisitorKeys:bn},Si=Nc;var ki=[{name:"CSS",type:"markup",aceMode:"css",extensions:[".css",".wxss"],tmScope:"source.css",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["css"],vscodeLanguageIds:["css"],linguistLanguageId:50},{name:"PostCSS",type:"markup",aceMode:"text",extensions:[".pcss",".postcss"],tmScope:"source.postcss",group:"CSS",parsers:["css"],vscodeLanguageIds:["postcss"],linguistLanguageId:262764437},{name:"Less",type:"markup",aceMode:"less",extensions:[".less"],tmScope:"source.css.less",aliases:["less-css"],codemirrorMode:"css",codemirrorMimeType:"text/x-less",parsers:["less"],vscodeLanguageIds:["less"],linguistLanguageId:198},{name:"SCSS",type:"markup",aceMode:"scss",extensions:[".scss"],tmScope:"source.css.scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",parsers:["scss"],vscodeLanguageIds:["scss"],linguistLanguageId:329}];var Ti={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var Pc={singleQuote:Ti.singleQuote},Ai=Pc;var en={};sn(en,{css:()=>Vy,less:()=>zy,scss:()=>jy});var ml=Te(ht(),1),yl=Te(Lo(),1),gl=Te(ma(),1);function gp(t,e){let s=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(s,e)}var ya=gp;function wp(t){return t!==null&&typeof t=="object"}var Se=wp;var Ea=Te(ba(),1);function te(t,e,s){if(Se(t)){delete t.parent;for(let r in t)te(t[r],e,s),r==="type"&&typeof t[r]=="string"&&!t[r].startsWith(e)&&(!s||!s.test(t[r]))&&(t[r]=e+t[r])}return t}function Bs(t){if(Se(t)){delete t.parent;for(let e in t)Bs(t[e]);!Array.isArray(t)&&t.value&&!t.type&&(t.type="unknown")}return t}var Np=Ea.default.default;function Pp(t){let e;try{e=Np(t)}catch{return{type:"selector-unknown",value:t}}return te(Bs(e),"media-")}var Sa=Pp;var wu=Te(gu(),1);function Vm(t){if(/\/[/*]/u.test(E(0,t,/"[^"]+"|'[^']+'/gu,"")))return{type:"selector-unknown",value:t.trim()};let e;try{new wu.default(s=>{e=s}).process(t)}catch{return{type:"selector-unknown",value:t}}return te(e,"selector-")}var se=Vm;var fl=Te(il(),1);var Iy=t=>{for(;t.parent;)t=t.parent;return t},Yr=Iy;function qy(t){return Yr(t).text.slice(t.group.open.sourceIndex+1,t.group.close.sourceIndex).trim()}var ol=qy;function Ly(t){if(ce(t)){for(let e=t.length-1;e>0;e--)if(t[e].type==="word"&&t[e].value==="{"&&t[e-1].type==="word"&&t[e-1].value.endsWith("#"))return!0}return!1}var al=Ly;function Dy(t){return t.some(e=>e.type==="string"||e.type==="func"&&!e.value.endsWith("\\"))}var ul=Dy;function My(t,e){return!!(e.parser==="scss"&&t?.type==="word"&&t.value.startsWith("$"))}var ll=My;var cl=t=>t.type==="paren"&&t.value===")";function By(t,e){let{nodes:s}=t,r={open:null,close:null,groups:[],type:"paren_group"},n=[r],i=r,o={groups:[],type:"comma_group"},u=[o];for(let a=0;a0&&r.groups.push(o),r.close=l,u.length===1)throw new Error("Unbalanced parenthesis");u.pop(),o=G(0,u,-1),o.groups.push(r),n.pop(),r=G(0,n,-1)}else if(l.type==="comma"){if(a===s.length-3&&s[a+1].type==="comment"&&cl(s[a+2]))continue;r.groups.push(o),o={groups:[],type:"comma_group"},u[u.length-1]=o}else o.groups.push(l)}return o.groups.length>0&&r.groups.push(o),i}function Vr(t){return t.type==="paren_group"&&!t.open&&!t.close&&t.groups.length===1||t.type==="comma_group"&&t.groups.length===1?Vr(t.groups[0]):t.type==="paren_group"||t.type==="comma_group"?{...t,groups:t.groups.map(Vr)}:t}function pl(t,e){if(Se(t))for(let s in t)s!=="parent"&&(pl(t[s],e),s==="nodes"&&(t.group=Vr(By(t,e)),delete t[s]));return t}function Uy(t,e){if(e.parser==="less"&&t.startsWith("~`"))return{type:"value-unknown",value:t};let s=null;try{s=new fl.default(t,{loose:!0}).parse()}catch{return{type:"value-unknown",value:t}}s.text=t;let r=pl(s,e);return te(r,"value-",/^selector-/u)}var de=Uy;var Fy=new Set(["import","use","forward"]);function $y(t){return Fy.has(t)}var hl=$y;function Wy(t,e){return e.parser!=="scss"||!t.selector?!1:t.selector.replace(/\/\*.*?\*\//u,"").replace(/\/\/.*\n/u,"").trim().endsWith(":")}var dl=Wy;var Gy=/(\s*)(!default).*$/u,Yy=/(\s*)(!global).*$/u;function wl(t,e){if(Se(t)){delete t.parent;for(let i in t)wl(t[i],e);if(!t.type)return t;if(t.raws??(t.raws={}),t.type==="css-decl"&&typeof t.prop=="string"&&t.prop.startsWith("--")&&typeof t.value=="string"&&t.value.startsWith("{")){let i;if(t.value.trimEnd().endsWith("}")){let o=e.originalText.slice(0,t.source.start.offset),u="a".repeat(t.prop.length)+e.originalText.slice(t.source.start.offset+t.prop.length,t.source.end.offset),a=E(0,o,/[^\n]/gu," ")+u,l;e.parser==="scss"?l=_l:e.parser==="less"?l=xl:l=vl;let f;try{f=l(a,{...e})}catch{}f?.nodes?.length===1&&f.nodes[0].type==="css-rule"&&(i=f.nodes[0].nodes)}return i?t.value={type:"css-rule",nodes:i}:t.value={type:"value-unknown",value:t.raws.value.raw},t}let s="";typeof t.selector=="string"&&(s=t.raws.selector?t.raws.selector.scss??t.raws.selector.raw:t.selector,t.raws.between&&t.raws.between.trim().length>0&&(s+=t.raws.between),t.raws.selector=s);let r="";typeof t.value=="string"&&(r=t.raws.value?t.raws.value.scss??t.raws.value.raw:t.value,t.raws.value=r.trim());let n="";if(typeof t.params=="string"&&(n=t.raws.params?t.raws.params.scss??t.raws.params.raw:t.params,t.raws.afterName&&t.raws.afterName.trim().length>0&&(n=t.raws.afterName+n),t.raws.between&&t.raws.between.trim().length>0&&(n=n+t.raws.between),n=n.trim(),t.raws.params=n),s.trim().length>0)return s.startsWith("@")&&s.endsWith(":")?t:t.mixin?(t.selector=de(s,e),t):(dl(t,e)&&(t.isSCSSNesterProperty=!0),t.selector=se(s),t);if(r.trim().length>0){let i=r.match(Gy);i&&(r=r.slice(0,i.index),t.scssDefault=!0,i[0].trim()!=="!default"&&(t.raws.scssDefault=i[0]));let o=r.match(Yy);if(o&&(r=r.slice(0,o.index),t.scssGlobal=!0,o[0].trim()!=="!global"&&(t.raws.scssGlobal=o[0])),r.startsWith("progid:"))return{type:"value-unknown",value:r};t.value=de(r,e)}if(e.parser==="less"&&t.type==="css-decl"&&r.startsWith("extend(")&&(t.extend||(t.extend=t.raws.between===":"),t.extend&&!t.selector&&(delete t.value,t.selector=se(r.slice(7,-1)))),t.type==="css-atrule"){if(e.parser==="less"){if(t.mixin){let i=t.raws.identifier+t.name+t.raws.afterName+t.raws.params;return t.selector=se(i),delete t.params,t}if(t.function)return t}if(e.parser==="css"&&t.name==="custom-selector"){let i=t.params.match(/:--\S+\s+/u)[0].trim();return t.customSelector=i,t.selector=se(t.params.slice(i.length).trim()),delete t.params,t}if(e.parser==="less"){if(t.name.includes(":")){t.variable=!0;let i=t.name.split(":");t.name=i[0];let o=i.slice(1).join(":");t.params&&(o+=t.params),t.value=de(o,e)}if(!["page","nest","keyframes"].includes(t.name)&&t.params?.[0]===":"){t.variable=!0;let i=t.params.slice(1);i&&(t.value=de(i,e)),t.raws.afterName+=":"}if(t.variable)return delete t.params,t.value||delete t.value,t}}if(t.type==="css-atrule"&&n.length>0){let{name:i}=t,o=t.name.toLowerCase();return i==="warn"||i==="error"?(t.params={type:"media-unknown",value:n},t):i==="extend"||i==="nest"?(t.selector=se(n),delete t.params,t):i==="at-root"?(/^\(\s*(?:without|with)\s*:.+\)$/su.test(n)?t.params=de(n,e):(t.selector=se(n),delete t.params),t):hl(o)?(t.import=!0,delete t.filename,t.params=de(n,e),t):["namespace","supports","if","else","for","each","while","debug","mixin","include","function","return","define-mixin","add-mixin"].includes(i)?(n=n.replace(/(\$\S+?)(\s+)?\.{3}/u,"$1...$2"),n=n.replace(/^(?!if)([^"'\s(]+)(\s+)\(/u,"$1($2"),t.value=de(n,e),delete t.params,t):["media","custom-media"].includes(o)?n.includes("#{")?{type:"media-unknown",value:n}:(t.params=Sa(n),t):(t.params=n,t)}}return t}function Js(t,e,s){let{frontMatter:r,content:n}=ge(e),i;try{i=t(n,{map:!1})}catch(o){let{name:u,reason:a,line:l,column:f}=o;throw typeof l!="number"?o:ya(`${u}: ${a}`,{loc:{start:{line:l,column:f}},cause:o})}return s.originalText=e,i=wl(te(i,"css-"),s),Xr(i,e),r&&(i.frontMatter={...r,type:"front-matter",source:{startOffset:r.start.index,endOffset:r.end.index}}),i}function vl(t,e={}){return Js(ml.default.default,t,e)}function xl(t,e={}){return Js(s=>yl.default.parse(An(s)),t,e)}function _l(t,e={}){return Js(gl.default,t,e)}var Zs={astFormat:"postcss",hasPragma:Yn,hasIgnorePragma:Vn,locStart:P,locEnd:R},Vy={...Zs,parse:vl},zy={...Zs,parse:xl},jy={...Zs,parse:_l};var Hy={postcss:Si};return Al(Ky);}); \ No newline at end of file diff --git a/node_modules/prettier/plugins/postcss.mjs b/node_modules/prettier/plugins/postcss.mjs new file mode 100644 index 0000000000000000000000000000000000000000..cb2ce98ce8d5184354ba1b3ad39a9b1748fd34e9 --- /dev/null +++ b/node_modules/prettier/plugins/postcss.mjs @@ -0,0 +1,61 @@ +var bl=Object.create;var Vr=Object.defineProperty;var El=Object.getOwnPropertyDescriptor;var Sl=Object.getOwnPropertyNames;var kl=Object.getPrototypeOf,Tl=Object.prototype.hasOwnProperty;var w=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),sn=(t,e)=>{for(var s in e)Vr(t,s,{get:e[s],enumerable:!0})},Al=(t,e,s,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Sl(e))!Tl.call(t,n)&&n!==s&&Vr(t,n,{get:()=>e[n],enumerable:!(r=El(e,n))||r.enumerable});return t};var Te=(t,e,s)=>(s=t!=null?bl(kl(t)):{},Al(e||!t||!t.__esModule?Vr(s,"default",{value:t,enumerable:!0}):s,t));var Oi=w((ux,os)=>{var x=String,Ai=function(){return{isColorSupported:!1,reset:x,bold:x,dim:x,italic:x,underline:x,inverse:x,hidden:x,strikethrough:x,black:x,red:x,green:x,yellow:x,blue:x,magenta:x,cyan:x,white:x,gray:x,bgBlack:x,bgRed:x,bgGreen:x,bgYellow:x,bgBlue:x,bgMagenta:x,bgCyan:x,bgWhite:x,blackBright:x,redBright:x,greenBright:x,yellowBright:x,blueBright:x,magentaBright:x,cyanBright:x,whiteBright:x,bgBlackBright:x,bgRedBright:x,bgGreenBright:x,bgYellowBright:x,bgBlueBright:x,bgMagentaBright:x,bgCyanBright:x,bgWhiteBright:x}};os.exports=Ai();os.exports.createColors=Ai});var as=w(()=>{});var zt=w((fx,Pi)=>{"use strict";var Ci=Oi(),Ni=as(),st=class t extends Error{constructor(e,s,r,n,i,o){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),n&&(this.source=n),o&&(this.plugin=o),typeof s<"u"&&typeof r<"u"&&(typeof s=="number"?(this.line=s,this.column=r):(this.line=s.line,this.column=s.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,t)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let s=this.source;e==null&&(e=Ci.isColorSupported);let r=f=>f,n=f=>f,i=f=>f;if(e){let{bold:f,gray:h,red:c}=Ci.createColors(!0);n=g=>f(c(g)),r=g=>h(g),Ni&&(i=g=>Ni(g))}let o=s.split(/\r?\n/),u=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),l=String(a).length;return o.slice(u,a).map((f,h)=>{let c=u+1+h,g=" "+(" "+c).slice(-l)+" | ";if(c===this.line){if(f.length>160){let d=20,p=Math.max(0,this.column-d),m=Math.max(this.column+d,this.endColumn+d),y=f.slice(p,m),v=r(g.replace(/\d/g," "))+f.slice(0,Math.min(this.column-1,d-1)).replace(/[^\t]/g," ");return n(">")+r(g)+i(y)+` + `+v+n("^")}let b=r(g.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+r(g)+i(f)+` + `+b+n("^")}return" "+r(g)+i(f)}).join(` +`)}toString(){let e=this.showSourceCode();return e&&(e=` + +`+e+` +`),this.name+": "+this.message+e}};Pi.exports=st;st.default=st});var jt=w((px,Ii)=>{"use strict";var Ri={after:` +`,beforeClose:` +`,beforeComment:` +`,beforeDecl:` +`,beforeOpen:" ",beforeRule:` +`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Rc(t){return t[0].toUpperCase()+t.slice(1)}var nt=class{constructor(e){this.builder=e}atrule(e,s){let r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{let i=(e.raws.between||"")+(s?";":"");this.builder(r+n+i,e)}}beforeAfter(e,s){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):s==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let n=e.parent,i=0;for(;n&&n.type!=="root";)i+=1,n=n.parent;if(r.includes(` +`)){let o=this.raw(e,null,"indent");if(o.length)for(let u=0;u0&&e.nodes[s].type==="comment";)s-=1;let r=this.raw(e,"semicolon");for(let n=0;n{if(n=a.raws[s],typeof n<"u")return!1})}return typeof n>"u"&&(n=Ri[r]),o.rawCache[r]=n,n}rawBeforeClose(e){let s;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return s=r.raws.after,s.includes(` +`)&&(s=s.replace(/[^\n]+$/,"")),!1}),s&&(s=s.replace(/\S/g,"")),s}rawBeforeComment(e,s){let r;return e.walkComments(n=>{if(typeof n.raws.before<"u")return r=n.raws.before,r.includes(` +`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(s,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,s){let r;return e.walkDecls(n=>{if(typeof n.raws.before<"u")return r=n.raws.before,r.includes(` +`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(s,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let s;return e.walk(r=>{if(r.type!=="decl"&&(s=r.raws.between,typeof s<"u"))return!1}),s}rawBeforeRule(e){let s;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before<"u")return s=r.raws.before,s.includes(` +`)&&(s=s.replace(/[^\n]+$/,"")),!1}),s&&(s=s.replace(/\S/g,"")),s}rawColon(e){let s;return e.walkDecls(r=>{if(typeof r.raws.between<"u")return s=r.raws.between.replace(/[^\s:]/g,""),!1}),s}rawEmptyBody(e){let s;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(s=r.raws.after,typeof s<"u"))return!1}),s}rawIndent(e){if(e.raws.indent)return e.raws.indent;let s;return e.walk(r=>{let n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&typeof r.raws.before<"u"){let i=r.raws.before.split(` +`);return s=i[i.length-1],s=s.replace(/\S/g,""),!1}}),s}rawSemicolon(e){let s;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(s=r.raws.semicolon,typeof s<"u"))return!1}),s}rawValue(e,s){let r=e[s],n=e.raws[s];return n&&n.value===r?n.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,s){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,s)}};Ii.exports=nt;nt.default=nt});var it=w((hx,qi)=>{"use strict";var Ic=jt();function us(t,e){new Ic(e).stringify(t)}qi.exports=us;us.default=us});var Ht=w((dx,ls)=>{"use strict";ls.exports.isClean=Symbol("isClean");ls.exports.my=Symbol("my")});var ut=w((mx,Li)=>{"use strict";var qc=zt(),Lc=jt(),Dc=it(),{isClean:ot,my:Mc}=Ht();function cs(t,e){let s=new t.constructor;for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||r==="proxyCache")continue;let n=t[r],i=typeof n;r==="parent"&&i==="object"?e&&(s[r]=e):r==="source"?s[r]=n:Array.isArray(n)?s[r]=n.map(o=>cs(o,s)):(i==="object"&&n!==null&&(n=cs(n)),s[r]=n)}return s}function ee(t,e){if(e&&typeof e.offset<"u")return e.offset;let s=1,r=1,n=0;for(let i=0;ie.root().toProxy():e[s]},set(e,s,r){return e[s]===r||(e[s]=r,(s==="prop"||s==="value"||s==="name"||s==="params"||s==="important"||s==="text")&&e.markDirty()),!0}}}markClean(){this[ot]=!0}markDirty(){if(this[ot]){this[ot]=!1;let e=this;for(;e=e.parent;)e[ot]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let s=this.source.start;if(e.index)s=this.positionInside(e.index);else if(e.word){let r="document"in this.source.input?this.source.input.document:this.source.input.css,i=r.slice(ee(r,this.source.start),ee(r,this.source.end)).indexOf(e.word);i!==-1&&(s=this.positionInside(i))}return s}positionInside(e){let s=this.source.start.column,r=this.source.start.line,n="document"in this.source.input?this.source.input.document:this.source.input.css,i=ee(n,this.source.start),o=i+e;for(let u=i;utypeof a=="object"&&a.toJSON?a.toJSON(null,s):a);else if(typeof u=="object"&&u.toJSON)r[o]=u.toJSON(null,s);else if(o==="source"){if(u==null)continue;let a=s.get(u.input);a==null&&(a=i,s.set(u.input,i),i++),r[o]={end:u.end,inputId:a,start:u.start}}else r[o]=u}return n&&(r.inputs=[...s.keys()].map(o=>o.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Dc){e.stringify&&(e=e.stringify);let s="";return e(this,r=>{s+=r}),s}warn(e,s,r={}){let n={node:this};for(let i in r)n[i]=r[i];return e.warn(s,n)}};Li.exports=at;at.default=at});var Me=w((yx,Di)=>{"use strict";var Bc=ut(),lt=class extends Bc{constructor(e){super(e),this.type="comment"}};Di.exports=lt;lt.default=lt});var ft=w((gx,Mi)=>{"use strict";var Uc=ut(),ct=class extends Uc{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}};Mi.exports=ct;ct.default=ct});var fe=w((wx,zi)=>{"use strict";var Bi=Me(),Ui=ft(),Fc=ut(),{isClean:Fi,my:$i}=Ht(),fs,Wi,Gi,ps;function Yi(t){return t.map(e=>(e.nodes&&(e.nodes=Yi(e.nodes)),delete e.source,e))}function Vi(t){if(t[Fi]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)Vi(e)}var z=class t extends Fc{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let s of e){let r=this.normalize(s,this.last);for(let n of r)this.proxyOf.nodes.push(n)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let s of this.nodes)s.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let s=this.getIterator(),r,n;for(;this.indexes[s]e[s](...r.map(n=>typeof n=="function"?(i,o)=>n(i.toProxy(),o):n)):s==="every"||s==="some"?r=>e[s]((n,...i)=>r(n.toProxy(),...i)):s==="root"?()=>e.root().toProxy():s==="nodes"?e.nodes.map(r=>r.toProxy()):s==="first"||s==="last"?e[s].toProxy():e[s]:e[s]},set(e,s,r){return e[s]===r||(e[s]=r,(s==="name"||s==="params"||s==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,s){let r=this.index(e),n=this.normalize(s,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let o of n)this.proxyOf.nodes.splice(r+1,0,o);let i;for(let o in this.indexes)i=this.indexes[o],r"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Ui(e)]}else if(e.selector||e.selectors)e=[new ps(e)];else if(e.name)e=[new fs(e)];else if(e.text)e=[new Bi(e)];else throw new Error("Unknown node type in node creation");return e.map(n=>(n[$i]||t.rebuild(n),n=n.proxyOf,n.parent&&n.parent.removeChild(n),n[Fi]&&Vi(n),n.raws||(n.raws={}),typeof n.raws.before>"u"&&s&&typeof s.raws.before<"u"&&(n.raws.before=s.raws.before.replace(/\S/g,"")),n.parent=this.proxyOf,n))}prepend(...e){e=e.reverse();for(let s of e){let r=this.normalize(s,this.first,"prepend").reverse();for(let n of r)this.proxyOf.nodes.unshift(n);for(let n in this.indexes)this.indexes[n]=this.indexes[n]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let s;for(let r in this.indexes)s=this.indexes[r],s>=e&&(this.indexes[r]=s-1);return this.markDirty(),this}replaceValues(e,s,r){return r||(r=s,s={}),this.walkDecls(n=>{s.props&&!s.props.includes(n.prop)||s.fast&&!n.value.includes(s.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((s,r)=>{let n;try{n=e(s,r)}catch(i){throw s.addToError(i)}return n!==!1&&s.walk&&(n=s.walk(e)),n})}walkAtRules(e,s){return s?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="atrule"&&e.test(r.name))return s(r,n)}):this.walk((r,n)=>{if(r.type==="atrule"&&r.name===e)return s(r,n)}):(s=e,this.walk((r,n)=>{if(r.type==="atrule")return s(r,n)}))}walkComments(e){return this.walk((s,r)=>{if(s.type==="comment")return e(s,r)})}walkDecls(e,s){return s?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="decl"&&e.test(r.prop))return s(r,n)}):this.walk((r,n)=>{if(r.type==="decl"&&r.prop===e)return s(r,n)}):(s=e,this.walk((r,n)=>{if(r.type==="decl")return s(r,n)}))}walkRules(e,s){return s?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="rule"&&e.test(r.selector))return s(r,n)}):this.walk((r,n)=>{if(r.type==="rule"&&r.selector===e)return s(r,n)}):(s=e,this.walk((r,n)=>{if(r.type==="rule")return s(r,n)}))}};z.registerParse=t=>{Wi=t};z.registerRule=t=>{ps=t};z.registerAtRule=t=>{fs=t};z.registerRoot=t=>{Gi=t};zi.exports=z;z.default=z;z.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,fs.prototype):t.type==="rule"?Object.setPrototypeOf(t,ps.prototype):t.type==="decl"?Object.setPrototypeOf(t,Ui.prototype):t.type==="comment"?Object.setPrototypeOf(t,Bi.prototype):t.type==="root"&&Object.setPrototypeOf(t,Gi.prototype),t[$i]=!0,t.nodes&&t.nodes.forEach(e=>{z.rebuild(e)})}});var Hi=w((vx,ji)=>{var $c="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Wc=(t,e=21)=>(s=e)=>{let r="",n=s|0;for(;n--;)r+=t[Math.random()*t.length|0];return r},Gc=(t=21)=>{let e="",s=t|0;for(;s--;)e+=$c[Math.random()*64|0];return e};ji.exports={nanoid:Gc,customAlphabet:Wc}});var Ki=w(()=>{});var hs=w((bx,Qi)=>{Qi.exports=class{}});var Ue=w((Sx,to)=>{"use strict";var{nanoid:Yc}=Hi(),{isAbsolute:ys,resolve:gs}={},{SourceMapConsumer:Vc,SourceMapGenerator:zc}=Ki(),{fileURLToPath:Xi,pathToFileURL:Kt}={},Ji=zt(),jc=hs(),ds=as(),ms=Symbol("lineToIndexCache"),Hc=!!(Vc&&zc),Zi=!!(gs&&ys);function eo(t){if(t[ms])return t[ms];let e=t.css.split(` +`),s=new Array(e.length),r=0;for(let n=0,i=e.length;n"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,s.document&&(this.document=s.document.toString()),s.from&&(!Zi||/^\w+:\/\//.test(s.from)||ys(s.from)?this.file=s.from:this.file=gs(s.from)),Zi&&Hc){let r=new jc(this.css,s);if(r.text){this.map=r;let n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}error(e,s,r,n={}){let i,o,u,a,l;if(s&&typeof s=="object"){let h=s,c=r;if(typeof h.offset=="number"){a=h.offset;let g=this.fromOffset(a);s=g.line,r=g.col}else s=h.line,r=h.column,a=this.fromLineAndColumn(s,r);if(typeof c.offset=="number"){u=c.offset;let g=this.fromOffset(u);o=g.line,i=g.col}else o=c.line,i=c.column,u=this.fromLineAndColumn(c.line,c.column)}else if(r)a=this.fromLineAndColumn(s,r);else{a=s;let h=this.fromOffset(a);s=h.line,r=h.col}let f=this.origin(s,r,o,i);return f?l=new Ji(e,f.endLine===void 0?f.line:{column:f.column,line:f.line},f.endLine===void 0?f.column:{column:f.endColumn,line:f.endLine},f.source,f.file,n.plugin):l=new Ji(e,o===void 0?s:{column:r,line:s},o===void 0?r:{column:i,line:o},this.css,this.file,n.plugin),l.input={column:r,endColumn:i,endLine:o,endOffset:u,line:s,offset:a,source:this.css},this.file&&(Kt&&(l.input.url=Kt(this.file).toString()),l.input.file=this.file),l}fromLineAndColumn(e,s){return eo(this)[e-1]+s-1}fromOffset(e){let s=eo(this),r=s[s.length-1],n=0;if(e>=r)n=s.length-1;else{let i=s.length-2,o;for(;n>1),e=s[o+1])n=o+1;else{n=o;break}}return{col:e-s[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:gs(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,s,r,n){if(!this.map)return!1;let i=this.map.consumer(),o=i.originalPositionFor({column:s,line:e});if(!o.source)return!1;let u;typeof r=="number"&&(u=i.originalPositionFor({column:n,line:r}));let a;ys(o.source)?a=Kt(o.source):a=new URL(o.source,this.map.consumer().sourceRoot||Kt(this.map.mapFile));let l={column:o.column,endColumn:u&&u.column,endLine:u&&u.line,line:o.line,url:a.toString()};if(a.protocol==="file:")if(Xi)l.file=Xi(a);else throw new Error("file: protocol is not available in this PostCSS build");let f=i.sourceContentFor(o.source);return f&&(l.source=f),l}toJSON(){let e={};for(let s of["hasBOM","css","file","id"])this[s]!=null&&(e[s]=this[s]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};to.exports=Be;Be.default=Be;ds&&ds.registerInput&&ds.registerInput(Be)});var Qt=w((kx,so)=>{"use strict";var ro=fe(),Fe=class extends ro{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};so.exports=Fe;Fe.default=Fe;ro.registerAtRule(Fe)});var $e=w((Tx,ao)=>{"use strict";var no=fe(),io,oo,pe=class extends no{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,s,r){let n=super.normalize(e);if(s){if(r==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(let i of n)i.raws.before=s.raws.before}return n}removeChild(e,s){let r=this.index(e);return!s&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new io(new oo,this,e).stringify()}};pe.registerLazyResult=t=>{io=t};pe.registerProcessor=t=>{oo=t};ao.exports=pe;pe.default=pe;no.registerRoot(pe)});var ws=w((Ax,uo)=>{"use strict";var pt={comma(t){return pt.split(t,[","],!0)},space(t){let e=[" ",` +`," "];return pt.split(t,e)},split(t,e,s){let r=[],n="",i=!1,o=0,u=!1,a="",l=!1;for(let f of t)l?l=!1:f==="\\"?l=!0:u?f===a&&(u=!1):f==='"'||f==="'"?(u=!0,a=f):f==="("?o+=1:f===")"?o>0&&(o-=1):o===0&&e.includes(f)&&(i=!0),i?(n!==""&&r.push(n.trim()),n="",i=!1):n+=f;return(s||n!=="")&&r.push(n.trim()),r}};uo.exports=pt;pt.default=pt});var Xt=w((Ox,co)=>{"use strict";var lo=fe(),Kc=ws(),We=class extends lo{get selectors(){return Kc.comma(this.selector)}set selectors(e){let s=this.selector?this.selector.match(/,\s*/):null,r=s?s[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};co.exports=We;We.default=We;lo.registerRule(We)});var er=w((Cx,po)=>{"use strict";var Jt=/[\t\n\f\r "#'()/;[\\\]{}]/g,Zt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Qc=/.[\r\n"'(/\\]/,fo=/[\da-f]/i;po.exports=function(e,s={}){let r=e.css.valueOf(),n=s.ignoreErrors,i,o,u,a,l,f,h,c,g,b,d=r.length,p=0,m=[],y=[];function v(){return p}function O(W){throw e.error("Unclosed "+W,p)}function q(){return y.length===0&&p>=d}function H(W){if(y.length)return y.pop();if(p>=d)return;let A=W?W.ignoreUnclosed:!1;switch(i=r.charCodeAt(p),i){case 10:case 32:case 9:case 13:case 12:{a=p;do a+=1,i=r.charCodeAt(a);while(i===32||i===10||i===9||i===13||i===12);f=["space",r.slice(p,a)],p=a-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let k=String.fromCharCode(i);f=[k,k,p];break}case 40:{if(b=m.length?m.pop()[1]:"",g=r.charCodeAt(p+1),b==="url"&&g!==39&&g!==34&&g!==32&&g!==10&&g!==9&&g!==12&&g!==13){a=p;do{if(h=!1,a=r.indexOf(")",a+1),a===-1)if(n||A){a=p;break}else O("bracket");for(c=a;r.charCodeAt(c-1)===92;)c-=1,h=!h}while(h);f=["brackets",r.slice(p,a+1),p,a],p=a}else a=r.indexOf(")",p+1),o=r.slice(p,a+1),a===-1||Qc.test(o)?f=["(","(",p]:(f=["brackets",o,p,a],p=a);break}case 39:case 34:{l=i===39?"'":'"',a=p;do{if(h=!1,a=r.indexOf(l,a+1),a===-1)if(n||A){a=p+1;break}else O("string");for(c=a;r.charCodeAt(c-1)===92;)c-=1,h=!h}while(h);f=["string",r.slice(p,a+1),p,a],p=a;break}case 64:{Jt.lastIndex=p+1,Jt.test(r),Jt.lastIndex===0?a=r.length-1:a=Jt.lastIndex-2,f=["at-word",r.slice(p,a+1),p,a],p=a;break}case 92:{for(a=p,u=!0;r.charCodeAt(a+1)===92;)a+=1,u=!u;if(i=r.charCodeAt(a+1),u&&i!==47&&i!==32&&i!==10&&i!==9&&i!==13&&i!==12&&(a+=1,fo.test(r.charAt(a)))){for(;fo.test(r.charAt(a+1));)a+=1;r.charCodeAt(a+1)===32&&(a+=1)}f=["word",r.slice(p,a+1),p,a],p=a;break}default:{i===47&&r.charCodeAt(p+1)===42?(a=r.indexOf("*/",p+2)+1,a===0&&(n||A?a=r.length:O("comment")),f=["comment",r.slice(p,a+1),p,a],p=a):(Zt.lastIndex=p+1,Zt.test(r),Zt.lastIndex===0?a=r.length-1:a=Zt.lastIndex-2,f=["word",r.slice(p,a+1),p,a],m.push(f),p=a);break}}return p++,f}function ne(W){y.push(W)}return{back:ne,endOfFile:q,nextToken:H,position:v}}});var tr=w((Nx,yo)=>{"use strict";var Xc=Qt(),Jc=Me(),Zc=ft(),ef=$e(),ho=Xt(),tf=er(),mo={empty:!0,space:!0};function rf(t){for(let e=t.length-1;e>=0;e--){let s=t[e],r=s[3]||s[2];if(r)return r}}var vs=class{constructor(e){this.input=e,this.root=new ef,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let s=new Xc;s.name=e[1].slice(1),s.name===""&&this.unnamedAtrule(s,e),this.init(s,e[2]);let r,n,i,o=!1,u=!1,a=[],l=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?l.push(r==="("?")":"]"):r==="{"&&l.length>0?l.push("}"):r===l[l.length-1]&&l.pop(),l.length===0)if(r===";"){s.source.end=this.getPosition(e[2]),s.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){u=!0;break}else if(r==="}"){if(a.length>0){for(i=a.length-1,n=a[i];n&&n[0]==="space";)n=a[--i];n&&(s.source.end=this.getPosition(n[3]||n[2]),s.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(s.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(s,"params",a),o&&(e=a[a.length-1],s.source.end=this.getPosition(e[3]||e[2]),s.source.end.offset++,this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),u&&(s.nodes=[],this.current=s)}checkMissedSemicolon(e){let s=this.colon(e);if(s===!1)return;let r=0,n;for(let i=s-1;i>=0&&(n=e[i],!(n[0]!=="space"&&(r+=1,r===2)));i--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(e){let s=0,r,n,i;for(let[o,u]of e.entries()){if(n=u,i=n[0],i==="("&&(s+=1),i===")"&&(s-=1),s===0&&i===":")if(!r)this.doubleColon(n);else{if(r[0]==="word"&&r[1]==="progid")continue;return o}r=n}return!1}comment(e){let s=new Jc;this.init(s,e[2]),s.source.end=this.getPosition(e[3]||e[2]),s.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))s.text="",s.raws.left=r,s.raws.right="";else{let n=r.match(/^(\s*)([^]*\S)(\s*)$/);s.text=n[2],s.raws.left=n[1],s.raws.right=n[3]}}createTokenizer(){this.tokenizer=tf(this.input)}decl(e,s){let r=new Zc;this.init(r,e[0][2]);let n=e[e.length-1];for(n[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(n[3]||n[2]||rf(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let l=e[0][0];if(l===":"||l==="space"||l==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let i;for(;e.length;)if(i=e.shift(),i[0]===":"){r.raws.between+=i[1];break}else i[0]==="word"&&/\w/.test(i[1])&&this.unknownWord([i]),r.raws.between+=i[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let o=[],u;for(;e.length&&(u=e[0][0],!(u!=="space"&&u!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let l=e.length-1;l>=0;l--){if(i=e[l],i[1].toLowerCase()==="!important"){r.important=!0;let f=this.stringFrom(e,l);f=this.spacesFromEnd(e)+f,f!==" !important"&&(r.raws.important=f);break}else if(i[1].toLowerCase()==="important"){let f=e.slice(0),h="";for(let c=l;c>0;c--){let g=f[c][0];if(h.trim().startsWith("!")&&g!=="space")break;h=f.pop()[1]+h}h.trim().startsWith("!")&&(r.important=!0,r.raws.important=h,e=f)}if(i[0]!=="space"&&i[0]!=="comment")break}e.some(l=>l[0]!=="space"&&l[0]!=="comment")&&(r.raws.between+=o.map(l=>l[1]).join(""),o=[]),this.raw(r,"value",o.concat(e),s),r.value.includes(":")&&!s&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let s=new ho;this.init(s,e[2]),s.selector="",s.raws.between="",this.current=s}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let s=this.current.nodes[this.current.nodes.length-1];s&&s.type==="rule"&&!s.raws.ownSemicolon&&(s.raws.ownSemicolon=this.spaces,this.spaces="",s.source.end=this.getPosition(e[2]),s.source.end.offset+=s.raws.ownSemicolon.length)}}getPosition(e){let s=this.input.fromOffset(e);return{column:s.col,line:s.line,offset:e}}init(e,s){this.current.push(e),e.source={input:this.input,start:this.getPosition(s)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let s=!1,r=null,n=!1,i=null,o=[],u=e[1].startsWith("--"),a=[],l=e;for(;l;){if(r=l[0],a.push(l),r==="("||r==="[")i||(i=l),o.push(r==="("?")":"]");else if(u&&n&&r==="{")i||(i=l),o.push("}");else if(o.length===0)if(r===";")if(n){this.decl(a,u);return}else break;else if(r==="{"){this.rule(a);return}else if(r==="}"){this.tokenizer.back(a.pop()),s=!0;break}else r===":"&&(n=!0);else r===o[o.length-1]&&(o.pop(),o.length===0&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(s=!0),o.length>0&&this.unclosedBracket(i),s&&n){if(!u)for(;a.length&&(l=a[a.length-1][0],!(l!=="space"&&l!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,u)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,s,r,n){let i,o,u=r.length,a="",l=!0,f,h;for(let c=0;cg+b[1],"");e.raws[s]={raw:c,value:a}}e[s]=a}rule(e){e.pop();let s=new ho;this.init(s,e[0][2]),s.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(s,"selector",e),this.current=s}spacesAndCommentsFromEnd(e){let s,r="";for(;e.length&&(s=e[e.length-1][0],!(s!=="space"&&s!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let s,r="";for(;e.length&&(s=e[0][0],!(s!=="space"&&s!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let s,r="";for(;e.length&&(s=e[e.length-1][0],s==="space");)r=e.pop()[1]+r;return r}stringFrom(e,s){let r="";for(let n=s;n{"use strict";var sf=fe(),nf=Ue(),of=tr();function rr(t,e){let s=new nf(t,e),r=new of(s);try{r.parse()}catch(n){throw n}return r.root}go.exports=rr;rr.default=rr;sf.registerParse(rr)});var wo=w((Rx,xs)=>{var af=er(),uf=Ue();xs.exports={isInlineComment(t){if(t[0]==="word"&&t[1].slice(0,2)==="//"){let e=t,s=[],r,n;for(;t;){if(/\r?\n/.test(t[1])){if(/['"].*\r?\n/.test(t[1])){s.push(t[1].substring(0,t[1].indexOf(` +`))),n=t[1].substring(t[1].indexOf(` +`));let o=this.input.css.valueOf().substring(this.tokenizer.position());n+=o,r=t[3]+o.length-n.length}else this.tokenizer.back(t);break}s.push(t[1]),r=t[2],t=this.tokenizer.nextToken({ignoreUnclosed:!0})}let i=["comment",s.join(""),e[2],r];return this.inlineComment(i),n&&(this.input=new uf(n),this.tokenizer=af(this.input)),!0}else if(t[1]==="/"){let e=this.tokenizer.nextToken({ignoreUnclosed:!0});if(e[0]==="comment"&&/^\/\*/.test(e[1]))return e[0]="word",e[1]=e[1].slice(1),t[1]="//",this.tokenizer.back(e),xs.exports.isInlineComment.bind(this)(t)}return!1}}});var xo=w((Ix,vo)=>{vo.exports={interpolation(t){let e=[t,this.tokenizer.nextToken()],s=["word","}"];if(e[0][1].length>1||e[1][0]!=="{")return this.tokenizer.back(e[1]),!1;for(t=this.tokenizer.nextToken();t&&s.includes(t[0]);)e.push(t),t=this.tokenizer.nextToken();let r=e.map(u=>u[1]),[n]=e,i=e.pop(),o=["word",r.join(""),n[2],i[2]];return this.tokenizer.back(t),this.tokenizer.back(o),!0}}});var bo=w((qx,_o)=>{var lf=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,cf=/\.[0-9]/,ff=t=>{let[,e]=t,[s]=e;return(s==="."||s==="#")&&lf.test(e)===!1&&cf.test(e)===!1};_o.exports={isMixinToken:ff}});var So=w((Lx,Eo)=>{var pf=er(),hf=/^url\((.+)\)/;Eo.exports=t=>{let{name:e,params:s=""}=t;if(e==="import"&&s.length){t.import=!0;let r=pf({css:s});for(t.filename=s.replace(hf,"$1");!r.endOfFile();){let[n,i]=r.nextToken();if(n==="word"&&i==="url")return;if(n==="brackets"){t.options=i,t.filename=s.replace(i,"").trim();break}}}}});var Oo=w((Dx,Ao)=>{var ko=/:$/,To=/^:(\s+)?/;Ao.exports=t=>{let{name:e,params:s=""}=t;if(t.name.slice(-1)===":"){if(ko.test(e)){let[r]=e.match(ko);t.name=e.replace(r,""),t.raws.afterName=r+(t.raws.afterName||""),t.variable=!0,t.value=t.params}if(To.test(s)){let[r]=s.match(To);t.value=s.replace(r,""),t.raws.afterName=(t.raws.afterName||"")+r,t.variable=!0}}}});var Po=w((Bx,No)=>{var df=Me(),mf=tr(),{isInlineComment:yf}=wo(),{interpolation:Co}=xo(),{isMixinToken:gf}=bo(),wf=So(),vf=Oo(),xf=/(!\s*important)$/i;No.exports=class extends mf{constructor(...e){super(...e),this.lastNode=null}atrule(e){Co.bind(this)(e)||(super.atrule(e),wf(this.lastNode),vf(this.lastNode))}decl(...e){super.decl(...e),/extend\(.+\)/i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(e){e[0][1]=` ${e[0][1]}`;let s=e.findIndex(u=>u[0]==="("),r=e.reverse().find(u=>u[0]===")"),n=e.reverse().indexOf(r),o=e.splice(s,n).map(u=>u[1]).join("");for(let u of e.reverse())this.tokenizer.back(u);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=o}init(e,s,r){super.init(e,s,r),this.lastNode=e}inlineComment(e){let s=new df,r=e[1].slice(2);if(this.init(s,e[2]),s.source.end=this.getPosition(e[3]||e[2]),s.inline=!0,s.raws.begin="//",/^\s*$/.test(r))s.text="",s.raws.left=r,s.raws.right="";else{let n=r.match(/^(\s*)([^]*[^\s])(\s*)$/);[,s.raws.left,s.text,s.raws.right]=n}}mixin(e){let[s]=e,r=s[1].slice(0,1),n=e.findIndex(l=>l[0]==="brackets"),i=e.findIndex(l=>l[0]==="("),o="";if((n<0||n>3)&&i>0){let l=e.reduce((v,O,q)=>O[0]===")"?q:v),h=e.slice(i,l+i).map(v=>v[1]).join(""),[c]=e.slice(i),g=[c[2],c[3]],[b]=e.slice(l,l+1),d=[b[2],b[3]],p=["brackets",h].concat(g,d),m=e.slice(0,i),y=e.slice(l+1);e=m,e.push(p),e=e.concat(y)}let u=[];for(let l of e)if((l[1]==="!"||u.length)&&u.push(l),l[1]==="important")break;if(u.length){let[l]=u,f=e.indexOf(l),h=u[u.length-1],c=[l[2],l[3]],g=[h[4],h[5]],d=["word",u.map(p=>p[1]).join("")].concat(c,g);e.splice(f,u.length,d)}let a=e.findIndex(l=>xf.test(l[1]));a>0&&([,o]=e[a],e.splice(a,1));for(let l of e.reverse())this.tokenizer.back(l);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=r,o&&(this.lastNode.important=!0,this.lastNode.raws.important=o)}other(e){yf.bind(this)(e)||super.other(e)}rule(e){let s=e[e.length-1],r=e[e.length-2];if(r[0]==="at-word"&&s[0]==="{"&&(this.tokenizer.back(s),Co.bind(this)(r))){let i=this.tokenizer.nextToken();e=e.slice(0,e.length-2).concat([i]);for(let o of e.reverse())this.tokenizer.back(o);return}super.rule(e),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0)}unknownWord(e){let[s]=e;if(e[0][1]==="each"&&e[1][0]==="("){this.each(e);return}if(gf(s)){this.mixin(e);return}super.unknownWord(e)}}});var Io=w((Fx,Ro)=>{var _f=jt();Ro.exports=class extends _f{atrule(e,s){if(!e.mixin&&!e.variable&&!e.function){super.atrule(e,s);return}let n=`${e.function?"":e.raws.identifier||"@"}${e.name}`,i=e.params?this.rawValue(e,"params"):"",o=e.raws.important||"";if(e.variable&&(i=e.value),typeof e.raws.afterName<"u"?n+=e.raws.afterName:i&&(n+=" "),e.nodes)this.block(e,n+i+o);else{let u=(e.raws.between||"")+o+(s?";":"");this.builder(n+i+u,e)}}comment(e){if(e.inline){let s=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder(`//${s}${e.text}${r}`,e)}else super.comment(e)}}});var qo=w(($x,_s)=>{var bf=Ue(),Ef=Po(),Sf=Io();_s.exports={parse(t,e){let s=new bf(t,e),r=new Ef(s);return r.parse(),r.root.walk(n=>{let i=s.css.lastIndexOf(n.source.input.css);if(i===0)return;if(i+n.source.input.css.length!==s.css.length)throw new Error("Invalid state detected in postcss-less");let o=i+n.source.start.offset,u=s.fromOffset(i+n.source.start.offset);if(n.source.start={offset:o,line:u.line,column:u.col},n.source.end){let a=i+n.source.end.offset,l=s.fromOffset(i+n.source.end.offset);n.source.end={offset:a,line:l.line,column:l.col}}}),r.root},stringify(t,e){new Sf(e).stringify(t)},nodeToString(t){let e="";return _s.exports.stringify(t,s=>{e+=s}),e}}});var sr=w((Wx,Mo)=>{"use strict";var kf=fe(),Lo,Do,be=class extends kf{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Lo(new Do,this,e).stringify()}};be.registerLazyResult=t=>{Lo=t};be.registerProcessor=t=>{Do=t};Mo.exports=be;be.default=be});var Uo=w((Gx,Bo)=>{"use strict";var Tf=Qt(),Af=Me(),Of=ft(),Cf=Ue(),Nf=hs(),Pf=$e(),Rf=Xt();function dt(t,e){if(Array.isArray(t))return t.map(n=>dt(n));let{inputs:s,...r}=t;if(s){e=[];for(let n of s){let i={...n,__proto__:Cf.prototype};i.map&&(i.map={...i.map,__proto__:Nf.prototype}),e.push(i)}}if(r.nodes&&(r.nodes=t.nodes.map(n=>dt(n,e))),r.source){let{inputId:n,...i}=r.source;r.source=i,n!=null&&(r.source.input=e[n])}if(r.type==="root")return new Pf(r);if(r.type==="decl")return new Of(r);if(r.type==="rule")return new Rf(r);if(r.type==="comment")return new Af(r);if(r.type==="atrule")return new Tf(r);throw new Error("Unknown node type: "+t.type)}Bo.exports=dt;dt.default=dt});var bs=w((Yx,Fo)=>{Fo.exports=class{generate(){}}});var Es=w((zx,$o)=>{"use strict";var mt=class{constructor(e,s={}){if(this.type="warning",this.text=e,s.node&&s.node.source){let r=s.node.rangeBy(s);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in s)this[r]=s[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};$o.exports=mt;mt.default=mt});var nr=w((jx,Wo)=>{"use strict";var If=Es(),yt=class{get content(){return this.css}constructor(e,s,r){this.processor=e,this.messages=[],this.root=s,this.opts=r,this.css="",this.map=void 0}toString(){return this.css}warn(e,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let r=new If(e,s);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}};Wo.exports=yt;yt.default=yt});var Ss=w((Hx,Yo)=>{"use strict";var Go={};Yo.exports=function(e){Go[e]||(Go[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))}});var As=w((Qx,Ho)=>{"use strict";var qf=fe(),Lf=sr(),Df=bs(),Mf=ht(),Vo=nr(),Bf=$e(),Uf=it(),{isClean:Q,my:Ff}=Ht(),Kx=Ss(),$f={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Wf={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Gf={Once:!0,postcssPlugin:!0,prepare:!0},Ge=0;function gt(t){return typeof t=="object"&&typeof t.then=="function"}function jo(t){let e=!1,s=$f[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[s,s+"-"+e,Ge,s+"Exit",s+"Exit-"+e]:e?[s,s+"-"+e,s+"Exit",s+"Exit-"+e]:t.append?[s,Ge,s+"Exit"]:[s,s+"Exit"]}function zo(t){let e;return t.type==="document"?e=["Document",Ge,"DocumentExit"]:t.type==="root"?e=["Root",Ge,"RootExit"]:e=jo(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function ks(t){return t[Q]=!1,t.nodes&&t.nodes.forEach(e=>ks(e)),t}var Ts={},he=class t{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,s,r){this.stringified=!1,this.processed=!1;let n;if(typeof s=="object"&&s!==null&&(s.type==="root"||s.type==="document"))n=ks(s);else if(s instanceof t||s instanceof Vo)n=ks(s.root),s.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=s.map);else{let i=Mf;r.syntax&&(i=r.syntax.parse),r.parser&&(i=r.parser),i.parse&&(i=i.parse);try{n=i(s,r)}catch(o){this.processed=!0,this.error=o}n&&!n[Ff]&&qf.rebuild(n)}this.result=new Vo(e,n,r),this.helpers={...Ts,postcss:Ts,result:this.result},this.plugins=this.processor.plugins.map(i=>typeof i=="object"&&i.prepare?{...i,...i.prepare(this.result)}:i)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,s){let r=this.result.lastPlugin;try{s&&s.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(n){console&&console.error&&console.error(n)}return e}prepareVisitors(){this.listeners={};let e=(s,r,n)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([s,n])};for(let s of this.plugins)if(typeof s=="object")for(let r in s){if(!Wf[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${s.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Gf[r])if(typeof s[r]=="object")for(let n in s[r])n==="*"?e(s,r,s[r][n]):e(s,r+"-"+n.toLowerCase(),s[r][n]);else typeof s[r]=="function"&&e(s,r,s[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e0;){let r=this.visitTick(s);if(gt(r))try{await r}catch(n){let i=s[s.length-1].node;throw this.handleError(n,i)}}}if(this.listeners.OnceExit)for(let[s,r]of this.listeners.OnceExit){this.result.lastPlugin=s;try{if(e.type==="document"){let n=e.nodes.map(i=>r(i,this.helpers));await Promise.all(n)}else await r(e,this.helpers)}catch(n){throw this.handleError(n)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let s=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return gt(s[0])?Promise.all(s):s}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(s){throw this.handleError(s)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,s=Uf;e.syntax&&(s=e.syntax.stringify),e.stringifier&&(s=e.stringifier),s.stringify&&(s=s.stringify);let n=new Df(s,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let s=this.runOnRoot(e);if(gt(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Q];)e[Q]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let s of e.nodes)this.visitSync(this.listeners.OnceExit,s);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,s){return this.async().then(e,s)}toString(){return this.css}visitSync(e,s){for(let[r,n]of e){this.result.lastPlugin=r;let i;try{i=n(s,this.helpers)}catch(o){throw this.handleError(o,s.proxyOf)}if(s.type!=="root"&&s.type!=="document"&&!s.parent)return!0;if(gt(i))throw this.getAsyncError()}}visitTick(e){let s=e[e.length-1],{node:r,visitors:n}=s;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(n.length>0&&s.visitorIndex{n[Q]||this.walkSync(n)});else{let n=this.listeners[r];if(n&&this.visitSync(n,e.toProxy()))return}}warnings(){return this.sync().warnings()}};he.registerPostcss=t=>{Ts=t};Ho.exports=he;he.default=he;Bf.registerLazyResult(he);Lf.registerLazyResult(he)});var Qo=w((Jx,Ko)=>{"use strict";var Yf=bs(),Vf=ht(),zf=nr(),jf=it(),Xx=Ss(),wt=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,s=Vf;try{e=s(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,s,r){s=s.toString(),this.stringified=!1,this._processor=e,this._css=s,this._opts=r,this._map=void 0;let n,i=jf;this.result=new zf(this._processor,n,this._opts),this.result.css=s;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let u=new Yf(i,n,this._opts,s);if(u.isMap()){let[a,l]=u.generate();a&&(this.result.css=a),l&&(this.result.map=l)}else u.clearAnnotation(),this.result.css=u.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,s){return this.async().then(e,s)}toString(){return this._css}warnings(){return[]}};Ko.exports=wt;wt.default=wt});var Jo=w((Zx,Xo)=>{"use strict";var Hf=sr(),Kf=As(),Qf=Qo(),Xf=$e(),Ee=class{constructor(e=[]){this.version="8.5.6",this.plugins=this.normalize(e)}normalize(e){let s=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))s=s.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)s.push(r);else if(typeof r=="function")s.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return s}process(e,s={}){return!this.plugins.length&&!s.parser&&!s.stringifier&&!s.syntax?new Qf(this,e,s):new Kf(this,e,s)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};Xo.exports=Ee;Ee.default=Ee;Xf.registerProcessor(Ee);Hf.registerProcessor(Ee)});var ir=w((e_,ia)=>{"use strict";var Zo=Qt(),ea=Me(),Jf=fe(),Zf=zt(),ta=ft(),ra=sr(),ep=Uo(),tp=Ue(),rp=As(),sp=ws(),np=ut(),ip=ht(),Os=Jo(),op=nr(),sa=$e(),na=Xt(),ap=it(),up=Es();function S(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new Os(t)}S.plugin=function(e,s){let r=!1;function n(...o){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide: +https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let u=s(...o);return u.postcssPlugin=e,u.postcssVersion=new Os().version,u}let i;return Object.defineProperty(n,"postcss",{get(){return i||(i=n()),i}}),n.process=function(o,u,a){return S([n(a)]).process(o,u)},n};S.stringify=ap;S.parse=ip;S.fromJSON=ep;S.list=sp;S.comment=t=>new ea(t);S.atRule=t=>new Zo(t);S.decl=t=>new ta(t);S.rule=t=>new na(t);S.root=t=>new sa(t);S.document=t=>new ra(t);S.CssSyntaxError=Zf;S.Declaration=ta;S.Container=Jf;S.Processor=Os;S.Document=ra;S.Comment=ea;S.Warning=up;S.AtRule=Zo;S.Result=op;S.Input=tp;S.Rule=na;S.Root=sa;S.Node=np;rp.registerPostcss(S);ia.exports=S;S.default=S});var aa=w((t_,oa)=>{var{Container:lp}=ir(),Cs=class extends lp{constructor(e){super(e),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}};oa.exports=Cs});var ca=w((r_,la)=>{"use strict";var or=/[\t\n\f\r "#'()/;[\\\]{}]/g,ar=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,cp=/.[\r\n"'(/\\]/,ua=/[\da-f]/i,ur=/[\n\f\r]/g;la.exports=function(e,s={}){let r=e.css.valueOf(),n=s.ignoreErrors,i,o,u,a,l,f,h,c,g,b=r.length,d=0,p=[],m=[],y;function v(){return d}function O(A){throw e.error("Unclosed "+A,d)}function q(){return m.length===0&&d>=b}function H(){let A=1,k=!1,N=!1;for(;A>0;)o+=1,r.length<=o&&O("interpolation"),i=r.charCodeAt(o),c=r.charCodeAt(o+1),k?!N&&i===k?(k=!1,N=!1):i===92?N=!N:N&&(N=!1):i===39||i===34?k=i:i===125?A-=1:i===35&&c===123&&(A+=1)}function ne(A){if(m.length)return m.pop();if(d>=b)return;let k=A?A.ignoreUnclosed:!1;switch(i=r.charCodeAt(d),i){case 10:case 32:case 9:case 13:case 12:{o=d;do o+=1,i=r.charCodeAt(o);while(i===32||i===10||i===9||i===13||i===12);g=["space",r.slice(d,o)],d=o-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let N=String.fromCharCode(i);g=[N,N,d];break}case 44:{g=["word",",",d,d+1];break}case 40:{if(h=p.length?p.pop()[1]:"",c=r.charCodeAt(d+1),h==="url"&&c!==39&&c!==34){for(y=1,f=!1,o=d+1;o<=r.length-1;){if(c=r.charCodeAt(o),c===92)f=!f;else if(c===40)y+=1;else if(c===41&&(y-=1,y===0))break;o+=1}a=r.slice(d,o+1),g=["brackets",a,d,o],d=o}else o=r.indexOf(")",d+1),a=r.slice(d,o+1),o===-1||cp.test(a)?g=["(","(",d]:(g=["brackets",a,d,o],d=o);break}case 39:case 34:{for(u=i,o=d,f=!1;o{var{Comment:fp}=ir(),pp=tr(),hp=aa(),dp=ca(),Ns=class extends pp{atrule(e){let s=e[1],r=e;for(;!this.tokenizer.endOfFile();){let n=this.tokenizer.nextToken();if(n[0]==="word"&&n[2]===r[3]+1)s+=n[1],r=n;else{this.tokenizer.back(n);break}}super.atrule(["at-word",s,e[2],r[3]])}comment(e){if(e[4]==="inline"){let s=new fp;this.init(s,e[2]),s.raws.inline=!0;let r=this.input.fromOffset(e[3]);s.source.end={column:r.col,line:r.line,offset:e[3]+1};let n=e[1].slice(2);if(/^\s*$/.test(n))s.text="",s.raws.left=n,s.raws.right="";else{let i=n.match(/^(\s*)([^]*\S)(\s*)$/),o=i[2].replace(/(\*\/|\/\*)/g,"*//*");s.text=o,s.raws.left=i[1],s.raws.right=i[3],s.raws.text=i[2]}}else super.comment(e)}createTokenizer(){this.tokenizer=dp(this.input)}raw(e,s,r,n){if(super.raw(e,s,r,n),e.raws[s]){let i=e.raws[s].raw;e.raws[s].raw=r.reduce((o,u)=>{if(u[0]==="comment"&&u[4]==="inline"){let a=u[1].slice(2).replace(/(\*\/|\/\*)/g,"*//*");return o+"/*"+a+"*/"}else return o+u[1]},""),i!==e.raws[s].raw&&(e.raws[s].scss=i)}}rule(e){let s=!1,r=0,n="";for(let i of e)if(s)i[0]!=="comment"&&i[0]!=="{"&&(n+=i[1]);else{if(i[0]==="space"&&i[1].includes(` +`))break;i[0]==="("?r+=1:i[0]===")"?r-=1:r===0&&i[0]===":"&&(s=!0)}if(!s||n.trim()===""||/^[#:A-Za-z-]/.test(n))super.rule(e);else{e.pop();let i=new hp;this.init(i,e[0][2]);let o;for(let a=e.length-1;a>=0;a--)if(e[a][0]!=="space"){o=e[a];break}if(o[3]){let a=this.input.fromOffset(o[3]);i.source.end={column:a.col,line:a.line,offset:o[3]+1}}else{let a=this.input.fromOffset(o[2]);i.source.end={column:a.col,line:a.line,offset:o[2]+1}}for(;e[0][0]!=="word";)i.raws.before+=e.shift()[1];if(e[0][2]){let a=this.input.fromOffset(e[0][2]);i.source.start={column:a.col,line:a.line,offset:e[0][2]}}for(i.prop="";e.length;){let a=e[0][0];if(a===":"||a==="space"||a==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let u;for(;e.length;)if(u=e.shift(),u[0]===":"){i.raws.between+=u[1];break}else i.raws.between+=u[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1)),i.raws.between+=this.spacesAndCommentsFromStart(e),this.precheckMissedSemicolon(e);for(let a=e.length-1;a>0;a--){if(u=e[a],u[1]==="!important"){i.important=!0;let l=this.stringFrom(e,a);l=this.spacesFromEnd(e)+l,l!==" !important"&&(i.raws.important=l);break}else if(u[1]==="important"){let l=e.slice(0),f="";for(let h=a;h>0;h--){let c=l[h][0];if(f.trim().indexOf("!")===0&&c!=="space")break;f=l.pop()[1]+f}f.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=f,e=l)}if(u[0]!=="space"&&u[0]!=="comment")break}this.raw(i,"value",e),i.value.includes(":")&&this.checkMissedSemicolon(e),this.current=i}}};fa.exports=Ns});var da=w((n_,ha)=>{var{Input:mp}=ir(),yp=pa();ha.exports=function(e,s){let r=new mp(e,s),n=new yp(r);return n.parse(),n.root}});var Rs=w(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});function vp(t){this.after=t.after,this.before=t.before,this.type=t.type,this.value=t.value,this.sourceIndex=t.sourceIndex}Ps.default=vp});var qs=w(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});var xp=Rs(),ya=_p(xp);function _p(t){return t&&t.__esModule?t:{default:t}}function vt(t){var e=this;this.constructor(t),this.nodes=t.nodes,this.after===void 0&&(this.after=this.nodes.length>0?this.nodes[this.nodes.length-1].after:""),this.before===void 0&&(this.before=this.nodes.length>0?this.nodes[0].before:""),this.sourceIndex===void 0&&(this.sourceIndex=this.before.length),this.nodes.forEach(function(s){s.parent=e})}vt.prototype=Object.create(ya.default.prototype);vt.constructor=ya.default;vt.prototype.walk=function(e,s){for(var r=typeof e=="string"||e instanceof RegExp,n=r?s:e,i=typeof e=="string"?new RegExp(e):e,o=0;o{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.parseMediaFeature=va;xt.parseMediaQuery=Ds;xt.parseMediaList=Sp;var bp=Rs(),ga=wa(bp),Ep=qs(),Ls=wa(Ep);function wa(t){return t&&t.__esModule?t:{default:t}}function va(t){var e=arguments.length<=1||arguments[1]===void 0?0:arguments[1],s=[{mode:"normal",character:null}],r=[],n=0,i="",o=null,u=null,a=e,l=t;t[0]==="("&&t[t.length-1]===")"&&(l=t.substring(1,t.length-1),a++);for(var f=0;f0&&(s[l-1].after=i.before),i.type===void 0){if(l>0){if(s[l-1].type==="media-feature-expression"){i.type="keyword";continue}if(s[l-1].value==="not"||s[l-1].value==="only"){i.type="media-type";continue}if(s[l-1].value==="and"){i.type="media-feature-expression";continue}s[l-1].type==="media-type"&&(s[l+1]?i.type=s[l+1].type==="media-feature-expression"?"keyword":"media-feature-expression":i.type="media-feature-expression")}if(l===0){if(!s[l+1]){i.type="media-type";continue}if(s[l+1]&&(s[l+1].type==="media-feature-expression"||s[l+1].type==="keyword")){i.type="media-type";continue}if(s[l+2]){if(s[l+2].type==="media-feature-expression"){i.type="media-type",s[l+1].type="keyword";continue}if(s[l+2].type==="keyword"){i.type="keyword",s[l+1].type="media-type";continue}}if(s[l+3]&&s[l+3].type==="media-feature-expression"){i.type="keyword",s[l+1].type="media-type",s[l+2].type="keyword";continue}}}return s}function Sp(t){var e=[],s=0,r=0,n=/^(\s*)url\s*\(/.exec(t);if(n!==null){for(var i=n[0].length,o=1;o>0;){var u=t[i];u==="("&&o++,u===")"&&o--,i++}e.unshift(new ga.default({type:"url",value:t.substring(0,i).trim(),sourceIndex:n[1].length,before:n[1],after:/^(\s*)/.exec(t.substring(i))[1]})),s=i}for(var a=s;a{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.default=Cp;var kp=qs(),Tp=Op(kp),Ap=xa();function Op(t){return t&&t.__esModule?t:{default:t}}function Cp(t){return new Tp.default({nodes:(0,Ap.parseMediaList)(t),type:"media-query-list",value:t.trim()})}});var Us=w((m_,Sa)=>{Sa.exports=function(e,s){if(s=typeof s=="number"?s:1/0,!s)return Array.isArray(e)?e.map(function(n){return n}):e;return r(e,1);function r(n,i){return n.reduce(function(o,u){return Array.isArray(u)&&i{ka.exports=function(t,e){for(var s=-1,r=[];(s=t.indexOf(e,s+1))!==-1;)r.push(s);return r}});var $s=w((g_,Ta)=>{"use strict";function Rp(t,e){for(var s=1,r=t.length,n=t[0],i=t[0],o=1;o{"use strict";lr.__esModule=!0;var Aa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function Lp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Dp=function t(e,s){if((typeof e>"u"?"undefined":Aa(e))!=="object")return e;var r=new e.constructor;for(var n in e)if(e.hasOwnProperty(n)){var i=e[n],o=typeof i>"u"?"undefined":Aa(i);n==="parent"&&o==="object"?s&&(r[n]=s):i instanceof Array?r[n]=i.map(function(u){return t(u,r)}):r[n]=t(i,r)}return r},Mp=(function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Lp(this,t);for(var s in e)this[s]=e[s];var r=e.spaces;r=r===void 0?{}:r;var n=r.before,i=n===void 0?"":n,o=r.after,u=o===void 0?"":o;this.spaces={before:i,after:u}}return t.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.prototype.replaceWith=function(){if(this.parent){for(var s in arguments)this.parent.insertBefore(this,arguments[s]);this.remove()}return this},t.prototype.next=function(){return this.parent.at(this.parent.index(this)+1)},t.prototype.prev=function(){return this.parent.at(this.parent.index(this)-1)},t.prototype.clone=function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=Dp(this);for(var n in s)r[n]=s[n];return r},t.prototype.toString=function(){return[this.spaces.before,String(this.value),this.spaces.after].join("")},t})();lr.default=Mp;Oa.exports=lr.default});var B=w(U=>{"use strict";U.__esModule=!0;var w_=U.TAG="tag",v_=U.STRING="string",x_=U.SELECTOR="selector",__=U.ROOT="root",b_=U.PSEUDO="pseudo",E_=U.NESTING="nesting",S_=U.ID="id",k_=U.COMMENT="comment",T_=U.COMBINATOR="combinator",A_=U.CLASS="class",O_=U.ATTRIBUTE="attribute",C_=U.UNIVERSAL="universal"});var fr=w((cr,Ca)=>{"use strict";cr.__esModule=!0;var Bp=(function(){function t(e,s){for(var r=0;r=r&&(this.indexes[i]=n-1);return this},e.prototype.removeAll=function(){for(var i=this.nodes,r=Array.isArray(i),n=0,i=r?i:i[Symbol.iterator]();;){var o;if(r){if(n>=i.length)break;o=i[n++]}else{if(n=i.next(),n.done)break;o=n.value}var u=o;u.parent=void 0}return this.nodes=[],this},e.prototype.empty=function(){return this.removeAll()},e.prototype.insertAfter=function(r,n){var i=this.index(r);this.nodes.splice(i+1,0,n);var o=void 0;for(var u in this.indexes)o=this.indexes[u],i<=o&&(this.indexes[u]=o+this.nodes.length);return this},e.prototype.insertBefore=function(r,n){var i=this.index(r);this.nodes.splice(i,0,n);var o=void 0;for(var u in this.indexes)o=this.indexes[u],i<=o&&(this.indexes[u]=o+this.nodes.length);return this},e.prototype.each=function(r){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var n=this.lastEach;if(this.indexes[n]=0,!!this.length){for(var i=void 0,o=void 0;this.indexes[n]{"use strict";pr.__esModule=!0;var Hp=fr(),Kp=Xp(Hp),Qp=B();function Xp(t){return t&&t.__esModule?t:{default:t}}function Jp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Zp(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function eh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var th=(function(t){eh(e,t);function e(s){Jp(this,e);var r=Zp(this,t.call(this,s));return r.type=Qp.ROOT,r}return e.prototype.toString=function(){var r=this.reduce(function(n,i){var o=String(i);return o?n+o+",":""},"").slice(0,-1);return this.trailingComma?r+",":r},e})(Kp.default);pr.default=th;Na.exports=pr.default});var Ia=w((hr,Ra)=>{"use strict";hr.__esModule=!0;var rh=fr(),sh=ih(rh),nh=B();function ih(t){return t&&t.__esModule?t:{default:t}}function oh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ah(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function uh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var lh=(function(t){uh(e,t);function e(s){oh(this,e);var r=ah(this,t.call(this,s));return r.type=nh.SELECTOR,r}return e})(sh.default);hr.default=lh;Ra.exports=hr.default});var Ye=w((dr,qa)=>{"use strict";dr.__esModule=!0;var ch=(function(){function t(e,s){for(var r=0;r{"use strict";mr.__esModule=!0;var wh=Ye(),vh=_h(wh),xh=B();function _h(t){return t&&t.__esModule?t:{default:t}}function bh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Eh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Sh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var kh=(function(t){Sh(e,t);function e(s){bh(this,e);var r=Eh(this,t.call(this,s));return r.type=xh.CLASS,r}return e.prototype.toString=function(){return[this.spaces.before,this.ns,"."+this.value,this.spaces.after].join("")},e})(vh.default);mr.default=kh;La.exports=mr.default});var Ba=w((yr,Ma)=>{"use strict";yr.__esModule=!0;var Th=ke(),Ah=Ch(Th),Oh=B();function Ch(t){return t&&t.__esModule?t:{default:t}}function Nh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ph(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Rh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Ih=(function(t){Rh(e,t);function e(s){Nh(this,e);var r=Ph(this,t.call(this,s));return r.type=Oh.COMMENT,r}return e})(Ah.default);yr.default=Ih;Ma.exports=yr.default});var Fa=w((gr,Ua)=>{"use strict";gr.__esModule=!0;var qh=Ye(),Lh=Mh(qh),Dh=B();function Mh(t){return t&&t.__esModule?t:{default:t}}function Bh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Uh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Fh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var $h=(function(t){Fh(e,t);function e(s){Bh(this,e);var r=Uh(this,t.call(this,s));return r.type=Dh.ID,r}return e.prototype.toString=function(){return[this.spaces.before,this.ns,"#"+this.value,this.spaces.after].join("")},e})(Lh.default);gr.default=$h;Ua.exports=gr.default});var Wa=w((wr,$a)=>{"use strict";wr.__esModule=!0;var Wh=Ye(),Gh=Vh(Wh),Yh=B();function Vh(t){return t&&t.__esModule?t:{default:t}}function zh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function jh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Hh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Kh=(function(t){Hh(e,t);function e(s){zh(this,e);var r=jh(this,t.call(this,s));return r.type=Yh.TAG,r}return e})(Gh.default);wr.default=Kh;$a.exports=wr.default});var Ya=w((vr,Ga)=>{"use strict";vr.__esModule=!0;var Qh=ke(),Xh=Zh(Qh),Jh=B();function Zh(t){return t&&t.__esModule?t:{default:t}}function ed(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function td(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function rd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var sd=(function(t){rd(e,t);function e(s){ed(this,e);var r=td(this,t.call(this,s));return r.type=Jh.STRING,r}return e})(Xh.default);vr.default=sd;Ga.exports=vr.default});var za=w((xr,Va)=>{"use strict";xr.__esModule=!0;var nd=fr(),id=ad(nd),od=B();function ad(t){return t&&t.__esModule?t:{default:t}}function ud(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ld(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function cd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var fd=(function(t){cd(e,t);function e(s){ud(this,e);var r=ld(this,t.call(this,s));return r.type=od.PSEUDO,r}return e.prototype.toString=function(){var r=this.length?"("+this.map(String).join(",")+")":"";return[this.spaces.before,String(this.value),r,this.spaces.after].join("")},e})(id.default);xr.default=fd;Va.exports=xr.default});var Ha=w((_r,ja)=>{"use strict";_r.__esModule=!0;var pd=Ye(),hd=md(pd),dd=B();function md(t){return t&&t.__esModule?t:{default:t}}function yd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gd(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function wd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var vd=(function(t){wd(e,t);function e(s){yd(this,e);var r=gd(this,t.call(this,s));return r.type=dd.ATTRIBUTE,r.raws={},r}return e.prototype.toString=function(){var r=[this.spaces.before,"[",this.ns,this.attribute];return this.operator&&r.push(this.operator),this.value&&r.push(this.value),this.raws.insensitive?r.push(this.raws.insensitive):this.insensitive&&r.push(" i"),r.push("]"),r.concat(this.spaces.after).join("")},e})(hd.default);_r.default=vd;ja.exports=_r.default});var Qa=w((br,Ka)=>{"use strict";br.__esModule=!0;var xd=Ye(),_d=Ed(xd),bd=B();function Ed(t){return t&&t.__esModule?t:{default:t}}function Sd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function kd(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Td(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Ad=(function(t){Td(e,t);function e(s){Sd(this,e);var r=kd(this,t.call(this,s));return r.type=bd.UNIVERSAL,r.value="*",r}return e})(_d.default);br.default=Ad;Ka.exports=br.default});var Ja=w((Er,Xa)=>{"use strict";Er.__esModule=!0;var Od=ke(),Cd=Pd(Od),Nd=B();function Pd(t){return t&&t.__esModule?t:{default:t}}function Rd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Id(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function qd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Ld=(function(t){qd(e,t);function e(s){Rd(this,e);var r=Id(this,t.call(this,s));return r.type=Nd.COMBINATOR,r}return e})(Cd.default);Er.default=Ld;Xa.exports=Er.default});var eu=w((Sr,Za)=>{"use strict";Sr.__esModule=!0;var Dd=ke(),Md=Ud(Dd),Bd=B();function Ud(t){return t&&t.__esModule?t:{default:t}}function Fd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $d(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Wd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Gd=(function(t){Wd(e,t);function e(s){Fd(this,e);var r=$d(this,t.call(this,s));return r.type=Bd.NESTING,r.value="&",r}return e})(Md.default);Sr.default=Gd;Za.exports=Sr.default});var ru=w((kr,tu)=>{"use strict";kr.__esModule=!0;kr.default=Yd;function Yd(t){return t.sort(function(e,s){return e-s})}tu.exports=kr.default});var fu=w((Or,cu)=>{"use strict";Or.__esModule=!0;Or.default=tm;var su=39,Vd=34,Ws=92,nu=47,_t=10,Gs=32,Ys=12,Vs=9,zs=13,iu=43,ou=62,au=126,uu=124,zd=44,jd=40,Hd=41,Kd=91,Qd=93,Xd=59,lu=42,Jd=58,Zd=38,em=64,Tr=/[ \n\t\r\{\(\)'"\\;/]/g,Ar=/[ \n\t\r\(\)\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g;function tm(t){for(var e=[],s=t.css.valueOf(),r=void 0,n=void 0,i=void 0,o=void 0,u=void 0,a=void 0,l=void 0,f=void 0,h=void 0,c=void 0,g=void 0,b=s.length,d=-1,p=1,m=0,y=function(O,q){if(t.safe)s+=q,n=s.length-1;else throw t.error("Unclosed "+O,p,m-d,m)};m0?(f=p+u,h=n-o[u].length):(f=p,h=d),e.push(["comment",a,p,m-d,f,n-h,m]),d=h,p=f,m=n):(Ar.lastIndex=m+1,Ar.test(s),Ar.lastIndex===0?n=s.length-1:n=Ar.lastIndex-2,e.push(["word",s.slice(m,n+1),p,m-d,p,n-d,m]),m=n);break}m++}return e}cu.exports=Or.default});var du=w((Cr,hu)=>{"use strict";Cr.__esModule=!0;var rm=(function(){function t(e,s){for(var r=0;r1?(o[0]===""&&(o[0]=!0),u.attribute=this.parseValue(o[2]),u.namespace=this.parseNamespace(o[0])):u.attribute=this.parseValue(i[0]),r=new Sm.default(u),i[2]){var a=i[2].split(/(\s+i\s*?)$/),l=a[0].trim();r.value=this.lossy?l:a[0],a[1]&&(r.insensitive=!0,this.lossy||(r.raws.insensitive=a[1])),r.quoted=l[0]==="'"||l[0]==='"',r.raws.unquoted=r.quoted?l.slice(1,-1):l}this.newNode(r),this.position++},t.prototype.combinator=function(){if(this.currToken[1]==="|")return this.namespace();for(var s=new Om.default({value:"",source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]});this.position1&&s.nextToken&&s.nextToken[0]==="("&&s.error("Misplaced parenthesis.")})}else this.error('Unexpected "'+this.currToken[0]+'" found.')},t.prototype.space=function(){var s=this.currToken;this.position===0||this.prevToken[0]===","||this.prevToken[0]==="("?(this.spaces=this.parseSpace(s[1]),this.position++):this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.spaces.after=this.parseSpace(s[1]),this.position++):this.combinator()},t.prototype.string=function(){var s=this.currToken;this.newNode(new xm.default({value:this.currToken[1],source:{start:{line:s[2],column:s[3]},end:{line:s[4],column:s[5]}},sourceIndex:s[6]})),this.position++},t.prototype.universal=function(s){var r=this.nextToken;if(r&&r[1]==="|")return this.position++,this.namespace();this.newNode(new Tm.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),s),this.position++},t.prototype.splitWord=function(s,r){for(var n=this,i=this.nextToken,o=this.currToken[1];i&&i[0]==="word";){this.position++;var u=this.currToken[1];if(o+=u,u.lastIndexOf("\\")===u.length-1){var a=this.nextToken;a&&a[0]==="space"&&(o+=this.parseSpace(a[1]," "),this.position++)}i=this.nextToken}var l=(0,js.default)(o,"."),f=(0,js.default)(o,"#"),h=(0,js.default)(o,"#{");h.length&&(f=f.filter(function(g){return!~h.indexOf(g)}));var c=(0,Rm.default)((0,am.default)((0,nm.default)([[0],l,f])));c.forEach(function(g,b){var d=c[b+1]||o.length,p=o.slice(g,d);if(b===0&&r)return r.call(n,p,c.length);var m=void 0;~l.indexOf(g)?m=new pm.default({value:p.slice(1),source:{start:{line:n.currToken[2],column:n.currToken[3]+g},end:{line:n.currToken[4],column:n.currToken[3]+(d-1)}},sourceIndex:n.currToken[6]+c[b]}):~f.indexOf(g)?m=new ym.default({value:p.slice(1),source:{start:{line:n.currToken[2],column:n.currToken[3]+g},end:{line:n.currToken[4],column:n.currToken[3]+(d-1)}},sourceIndex:n.currToken[6]+c[b]}):m=new wm.default({value:p,source:{start:{line:n.currToken[2],column:n.currToken[3]+g},end:{line:n.currToken[4],column:n.currToken[3]+(d-1)}},sourceIndex:n.currToken[6]+c[b]}),n.newNode(m,s)}),this.position++},t.prototype.word=function(s){var r=this.nextToken;return r&&r[1]==="|"?(this.position++,this.namespace()):this.splitWord(s)},t.prototype.loop=function(){for(;this.position{"use strict";Nr.__esModule=!0;var Um=(function(){function t(e,s){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},n=new $m.default({css:s,error:function(o){throw new Error(o)},options:r});return this.res=n,this.func(n),this},Um(t,[{key:"result",get:function(){return String(this.res)}}]),t})();Nr.default=Ym;mu.exports=Nr.default});var j=w((L_,wu)=>{"use strict";var Ks=function(t,e){let s=new t.constructor;for(let r in t){if(!t.hasOwnProperty(r))continue;let n=t[r],i=typeof n;r==="parent"&&i==="object"?e&&(s[r]=e):r==="source"?s[r]=n:n instanceof Array?s[r]=n.map(o=>Ks(o,s)):r!=="before"&&r!=="after"&&r!=="between"&&r!=="semicolon"&&(i==="object"&&n!==null&&(n=Ks(n)),s[r]=n)}return s};wu.exports=class{constructor(e){e=e||{},this.raws={before:"",after:""};for(let s in e)this[s]=e[s]}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(){return[this.raws.before,String(this.value),this.raws.after].join("")}clone(e){e=e||{};let s=Ks(this);for(let r in e)s[r]=e[r];return s}cloneBefore(e){e=e||{};let s=this.clone(e);return this.parent.insertBefore(this,s),s}cloneAfter(e){e=e||{};let s=this.clone(e);return this.parent.insertAfter(this,s),s}replaceWith(){let e=Array.prototype.slice.call(arguments);if(this.parent){for(let s of e)this.parent.insertBefore(this,s);this.remove()}return this}moveTo(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.append(this),this}moveBefore(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertBefore(e,this),this}moveAfter(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertAfter(e,this),this}next(){let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){let e=this.parent.index(this);return this.parent.nodes[e-1]}toJSON(){let e={};for(let s in this){if(!this.hasOwnProperty(s)||s==="parent")continue;let r=this[s];r instanceof Array?e[s]=r.map(n=>typeof n=="object"&&n.toJSON?n.toJSON():n):typeof r=="object"&&r.toJSON?e[s]=r.toJSON():e[s]=r}return e}root(){let e=this;for(;e.parent;)e=e.parent;return e}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}positionInside(e){let s=this.toString(),r=this.source.start.column,n=this.source.start.line;for(let i=0;i{"use strict";var zm=j(),Ve=class extends zm{constructor(e){super(e),this.nodes||(this.nodes=[])}push(e){return e.parent=this,this.nodes.push(e),this}each(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let s=this.lastEach,r,n;if(this.indexes[s]=0,!!this.nodes){for(;this.indexes[s]{let n=e(s,r);return n!==!1&&s.walk&&(n=s.walk(e)),n})}walkType(e,s){if(!e||!s)throw new Error("Parameters {type} and {callback} are required.");let r=typeof e=="function";return this.walk((n,i)=>{if(r&&n instanceof e||!r&&n.type===e)return s.call(this,n,i)})}append(e){return e.parent=this,this.nodes.push(e),this}prepend(e){return e.parent=this,this.nodes.unshift(e),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let s of this.nodes)s.cleanRaws(e)}insertAfter(e,s){let r=this.index(e),n;this.nodes.splice(r+1,0,s);for(let i in this.indexes)n=this.indexes[i],r<=n&&(this.indexes[i]=n+this.nodes.length);return this}insertBefore(e,s){let r=this.index(e),n;this.nodes.splice(r,0,s);for(let i in this.indexes)n=this.indexes[i],r<=n&&(this.indexes[i]=n+this.nodes.length);return this}removeChild(e){e=this.index(e),this.nodes[e].parent=void 0,this.nodes.splice(e,1);let s;for(let r in this.indexes)s=this.indexes[r],s>=e&&(this.indexes[r]=s-1);return this}removeAll(){for(let e of this.nodes)e.parent=void 0;return this.nodes=[],this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return typeof e=="number"?e:this.nodes.indexOf(e)}get first(){if(this.nodes)return this.nodes[0]}get last(){if(this.nodes)return this.nodes[this.nodes.length-1]}toString(){let e=this.nodes.map(String).join("");return this.value&&(e=this.value+e),this.raws.before&&(e=this.raws.before+e),this.raws.after&&(e+=this.raws.after),e}};Ve.registerWalker=t=>{let e="walk"+t.name;e.lastIndexOf("s")!==e.length-1&&(e+="s"),!Ve.prototype[e]&&(Ve.prototype[e]=function(s){return this.walkType(t,s)})};vu.exports=Ve});var _u=w((B_,xu)=>{"use strict";var jm=F();xu.exports=class extends jm{constructor(e){super(e),this.type="root"}}});var Eu=w((F_,bu)=>{"use strict";var Hm=F();bu.exports=class extends Hm{constructor(e){super(e),this.type="value",this.unbalanced=0}}});var Tu=w(($_,ku)=>{"use strict";var Su=F(),Pr=class extends Su{constructor(e){super(e),this.type="atword"}toString(){let e=this.quoted?this.raws.quote:"";return[this.raws.before,"@",String.prototype.toString.call(this.value),this.raws.after].join("")}};Su.registerWalker(Pr);ku.exports=Pr});var Ou=w((W_,Au)=>{"use strict";var Km=F(),Qm=j(),Rr=class extends Qm{constructor(e){super(e),this.type="colon"}};Km.registerWalker(Rr);Au.exports=Rr});var Nu=w((G_,Cu)=>{"use strict";var Xm=F(),Jm=j(),Ir=class extends Jm{constructor(e){super(e),this.type="comma"}};Xm.registerWalker(Ir);Cu.exports=Ir});var Ru=w((Y_,Pu)=>{"use strict";var Zm=F(),ey=j(),qr=class extends ey{constructor(e){super(e),this.type="comment",this.inline=Object(e).inline||!1}toString(){return[this.raws.before,this.inline?"//":"/*",String(this.value),this.inline?"":"*/",this.raws.after].join("")}};Zm.registerWalker(qr);Pu.exports=qr});var Lu=w((V_,qu)=>{"use strict";var Iu=F(),Lr=class extends Iu{constructor(e){super(e),this.type="func",this.unbalanced=-1}};Iu.registerWalker(Lr);qu.exports=Lr});var Mu=w((z_,Du)=>{"use strict";var ty=F(),ry=j(),Dr=class extends ry{constructor(e){super(e),this.type="number",this.unit=Object(e).unit||""}toString(){return[this.raws.before,String(this.value),this.unit,this.raws.after].join("")}};ty.registerWalker(Dr);Du.exports=Dr});var Uu=w((j_,Bu)=>{"use strict";var sy=F(),ny=j(),Mr=class extends ny{constructor(e){super(e),this.type="operator"}};sy.registerWalker(Mr);Bu.exports=Mr});var $u=w((H_,Fu)=>{"use strict";var iy=F(),oy=j(),Br=class extends oy{constructor(e){super(e),this.type="paren",this.parenType=""}};iy.registerWalker(Br);Fu.exports=Br});var Gu=w((K_,Wu)=>{"use strict";var ay=F(),uy=j(),Ur=class extends uy{constructor(e){super(e),this.type="string"}toString(){let e=this.quoted?this.raws.quote:"";return[this.raws.before,e,this.value+"",e,this.raws.after].join("")}};ay.registerWalker(Ur);Wu.exports=Ur});var Vu=w((Q_,Yu)=>{"use strict";var ly=F(),cy=j(),Fr=class extends cy{constructor(e){super(e),this.type="word"}};ly.registerWalker(Fr);Yu.exports=Fr});var ju=w((X_,zu)=>{"use strict";var fy=F(),py=j(),$r=class extends py{constructor(e){super(e),this.type="unicode-range"}};fy.registerWalker($r);zu.exports=$r});var Ku=w((J_,Hu)=>{"use strict";var Qs=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||"An error ocurred while tokzenizing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}};Hu.exports=Qs});var Ju=w((Z_,Xu)=>{"use strict";var Wr=/[ \n\t\r\{\(\)'"\\;,/]/g,hy=/[ \n\t\r\(\)\{\}\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g,ze=/[ \n\t\r\(\)\{\}\*:;@!&'"\-\+\|~>,\[\]\\]|\//g,dy=/^[a-z0-9]/i,my=/^[a-f0-9?\-]/i,Qu=Ku();Xu.exports=function(e,s){s=s||{};let r=[],n=e.valueOf(),i=n.length,o=-1,u=1,a=0,l=0,f=null,h,c,g,b,d,p,m,y,v,O,q,H;function ne(A){let k=`Unclosed ${A} at line: ${u}, column: ${a-o}, token: ${a}`;throw new Qu(k)}function W(){let A=`Syntax error at line: ${u}, column: ${a-o}, token: ${a}`;throw new Qu(A)}for(;a0&&r[r.length-1][0]==="word"&&r[r.length-1][1]==="url",r.push(["(","(",u,a-o,u,c-o,a]);break;case 41:l--,f=f&&l>0,r.push([")",")",u,a-o,u,c-o,a]);break;case 39:case 34:g=h===39?"'":'"',c=a;do for(O=!1,c=n.indexOf(g,c+1),c===-1&&ne("quote",g),q=c;n.charCodeAt(q-1)===92;)q-=1,O=!O;while(O);r.push(["string",n.slice(a,c+1),u,a-o,u,c-o,a]),a=c;break;case 64:Wr.lastIndex=a+1,Wr.test(n),Wr.lastIndex===0?c=n.length-1:c=Wr.lastIndex-2,r.push(["atword",n.slice(a,c+1),u,a-o,u,c-o,a]),a=c;break;case 92:c=a,h=n.charCodeAt(c+1),m&&h!==47&&h!==32&&h!==10&&h!==9&&h!==13&&h!==12&&(c+=1),r.push(["word",n.slice(a,c+1),u,a-o,u,c-o,a]),a=c;break;case 43:case 45:case 42:c=a+1,H=n.slice(a+1,c+1);let A=n.slice(a-1,a);if(h===45&&H.charCodeAt(0)===45){c++,r.push(["word",n.slice(a,c),u,a-o,u,c-o,a]),a=c-1;break}r.push(["operator",n.slice(a,c),u,a-o,u,c-o,a]),a=c-1;break;default:if(h===47&&(n.charCodeAt(a+1)===42||s.loose&&!f&&n.charCodeAt(a+1)===47)){if(n.charCodeAt(a+1)===42)c=n.indexOf("*/",a+2)+1,c===0&&ne("comment","*/");else{let N=n.indexOf(` +`,a+2);c=N!==-1?N-1:i}p=n.slice(a,c+1),b=p.split(` +`),d=b.length-1,d>0?(y=u+d,v=c-b[d].length):(y=u,v=o),r.push(["comment",p,u,a-o,y,c-v,a]),o=v,u=y,a=c}else if(h===35&&!dy.test(n.slice(a+1,a+2)))c=a+1,r.push(["#",n.slice(a,c),u,a-o,u,c-o,a]),a=c-1;else if((h===117||h===85)&&n.charCodeAt(a+1)===43){c=a+2;do c+=1,h=n.charCodeAt(c);while(c=48&&h<=57&&(k=ze),k.lastIndex=a+1,k.test(n),k.lastIndex===0?c=n.length-1:c=k.lastIndex-2,k===ze||h===46){let N=n.charCodeAt(c),tn=n.charCodeAt(c+1),rn=n.charCodeAt(c+2);(N===101||N===69)&&(tn===45||tn===43)&&rn>=48&&rn<=57&&(ze.lastIndex=c+2,ze.test(n),ze.lastIndex===0?c=n.length-1:c=ze.lastIndex-2)}r.push(["word",n.slice(a,c+1),u,a-o,u,c-o,a]),a=c}break}a++}return r}});var el=w((eb,Zu)=>{"use strict";var Xs=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||"An error ocurred while parsing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}};Zu.exports=Xs});var nl=w((rb,sl)=>{"use strict";var yy=_u(),gy=Eu(),wy=Tu(),vy=Ou(),xy=Nu(),_y=Ru(),by=Lu(),Ey=Mu(),Sy=Uu(),tl=$u(),ky=Gu(),rl=Vu(),Ty=ju(),Ay=Ju(),Oy=Us(),Cy=Fs(),Ny=$s(),Py=el();function Ry(t){return t.sort((e,s)=>e-s)}sl.exports=class{constructor(e,s){let r={loose:!1};this.cache=[],this.input=e,this.options=Object.assign({},r,s),this.position=0,this.unbalanced=0,this.root=new yy;let n=new gy;this.root.append(n),this.current=n,this.tokens=Ay(e,this.options)}parse(){return this.loop()}colon(){let e=this.currToken;this.newNode(new vy({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comma(){let e=this.currToken;this.newNode(new xy({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comment(){let e=!1,s=this.currToken[1].replace(/\/\*|\*\//g,""),r;this.options.loose&&s.startsWith("//")&&(s=s.substring(2),e=!0),r=new _y({value:s,inline:e,source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]}),this.newNode(r),this.position++}error(e,s){throw new Py(e+` at line: ${s[2]}, column ${s[3]}`)}loop(){for(;this.position0&&(this.current.type==="func"&&this.current.value==="calc"?this.prevToken[0]!=="space"&&this.prevToken[0]!=="("?this.error("Syntax Error",this.currToken):this.nextToken[0]!=="space"&&this.nextToken[0]!=="word"?this.error("Syntax Error",this.currToken):this.nextToken[0]==="word"&&this.current.last.type!=="operator"&&this.current.last.value!=="("&&this.error("Syntax Error",this.currToken):(this.nextToken[0]==="space"||this.nextToken[0]==="operator"||this.prevToken[0]==="operator")&&this.error("Syntax Error",this.currToken)),this.options.loose){if((!this.current.nodes.length||this.current.last&&this.current.last.type==="operator")&&this.nextToken[0]==="word")return this.word()}else if(this.nextToken[0]==="word")return this.word()}return s=new Sy({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),this.position++,this.newNode(s)}parseTokens(){switch(this.currToken[0]){case"space":this.space();break;case"colon":this.colon();break;case"comma":this.comma();break;case"comment":this.comment();break;case"(":this.parenOpen();break;case")":this.parenClose();break;case"atword":case"word":this.word();break;case"operator":this.operator();break;case"string":this.string();break;case"unicoderange":this.unicodeRange();break;default:this.word();break}}parenOpen(){let e=1,s=this.position+1,r=this.currToken,n;for(;s=this.tokens.length-1&&!this.current.unbalanced)&&(this.current.unbalanced--,this.current.unbalanced<0&&this.error("Expected opening parenthesis",e),!this.current.unbalanced&&this.cache.length&&(this.current=this.cache.pop()))}space(){let e=this.currToken;this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.raws.after+=e[1],this.position++):(this.spaces=e[1],this.position++)}unicodeRange(){let e=this.currToken;this.newNode(new Ty({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}splitWord(){let e=this.nextToken,s=this.currToken[1],r=/^[\+\-]?((\d+(\.\d*)?)|(\.\d+))([eE][\+\-]?\d+)?/,n=/^(?!\#([a-z0-9]+))[\#\{\}]/gi,i,o;if(!n.test(s))for(;e&&e[0]==="word";){this.position++;let u=this.currToken[1];s+=u,e=this.nextToken}i=Cy(s,"@"),o=Ry(Ny(Oy([[0],i]))),o.forEach((u,a)=>{let l=o[a+1]||s.length,f=s.slice(u,l),h;if(~i.indexOf(u))h=new wy({value:f.slice(1),source:{start:{line:this.currToken[2],column:this.currToken[3]+u},end:{line:this.currToken[4],column:this.currToken[3]+(l-1)}},sourceIndex:this.currToken[6]+o[a]});else if(r.test(this.currToken[1])){let c=f.replace(r,"");h=new Ey({value:f.replace(c,""),source:{start:{line:this.currToken[2],column:this.currToken[3]+u},end:{line:this.currToken[4],column:this.currToken[3]+(l-1)}},sourceIndex:this.currToken[6]+o[a],unit:c})}else h=new(e&&e[0]==="("?by:rl)({value:f,source:{start:{line:this.currToken[2],column:this.currToken[3]+u},end:{line:this.currToken[4],column:this.currToken[3]+(l-1)}},sourceIndex:this.currToken[6]+o[a]}),h.type==="word"?(h.isHex=/^#(.+)/.test(f),h.isColor=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(f)):this.cache.push(this.current);this.newNode(h)}),this.position++}string(){let e=this.currToken,s=this.currToken[1],r=/^(\"|\')/,n=r.test(s),i="",o;n&&(i=s.match(r)[0],s=s.slice(1,s.length-1)),o=new ky({value:s,source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6],quoted:n}),o.raws.quote=i,this.newNode(o),this.position++}word(){return this.splitWord()}newNode(e){return this.spaces&&(e.raws.before+=this.spaces,this.spaces=""),this.current.append(e)}get currToken(){return this.tokens[this.position]}get nextToken(){return this.tokens[this.position+1]}get prevToken(){return this.tokens[this.position-1]}}});var _l={};sn(_l,{languages:()=>Si,options:()=>Ti,parsers:()=>en,printers:()=>Hy});var bt=(t,e)=>(s,r,...n)=>s|1&&r==null?void 0:(e.call(r)??r[t]).apply(r,n);var Ol=String.prototype.replaceAll??function(t,e){return t.global?this.replace(t,e):this.split(t).join(e)},Cl=bt("replaceAll",function(){if(typeof this=="string")return Ol}),E=Cl;function Nl(t){return this[t<0?this.length+t:t]}var Pl=bt("at",function(){if(Array.isArray(this)||typeof this=="string")return Nl}),G=Pl;var Rl=()=>{},K=Rl;var je="string",He="array",Et="cursor",ie="indent",Ae="align",St="trim",oe="group",ae="fill",me="if-break",kt="indent-if-break",Oe="line-suffix",Tt="line-suffix-boundary",X="line",At="label",Ce="break-parent",Ot=new Set([Et,ie,Ae,St,oe,ae,me,kt,Oe,Tt,X,At,Ce]);function Il(t){if(typeof t=="string")return je;if(Array.isArray(t))return He;if(!t)return;let{type:e}=t;if(Ot.has(e))return e}var ue=Il;var ql=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function Ll(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}', +Expected it to be 'string' or 'object'.`;if(ue(t))throw new Error("doc is valid.");let s=Object.prototype.toString.call(t);if(s!=="[object Object]")return`Unexpected doc '${s}'.`;let r=ql([...Ot].map(n=>`'${n}'`));return`Unexpected doc.type '${t.type}'. +Expected it to be ${r}.`}var zr=class extends Error{name="InvalidDocError";constructor(e){super(Ll(e)),this.doc=e}},nn=zr;function Dl(t,e){if(typeof t=="string")return e(t);let s=new Map;return r(t);function r(i){if(s.has(i))return s.get(i);let o=n(i);return s.set(i,o),o}function n(i){switch(ue(i)){case He:return e(i.map(r));case ae:return e({...i,parts:i.parts.map(r)});case me:return e({...i,breakContents:r(i.breakContents),flatContents:r(i.flatContents)});case oe:{let{expandedStates:o,contents:u}=i;return o?(o=o.map(r),u=o[0]):u=r(u),e({...i,contents:u,expandedStates:o})}case Ae:case ie:case kt:case At:case Oe:return e({...i,contents:r(i.contents)});case je:case Et:case St:case Tt:case X:case Ce:return e(i);default:throw new nn(i)}}}function Ml(t){return t.type===X&&!t.hard?t.soft?"":" ":t.type===me?t.flatContents:t}function on(t){return Dl(t,Ml)}var $=K,ye=K,an=K,un=K;function L(t){return $(t),{type:ie,contents:t}}function Bl(t,e){return un(t),$(e),{type:Ae,contents:e,n:t}}function le(t){return Bl(-1,t)}var Ne={type:Ce};function Pe(t){return an(t),{type:ae,parts:t}}function D(t,e={}){return $(t),ye(e.expandedStates,!0),{type:oe,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function Ct(t,e="",s={}){return $(t),e!==""&&$(e),{type:me,breakContents:t,flatContents:e,groupId:s.groupId}}function Y(t,e){$(t),ye(e);let s=[];for(let r=0;r0}var ce=$l;var cn=Object.freeze({character:"'",codePoint:39}),fn=Object.freeze({character:'"',codePoint:34}),Wl=Object.freeze({preferred:cn,alternate:fn}),Gl=Object.freeze({preferred:fn,alternate:cn});function Yl(t,e){let{preferred:s,alternate:r}=e===!0||e==="'"?Wl:Gl,{length:n}=t,i=0,o=0;for(let u=0;uo?r:s).character}var pn=Yl;var Vl=/\\(["'\\])|(["'])/gu;function zl(t,e){let s=e==='"'?"'":'"',r=E(0,t,Vl,(n,i,o)=>i?i===s?s:n:o===e?"\\"+o:o);return e+r+e}var hn=zl;function jl(t,e){K(/^(?["']).*\k$/su.test(t));let s=t.slice(1,-1),r=e.parser==="json"||e.parser==="jsonc"||e.parser==="json5"&&e.quoteProps==="preserve"&&!e.singleQuote?'"':e.__isInHtmlAttribute?"'":pn(s,e.singleQuote);return t.charAt(0)===r?t:hn(s,r)}var Nt=jl;var jr=class extends Error{name="UnexpectedNodeError";constructor(e,s,r="type"){super(`Unexpected ${s} node ${r}: ${JSON.stringify(e[r])}.`),this.node=e}},dn=jr;var Pt=Symbol.for("PRETTIER_IS_FRONT_MATTER");function Hl(t){return!!t?.[Pt]}var Re=Hl;var Ke=3;function Kl(t){let e=t.slice(0,Ke);if(e!=="---"&&e!=="+++")return;let s=t.indexOf(` +`,Ke);if(s===-1)return;let r=t.slice(Ke,s).trim(),n=t.indexOf(` +${e}`,s),i=r;if(i||(i=e==="+++"?"toml":"yaml"),n===-1&&e==="---"&&i==="yaml"&&(n=t.indexOf(` +...`,s)),n===-1)return;let o=n+1+Ke,u=t.charAt(o+1);if(!/\s?/u.test(u))return;let a=t.slice(0,o),l;return{language:i,explicitLanguage:r||null,value:t.slice(s+1,n),startDelimiter:e,endDelimiter:a.slice(-Ke),raw:a,start:{line:1,column:0,index:0},end:{index:a.length,get line(){return l??(l=a.split(` +`)),l.length},get column(){return l??(l=a.split(` +`)),G(0,l,-1).length}},[Pt]:!0}}function Ql(t){let e=Kl(t);return e?{frontMatter:e,get content(){let{raw:s}=e;return E(0,s,/[^\n]/gu," ")+t.slice(s.length)}}:{content:t}}var ge=Ql;var Xl=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma","spaces"]);function mn(t,e,s){if(t.type==="css-comment"&&s.type==="css-root"&&s.nodes.length>0&&((s.nodes[0]===t||Re(s.nodes[0])&&s.nodes[1]===t)&&(delete e.text,/^\*\s*@(?:format|prettier)\s*$/u.test(t.text))||s.type==="css-root"&&G(0,s.nodes,-1)===t))return null;if(t.type==="value-root"&&delete e.text,(t.type==="media-query"||t.type==="media-query-list"||t.type==="media-feature-expression")&&delete e.value,t.type==="css-rule"&&delete e.params,(t.type==="media-feature"||t.type==="media-keyword"||t.type==="media-type"||t.type==="media-unknown"||t.type==="media-url"||t.type==="media-value"||t.type==="selector-attribute"||t.type==="selector-string"||t.type==="selector-class"||t.type==="selector-combinator"||t.type==="value-string")&&t.value&&(e.value=Jl(t.value)),t.type==="selector-combinator"&&(e.value=E(0,e.value,/\s+/gu," ")),t.type==="media-feature"&&(e.value=E(0,e.value," ","")),(t.type==="value-word"&&(t.isColor&&t.isHex||["initial","inherit","unset","revert"].includes(t.value.toLowerCase()))||t.type==="media-feature"||t.type==="selector-root-invalid"||t.type==="selector-pseudo")&&(e.value=e.value.toLowerCase()),t.type==="css-decl"&&(e.prop=t.prop.toLowerCase()),(t.type==="css-atrule"||t.type==="css-import")&&(e.name=t.name.toLowerCase()),t.type==="value-number"&&(e.unit=t.unit.toLowerCase()),t.type==="value-unknown"&&(e.value=E(0,e.value,/;$/gu,"")),t.type==="selector-attribute"&&(e.attribute=t.attribute.trim(),t.namespace&&typeof t.namespace=="string"&&(e.namespace=t.namespace.trim()||!0),t.value)){let{value:r}=e;/\s[a-zA-Z]$/u.test(r)&&(e.__prettier_attribute_selector_flag=G(0,r,-1),r=r.slice(0,-1)),r=r.trim(),r=r.replace(/^(?["'])(?.*?)\k$/u,"$"),e.value=r,delete e.quoted}if((t.type==="media-value"||t.type==="media-type"||t.type==="value-number"||t.type==="selector-root-invalid"||t.type==="selector-class"||t.type==="selector-combinator"||t.type==="selector-tag")&&t.value&&(e.value=E(0,e.value,/([\d+.e-]+)([a-z]*)/giu,(r,n,i)=>{let o=Number(n);return Number.isNaN(o)?r:o+i.toLowerCase()})),t.type==="selector-tag"){let r=e.value.toLowerCase();["from","to"].includes(r)&&(e.value=r)}if(t.type==="css-atrule"&&t.name.toLowerCase()==="supports"&&delete e.value,t.type==="selector-unknown"&&delete e.value,t.type==="value-comma_group"){let r=t.groups.findIndex(n=>n.type==="value-number"&&n.unit==="...");r!==-1&&(e.groups[r].unit="",e.groups.splice(r+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}if(t.type==="value-comma_group"&&t.groups.some(r=>r.type==="value-atword"&&(r.value.endsWith("[")||r.value.endsWith("]"))||r.type==="value-word"&&(r.value.startsWith("]")||r.value.startsWith("["))))return{type:"value-atword",value:t.groups.map(r=>r.value).join(""),group:{open:null,close:null,groups:[],type:"value-paren_group"}}}mn.ignoredProperties=Xl;function Jl(t){return E(0,E(0,t,"'",'"'),/\\([^\da-f])/giu,"$1")}var yn=mn;function gn(){}gn.getVisitorKeys=t=>t.type==="css-root"?["frontMatter"]:[];var wn=gn;var Qe=null;function Xe(t){if(Qe!==null&&typeof Qe.property){let e=Qe;return Qe=Xe.prototype=null,e}return Qe=Xe.prototype=t??Object.create(null),new Xe}var Zl=10;for(let t=0;t<=Zl;t++)Xe();function Hr(t){return Xe(t)}function ec(t,e="type"){Hr(t);function s(r){let n=r[e],i=t[n];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${n}'.`),{node:r});return i}return s}var vn=ec;var _=[[],["nodes"],["group"]],xn={"css-root":["frontMatter","nodes"],"css-comment":_[0],"css-rule":["selector","nodes"],"css-decl":["value","selector","nodes"],"css-atrule":["selector","params","value","nodes"],"media-query-list":_[1],"media-query":_[1],"media-type":_[0],"media-feature-expression":_[1],"media-feature":_[0],"media-colon":_[0],"media-value":_[0],"media-keyword":_[0],"media-url":_[0],"media-unknown":_[0],"selector-root":_[1],"selector-selector":_[1],"selector-comment":_[0],"selector-string":_[0],"selector-tag":_[0],"selector-id":_[0],"selector-class":_[0],"selector-attribute":_[0],"selector-combinator":_[1],"selector-universal":_[0],"selector-pseudo":_[1],"selector-nesting":_[0],"selector-unknown":_[0],"value-value":_[2],"value-root":_[2],"value-comment":_[0],"value-comma_group":["groups"],"value-paren_group":["open","groups","close"],"value-func":_[2],"value-paren":_[0],"value-number":_[0],"value-operator":_[0],"value-word":_[0],"value-colon":_[0],"value-comma":_[0],"value-string":_[0],"value-atword":_[0],"value-unicode-range":_[0],"value-unknown":_[0]};var tc=vn(xn),_n=tc;function rc(t,e){let s=0;for(let r=0;r{let n=!!r?.backwards;if(s===!1)return!1;let{length:i}=e,o=s;for(;o>=0&&ot.source?.startOffset,R=t=>t.source?.endOffset;var nc=/\*\/$/,ic=/^\/\*\*?/,Nn=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,oc=/(^|\s+)\/\/([^\n\r]*)/g,An=/^(\r?\n)+/,ac=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,On=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,uc=/(\r?\n|^) *\* ?/g,Pn=[];function Rn(t){let e=t.match(Nn);return e?e[0].trimStart():""}function In(t){let s=t.match(Nn)?.[0];return s==null?t:t.slice(s.length)}function qn(t){t=E(0,t.replace(ic,"").replace(nc,""),uc,"$1");let s="";for(;s!==t;)s=t,t=E(0,t,ac,` +$1 $2 +`);t=t.replace(An,"").trimEnd();let r=Object.create(null),n=E(0,t,On,"").replace(An,"").trimEnd(),i;for(;i=On.exec(t);){let o=E(0,i[2],oc,"");if(typeof r[i[1]]=="string"||Array.isArray(r[i[1]])){let u=r[i[1]];r[i[1]]=[...Pn,...Array.isArray(u)?u:[u],o]}else r[i[1]]=o}return{comments:n,pragmas:r}}function Ln({comments:t="",pragmas:e={}}){let o=Object.keys(e),u=o.flatMap(l=>Cn(l,e[l])).map(l=>` * ${l} +`).join("");if(!t){if(o.length===0)return"";if(o.length===1&&!Array.isArray(e[o[0]])){let l=e[o[0]];return`/** ${Cn(o[0],l)[0]} */`}}let a=t.split(` +`).map(l=>` * ${l}`).join(` +`)+` +`;return`/** +`+(t?a:"")+(t&&o.length>0?` * +`:"")+u+" */"}function Cn(t,e){return[...Pn,...Array.isArray(e)?e:[e]].map(s=>`@${t} ${s}`.trim())}var Dn=["noformat","noprettier"],Mn=["format","prettier"],Bn="format";function lc(t){if(!t.startsWith("#!"))return"";let e=t.indexOf(` +`);return e===-1?t:t.slice(0,e)}var Un=lc;function Jr(t){let e=Un(t);e&&(t=t.slice(e.length+1));let s=Rn(t),{pragmas:r,comments:n}=qn(s);return{shebang:e,text:t,pragmas:r,comments:n}}function Fn(t){let{pragmas:e}=Jr(t);return Mn.some(s=>Object.prototype.hasOwnProperty.call(e,s))}function $n(t){let{pragmas:e}=Jr(t);return Dn.some(s=>Object.prototype.hasOwnProperty.call(e,s))}function Wn(t){let{shebang:e,text:s,pragmas:r,comments:n}=Jr(t),i=In(s),o=Ln({pragmas:{[Bn]:"",...r},comments:n.trimStart()});return(e?`${e} +`:"")+o+(i.startsWith(` +`)?` +`:` + +`)+i}var Gn=t=>Fn(ge(t).content),Yn=t=>$n(ge(t).content),Vn=t=>{let{frontMatter:e,content:s}=ge(t);return(e?e.raw+` + +`:"")+Wn(s)};var cc=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function zn(t){return t.findAncestor(e=>e.type==="css-decl")?.prop?.toLowerCase()}var fc=new Set(["initial","inherit","unset","revert"]);function jn(t){return fc.has(t.toLowerCase())}function Hn(t,e){return t.findAncestor(r=>r.type==="css-atrule")?.name?.toLowerCase().endsWith("keyframes")&&["from","to"].includes(e.toLowerCase())}function Ie(t){return t.includes("$")||t.includes("@")||t.includes("#")||t.startsWith("%")||t.startsWith("--")||t.startsWith(":--")||t.includes("(")&&t.includes(")")?t:t.toLowerCase()}function qe(t,e){return t.findAncestor(r=>r.type==="value-func")?.value?.toLowerCase()===e}function Kn(t){return t.hasAncestor(e=>{if(e.type!=="css-rule")return!1;let s=e.raws?.selector;return s&&(s.startsWith(":import")||s.startsWith(":export"))})}function we(t,e){let s=Array.isArray(e)?e:[e],r=t.findAncestor(n=>n.type==="css-atrule");return r&&s.includes(r.name.toLowerCase())}function Qn(t){let{node:e}=t;return e.groups[0]?.value==="url"&&e.groups.length===2&&t.findAncestor(s=>s.type==="css-atrule")?.name==="import"}function Xn(t){return t.type==="value-func"&&t.value.toLowerCase()==="url"}function Jn(t){return t.type==="value-func"&&t.value.toLowerCase()==="var"}function Zn(t){let{selector:e}=t;return e?typeof e=="string"&&/^@.+:.*$/u.test(e)||e.value&&/^@.+:.*$/u.test(e.value):!1}function ei(t){return t.type==="value-word"&&["from","through","end"].includes(t.value)}function ti(t){return t.type==="value-word"&&["and","or","not"].includes(t.value)}function ri(t){return t.type==="value-word"&&t.value==="in"}function Lt(t){return t.type==="value-operator"&&t.value==="*"}function ve(t){return t?.type==="value-operator"&&t.value==="/"}function J(t){return t.type==="value-operator"&&t.value==="+"}function xe(t){return t.type==="value-operator"&&t.value==="-"}function pc(t){return t.type==="value-operator"&&t.value==="%"}function Dt(t){return Lt(t)||ve(t)||J(t)||xe(t)||pc(t)}function si(t){return t.type==="value-word"&&["==","!="].includes(t.value)}function ni(t){return t.type==="value-word"&&["<",">","<=",">="].includes(t.value)}function Je(t,e){return e.parser==="scss"&&t.type==="css-atrule"&&["if","else","for","each","while"].includes(t.name)}function es(t){return t.raws?.params&&/^\(\s*\)$/u.test(t.raws.params)}function Mt(t){return t.name.startsWith("prettier-placeholder")}function ii(t){return t.prop.startsWith("@prettier-placeholder")}function oi(t,e){return t.value==="$$"&&t.type==="value-func"&&e?.type==="value-word"&&!e.raws.before}function ai(t){return t.value?.type==="value-root"&&t.value.group?.type==="value-value"&&t.prop.toLowerCase()==="composes"}function ui(t){return t.value?.group?.group?.type==="value-paren_group"&&t.value.group.group.open!==null&&t.value.group.group.close!==null}function Z(t){return t?.raws?.before===""}function Bt(t){return t.type==="value-comma_group"&&t.groups?.[1]?.type==="value-colon"}function Zr(t){return t.type==="value-paren_group"&&t.groups?.[0]&&Bt(t.groups[0])}function ts(t,e){if(e.parser!=="scss")return!1;let{node:s}=t;if(s.groups.length===0)return!1;let r=t.parent;if(r&&r.type==="value-func"&&r.value==="if")return!1;let n=t.grandparent;return!Zr(s)&&!(n&&Zr(n))?!1:!!(t.findAncestor(o=>o.type==="css-decl")?.prop?.startsWith("$")||Zr(n)||n.type==="value-func")}function Ze(t){return t.type==="value-comment"&&t.inline}function Ut(t){return t.type==="value-word"&&t.value==="#"}function rs(t){return t.type==="value-word"&&t.value==="{"}function Ft(t){return t.type==="value-word"&&t.value==="}"}function et(t){return["value-word","value-atword"].includes(t.type)}function $t(t){return t?.type==="value-colon"}function li(t,e){if(!Bt(e))return!1;let{groups:s}=e,r=s.indexOf(t);return r===-1?!1:$t(s[r+1])}function ci(t){return t.value&&["not","and","or"].includes(t.value.toLowerCase())}function fi(t){return t.type!=="value-func"?!1:cc.has(t.value.toLowerCase())}function Le(t){return/\/\//u.test(t.split(/[\n\r]/u).pop())}function tt(t){return t?.type==="value-atword"&&t.value.startsWith("prettier-placeholder-")}function pi(t,e){if(t.open?.value!=="("||t.close?.value!==")"||t.groups.some(s=>s.type!=="value-comma_group"))return!1;if(e.type==="value-comma_group"){let s=e.groups.indexOf(t)-1,r=e.groups[s];if(r?.type==="value-word"&&r.value==="with")return!0}return!1}function rt(t){return t.type==="value-paren_group"&&t.open?.value==="("&&t.close?.value===")"}function hc(t,e,s){let{node:r}=t,n=t.parent,i=t.grandparent,o=zn(t),u=o&&n.type==="value-value"&&(o==="grid"||o.startsWith("grid-template")),a=t.findAncestor(p=>p.type==="css-atrule"),l=a&&Je(a,e),f=r.groups.some(p=>Ze(p)),h=t.map(s,"groups"),c=[""],g=qe(t,"url"),b=!1,d=!1;for(let p=0;pN:k!==-1?b=!0:N!==-1&&(b=!1)}if(b||$t(y)||$t(v)||y.type==="value-atword"&&(y.value===""||y.value.endsWith("["))||v.type==="value-word"&&v.value.startsWith("]")||y.value==="~"||e.parser==="less"&&(v?.type==="value-word"&&v.value==="["||y.type==="value-word"&&y.value==="["&&(v?.type==="value-atword"||v?.type==="value-word")||y.type==="value-word"&&y.value==="]["&&v?.type==="value-word")||y.type!=="value-string"&&y.value&&y.value.includes("\\")&&v&&v.type!=="value-comment"||m?.value&&m.value.indexOf("\\")===m.value.length-1&&y.type==="value-operator"&&y.value==="/"||y.value==="\\"||oi(y,v)||Ut(y)||rs(y)||Ft(v)||rs(v)&&Z(v)||Ft(y)&&Z(v)||y.value==="--"&&Ut(v))continue;let q=Dt(y),H=Dt(v);if((q&&Ut(v)||H&&Ft(y))&&Z(v)||!m&&ve(y)||qe(t,"calc")&&(J(y)||J(v)||xe(y)||xe(v))&&Z(v))continue;let ne=(J(y)||xe(y))&&p===0&&(v.type==="value-number"||v.isHex)&&i&&fi(i)&&!Z(v);if(e.parser==="scss"&&q&&y.value==="-"&&v.type==="value-func"&&R(y)!==P(v)){c.push([c.pop()," "]);continue}let W=O?.type==="value-func"||O&&et(O)||y.type==="value-func"||et(y),A=v.type==="value-func"||et(v)||m?.type==="value-func"||m&&et(m);if(!(!(Lt(v)||Lt(y))&&!qe(t,"calc")&&!ne&&(ve(v)&&!W||ve(y)&&!A||J(v)&&!W||J(y)&&!A||xe(v)||xe(y))&&(Z(v)||q&&(!m||m&&Dt(m))))&&!((e.parser==="scss"||e.parser==="less")&&q&&y.value==="-"&&rt(v)&&R(y)===P(v.open)&&v.open.value==="(")){if(Ze(y)){if(n.type==="value-paren_group"){c.push(le(T),"");continue}c.push(T,"");continue}if(l&&(si(v)||ni(v)||ti(v)||ri(y)||ei(y))){c.push([c.pop()," "]);continue}if(a&&a.name.toLowerCase()==="namespace"){c.push([c.pop()," "]);continue}if(u){y.source&&v.source&&y.source.start.line!==v.source.start.line?(c.push(T,""),d=!0):c.push([c.pop()," "]);continue}if(!(o&&(o==="font"||o.startsWith("--"))&&(ve(v)&&Z(v)&&hi(y)||ve(y)&&Z(y)&&hi(m)))){if(H){c.push([c.pop()," "]);continue}if(v?.value!=="..."&&!(tt(y)&&tt(v)&&R(y)===P(v))){if(tt(y)&&rt(v)&&R(y)===P(v.open)){c.push(M,"");continue}if(y.value==="with"&&rt(v)){c=[[Pe(c)," "]];continue}if(!(y.value?.endsWith("#")&&v.value==="{"&&rt(v.group))&&!(Ze(v)&&!O)){if(!a&&y.type==="value-comment"&&!y.inline&&r.groups.slice(0,p).every(k=>k.type==="value-comment")){c.push(le(C),"");continue}c.push(C,"")}}}}}return f&&c.push([c.pop(),Ne]),d&&c.unshift("",T),l?D(L(c)):Qn(t)?D(Pe(c)):D(L(Pe(c)))}function hi(t){if(t?.type==="value-number")return!0;if(t?.type!=="value-func")return!1;let e=t.value.toLowerCase();return e==="var"||e==="calc"||e==="min"||e==="max"||e==="clamp"||e.startsWith("--")}var di=hc;function dc(t){return t.length===1?t:t.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")}var mi=dc;var Wt=new Map([["em","em"],["rem","rem"],["ex","ex"],["rex","rex"],["cap","cap"],["rcap","rcap"],["ch","ch"],["rch","rch"],["ic","ic"],["ric","ric"],["lh","lh"],["rlh","rlh"],["vw","vw"],["svw","svw"],["lvw","lvw"],["dvw","dvw"],["vh","vh"],["svh","svh"],["lvh","lvh"],["dvh","dvh"],["vi","vi"],["svi","svi"],["lvi","lvi"],["dvi","dvi"],["vb","vb"],["svb","svb"],["lvb","lvb"],["dvb","dvb"],["vmin","vmin"],["svmin","svmin"],["lvmin","lvmin"],["dvmin","dvmin"],["vmax","vmax"],["svmax","svmax"],["lvmax","lvmax"],["dvmax","dvmax"],["cm","cm"],["mm","mm"],["q","Q"],["in","in"],["pt","pt"],["pc","pc"],["px","px"],["deg","deg"],["grad","grad"],["rad","rad"],["turn","turn"],["s","s"],["ms","ms"],["hz","Hz"],["khz","kHz"],["dpi","dpi"],["dpcm","dpcm"],["dppx","dppx"],["x","x"],["cqw","cqw"],["cqh","cqh"],["cqi","cqi"],["cqb","cqb"],["cqmin","cqmin"],["cqmax","cqmax"],["fr","fr"]]);function ss(t){let e=t.toLowerCase();return Wt.has(e)?Wt.get(e):t}var yi=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gsu,mc=/(?:\d*\.\d+|\d+\.?)(?:e[+-]?\d+)?/giu,yc=/[a-z]+/giu,gc=/[$@]?[_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/giu,wc=new RegExp(yi.source+`|(${gc.source})?(${mc.source})(${yc.source})?`,"giu");function V(t,e){return E(0,t,yi,s=>Nt(s,e))}function gi(t,e){let s=e.singleQuote?"'":'"',r="",n=t.match(/^(?.+?)\s+(?[a-zA-Z])$/u);return n&&({value:t,flag:r}=n.groups),(t.includes('"')||t.includes("'")?t:s+t+s)+(r?` ${r}`:"")}function _e(t){return E(0,t,wc,(e,s,r,n,i)=>!r&&n&&(i??(i=""),i=i.toLowerCase(),!i||i==="n"||Wt.has(i))?ns(n)+(i?ss(i):""):e)}function ns(t){return mi(t).replace(/\.0(?=$|e)/u,"")}function wi(t){return t.trailingComma==="es5"||t.trailingComma==="all"}var vi=t=>t===` +`||t==="\r"||t==="\u2028"||t==="\u2029";function vc(t,e,s){let r=!!s?.backwards;if(e===!1)return!1;let n=t.charAt(e);if(r){if(t.charAt(e-1)==="\r"&&n===` +`)return e-2;if(vi(n))return e-1}else{if(n==="\r"&&t.charAt(e+1)===` +`)return e+2;if(vi(n))return e+1}return e}var Gt=vc;function xc(t,e,s={}){let r=It(t,s.backwards?e-1:e,s),n=Gt(t,r,s);return r!==n}var Yt=xc;function _c(t,e){if(e===!1)return!1;if(t.charAt(e)==="/"&&t.charAt(e+1)==="*"){for(let s=e+2;ss.type==="value-comment"))&&wi(e)&&t.callParent(()=>ts(t,e))?Ct(","):""}function bi(t,e,s){let{node:r,parent:n}=t,i=t.map(({node:g})=>typeof g=="string"?g:s(),"groups");if(n&&Xn(n)&&(r.groups.length===1||r.groups.length>0&&r.groups[0].type==="value-comma_group"&&r.groups[0].groups.length>0&&r.groups[0].groups[0].type==="value-word"&&r.groups[0].groups[0].value.startsWith("data:")))return[r.open?s("open"):"",Y(",",i),r.close?s("close"):""];if(!r.open){let g=is(t);ye(i);let b=Ac(Y(",",i),2),d=Y(g?T:C,b);return L(g?[T,d]:D([Tc(t)?M:"",Pe(d)]))}let o=t.map(({node:g,isLast:b,index:d})=>{let p=i[d];Bt(g)&&g.type==="value-comma_group"&&g.groups&&g.groups[0].type!=="value-paren_group"&&g.groups[2]?.type==="value-paren_group"&&ue(p)===oe&&ue(p.contents)===ie&&ue(p.contents.contents)===ae&&(p=D(le(p)));let m=[p,b?kc(t,e):","];if(!b&&g.type==="value-comma_group"&&ce(g.groups)){let y=G(0,g.groups,-1);!y.source&&y.close&&(y=y.close),y.source&&Vt(e.originalText,R(y))&&m.push(T)}return m},"groups"),u=li(r,n),a=pi(r,n),l=ts(t,e),f=a||l&&!u,h=a||u,c=D([r.open?s("open"):"",L([M,Y(C,o)]),M,r.close?s("close"):""],{shouldBreak:f});return h?le(c):c}function is(t){return t.match(e=>e.type==="value-paren_group"&&!e.open&&e.groups.some(s=>s.type==="value-comma_group"),(e,s)=>s==="group"&&e.type==="value-value",(e,s)=>s==="group"&&e.type==="value-root",(e,s)=>s==="value"&&(e.type==="css-decl"&&!e.prop.startsWith("--")||e.type==="css-atrule"&&e.variable))}function Tc(t){return t.match(e=>e.type==="value-paren_group"&&!e.open,(e,s)=>s==="group"&&e.type==="value-value",(e,s)=>s==="group"&&e.type==="value-root",(e,s)=>s==="value"&&e.type==="css-decl")}function Ac(t,e){let s=[];for(let r=0;r{let{node:n,previous:i}=t;if(i?.type==="css-comment"&&i.text.trim()==="prettier-ignore"?r.push(e.originalText.slice(P(n),R(n))):r.push(s()),t.isLast)return;let{next:o}=t;o.type==="css-comment"&&!Yt(e.originalText,P(o),{backwards:!0})&&!Re(n)||o.type==="css-atrule"&&o.name==="else"&&n.type!=="css-comment"?r.push(" "):(r.push(e.__isHTMLStyleAttribute?C:T),Vt(e.originalText,R(n))&&!Re(n)&&r.push(T))},"nodes"),r}var De=Oc;function Cc(t,e,s){let{node:r}=t;switch(r.type){case"css-root":{let n=De(t,e,s),i=r.raws.after.trim();return i.startsWith(";")&&(i=i.slice(1).trim()),[r.frontMatter?[s("frontMatter"),T,r.nodes.length>0?T:""]:"",n,i?` ${i}`:"",r.nodes.length>0?T:""]}case"css-comment":{let n=r.inline||r.raws.inline,i=e.originalText.slice(P(r),R(r));return n?i.trimEnd():i}case"css-rule":return[s("selector"),r.important?" !important":"",r.nodes?[r.selector?.type==="selector-unknown"&&Le(r.selector.value)?C:r.selector?" ":"","{",r.nodes.length>0?L([T,De(t,e,s)]):"",T,"}",Zn(r)?";":""]:";"];case"css-decl":{let n=t.parent,{between:i}=r.raws,o=i.trim(),u=o===":",a=typeof r.value=="string"&&/^ *$/u.test(r.value),l=typeof r.value=="string"?r.value:s("value");return l=ai(r)?on(l):l,!u&&Le(o)&&!t.call(()=>is(t),"value","group","group")&&(l=L([T,le(l)])),[E(0,r.raws.before,/[\s;]/gu,""),n.type==="css-atrule"&&n.variable||Kn(t)?r.prop:Ie(r.prop),o.startsWith("//")?" ":"",o,r.extend||a?"":" ",e.parser==="less"&&r.extend&&r.selector?["extend(",s("selector"),")"]:"",l,r.raws.important?r.raws.important.replace(/\s*!\s*important/iu," !important"):r.important?" !important":"",r.raws.scssDefault?r.raws.scssDefault.replace(/\s*!default/iu," !default"):r.scssDefault?" !default":"",r.raws.scssGlobal?r.raws.scssGlobal.replace(/\s*!global/iu," !global"):r.scssGlobal?" !global":"",r.nodes?[" {",L([M,De(t,e,s)]),M,"}"]:ii(r)&&!n.raws.semicolon&&e.originalText[R(r)-1]!==";"?"":e.__isHTMLStyleAttribute&&t.isLast?Ct(";"):";"]}case"css-atrule":{let n=t.parent,i=Mt(r)&&!n.raws.semicolon&&e.originalText[R(r)-1]!==";";if(e.parser==="less"){if(r.mixin)return[s("selector"),r.important?" !important":"",i?"":";"];if(r.function)return[r.name,typeof r.params=="string"?r.params:s("params"),i?"":";"];if(r.variable)return["@",r.name,": ",r.value?s("value"):"",r.raws.between.trim()?r.raws.between.trim()+" ":"",r.nodes?["{",L([r.nodes.length>0?M:"",De(t,e,s)]),M,"}"]:"",i?"":";"]}let o=r.name==="import"&&r.params?.type==="value-unknown"&&r.params.value.endsWith(";");return["@",es(r)||r.name.endsWith(":")||Mt(r)?r.name:Ie(r.name),r.params?[es(r)?"":Mt(r)?r.raws.afterName===""?"":r.name.endsWith(":")?" ":/^\s*\n\s*\n/u.test(r.raws.afterName)?[T,T]:/^\s*\n/u.test(r.raws.afterName)?T:" ":" ",typeof r.params=="string"?r.params:s("params")]:"",r.selector?L([" ",s("selector")]):"",r.value?D([" ",s("value"),Je(r,e)?ui(r)?" ":C:""]):r.name==="else"?" ":"",r.nodes?[Je(r,e)?"":r.selector&&!r.selector.nodes&&typeof r.selector.value=="string"&&Le(r.selector.value)||!r.selector&&typeof r.params=="string"&&Le(r.params)?C:" ","{",L([r.nodes.length>0?M:"",De(t,e,s)]),M,"}"]:i||o?"":";"]}case"media-query-list":{let n=[];return t.each(({node:i})=>{i.type==="media-query"&&i.value===""||n.push(s())},"nodes"),D(L(Y(C,n)))}case"media-query":return[Y(" ",t.map(s,"nodes")),t.isLast?"":","];case"media-type":return _e(V(r.value,e));case"media-feature-expression":return r.nodes?["(",...t.map(s,"nodes"),")"]:r.value;case"media-feature":return Ie(V(E(0,r.value,/ +/gu," "),e));case"media-colon":return[r.value," "];case"media-value":return _e(V(r.value,e));case"media-keyword":return V(r.value,e);case"media-url":return V(E(0,E(0,r.value,/^url\(\s+/giu,"url("),/\s+\)$/gu,")"),e);case"media-unknown":return r.value;case"selector-root":return D([we(t,"custom-selector")?[t.findAncestor(n=>n.type==="css-atrule").customSelector,C]:"",Y([",",we(t,["extend","custom-selector","nest"])?C:T],t.map(s,"nodes"))]);case"selector-selector":{let n=r.nodes.length>2;return D((n?L:i=>i)(t.map(s,"nodes")))}case"selector-comment":return r.value;case"selector-string":return V(r.value,e);case"selector-tag":return[r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",t.previous?.type==="selector-nesting"?r.value:_e(Hn(t,r.value)?r.value.toLowerCase():r.value)];case"selector-id":return["#",r.value];case"selector-class":return[".",_e(V(r.value,e))];case"selector-attribute":return["[",r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",r.attribute.trim(),r.operator??"",r.value?gi(V(r.value.trim(),e),e):"",r.insensitive?" i":"","]"];case"selector-combinator":{if(r.value==="+"||r.value===">"||r.value==="~"||r.value===">>>"){let o=t.parent;return[o.type==="selector-selector"&&o.nodes[0]===r?"":C,r.value,t.isLast?"":" "]}let n=r.value.trim().startsWith("(")?C:"",i=_e(V(r.value.trim(),e))||C;return[n,i]}case"selector-universal":return[r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",r.value];case"selector-pseudo":return[Ie(r.value),ce(r.nodes)?D(["(",L([M,Y([",",C],t.map(s,"nodes"))]),M,")"]):""];case"selector-nesting":return r.value;case"selector-unknown":{if(t.findAncestor(u=>u.type==="css-rule")?.isSCSSNesterProperty)return _e(V(Ie(r.value),e));let i=t.parent;if(i.raws?.selector){let u=P(i),a=u+i.raws.selector.length;return e.originalText.slice(u,a).trim()}let o=t.grandparent;if(i.type==="value-paren_group"&&o?.type==="value-func"&&o.value==="selector"){let u=R(i.open)+1,a=P(i.close),l=e.originalText.slice(u,a).trim();return Le(l)?[Ne,l]:l}return r.value}case"value-value":case"value-root":return s("group");case"value-comment":return e.originalText.slice(P(r),R(r));case"value-comma_group":return di(t,e,s);case"value-paren_group":return bi(t,e,s);case"value-func":return[r.value,we(t,"supports")&&ci(r)?" ":"",s("group")];case"value-paren":return r.value;case"value-number":return[ns(r.value),ss(r.unit)];case"value-operator":return r.value;case"value-word":return r.isColor&&r.isHex||jn(r.value)?r.value.toLowerCase():r.value;case"value-colon":{let{previous:n}=t;return D([r.value,typeof n?.value=="string"&&n.value.endsWith("\\")||qe(t,"url")?"":C])}case"value-string":return Nt(r.raws.quote+r.value+r.raws.quote,e);case"value-atword":return["@",r.value];case"value-unicode-range":return r.value;case"value-unknown":return r.value;case"front-matter":case"value-comma":default:throw new dn(r,"PostCSS")}}var Nc={features:{experimental_frontMatterSupport:{massageAstNode:!0,embed:!0,print:!0}},print:Cc,embed:wn,insertPragma:Vn,massageAstNode:yn,getVisitorKeys:_n},Ei=Nc;var Si=[{name:"CSS",type:"markup",aceMode:"css",extensions:[".css",".wxss"],tmScope:"source.css",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["css"],vscodeLanguageIds:["css"],linguistLanguageId:50},{name:"PostCSS",type:"markup",aceMode:"text",extensions:[".pcss",".postcss"],tmScope:"source.postcss",group:"CSS",parsers:["css"],vscodeLanguageIds:["postcss"],linguistLanguageId:262764437},{name:"Less",type:"markup",aceMode:"less",extensions:[".less"],tmScope:"source.css.less",aliases:["less-css"],codemirrorMode:"css",codemirrorMimeType:"text/x-less",parsers:["less"],vscodeLanguageIds:["less"],linguistLanguageId:198},{name:"SCSS",type:"markup",aceMode:"scss",extensions:[".scss"],tmScope:"source.css.scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",parsers:["scss"],vscodeLanguageIds:["scss"],linguistLanguageId:329}];var ki={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var Pc={singleQuote:ki.singleQuote},Ti=Pc;var en={};sn(en,{css:()=>Vy,less:()=>zy,scss:()=>jy});var dl=Te(ht(),1),ml=Te(qo(),1),yl=Te(da(),1);function gp(t,e){let s=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(s,e)}var ma=gp;function wp(t){return t!==null&&typeof t=="object"}var Se=wp;var ba=Te(_a(),1);function te(t,e,s){if(Se(t)){delete t.parent;for(let r in t)te(t[r],e,s),r==="type"&&typeof t[r]=="string"&&!t[r].startsWith(e)&&(!s||!s.test(t[r]))&&(t[r]=e+t[r])}return t}function Bs(t){if(Se(t)){delete t.parent;for(let e in t)Bs(t[e]);!Array.isArray(t)&&t.value&&!t.type&&(t.type="unknown")}return t}var Np=ba.default.default;function Pp(t){let e;try{e=Np(t)}catch{return{type:"selector-unknown",value:t}}return te(Bs(e),"media-")}var Ea=Pp;var gu=Te(yu(),1);function Vm(t){if(/\/[/*]/u.test(E(0,t,/"[^"]+"|'[^']+'/gu,"")))return{type:"selector-unknown",value:t.trim()};let e;try{new gu.default(s=>{e=s}).process(t)}catch{return{type:"selector-unknown",value:t}}return te(e,"selector-")}var se=Vm;var cl=Te(nl(),1);var Iy=t=>{for(;t.parent;)t=t.parent;return t},Gr=Iy;function qy(t){return Gr(t).text.slice(t.group.open.sourceIndex+1,t.group.close.sourceIndex).trim()}var il=qy;function Ly(t){if(ce(t)){for(let e=t.length-1;e>0;e--)if(t[e].type==="word"&&t[e].value==="{"&&t[e-1].type==="word"&&t[e-1].value.endsWith("#"))return!0}return!1}var ol=Ly;function Dy(t){return t.some(e=>e.type==="string"||e.type==="func"&&!e.value.endsWith("\\"))}var al=Dy;function My(t,e){return!!(e.parser==="scss"&&t?.type==="word"&&t.value.startsWith("$"))}var ul=My;var ll=t=>t.type==="paren"&&t.value===")";function By(t,e){let{nodes:s}=t,r={open:null,close:null,groups:[],type:"paren_group"},n=[r],i=r,o={groups:[],type:"comma_group"},u=[o];for(let a=0;a0&&r.groups.push(o),r.close=l,u.length===1)throw new Error("Unbalanced parenthesis");u.pop(),o=G(0,u,-1),o.groups.push(r),n.pop(),r=G(0,n,-1)}else if(l.type==="comma"){if(a===s.length-3&&s[a+1].type==="comment"&&ll(s[a+2]))continue;r.groups.push(o),o={groups:[],type:"comma_group"},u[u.length-1]=o}else o.groups.push(l)}return o.groups.length>0&&r.groups.push(o),i}function Yr(t){return t.type==="paren_group"&&!t.open&&!t.close&&t.groups.length===1||t.type==="comma_group"&&t.groups.length===1?Yr(t.groups[0]):t.type==="paren_group"||t.type==="comma_group"?{...t,groups:t.groups.map(Yr)}:t}function fl(t,e){if(Se(t))for(let s in t)s!=="parent"&&(fl(t[s],e),s==="nodes"&&(t.group=Yr(By(t,e)),delete t[s]));return t}function Uy(t,e){if(e.parser==="less"&&t.startsWith("~`"))return{type:"value-unknown",value:t};let s=null;try{s=new cl.default(t,{loose:!0}).parse()}catch{return{type:"value-unknown",value:t}}s.text=t;let r=fl(s,e);return te(r,"value-",/^selector-/u)}var de=Uy;var Fy=new Set(["import","use","forward"]);function $y(t){return Fy.has(t)}var pl=$y;function Wy(t,e){return e.parser!=="scss"||!t.selector?!1:t.selector.replace(/\/\*.*?\*\//u,"").replace(/\/\/.*\n/u,"").trim().endsWith(":")}var hl=Wy;var Gy=/(\s*)(!default).*$/u,Yy=/(\s*)(!global).*$/u;function gl(t,e){if(Se(t)){delete t.parent;for(let i in t)gl(t[i],e);if(!t.type)return t;if(t.raws??(t.raws={}),t.type==="css-decl"&&typeof t.prop=="string"&&t.prop.startsWith("--")&&typeof t.value=="string"&&t.value.startsWith("{")){let i;if(t.value.trimEnd().endsWith("}")){let o=e.originalText.slice(0,t.source.start.offset),u="a".repeat(t.prop.length)+e.originalText.slice(t.source.start.offset+t.prop.length,t.source.end.offset),a=E(0,o,/[^\n]/gu," ")+u,l;e.parser==="scss"?l=xl:e.parser==="less"?l=vl:l=wl;let f;try{f=l(a,{...e})}catch{}f?.nodes?.length===1&&f.nodes[0].type==="css-rule"&&(i=f.nodes[0].nodes)}return i?t.value={type:"css-rule",nodes:i}:t.value={type:"value-unknown",value:t.raws.value.raw},t}let s="";typeof t.selector=="string"&&(s=t.raws.selector?t.raws.selector.scss??t.raws.selector.raw:t.selector,t.raws.between&&t.raws.between.trim().length>0&&(s+=t.raws.between),t.raws.selector=s);let r="";typeof t.value=="string"&&(r=t.raws.value?t.raws.value.scss??t.raws.value.raw:t.value,t.raws.value=r.trim());let n="";if(typeof t.params=="string"&&(n=t.raws.params?t.raws.params.scss??t.raws.params.raw:t.params,t.raws.afterName&&t.raws.afterName.trim().length>0&&(n=t.raws.afterName+n),t.raws.between&&t.raws.between.trim().length>0&&(n=n+t.raws.between),n=n.trim(),t.raws.params=n),s.trim().length>0)return s.startsWith("@")&&s.endsWith(":")?t:t.mixin?(t.selector=de(s,e),t):(hl(t,e)&&(t.isSCSSNesterProperty=!0),t.selector=se(s),t);if(r.trim().length>0){let i=r.match(Gy);i&&(r=r.slice(0,i.index),t.scssDefault=!0,i[0].trim()!=="!default"&&(t.raws.scssDefault=i[0]));let o=r.match(Yy);if(o&&(r=r.slice(0,o.index),t.scssGlobal=!0,o[0].trim()!=="!global"&&(t.raws.scssGlobal=o[0])),r.startsWith("progid:"))return{type:"value-unknown",value:r};t.value=de(r,e)}if(e.parser==="less"&&t.type==="css-decl"&&r.startsWith("extend(")&&(t.extend||(t.extend=t.raws.between===":"),t.extend&&!t.selector&&(delete t.value,t.selector=se(r.slice(7,-1)))),t.type==="css-atrule"){if(e.parser==="less"){if(t.mixin){let i=t.raws.identifier+t.name+t.raws.afterName+t.raws.params;return t.selector=se(i),delete t.params,t}if(t.function)return t}if(e.parser==="css"&&t.name==="custom-selector"){let i=t.params.match(/:--\S+\s+/u)[0].trim();return t.customSelector=i,t.selector=se(t.params.slice(i.length).trim()),delete t.params,t}if(e.parser==="less"){if(t.name.includes(":")){t.variable=!0;let i=t.name.split(":");t.name=i[0];let o=i.slice(1).join(":");t.params&&(o+=t.params),t.value=de(o,e)}if(!["page","nest","keyframes"].includes(t.name)&&t.params?.[0]===":"){t.variable=!0;let i=t.params.slice(1);i&&(t.value=de(i,e)),t.raws.afterName+=":"}if(t.variable)return delete t.params,t.value||delete t.value,t}}if(t.type==="css-atrule"&&n.length>0){let{name:i}=t,o=t.name.toLowerCase();return i==="warn"||i==="error"?(t.params={type:"media-unknown",value:n},t):i==="extend"||i==="nest"?(t.selector=se(n),delete t.params,t):i==="at-root"?(/^\(\s*(?:without|with)\s*:.+\)$/su.test(n)?t.params=de(n,e):(t.selector=se(n),delete t.params),t):pl(o)?(t.import=!0,delete t.filename,t.params=de(n,e),t):["namespace","supports","if","else","for","each","while","debug","mixin","include","function","return","define-mixin","add-mixin"].includes(i)?(n=n.replace(/(\$\S+?)(\s+)?\.{3}/u,"$1...$2"),n=n.replace(/^(?!if)([^"'\s(]+)(\s+)\(/u,"$1($2"),t.value=de(n,e),delete t.params,t):["media","custom-media"].includes(o)?n.includes("#{")?{type:"media-unknown",value:n}:(t.params=Ea(n),t):(t.params=n,t)}}return t}function Js(t,e,s){let{frontMatter:r,content:n}=ge(e),i;try{i=t(n,{map:!1})}catch(o){let{name:u,reason:a,line:l,column:f}=o;throw typeof l!="number"?o:ma(`${u}: ${a}`,{loc:{start:{line:l,column:f}},cause:o})}return s.originalText=e,i=gl(te(i,"css-"),s),Xr(i,e),r&&(i.frontMatter={...r,type:"front-matter",source:{startOffset:r.start.index,endOffset:r.end.index}}),i}function wl(t,e={}){return Js(dl.default.default,t,e)}function vl(t,e={}){return Js(s=>ml.default.parse(Tn(s)),t,e)}function xl(t,e={}){return Js(yl.default,t,e)}var Zs={astFormat:"postcss",hasPragma:Gn,hasIgnorePragma:Yn,locStart:P,locEnd:R},Vy={...Zs,parse:wl},zy={...Zs,parse:vl},jy={...Zs,parse:xl};var Hy={postcss:Ei};export{_l as default,Si as languages,Ti as options,en as parsers,Hy as printers}; diff --git a/node_modules/prettier/plugins/typescript.d.ts b/node_modules/prettier/plugins/typescript.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e8e0f7523745e5952390c8428296393ae86caddf --- /dev/null +++ b/node_modules/prettier/plugins/typescript.d.ts @@ -0,0 +1,5 @@ +import { Parser } from "../index.js"; + +export declare const parsers: { + typescript: Parser; +}; diff --git a/node_modules/prettier/plugins/typescript.js b/node_modules/prettier/plugins/typescript.js new file mode 100644 index 0000000000000000000000000000000000000000..c6d8894ae4dc7ade0973a4b50b9963959d32c406 --- /dev/null +++ b/node_modules/prettier/plugins/typescript.js @@ -0,0 +1,21 @@ +(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.typescript=e()}})(function(){"use strict";var gp=Object.defineProperty;var ty=Object.getOwnPropertyDescriptor;var ny=Object.getOwnPropertyNames;var ry=Object.prototype.hasOwnProperty;var yd=(e,t)=>{for(var a in t)gp(e,a,{get:t[a],enumerable:!0})},iy=(e,t,a,_)=>{if(t&&typeof t=="object"||typeof t=="function")for(let f of ny(t))!ry.call(e,f)&&f!==a&&gp(e,f,{get:()=>t[f],enumerable:!(_=ty(t,f))||_.enumerable});return e};var ay=e=>iy(gp({},"__esModule",{value:!0}),e);var K4={};yd(K4,{parsers:()=>ud});var ud={};yd(ud,{typescript:()=>Q4});var sy=()=>()=>{},Na=sy;var Ia=(e,t)=>(a,_,...f)=>a|1&&_==null?void 0:(t.call(_)??_[e]).apply(_,f);var _y=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},oy=Ia("replaceAll",function(){if(typeof this=="string")return _y}),Wr=oy;var bm="5.9";var vt=[],cy=new Map;function e_(e){return e!==void 0?e.length:0}function jn(e,t){if(e!==void 0)for(let a=0;a0;return!1}function Hp(e,t){return t===void 0||t.length===0?e:e===void 0||e.length===0?t:[...e,...t]}function dy(e,t,a=$p){if(e===void 0||t===void 0)return e===t;if(e.length!==t.length)return!1;for(let _=0;_e?.at(t):(e,t)=>{if(e!==void 0&&(t=Ip(e,t),t>1),c=a(e[k],k);switch(_(c,t)){case-1:h=k+1;break;case 0:return k;case 1:T=k-1;break}}return~h}function xy(e,t,a,_,f){if(e&&e.length>0){let h=e.length;if(h>0){let T=_===void 0||_<0?0:_,k=f===void 0||T+f>h-1?h-1:T+f,c;for(arguments.length<=2?(c=e[T],T++):c=a;T<=k;)c=t(c,e[T],T),T++;return c}}return a}var Sm=Object.prototype.hasOwnProperty;function Dr(e,t){return Sm.call(e,t)}function Sy(e){let t=[];for(let a in e)Sm.call(e,a)&&t.push(a);return t}function wy(){let e=new Map;return e.add=ky,e.remove=Ey,e}function ky(e,t){let a=this.get(e);return a!==void 0?a.push(t):this.set(e,a=[t]),a}function Ey(e,t){let a=this.get(e);a!==void 0&&(Ly(a,t),a.length||this.delete(e))}function $r(e){return Array.isArray(e)}function vp(e){return $r(e)?e:[e]}function Ay(e,t){return e!==void 0&&t(e)?e:void 0}function Er(e,t){return e!==void 0&&t(e)?e:q.fail(`Invalid cast. The supplied value ${e} did not pass the test '${q.getFunctionName(t)}'.`)}function Va(e){}function Cy(){return!0}function bt(e){return e}function bd(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function Kn(e){let t=new Map;return a=>{let _=`${typeof a}:${a}`,f=t.get(_);return f===void 0&&!t.has(_)&&(f=e(a),t.set(_,f)),f}}function $p(e,t){return e===t}function Qp(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function Dy(e,t){return $p(e,t)}function Py(e,t){return e===t?0:e===void 0?-1:t===void 0?1:ea?k-a:1),y=Math.floor(t.length>a+k?a+k:t.length);f[0]=k;let G=k;for(let D=1;Da)return;let E=_;_=f,f=E}let T=_[t.length];return T>a?void 0:T}function Oy(e,t,a){let _=e.length-t.length;return _>=0&&(a?Qp(e.slice(_),t):e.indexOf(t,_)===_)}function My(e,t){e[t]=e[e.length-1],e.pop()}function Ly(e,t){return Jy(e,a=>a===t)}function Jy(e,t){for(let a=0;a{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function a(L){return e.currentLogLevel<=L}e.shouldLog=a;function _(L,se){e.loggingHost&&a(L)&&e.loggingHost.log(L,se)}function f(L){_(3,L)}e.log=f,(L=>{function se(Qe){_(1,Qe)}L.error=se;function fe(Qe){_(2,Qe)}L.warn=fe;function Te(Qe){_(3,Qe)}L.log=Te;function He(Qe){_(4,Qe)}L.trace=He})(f=e.log||(e.log={}));let h={};function T(){return t}e.getAssertionLevel=T;function k(L){let se=t;if(t=L,L>se)for(let fe of Sy(h)){let Te=h[fe];Te!==void 0&&e[fe]!==Te.assertion&&L>=Te.level&&(e[fe]=Te,h[fe]=void 0)}}e.setAssertionLevel=k;function c(L){return t>=L}e.shouldAssert=c;function W(L,se){return c(L)?!0:(h[se]={level:L,assertion:e[se]},e[se]=Va,!1)}function y(L,se){debugger;let fe=new Error(L?`Debug Failure. ${L}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(fe,se||y),fe}e.fail=y;function G(L,se,fe){return y(`${se||"Unexpected node."}\r +Node ${Ot(L.kind)} was unexpected.`,fe||G)}e.failBadSyntaxKind=G;function E(L,se,fe,Te){L||(se=se?`False expression: ${se}`:"False expression.",fe&&(se+=`\r +Verbose Debug Information: `+(typeof fe=="string"?fe:fe())),y(se,Te||E))}e.assert=E;function D(L,se,fe,Te,He){if(L!==se){let Qe=fe?Te?`${fe} ${Te}`:fe:"";y(`Expected ${L} === ${se}. ${Qe}`,He||D)}}e.assertEqual=D;function R(L,se,fe,Te){L>=se&&y(`Expected ${L} < ${se}. ${fe||""}`,Te||R)}e.assertLessThan=R;function ue(L,se,fe){L>se&&y(`Expected ${L} <= ${se}`,fe||ue)}e.assertLessThanOrEqual=ue;function be(L,se,fe){L= ${se}`,fe||be)}e.assertGreaterThanOrEqual=be;function he(L,se,fe){L==null&&y(se,fe||he)}e.assertIsDefined=he;function de(L,se,fe){return he(L,se,fe||de),L}e.checkDefined=de;function O(L,se,fe){for(let Te of L)he(Te,se,fe||O)}e.assertEachIsDefined=O;function ae(L,se,fe){return O(L,se,fe||ae),L}e.checkEachDefined=ae;function Oe(L,se="Illegal value:",fe){let Te=typeof L=="object"&&Dr(L,"kind")&&Dr(L,"pos")?"SyntaxKind: "+Ot(L.kind):JSON.stringify(L);return y(`${se} ${Te}`,fe||Oe)}e.assertNever=Oe;function V(L,se,fe,Te){W(1,"assertEachNode")&&E(se===void 0||Yp(L,se),fe||"Unexpected node.",()=>`Node array did not pass test '${hn(se)}'.`,Te||V)}e.assertEachNode=V;function oe(L,se,fe,Te){W(1,"assertNode")&&E(L!==void 0&&(se===void 0||se(L)),fe||"Unexpected node.",()=>`Node ${Ot(L?.kind)} did not pass test '${hn(se)}'.`,Te||oe)}e.assertNode=oe;function Y(L,se,fe,Te){W(1,"assertNotNode")&&E(L===void 0||se===void 0||!se(L),fe||"Unexpected node.",()=>`Node ${Ot(L.kind)} should not have passed test '${hn(se)}'.`,Te||Y)}e.assertNotNode=Y;function ft(L,se,fe,Te){W(1,"assertOptionalNode")&&E(se===void 0||L===void 0||se(L),fe||"Unexpected node.",()=>`Node ${Ot(L?.kind)} did not pass test '${hn(se)}'.`,Te||ft)}e.assertOptionalNode=ft;function nr(L,se,fe,Te){W(1,"assertOptionalToken")&&E(se===void 0||L===void 0||L.kind===se,fe||"Unexpected node.",()=>`Node ${Ot(L?.kind)} was not a '${Ot(se)}' token.`,Te||nr)}e.assertOptionalToken=nr;function mn(L,se,fe){W(1,"assertMissingNode")&&E(L===void 0,se||"Unexpected node.",()=>`Node ${Ot(L.kind)} was unexpected'.`,fe||mn)}e.assertMissingNode=mn;function rr(L){}e.type=rr;function hn(L){if(typeof L!="function")return"";if(Dr(L,"name"))return L.name;{let se=Function.prototype.toString.call(L),fe=/^function\s+([\w$]+)\s*\(/.exec(se);return fe?fe[1]:""}}e.getFunctionName=hn;function Dn(L){return`{ name: ${l_(L.escapedName)}; flags: ${ot(L.flags)}; declarations: ${Np(L.declarations,se=>Ot(se.kind))} }`}e.formatSymbol=Dn;function We(L=0,se,fe){let Te=Ir(se);if(L===0)return Te.length>0&&Te[0][0]===0?Te[0][1]:"0";if(fe){let He=[],Qe=L;for(let[st,Ct]of Te){if(st>L)break;st!==0&&st&L&&(He.push(Ct),Qe&=~st)}if(Qe===0)return He.join("|")}else for(let[He,Qe]of Te)if(He===L)return Qe;return L.toString()}e.formatEnum=We;let ir=new Map;function Ir(L){let se=ir.get(L);if(se)return se;let fe=[];for(let He in L){let Qe=L[He];typeof Qe=="number"&&fe.push([Qe,He])}let Te=yy(fe,(He,Qe)=>wm(He[0],Qe[0]));return ir.set(L,Te),Te}function Ot(L){return We(L,Ae,!1)}e.formatSyntaxKind=Ot;function Bn(L){return We(L,Dm,!1)}e.formatSnippetKind=Bn;function Pn(L){return We(L,Pr,!1)}e.formatScriptKind=Pn;function Mt(L){return We(L,sn,!0)}e.formatNodeFlags=Mt;function ht(L){return We(L,Em,!0)}e.formatNodeCheckFlags=ht;function $e(L){return We(L,Kp,!0)}e.formatModifierFlags=$e;function qn(L){return We(L,Cm,!0)}e.formatTransformFlags=qn;function $t(L){return We(L,Pm,!0)}e.formatEmitFlags=$t;function ot(L){return We(L,Zp,!0)}e.formatSymbolFlags=ot;function at(L){return We(L,en,!0)}e.formatTypeFlags=at;function Bt(L){return We(L,Am,!0)}e.formatSignatureFlags=Bt;function Lt(L){return We(L,ef,!0)}e.formatObjectFlags=Lt;function ct(L){return We(L,Mp,!0)}e.formatFlowFlags=ct;function ar(L){return We(L,km,!0)}e.formatRelationComparisonResult=ar;function dt(L){return We(L,CheckMode,!0)}e.formatCheckMode=dt;function yn(L){return We(L,SignatureCheckMode,!0)}e.formatSignatureCheckMode=yn;function yt(L){return We(L,TypeFacts,!0)}e.formatTypeFacts=yt;let _n=!1,tt;function qt(L){"__debugFlowFlags"in L||Object.defineProperties(L,{__tsDebuggerDisplay:{value(){let se=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",fe=this.flags&-2048;return`${se}${fe?` (${ct(fe)})`:""}`}},__debugFlowFlags:{get(){return We(this.flags,Mp,!0)}},__debugToString:{value(){return yr(this)}}})}function tn(L){return _n&&(typeof Object.setPrototypeOf=="function"?(tt||(tt=Object.create(Object.prototype),qt(tt)),Object.setPrototypeOf(L,tt)):qt(L)),L}e.attachFlowNodeDebugInfo=tn;let sr;function mr(L){"__tsDebuggerDisplay"in L||Object.defineProperties(L,{__tsDebuggerDisplay:{value(se){return se=String(se).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]"),`NodeArray ${se}`}}})}function hr(L){_n&&(typeof Object.setPrototypeOf=="function"?(sr||(sr=Object.create(Array.prototype),mr(sr)),Object.setPrototypeOf(L,sr)):mr(L))}e.attachNodeArrayDebugInfo=hr;function Fn(){if(_n)return;let L=new WeakMap,se=new WeakMap;Object.defineProperties(Et.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let Te=this.flags&33554432?"TransientSymbol":"Symbol",He=this.flags&-33554433;return`${Te} '${jp(this)}'${He?` (${ot(He)})`:""}`}},__debugFlags:{get(){return ot(this.flags)}}}),Object.defineProperties(Et.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let Te=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",He=this.flags&524288?this.objectFlags&-1344:0;return`${Te}${this.symbol?` '${jp(this.symbol)}'`:""}${He?` (${Lt(He)})`:""}`}},__debugFlags:{get(){return at(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?Lt(this.objectFlags):""}},__debugTypeToString:{value(){let Te=L.get(this);return Te===void 0&&(Te=this.checker.typeToString(this),L.set(this,Te)),Te}}}),Object.defineProperties(Et.getSignatureConstructor().prototype,{__debugFlags:{get(){return Bt(this.flags)}},__debugSignatureToString:{value(){var Te;return(Te=this.checker)==null?void 0:Te.signatureToString(this)}}});let fe=[Et.getNodeConstructor(),Et.getIdentifierConstructor(),Et.getTokenConstructor(),Et.getSourceFileConstructor()];for(let Te of fe)Dr(Te.prototype,"__debugKind")||Object.defineProperties(Te.prototype,{__tsDebuggerDisplay:{value(){return`${Ua(this)?"GeneratedIdentifier":Ke(this)?`Identifier '${An(this)}'`:gi(this)?`PrivateIdentifier '${An(this)}'`:vi(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:aa(this)?`NumericLiteral ${this.text}`:E1(this)?`BigIntLiteral ${this.text}n`:Af(this)?"TypeParameterDeclaration":m_(this)?"ParameterDeclaration":Cf(this)?"ConstructorDeclaration":Tl(this)?"GetAccessorDeclaration":y_(this)?"SetAccessorDeclaration":N1(this)?"CallSignatureDeclaration":I1(this)?"ConstructSignatureDeclaration":Df(this)?"IndexSignatureDeclaration":O1(this)?"TypePredicateNode":Pf(this)?"TypeReferenceNode":Nf(this)?"FunctionTypeNode":If(this)?"ConstructorTypeNode":Wb(this)?"TypeQueryNode":M1(this)?"TypeLiteralNode":Gb(this)?"ArrayTypeNode":Yb(this)?"TupleTypeNode":Hb(this)?"OptionalTypeNode":Xb(this)?"RestTypeNode":J1(this)?"UnionTypeNode":j1(this)?"IntersectionTypeNode":$b(this)?"ConditionalTypeNode":Qb(this)?"InferTypeNode":R1(this)?"ParenthesizedTypeNode":Kb(this)?"ThisTypeNode":U1(this)?"TypeOperatorNode":Zb(this)?"IndexedAccessTypeNode":B1(this)?"MappedTypeNode":e6(this)?"LiteralTypeNode":L1(this)?"NamedTupleMember":t6(this)?"ImportTypeNode":Ot(this.kind)}${this.flags?` (${Mt(this.flags)})`:""}`}},__debugKind:{get(){return Ot(this.kind)}},__debugNodeFlags:{get(){return Mt(this.flags)}},__debugModifierFlags:{get(){return $e(K2(this))}},__debugTransformFlags:{get(){return qn(this.transformFlags)}},__debugIsParseTreeNode:{get(){return gl(this)}},__debugEmitFlags:{get(){return $t(za(this))}},__debugGetText:{value(He){if(Ja(this))return"";let Qe=se.get(this);if(Qe===void 0){let st=bg(this),Ct=st&&hi(st);Qe=Ct?Md(Ct,st,He):"",se.set(this,Qe)}return Qe}}});_n=!0}e.enableDebugInfo=Fn;function zn(L){let se=L&7,fe=se===0?"in out":se===3?"[bivariant]":se===2?"in":se===1?"out":se===4?"[independent]":"";return L&8?fe+=" (unmeasurable)":L&16&&(fe+=" (unreliable)"),fe}e.formatVariance=zn;class Or{__debugToString(){var se;switch(this.kind){case 3:return((se=this.debugInfo)==null?void 0:se.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return gd(this.sources,this.targets||Np(this.sources,()=>"any"),(fe,Te)=>`${fe.__debugTypeToString()} -> ${typeof Te=="string"?Te:Te.__debugTypeToString()}`).join(", ");case 2:return gd(this.sources,this.targets,(fe,Te)=>`${fe.__debugTypeToString()} -> ${Te().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` +`).join(` + `)} +m2: ${this.mapper2.__debugToString().split(` +`).join(` + `)}`;default:return Oe(this)}}}e.DebugTypeMapper=Or;function Vn(L){return e.isDebugging?Object.setPrototypeOf(L,Or.prototype):L}e.attachDebugPrototypeIfDebug=Vn;function Ce(L){return console.log(yr(L))}e.printControlFlowGraph=Ce;function yr(L){let se=-1;function fe(u){return u.id||(u.id=se,se--),u.id}let Te;(u=>{u.lr="\u2500",u.ud="\u2502",u.dr="\u256D",u.dl="\u256E",u.ul="\u256F",u.ur="\u2570",u.udr="\u251C",u.udl="\u2524",u.dlr="\u252C",u.ulr="\u2534",u.udlr="\u256B"})(Te||(Te={}));let He;(u=>{u[u.None=0]="None",u[u.Up=1]="Up",u[u.Down=2]="Down",u[u.Left=4]="Left",u[u.Right=8]="Right",u[u.UpDown=3]="UpDown",u[u.LeftRight=12]="LeftRight",u[u.UpLeft=5]="UpLeft",u[u.UpRight=9]="UpRight",u[u.DownLeft=6]="DownLeft",u[u.DownRight=10]="DownRight",u[u.UpDownLeft=7]="UpDownLeft",u[u.UpDownRight=11]="UpDownRight",u[u.UpLeftRight=13]="UpLeftRight",u[u.DownLeftRight=14]="DownLeftRight",u[u.UpDownLeftRight=15]="UpDownLeftRight",u[u.NoChildren=16]="NoChildren"})(He||(He={}));let Qe=2032,st=882,Ct=Object.create(null),Tt=[],lt=[],Mr=Se(L,new Set);for(let u of Tt)u.text=rt(u.flowNode,u.circular),me(u);let gr=Ve(Mr),Nn=Ze(gr);return Ye(Mr,0),on();function Wn(u){return!!(u.flags&128)}function wi(u){return!!(u.flags&12)&&!!u.antecedent}function U(u){return!!(u.flags&Qe)}function K(u){return!!(u.flags&st)}function Z(u){let Ie=[];for(let Me of u.edges)Me.source===u&&Ie.push(Me.target);return Ie}function xe(u){let Ie=[];for(let Me of u.edges)Me.target===u&&Ie.push(Me.source);return Ie}function Se(u,Ie){let Me=fe(u),B=Ct[Me];if(B&&Ie.has(u))return B.circular=!0,B={id:-1,flowNode:u,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},Tt.push(B),B;if(Ie.add(u),!B)if(Ct[Me]=B={id:Me,flowNode:u,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},Tt.push(B),wi(u))for(let Be of u.antecedent)we(B,Be,Ie);else U(u)&&we(B,u.antecedent,Ie);return Ie.delete(u),B}function we(u,Ie,Me){let B=Se(Ie,Me),Be={source:u,target:B};lt.push(Be),u.edges.push(Be),B.edges.push(Be)}function me(u){if(u.level!==-1)return u.level;let Ie=0;for(let Me of xe(u))Ie=Math.max(Ie,me(Me)+1);return u.level=Ie}function Ve(u){let Ie=0;for(let Me of Z(u))Ie=Math.max(Ie,Ve(Me));return Ie+1}function Ze(u){let Ie=M(Array(u),0);for(let Me of Tt)Ie[Me.level]=Math.max(Ie[Me.level],Me.text.length);return Ie}function Ye(u,Ie){if(u.lane===-1){u.lane=Ie,u.endLane=Ie;let Me=Z(u);for(let B=0;B0&&Ie++;let Be=Me[B];Ye(Be,Ie),Be.endLane>u.endLane&&(Ie=Be.endLane)}u.endLane=Ie}}function Ee(u){if(u&2)return"Start";if(u&4)return"Branch";if(u&8)return"Loop";if(u&16)return"Assignment";if(u&32)return"True";if(u&64)return"False";if(u&128)return"SwitchClause";if(u&256)return"ArrayMutation";if(u&512)return"Call";if(u&1024)return"ReduceLabel";if(u&1)return"Unreachable";throw new Error}function gn(u){let Ie=hi(u);return Md(Ie,u,!1)}function rt(u,Ie){let Me=Ee(u.flags);if(Ie&&(Me=`${Me}#${fe(u)}`),Wn(u)){let B=[],{switchStatement:Be,clauseStart:nn,clauseEnd:ze}=u.node;for(let Xe=nn;Xeze.lane)+1,Me=M(Array(Ie),""),B=Nn.map(()=>Array(Ie)),Be=Nn.map(()=>M(Array(Ie),0));for(let ze of Tt){B[ze.level][ze.lane]=ze;let Xe=Z(ze);for(let wt=0;wt0&&(Ft|=1),wt0&&(Ft|=1),wt0?Be[ze-1][Xe]:0,wt=Xe>0?Be[ze][Xe-1]:0,Pt=Be[ze][Xe];Pt||(Dt&8&&(Pt|=12),wt&2&&(Pt|=3),Be[ze][Xe]=Pt)}for(let ze=0;ze0?u.repeat(Ie):"";let Me="";for(;Me.length{},jy=()=>{},ll,Ae=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.DeferKeyword=166]="DeferKeyword",e[e.QualifiedName=167]="QualifiedName",e[e.ComputedPropertyName=168]="ComputedPropertyName",e[e.TypeParameter=169]="TypeParameter",e[e.Parameter=170]="Parameter",e[e.Decorator=171]="Decorator",e[e.PropertySignature=172]="PropertySignature",e[e.PropertyDeclaration=173]="PropertyDeclaration",e[e.MethodSignature=174]="MethodSignature",e[e.MethodDeclaration=175]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=176]="ClassStaticBlockDeclaration",e[e.Constructor=177]="Constructor",e[e.GetAccessor=178]="GetAccessor",e[e.SetAccessor=179]="SetAccessor",e[e.CallSignature=180]="CallSignature",e[e.ConstructSignature=181]="ConstructSignature",e[e.IndexSignature=182]="IndexSignature",e[e.TypePredicate=183]="TypePredicate",e[e.TypeReference=184]="TypeReference",e[e.FunctionType=185]="FunctionType",e[e.ConstructorType=186]="ConstructorType",e[e.TypeQuery=187]="TypeQuery",e[e.TypeLiteral=188]="TypeLiteral",e[e.ArrayType=189]="ArrayType",e[e.TupleType=190]="TupleType",e[e.OptionalType=191]="OptionalType",e[e.RestType=192]="RestType",e[e.UnionType=193]="UnionType",e[e.IntersectionType=194]="IntersectionType",e[e.ConditionalType=195]="ConditionalType",e[e.InferType=196]="InferType",e[e.ParenthesizedType=197]="ParenthesizedType",e[e.ThisType=198]="ThisType",e[e.TypeOperator=199]="TypeOperator",e[e.IndexedAccessType=200]="IndexedAccessType",e[e.MappedType=201]="MappedType",e[e.LiteralType=202]="LiteralType",e[e.NamedTupleMember=203]="NamedTupleMember",e[e.TemplateLiteralType=204]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=205]="TemplateLiteralTypeSpan",e[e.ImportType=206]="ImportType",e[e.ObjectBindingPattern=207]="ObjectBindingPattern",e[e.ArrayBindingPattern=208]="ArrayBindingPattern",e[e.BindingElement=209]="BindingElement",e[e.ArrayLiteralExpression=210]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=211]="ObjectLiteralExpression",e[e.PropertyAccessExpression=212]="PropertyAccessExpression",e[e.ElementAccessExpression=213]="ElementAccessExpression",e[e.CallExpression=214]="CallExpression",e[e.NewExpression=215]="NewExpression",e[e.TaggedTemplateExpression=216]="TaggedTemplateExpression",e[e.TypeAssertionExpression=217]="TypeAssertionExpression",e[e.ParenthesizedExpression=218]="ParenthesizedExpression",e[e.FunctionExpression=219]="FunctionExpression",e[e.ArrowFunction=220]="ArrowFunction",e[e.DeleteExpression=221]="DeleteExpression",e[e.TypeOfExpression=222]="TypeOfExpression",e[e.VoidExpression=223]="VoidExpression",e[e.AwaitExpression=224]="AwaitExpression",e[e.PrefixUnaryExpression=225]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=226]="PostfixUnaryExpression",e[e.BinaryExpression=227]="BinaryExpression",e[e.ConditionalExpression=228]="ConditionalExpression",e[e.TemplateExpression=229]="TemplateExpression",e[e.YieldExpression=230]="YieldExpression",e[e.SpreadElement=231]="SpreadElement",e[e.ClassExpression=232]="ClassExpression",e[e.OmittedExpression=233]="OmittedExpression",e[e.ExpressionWithTypeArguments=234]="ExpressionWithTypeArguments",e[e.AsExpression=235]="AsExpression",e[e.NonNullExpression=236]="NonNullExpression",e[e.MetaProperty=237]="MetaProperty",e[e.SyntheticExpression=238]="SyntheticExpression",e[e.SatisfiesExpression=239]="SatisfiesExpression",e[e.TemplateSpan=240]="TemplateSpan",e[e.SemicolonClassElement=241]="SemicolonClassElement",e[e.Block=242]="Block",e[e.EmptyStatement=243]="EmptyStatement",e[e.VariableStatement=244]="VariableStatement",e[e.ExpressionStatement=245]="ExpressionStatement",e[e.IfStatement=246]="IfStatement",e[e.DoStatement=247]="DoStatement",e[e.WhileStatement=248]="WhileStatement",e[e.ForStatement=249]="ForStatement",e[e.ForInStatement=250]="ForInStatement",e[e.ForOfStatement=251]="ForOfStatement",e[e.ContinueStatement=252]="ContinueStatement",e[e.BreakStatement=253]="BreakStatement",e[e.ReturnStatement=254]="ReturnStatement",e[e.WithStatement=255]="WithStatement",e[e.SwitchStatement=256]="SwitchStatement",e[e.LabeledStatement=257]="LabeledStatement",e[e.ThrowStatement=258]="ThrowStatement",e[e.TryStatement=259]="TryStatement",e[e.DebuggerStatement=260]="DebuggerStatement",e[e.VariableDeclaration=261]="VariableDeclaration",e[e.VariableDeclarationList=262]="VariableDeclarationList",e[e.FunctionDeclaration=263]="FunctionDeclaration",e[e.ClassDeclaration=264]="ClassDeclaration",e[e.InterfaceDeclaration=265]="InterfaceDeclaration",e[e.TypeAliasDeclaration=266]="TypeAliasDeclaration",e[e.EnumDeclaration=267]="EnumDeclaration",e[e.ModuleDeclaration=268]="ModuleDeclaration",e[e.ModuleBlock=269]="ModuleBlock",e[e.CaseBlock=270]="CaseBlock",e[e.NamespaceExportDeclaration=271]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=272]="ImportEqualsDeclaration",e[e.ImportDeclaration=273]="ImportDeclaration",e[e.ImportClause=274]="ImportClause",e[e.NamespaceImport=275]="NamespaceImport",e[e.NamedImports=276]="NamedImports",e[e.ImportSpecifier=277]="ImportSpecifier",e[e.ExportAssignment=278]="ExportAssignment",e[e.ExportDeclaration=279]="ExportDeclaration",e[e.NamedExports=280]="NamedExports",e[e.NamespaceExport=281]="NamespaceExport",e[e.ExportSpecifier=282]="ExportSpecifier",e[e.MissingDeclaration=283]="MissingDeclaration",e[e.ExternalModuleReference=284]="ExternalModuleReference",e[e.JsxElement=285]="JsxElement",e[e.JsxSelfClosingElement=286]="JsxSelfClosingElement",e[e.JsxOpeningElement=287]="JsxOpeningElement",e[e.JsxClosingElement=288]="JsxClosingElement",e[e.JsxFragment=289]="JsxFragment",e[e.JsxOpeningFragment=290]="JsxOpeningFragment",e[e.JsxClosingFragment=291]="JsxClosingFragment",e[e.JsxAttribute=292]="JsxAttribute",e[e.JsxAttributes=293]="JsxAttributes",e[e.JsxSpreadAttribute=294]="JsxSpreadAttribute",e[e.JsxExpression=295]="JsxExpression",e[e.JsxNamespacedName=296]="JsxNamespacedName",e[e.CaseClause=297]="CaseClause",e[e.DefaultClause=298]="DefaultClause",e[e.HeritageClause=299]="HeritageClause",e[e.CatchClause=300]="CatchClause",e[e.ImportAttributes=301]="ImportAttributes",e[e.ImportAttribute=302]="ImportAttribute",e[e.AssertClause=301]="AssertClause",e[e.AssertEntry=302]="AssertEntry",e[e.ImportTypeAssertionContainer=303]="ImportTypeAssertionContainer",e[e.PropertyAssignment=304]="PropertyAssignment",e[e.ShorthandPropertyAssignment=305]="ShorthandPropertyAssignment",e[e.SpreadAssignment=306]="SpreadAssignment",e[e.EnumMember=307]="EnumMember",e[e.SourceFile=308]="SourceFile",e[e.Bundle=309]="Bundle",e[e.JSDocTypeExpression=310]="JSDocTypeExpression",e[e.JSDocNameReference=311]="JSDocNameReference",e[e.JSDocMemberName=312]="JSDocMemberName",e[e.JSDocAllType=313]="JSDocAllType",e[e.JSDocUnknownType=314]="JSDocUnknownType",e[e.JSDocNullableType=315]="JSDocNullableType",e[e.JSDocNonNullableType=316]="JSDocNonNullableType",e[e.JSDocOptionalType=317]="JSDocOptionalType",e[e.JSDocFunctionType=318]="JSDocFunctionType",e[e.JSDocVariadicType=319]="JSDocVariadicType",e[e.JSDocNamepathType=320]="JSDocNamepathType",e[e.JSDoc=321]="JSDoc",e[e.JSDocComment=321]="JSDocComment",e[e.JSDocText=322]="JSDocText",e[e.JSDocTypeLiteral=323]="JSDocTypeLiteral",e[e.JSDocSignature=324]="JSDocSignature",e[e.JSDocLink=325]="JSDocLink",e[e.JSDocLinkCode=326]="JSDocLinkCode",e[e.JSDocLinkPlain=327]="JSDocLinkPlain",e[e.JSDocTag=328]="JSDocTag",e[e.JSDocAugmentsTag=329]="JSDocAugmentsTag",e[e.JSDocImplementsTag=330]="JSDocImplementsTag",e[e.JSDocAuthorTag=331]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=332]="JSDocDeprecatedTag",e[e.JSDocClassTag=333]="JSDocClassTag",e[e.JSDocPublicTag=334]="JSDocPublicTag",e[e.JSDocPrivateTag=335]="JSDocPrivateTag",e[e.JSDocProtectedTag=336]="JSDocProtectedTag",e[e.JSDocReadonlyTag=337]="JSDocReadonlyTag",e[e.JSDocOverrideTag=338]="JSDocOverrideTag",e[e.JSDocCallbackTag=339]="JSDocCallbackTag",e[e.JSDocOverloadTag=340]="JSDocOverloadTag",e[e.JSDocEnumTag=341]="JSDocEnumTag",e[e.JSDocParameterTag=342]="JSDocParameterTag",e[e.JSDocReturnTag=343]="JSDocReturnTag",e[e.JSDocThisTag=344]="JSDocThisTag",e[e.JSDocTypeTag=345]="JSDocTypeTag",e[e.JSDocTemplateTag=346]="JSDocTemplateTag",e[e.JSDocTypedefTag=347]="JSDocTypedefTag",e[e.JSDocSeeTag=348]="JSDocSeeTag",e[e.JSDocPropertyTag=349]="JSDocPropertyTag",e[e.JSDocThrowsTag=350]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=351]="JSDocSatisfiesTag",e[e.JSDocImportTag=352]="JSDocImportTag",e[e.SyntaxList=353]="SyntaxList",e[e.NotEmittedStatement=354]="NotEmittedStatement",e[e.NotEmittedTypeElement=355]="NotEmittedTypeElement",e[e.PartiallyEmittedExpression=356]="PartiallyEmittedExpression",e[e.CommaListExpression=357]="CommaListExpression",e[e.SyntheticReferenceExpression=358]="SyntheticReferenceExpression",e[e.Count=359]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=166]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=183]="FirstTypeNode",e[e.LastTypeNode=206]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=166]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=244]="FirstStatement",e[e.LastStatement=260]="LastStatement",e[e.FirstNode=167]="FirstNode",e[e.FirstJSDocNode=310]="FirstJSDocNode",e[e.LastJSDocNode=352]="LastJSDocNode",e[e.FirstJSDocTagNode=328]="FirstJSDocTagNode",e[e.LastJSDocTagNode=352]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=166]="LastContextualKeyword",e))(Ae||{}),sn=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(sn||{}),Kp=(e=>(e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e))(Kp||{});var km=(e=>(e[e.None=0]="None",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e[e.ComplexityOverflow=32]="ComplexityOverflow",e[e.StackDepthOverflow=64]="StackDepthOverflow",e[e.Overflow=96]="Overflow",e))(km||{});var Mp=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(Mp||{});var Zp=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=-1]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(Zp||{});var Em=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e[e.PartiallyTypeChecked=8388608]="PartiallyTypeChecked",e[e.LazyFlags=539358128]="LazyFlags",e))(Em||{}),en=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.Reserved1=536870912]="Reserved1",e[e.Reserved2=1073741824]="Reserved2",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.IncludesError=1073741824]="IncludesError",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(en||{}),ef=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.SingleSignatureType=134217728]="SingleSignatureType",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e[e.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",e))(ef||{});var Am=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(Am||{});var Pr=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(Pr||{}),g_=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ES2023=10]="ES2023",e[e.ES2024=11]="ES2024",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(g_||{}),wl=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(wl||{});var Cn=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(Cn||{}),Cm=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(Cm||{}),Dm=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(Dm||{}),Pm=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(Pm||{});var $s={Classes:2,ForOf:2,Generators:2,Iteration:2,SpreadElements:2,RestElements:2,TaggedTemplates:2,DestructuringAssignment:2,BindingPatterns:2,ArrowFunctions:2,BlockScopedVariables:2,ObjectAssign:2,RegularExpressionFlagsUnicode:2,RegularExpressionFlagsSticky:2,Exponentiation:3,AsyncFunctions:4,ForAwaitOf:5,AsyncGenerators:5,AsyncIteration:5,ObjectSpreadRest:5,RegularExpressionFlagsDotAll:5,BindinglessCatch:6,BigInt:7,NullishCoalesce:7,OptionalChaining:7,LogicalAssignment:8,TopLevelAwait:9,ClassFields:9,PrivateNamesAndClassStaticBlocks:9,RegularExpressionFlagsHasIndices:9,ShebangComments:10,RegularExpressionFlagsUnicodeSets:11,UsingAndAwaitUsing:99,ClassAndClassElementDecorators:99};var Nm={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0},{name:"preserve",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},Ya=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(Ya||{});var Xr="/",Ry="\\",Td="://",Uy=/\\/g;function By(e){return e===47||e===92}function qy(e,t){return e.length>t.length&&Oy(e,t)}function tf(e){return e.length>0&&By(e.charCodeAt(e.length-1))}function xd(e){return e>=97&&e<=122||e>=65&&e<=90}function Fy(e,t){let a=e.charCodeAt(t);if(a===58)return t+1;if(a===37&&e.charCodeAt(t+1)===51){let _=e.charCodeAt(t+2);if(_===97||_===65)return t+3}return-1}function zy(e){if(!e)return 0;let t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;let _=e.indexOf(t===47?Xr:Ry,2);return _<0?e.length:_+1}if(xd(t)&&e.charCodeAt(1)===58){let _=e.charCodeAt(2);if(_===47||_===92)return 3;if(e.length===2)return 2}let a=e.indexOf(Td);if(a!==-1){let _=a+Td.length,f=e.indexOf(Xr,_);if(f!==-1){let h=e.slice(0,a),T=e.slice(_,f);if(h==="file"&&(T===""||T==="localhost")&&xd(e.charCodeAt(f+1))){let k=Fy(e,f+2);if(k!==-1){if(e.charCodeAt(k)===47)return~(k+1);if(k===e.length)return~k}}return~(f+1)}return~e.length}return 0}function o_(e){let t=zy(e);return t<0?~t:t}function Im(e,t,a){if(e=c_(e),o_(e)===e.length)return"";e=hl(e);let f=e.slice(Math.max(o_(e),e.lastIndexOf(Xr)+1)),h=t!==void 0&&a!==void 0?Om(f,t,a):void 0;return h?f.slice(0,f.length-h.length):f}function Sd(e,t,a){if(ml(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){let _=e.slice(e.length-t.length);if(a(_,t))return _}}function Vy(e,t,a){if(typeof t=="string")return Sd(e,t,a)||"";for(let _ of t){let f=Sd(e,_,a);if(f)return f}return""}function Om(e,t,a){if(t)return Vy(hl(e),t,a?Qp:Dy);let _=Im(e),f=_.lastIndexOf(".");return f>=0?_.substring(f):""}function c_(e){return e.includes("\\")?e.replace(Uy,Xr):e}function Wy(e,...t){e&&(e=c_(e));for(let a of t)a&&(a=c_(a),!e||o_(a)!==0?e=a:e=Lm(e)+a);return e}function Gy(e,t){let a=o_(e);a===0&&t?(e=Wy(t,e),a=o_(e)):e=c_(e);let _=Mm(e);if(_!==void 0)return _.length>a?hl(_):_;let f=e.length,h=e.substring(0,a),T,k=a,c=k,W=k,y=a!==0;for(;kc&&(T??(T=e.substring(0,c-1)),c=k);let E=e.indexOf(Xr,k+1);E===-1&&(E=f);let D=E-c;if(D===1&&e.charCodeAt(k)===46)T??(T=e.substring(0,W));else if(D===2&&e.charCodeAt(k)===46&&e.charCodeAt(k+1)===46)if(!y)T!==void 0?T+=T.length===a?"..":"/..":W=k+2;else if(T===void 0)W-2>=0?T=e.substring(0,Math.max(a,e.lastIndexOf(Xr,W-2))):T=e.substring(0,W);else{let R=T.lastIndexOf(Xr);R!==-1?T=T.substring(0,Math.max(a,R)):T=h,T.length===a&&(y=a!==0)}else T!==void 0?(T.length!==a&&(T+=Xr),y=!0,T+=e.substring(c,E)):(y=!0,W=E);k=E+1}return T??(f>a?hl(e):e)}function Yy(e){e=c_(e);let t=Mm(e);return t!==void 0?t:(t=Gy(e,""),t&&tf(e)?Lm(t):t)}function Mm(e){if(!wd.test(e))return e;let t=e.replace(/\/\.\//g,"/");if(t.startsWith("./")&&(t=t.slice(2)),t!==e&&(e=t,!wd.test(e)))return e}function hl(e){return tf(e)?e.substr(0,e.length-1):e}function Lm(e){return tf(e)?e:e+Xr}var wd=/\/\/|(?:^|\/)\.\.?(?:$|\/)/;function r(e,t,a,_,f,h,T){return{code:e,category:t,key:a,message:_,reportsUnnecessary:f,elidedInCompatabilityPyramid:h,reportsDeprecated:T}}var A={Unterminated_string_literal:r(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:r(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:r(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:r(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:r(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:r(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:r(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:r(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:r(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:r(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:r(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:r(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:r(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:r(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:r(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:r(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:r(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:r(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:r(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:r(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:r(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:r(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:r(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:r(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:r(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:r(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:r(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:r(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:r(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:r(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:r(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:r(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:r(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:r(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:r(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:r(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:r(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:r(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:r(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:r(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:r(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:r(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055","Type '{0}' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:r(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:r(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:r(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:r(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:r(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:r(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:r(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:r(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:r(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:r(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:r(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:r(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:r(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:r(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:r(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:r(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:r(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:r(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:r(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:r(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:r(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:r(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:r(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:r(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:r(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:r(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:r(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:r(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:r(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:r(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:r(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:r(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:r(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:r(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:r(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:r(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:r(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:r(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:r(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:r(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:r(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:r(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:r(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:r(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:r(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:r(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:r(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:r(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:r(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:r(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:r(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:r(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:r(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:r(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:r(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:r(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:r(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:r(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:r(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:r(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:r(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:r(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:r(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:r(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:r(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:r(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:r(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:r(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:r(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:r(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:r(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:r(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:r(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),_0_declarations_must_be_initialized:r(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:r(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:r(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:r(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:r(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:r(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:r(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:r(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:r(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:r(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:r(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:r(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:r(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:r(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:r(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:r(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:r(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:r(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:r(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:r(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:r(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:r(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:r(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:r(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:r(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:r(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:r(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:r(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:r(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:r(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:r(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:r(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:r(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:r(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:r(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:r(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:r(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:r(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:r(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:r(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:r(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:r(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:r(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202",`Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:r(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:r(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:r(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:r(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:r(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:r(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:r(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:r(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:r(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:r(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:r(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:r(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:r(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:r(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:r(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:r(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:r(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:r(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:r(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:r(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:r(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:r(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:r(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:r(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:r(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:r(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:r(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:r(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:r(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:r(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:r(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:r(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:r(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:r(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:r(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:r(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:r(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:r(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:r(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:r(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:r(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:r(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5:r(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:r(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:r(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:r(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:r(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:r(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:r(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:r(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:r(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:r(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:r(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:r(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:r(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:r(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:r(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:r(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:r(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:r(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:r(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:r(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:r(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:r(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:r(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:r(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:r(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:r(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:r(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:r(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:r(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:r(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:r(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:r(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:r(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:r(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:r(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax:r(1286,1,"ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_1286","ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:r(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:r(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:r(1289,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:r(1290,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:r(1291,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:r(1292,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve:r(1293,1,"ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293","ECMAScript module syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'."),This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled:r(1294,1,"This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294","This syntax is not allowed when 'erasableSyntaxOnly' is enabled."),ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjust_the_type_field_in_the_nearest_package_json_to_make_this_file_an_ECMAScript_module_or_adjust_your_verbatimModuleSyntax_module_and_moduleResolution_settings_in_TypeScript:r(1295,1,"ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjus_1295","ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'. Adjust the 'type' field in the nearest 'package.json' to make this file an ECMAScript module, or adjust your 'verbatimModuleSyntax', 'module', and 'moduleResolution' settings in TypeScript."),with_statements_are_not_allowed_in_an_async_function_block:r(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:r(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:r(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:r(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:r(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:r(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:r(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:r(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:r(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:r(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:r(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:r(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:r(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:r(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_node20_or_nodenext:r(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', 'node20', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_node20_nodenext_or_preserve:r(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'node18', 'node20', 'nodenext', or 'preserve'."),Argument_of_dynamic_import_cannot_be_spread_element:r(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:r(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:r(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:r(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:r(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:r(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:r(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:r(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:r(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:r(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:r(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:r(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:r(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:r(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:r(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:r(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_node18_node20_or_nodenext:r(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', or 'nodenext'."),A_label_is_not_allowed_here:r(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:r(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:r(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:r(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:r(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:r(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:r(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:r(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:r(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:r(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:r(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:r(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:r(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:r(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:r(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:r(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:r(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:r(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:r(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:r(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:r(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:r(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:r(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:r(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:r(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:r(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:r(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:r(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:r(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:r(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:r(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:r(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:r(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:r(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:r(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:r(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:r(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:r(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:r(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:r(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:r(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:r(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:r(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:r(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:r(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:r(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:r(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:r(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:r(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:r(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:r(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:r(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:r(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:r(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:r(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:r(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:r(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:r(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:r(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:r(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:r(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:r(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:r(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:r(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:r(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:r(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:r(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:r(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:r(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:r(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:r(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:r(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:r(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:r(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:r(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:r(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:r(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:r(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:r(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:r(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:r(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:r(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:r(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:r(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:r(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:r(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:r(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:r(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:r(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:r(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:r(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:r(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:r(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:r(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:r(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:r(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_should_be_either_require_or_import:r(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:r(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:r(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:r(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:r(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:r(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",`File is ECMAScript module because '{0}' has field "type" with value "module"`),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:r(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",`File is CommonJS module because '{0}' has field "type" whose value is not "module"`),File_is_CommonJS_module_because_0_does_not_have_field_type:r(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460",`File is CommonJS module because '{0}' does not have field "type"`),File_is_CommonJS_module_because_package_json_was_not_found:r(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:r(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:r(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:r(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:r(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:r(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:r(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:r(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:r(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:r(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:r(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:r(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:r(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479",`The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("{0}")' call instead.`),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:r(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:r(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481",`To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field \`"type": "module"\` to '{1}'.`),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:r(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:r(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:r(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:r(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:r(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:r(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:r(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:r(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:r(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:r(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:r(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:r(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:r(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:r(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:r(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator:r(1497,1,"Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497","Expression must be enclosed in parentheses to be used as a decorator."),Invalid_syntax_in_decorator:r(1498,1,"Invalid_syntax_in_decorator_1498","Invalid syntax in decorator."),Unknown_regular_expression_flag:r(1499,1,"Unknown_regular_expression_flag_1499","Unknown regular expression flag."),Duplicate_regular_expression_flag:r(1500,1,"Duplicate_regular_expression_flag_1500","Duplicate regular expression flag."),This_regular_expression_flag_is_only_available_when_targeting_0_or_later:r(1501,1,"This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501","This regular expression flag is only available when targeting '{0}' or later."),The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously:r(1502,1,"The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502","The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously."),Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later:r(1503,1,"Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503","Named capturing groups are only available when targeting 'ES2018' or later."),Subpattern_flags_must_be_present_when_there_is_a_minus_sign:r(1504,1,"Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504","Subpattern flags must be present when there is a minus sign."),Incomplete_quantifier_Digit_expected:r(1505,1,"Incomplete_quantifier_Digit_expected_1505","Incomplete quantifier. Digit expected."),Numbers_out_of_order_in_quantifier:r(1506,1,"Numbers_out_of_order_in_quantifier_1506","Numbers out of order in quantifier."),There_is_nothing_available_for_repetition:r(1507,1,"There_is_nothing_available_for_repetition_1507","There is nothing available for repetition."),Unexpected_0_Did_you_mean_to_escape_it_with_backslash:r(1508,1,"Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508","Unexpected '{0}'. Did you mean to escape it with backslash?"),This_regular_expression_flag_cannot_be_toggled_within_a_subpattern:r(1509,1,"This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509","This regular expression flag cannot be toggled within a subpattern."),k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets:r(1510,1,"k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510","'\\k' must be followed by a capturing group name enclosed in angle brackets."),q_is_only_available_inside_character_class:r(1511,1,"q_is_only_available_inside_character_class_1511","'\\q' is only available inside character class."),c_must_be_followed_by_an_ASCII_letter:r(1512,1,"c_must_be_followed_by_an_ASCII_letter_1512","'\\c' must be followed by an ASCII letter."),Undetermined_character_escape:r(1513,1,"Undetermined_character_escape_1513","Undetermined character escape."),Expected_a_capturing_group_name:r(1514,1,"Expected_a_capturing_group_name_1514","Expected a capturing group name."),Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other:r(1515,1,"Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515","Named capturing groups with the same name must be mutually exclusive to each other."),A_character_class_range_must_not_be_bounded_by_another_character_class:r(1516,1,"A_character_class_range_must_not_be_bounded_by_another_character_class_1516","A character class range must not be bounded by another character class."),Range_out_of_order_in_character_class:r(1517,1,"Range_out_of_order_in_character_class_1517","Range out of order in character class."),Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class:r(1518,1,"Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518","Anything that would possibly match more than a single character is invalid inside a negated character class."),Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead:r(1519,1,"Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519","Operators must not be mixed within a character class. Wrap it in a nested class instead."),Expected_a_class_set_operand:r(1520,1,"Expected_a_class_set_operand_1520","Expected a class set operand."),q_must_be_followed_by_string_alternatives_enclosed_in_braces:r(1521,1,"q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521","'\\q' must be followed by string alternatives enclosed in braces."),A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash:r(1522,1,"A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522","A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash?"),Expected_a_Unicode_property_name:r(1523,1,"Expected_a_Unicode_property_name_1523","Expected a Unicode property name."),Unknown_Unicode_property_name:r(1524,1,"Unknown_Unicode_property_name_1524","Unknown Unicode property name."),Expected_a_Unicode_property_value:r(1525,1,"Expected_a_Unicode_property_value_1525","Expected a Unicode property value."),Unknown_Unicode_property_value:r(1526,1,"Unknown_Unicode_property_value_1526","Unknown Unicode property value."),Expected_a_Unicode_property_name_or_value:r(1527,1,"Expected_a_Unicode_property_name_or_value_1527","Expected a Unicode property name or value."),Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set:r(1528,1,"Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528","Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set."),Unknown_Unicode_property_name_or_value:r(1529,1,"Unknown_Unicode_property_name_or_value_1529","Unknown Unicode property name or value."),Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:r(1530,1,"Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530","Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces:r(1531,1,"_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531","'\\{0}' must be followed by a Unicode property value expression enclosed in braces."),There_is_no_capturing_group_named_0_in_this_regular_expression:r(1532,1,"There_is_no_capturing_group_named_0_in_this_regular_expression_1532","There is no capturing group named '{0}' in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression:r(1533,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533","This backreference refers to a group that does not exist. There are only {0} capturing groups in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression:r(1534,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534","This backreference refers to a group that does not exist. There are no capturing groups in this regular expression."),This_character_cannot_be_escaped_in_a_regular_expression:r(1535,1,"This_character_cannot_be_escaped_in_a_regular_expression_1535","This character cannot be escaped in a regular expression."),Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead:r(1536,1,"Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536","Octal escape sequences and backreferences are not allowed in a character class. If this was intended as an escape sequence, use the syntax '{0}' instead."),Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class:r(1537,1,"Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537","Decimal escape sequences and backreferences are not allowed in a character class."),Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:r(1538,1,"Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538","Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),A_bigint_literal_cannot_be_used_as_a_property_name:r(1539,1,"A_bigint_literal_cannot_be_used_as_a_property_name_1539","A 'bigint' literal cannot be used as a property name."),A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead:r(1540,2,"A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540","A 'namespace' declaration should not be declared using the 'module' keyword. Please use the 'namespace' keyword instead.",void 0,void 0,!0),Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:r(1541,1,"Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541","Type-only import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:r(1542,1,"Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542","Type import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0:r(1543,1,"Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543",`Importing a JSON file into an ECMAScript module requires a 'type: "json"' import attribute when 'module' is set to '{0}'.`),Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0:r(1544,1,"Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544","Named imports from a JSON file into an ECMAScript module are not allowed when 'module' is set to '{0}'."),using_declarations_are_not_allowed_in_ambient_contexts:r(1545,1,"using_declarations_are_not_allowed_in_ambient_contexts_1545","'using' declarations are not allowed in ambient contexts."),await_using_declarations_are_not_allowed_in_ambient_contexts:r(1546,1,"await_using_declarations_are_not_allowed_in_ambient_contexts_1546","'await using' declarations are not allowed in ambient contexts."),The_types_of_0_are_incompatible_between_these_types:r(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:r(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:r(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:r(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:r(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:r(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:r(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:r(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:r(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:r(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:r(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:r(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:r(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:r(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:r(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:r(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:r(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:r(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:r(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:r(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:r(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:r(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:r(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:r(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:r(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:r(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:r(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:r(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:r(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:r(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:r(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:r(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:r(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:r(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:r(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:r(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:r(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:r(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:r(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:r(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:r(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:r(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:r(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:r(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:r(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:r(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_a_static_property_initializer:r(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:r(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:r(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:r(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:r(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:r(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:r(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:r(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:r(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:r(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:r(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:r(2346,1,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:r(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:r(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:r(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:r(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:r(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:r(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:r(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:r(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value:r(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:r(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:r(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:r(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:r(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:r(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:r(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:r(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:r(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:r(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:r(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:r(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:r(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:r(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:r(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:r(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:r(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:r(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:r(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:r(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:r(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:r(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:r(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:r(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:r(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:r(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:r(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:r(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:r(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:r(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:r(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:r(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:r(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:r(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:r(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:r(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:r(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:r(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:r(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:r(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:r(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:r(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:r(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:r(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:r(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:r(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:r(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:r(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:r(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:r(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:r(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:r(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:r(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:r(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:r(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:r(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:r(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:r(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:r(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:r(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:r(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:r(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:r(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:r(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:r(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:r(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:r(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:r(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:r(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:r(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:r(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:r(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:r(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:r(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:r(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:r(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:r(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:r(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:r(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:r(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:r(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:r(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:r(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:r(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:r(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:r(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:r(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:r(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:r(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:r(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:r(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:r(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:r(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:r(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:r(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:r(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:r(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:r(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:r(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:r(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:r(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:r(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:r(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:r(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:r(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:r(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:r(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:r(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:r(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:r(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:r(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:r(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:r(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:r(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:r(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:r(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:r(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:r(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:r(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:r(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:r(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:r(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:r(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:r(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:r(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression:r(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496","The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:r(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:r(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:r(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:r(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:r(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:r(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:r(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:r(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:r(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:r(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:r(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:r(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:r(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:r(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:r(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:r(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:r(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:r(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:r(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member {1} from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:r(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:r(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:r(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:r(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:r(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method:r(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522","The 'arguments' object cannot be referenced in an async function or method in ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:r(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:r(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:r(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:r(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:r(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:r(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:r(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:r(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:r(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:r(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:r(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:r(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:r(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:r(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:r(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:r(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:r(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:r(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:r(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:r(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:r(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:r(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:r(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:r(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:r(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:r(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:r(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:r(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:r(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:r(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:r(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:r(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:r(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:r(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:r(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:r(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:r(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:r(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:r(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:r(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:r(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:r(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:r(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:r(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:r(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:r(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:r(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:r(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:r(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:r(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:r(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:r(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:r(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:r(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:r(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:r(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:r(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:r(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:r(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:r(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:r(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:r(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:r(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:r(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:r(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:r(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:r(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:r(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:r(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:r(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:r(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:r(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:r(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:r(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:r(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:r(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:r(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:r(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:r(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:r(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:r(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:r(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:r(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:r(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:r(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:r(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:r(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:r(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:r(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:r(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:r(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:r(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:r(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:r(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:r(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:r(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:r(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:r(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:r(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:r(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:r(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:r(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more:r(2650,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650","Non-abstract class expression is missing implementations for the following members of '{0}': {1} and {2} more."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:r(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:r(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:r(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2:r(2654,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2}."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more:r(2655,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2} and {3} more."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1:r(2656,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656","Non-abstract class expression is missing implementations for the following members of '{0}': {1}."),JSX_expressions_must_have_one_parent_element:r(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:r(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:r(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:r(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:r(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:r(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:r(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:r(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:r(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:r(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:r(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:r(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:r(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:r(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:r(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:r(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:r(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:r(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:r(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:r(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:r(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:r(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:r(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:r(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:r(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:r(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:r(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:r(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:r(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:r(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:r(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:r(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:r(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:r(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:r(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:r(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:r(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:r(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:r(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:r(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:r(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:r(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:r(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:r(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:r(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:r(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:r(2705,1,"An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705","An async function or method in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:r(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:r(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:r(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:r(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:r(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:r(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:r(2712,1,"A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712","A dynamic import call in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:r(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713",`Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}["{1}"]'?`),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:r(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:r(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:r(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:r(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:r(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:r(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:r(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:r(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:r(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:r(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:r(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0:r(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 and above with module {0}."),Cannot_find_lib_definition_for_0:r(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:r(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:r(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:r(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:r(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:r(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:r(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:r(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:r(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:r(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:r(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:r(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:r(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:r(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:r(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:r(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:r(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:r(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:r(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:r(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:r(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:r(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:r(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:r(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:r(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:r(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:r(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:r(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:r(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:r(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:r(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:r(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:r(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:r(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:r(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:r(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:r(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:r(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:r(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:r(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:r(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:r(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:r(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:r(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:r(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:r(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:r(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:r(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:r(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:r(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:r(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:r(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:r(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:r(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:r(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:r(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:r(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:r(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:r(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:r(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:r(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:r(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:r(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:r(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:r(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:r(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:r(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:r(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:r(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:r(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:r(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:r(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:r(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:r(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:r(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:r(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:r(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:r(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:r(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:r(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:r(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:r(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:r(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:r(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:r(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:r(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:r(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:r(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks:r(2815,1,"arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks_2815","'arguments' cannot be referenced in property initializers or class static initialization blocks."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:r(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:r(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:r(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:r(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:r(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve:r(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'node18', 'node20', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:r(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve:r(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'node18', 'node20', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1:r(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:r(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:r(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:r(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:r(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:r(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:r(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:r(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:r(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:r(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:r(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:r(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:r(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:r(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:r(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:r(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:r(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:r(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:r(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:r(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:r(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:r(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:r(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:r(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:r(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:r(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:r(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:r(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:r(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:r(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:r(2865,1,"Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865","Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled."),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:r(2866,1,"Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866","Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:r(2867,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:r(2868,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish:r(2869,1,"Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869","Right operand of ?? is unreachable because the left operand is never nullish."),This_binary_expression_is_never_nullish_Are_you_missing_parentheses:r(2870,1,"This_binary_expression_is_never_nullish_Are_you_missing_parentheses_2870","This binary expression is never nullish. Are you missing parentheses?"),This_expression_is_always_nullish:r(2871,1,"This_expression_is_always_nullish_2871","This expression is always nullish."),This_kind_of_expression_is_always_truthy:r(2872,1,"This_kind_of_expression_is_always_truthy_2872","This kind of expression is always truthy."),This_kind_of_expression_is_always_falsy:r(2873,1,"This_kind_of_expression_is_always_falsy_2873","This kind of expression is always falsy."),This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:r(2874,1,"This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874","This JSX tag requires '{0}' to be in scope, but it could not be found."),This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed:r(2875,1,"This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875","This JSX tag requires the module path '{0}' to exist, but none could be found. Make sure you have types for the appropriate package installed."),This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0:r(2876,1,"This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876",'This relative import path is unsafe to rewrite because it looks like a file name, but actually resolves to "{0}".'),This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path:r(2877,1,"This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877","This import uses a '{0}' extension to resolve to an input TypeScript file, but will not be rewritten during emit because it is not a relative path."),This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files:r(2878,1,"This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878","This import path is unsafe to rewrite because it resolves to another project, and the relative path between the projects' output files is not the same as the relative path between its input files."),Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:r(2879,1,"Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879","Using JSX fragments requires fragment factory '{0}' to be in scope, but it could not be found."),Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert:r(2880,1,"Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880","Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'."),This_expression_is_never_nullish:r(2881,1,"This_expression_is_never_nullish_2881","This expression is never nullish."),Import_declaration_0_is_using_private_name_1:r(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:r(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:r(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:r(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:r(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:r(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:r(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:r(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:r(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:r(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:r(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:r(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:r(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:r(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:r(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:r(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:r(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:r(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:r(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:r(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:r(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:r(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:r(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:r(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:r(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:r(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:r(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:r(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:r(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:r(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:r(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:r(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:r(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:r(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:r(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:r(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:r(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:r(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:r(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:r(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:r(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:r(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:r(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:r(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:r(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:r(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:r(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:r(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:r(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:r(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:r(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:r(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:r(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:r(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:r(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:r(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:r(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:r(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:r(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:r(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:r(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:r(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:r(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:r(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:r(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:r(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:r(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected:r(4094,1,"Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094","Property '{0}' of exported anonymous class type may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:r(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:r(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:r(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:r(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:r(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:r(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:r(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:r(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:r(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:r(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:r(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:r(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:r(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:r(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:r(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:r(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:r(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:r(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:r(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:r(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:r(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:r(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:r(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:r(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:r(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:r(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:r(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:r(4125,1,"Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125","Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:r(4126,1,"One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126","One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic:r(4127,1,"This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127","This member cannot have an 'override' modifier because its name is dynamic."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic:r(4128,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128","This member cannot have a JSDoc comment with an '@override' tag because its name is dynamic."),The_current_host_does_not_support_the_0_option:r(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:r(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:r(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:r(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Unknown_compiler_option_0:r(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:r(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:r(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:r(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:r(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:r(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:r(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:r(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:r(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:r(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:r(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:r(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:r(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:r(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:r(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:r(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:r(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:r(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:r(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:r(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:r(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:r(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:r(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:r(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:r(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd:r(5071,1,"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071","Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'."),Unknown_build_option_0:r(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:r(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:r(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:r(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:r(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:r(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:r(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:r(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:r(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:r(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:r(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:r(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:r(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:r(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:r(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:r(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:r(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:r(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:r(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:r(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:r(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:r(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later:r(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:r(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:r(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:r(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:r(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101",`Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),Option_0_has_been_removed_Please_remove_it_from_your_configuration:r(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:r(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:r(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:r(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:r(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:r(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107",`Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:r(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:r(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:r(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:r(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:r(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:r(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:r(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:r(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:r(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:r(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:r(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:r(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:r(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:r(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:r(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:r(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:r(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:r(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:r(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:r(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:r(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:r(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:r(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:r(6024,3,"options_6024","options"),file:r(6025,3,"file_6025","file"),Examples_Colon_0:r(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:r(6027,3,"Options_Colon_6027","Options:"),Version_0:r(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:r(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:r(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:r(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:r(6034,3,"KIND_6034","KIND"),FILE:r(6035,3,"FILE_6035","FILE"),VERSION:r(6036,3,"VERSION_6036","VERSION"),LOCATION:r(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:r(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:r(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:r(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:r(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:r(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:r(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:r(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:r(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:r(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unable_to_open_file_0:r(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:r(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:r(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:r(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:r(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:r(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:r(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:r(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:r(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:r(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:r(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:r(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:r(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:r(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:r(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:r(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:r(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:r(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:r(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:r(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:r(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:r(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:r(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:r(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:r(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:r(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:r(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:r(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:r(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:r(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:r(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:r(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:r(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:r(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:r(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:r(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:r(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:r(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:r(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:r(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:r(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:r(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:r(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:r(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:r(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:r(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:r(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:r(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:r(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:r(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:r(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:r(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:r(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:r(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:r(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:r(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:r(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:r(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:r(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:r(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:r(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:r(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:r(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:r(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:r(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:r(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:r(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:r(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:r(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:r(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:r(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:r(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:r(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:r(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:r(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:r(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:r(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:r(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:r(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:r(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:r(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:r(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:r(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:r(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:r(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:r(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:r(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:r(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:r(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:r(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:r(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:r(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:r(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:r(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:r(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:r(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:r(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:r(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:r(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:r(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:r(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:r(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:r(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:r(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:r(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:r(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:r(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:r(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:r(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5:r(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5'."),Enable_all_strict_type_checking_options:r(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:r(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:r(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:r(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:r(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:r(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:r(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:r(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:r(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:r(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:r(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:r(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:r(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:r(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:r(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:r(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:r(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:r(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:r(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:r(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:r(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:r(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:r(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:r(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:r(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:r(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:r(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:r(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:r(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:r(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:r(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:r(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:r(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:r(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:r(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:r(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:r(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:r(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:r(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:r(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:r(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:r(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:r(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:r(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:r(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:r(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:r(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:r(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:r(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:r(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:r(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:r(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:r(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:r(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:r(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:r(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:r(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:r(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:r(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:r(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:r(6244,3,"Modules_6244","Modules"),File_Management:r(6245,3,"File_Management_6245","File Management"),Emit:r(6246,3,"Emit_6246","Emit"),JavaScript_Support:r(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:r(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:r(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:r(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:r(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:r(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:r(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:r(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:r(6255,3,"Projects_6255","Projects"),Output_Formatting:r(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:r(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:r(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:r(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:r(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:r(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:r(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:r(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:r(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:r(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:r(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:r(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:r(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:r(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:r(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:r(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:r(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:r(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:r(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:r(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278",`There are types at '{0}', but this result could not be resolved when respecting package.json "exports". The '{1}' library may need to update its package.json or typings.`),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:r(6279,3,"Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279","Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:r(6280,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280","There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'."),package_json_has_a_peerDependencies_field:r(6281,3,"package_json_has_a_peerDependencies_field_6281","'package.json' has a 'peerDependencies' field."),Found_peerDependency_0_with_1_version:r(6282,3,"Found_peerDependency_0_with_1_version_6282","Found peerDependency '{0}' with '{1}' version."),Failed_to_find_peerDependency_0:r(6283,3,"Failed_to_find_peerDependency_0_6283","Failed to find peerDependency '{0}'."),File_Layout:r(6284,3,"File_Layout_6284","File Layout"),Environment_Settings:r(6285,3,"Environment_Settings_6285","Environment Settings"),See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule:r(6286,3,"See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule_6286","See also https://aka.ms/tsconfig/module"),For_nodejs_Colon:r(6287,3,"For_nodejs_Colon_6287","For nodejs:"),and_npm_install_D_types_Slashnode:r(6290,3,"and_npm_install_D_types_Slashnode_6290","and npm install -D @types/node"),Other_Outputs:r(6291,3,"Other_Outputs_6291","Other Outputs"),Stricter_Typechecking_Options:r(6292,3,"Stricter_Typechecking_Options_6292","Stricter Typechecking Options"),Style_Options:r(6293,3,"Style_Options_6293","Style Options"),Recommended_Options:r(6294,3,"Recommended_Options_6294","Recommended Options"),Enable_project_compilation:r(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:r(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:r(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:r(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306",`Referenced project '{0}' must have setting "composite": true.`),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:r(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Referenced_project_0_may_not_disable_emit:r(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:r(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:r(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:r(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:r(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:r(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:r(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:r(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:r(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:r(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:r(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:r(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:r(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:r(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:r(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:r(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:r(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:r(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:r(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:r(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:r(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:r(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:r(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:r(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:r(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:r(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:r(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:r(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:r(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:r(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:r(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:r(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:r(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:r(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:r(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:r(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:r(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:r(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:r(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:r(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:r(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:r(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:r(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:r(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:r(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:r(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:r(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:r(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:r(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:r(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:r(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:r(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:r(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:r(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:r(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:r(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:r(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:r(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:r(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:r(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:r(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:r(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors:r(6419,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors_6419","Project '{0}' is out of date because buildinfo file '{1}' indicates that program needs to report errors."),Project_0_is_out_of_date_because_1:r(6420,3,"Project_0_is_out_of_date_because_1_6420","Project '{0}' is out of date because {1}."),Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files:r(6421,3,"Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421","Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:r(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:r(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:r(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:r(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:r(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:r(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:r(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these_files:r(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:r(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:r(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:r(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:r(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:r(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:r(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:r(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:r(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:r(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:r(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:r(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:r(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:r(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:r(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:r(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:r(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:r(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:r(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:r(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:r(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:r(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:r(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:r(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:r(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:r(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:r(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:r(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:r(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:r(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:r(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:r(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:r(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:r(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:r(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:r(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:r(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:r(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:r(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Skip_building_downstream_projects_on_error_in_upstream_project:r(6640,3,"Skip_building_downstream_projects_on_error_in_upstream_project_6640","Skip building downstream projects on error in upstream project."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:r(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:r(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:r(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:r(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:r(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:r(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:r(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:r(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:r(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:r(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:r(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:r(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:r(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:r(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:r(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:r(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:r(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:r(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:r(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:r(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:r(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:r(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:r(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:r(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:r(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:r(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:r(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:r(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:r(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:r(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:r(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:r(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:r(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:r(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:r(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:r(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:r(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:r(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:r(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:r(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:r(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:r(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:r(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:r(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:r(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:r(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:r(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:r(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:r(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:r(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:r(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:r(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:r(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:r(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:r(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:r(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:r(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:r(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:r(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:r(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:r(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:r(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:r(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:r(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:r(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:r(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:r(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:r(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:r(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:r(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:r(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:r(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:r(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:r(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:r(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files:r(6719,3,"Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719","Require sufficient annotation on exports so other tools can trivially generate declaration files."),Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any:r(6720,3,"Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720","Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'."),Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript:r(6721,3,"Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721","Do not allow runtime constructs that are not part of ECMAScript."),Default_catch_clause_variables_as_unknown_instead_of_any:r(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:r(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported:r(6805,3,"Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805","Disable full type checking (only critical parse and emit errors will be reported)."),Check_side_effect_imports:r(6806,3,"Check_side_effect_imports_6806","Check side effect imports."),This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2:r(6807,1,"This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807","This operation can be simplified. This shift is identical to `{0} {1} {2}`."),Enable_lib_replacement:r(6808,3,"Enable_lib_replacement_6808","Enable lib replacement."),one_of_Colon:r(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:r(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:r(6902,3,"type_Colon_6902","type:"),default_Colon:r(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:r(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:r(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:r(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:r(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:r(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:r(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:r(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:r(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:r(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:r(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:r(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:r(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:r(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:r(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:r(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:r(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:r(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:r(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:r(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:r(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:r(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:r(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:r(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:r(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:r(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:r(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:r(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:r(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:r(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:r(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:r(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:r(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:r(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:r(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:r(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:r(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:r(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:r(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:r(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:r(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:r(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:r(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:r(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:r(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:r(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:r(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation:r(7025,1,"Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025","Generator implicitly has yield type '{0}'. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:r(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:r(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:r(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:r(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:r(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:r(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:r(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:r(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:r(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:r(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:r(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:r(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:r(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:r(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:r(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:r(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:r(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:r(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:r(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:r(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:r(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:r(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:r(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:r(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:r(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:r(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:r(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:r(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:r(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:r(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:r(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:r(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:r(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:r(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:r(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:r(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:r(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:r(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:r(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:r(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:r(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:r(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:r(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:r(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:r(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:r(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:r(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:r(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:r(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:r(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:r(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:r(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:r(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:r(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:r(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:r(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:r(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:r(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:r(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:r(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:r(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:r(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:r(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:r(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:r(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:r(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:r(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:r(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:r(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:r(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:r(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:r(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:r(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:r(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:r(9007,1,"Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007","Function must have an explicit return type annotation with --isolatedDeclarations."),Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:r(9008,1,"Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008","Method must have an explicit return type annotation with --isolatedDeclarations."),At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations:r(9009,1,"At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009","At least one accessor must have an explicit type annotation with --isolatedDeclarations."),Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations:r(9010,1,"Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010","Variable must have an explicit type annotation with --isolatedDeclarations."),Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations:r(9011,1,"Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011","Parameter must have an explicit type annotation with --isolatedDeclarations."),Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations:r(9012,1,"Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012","Property must have an explicit type annotation with --isolatedDeclarations."),Expression_type_can_t_be_inferred_with_isolatedDeclarations:r(9013,1,"Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013","Expression type can't be inferred with --isolatedDeclarations."),Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations:r(9014,1,"Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014","Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations."),Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations:r(9015,1,"Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015","Objects that contain spread assignments can't be inferred with --isolatedDeclarations."),Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations:r(9016,1,"Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016","Objects that contain shorthand properties can't be inferred with --isolatedDeclarations."),Only_const_arrays_can_be_inferred_with_isolatedDeclarations:r(9017,1,"Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017","Only const arrays can be inferred with --isolatedDeclarations."),Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations:r(9018,1,"Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018","Arrays with spread elements can't inferred with --isolatedDeclarations."),Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations:r(9019,1,"Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019","Binding elements can't be exported directly with --isolatedDeclarations."),Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations:r(9020,1,"Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020","Enum member initializers must be computable without references to external symbols with --isolatedDeclarations."),Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations:r(9021,1,"Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021","Extends clause can't contain an expression with --isolatedDeclarations."),Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations:r(9022,1,"Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022","Inference from class expressions is not supported with --isolatedDeclarations."),Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function:r(9023,1,"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023","Assigning properties to functions without declaring them is not supported with --isolatedDeclarations. Add an explicit declaration for the properties assigned to this function."),Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:r(9025,1,"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025","Declaration emit for this parameter requires implicitly adding undefined to its type. This is not supported with --isolatedDeclarations."),Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations:r(9026,1,"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026","Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations."),Add_a_type_annotation_to_the_variable_0:r(9027,1,"Add_a_type_annotation_to_the_variable_0_9027","Add a type annotation to the variable {0}."),Add_a_type_annotation_to_the_parameter_0:r(9028,1,"Add_a_type_annotation_to_the_parameter_0_9028","Add a type annotation to the parameter {0}."),Add_a_type_annotation_to_the_property_0:r(9029,1,"Add_a_type_annotation_to_the_property_0_9029","Add a type annotation to the property {0}."),Add_a_return_type_to_the_function_expression:r(9030,1,"Add_a_return_type_to_the_function_expression_9030","Add a return type to the function expression."),Add_a_return_type_to_the_function_declaration:r(9031,1,"Add_a_return_type_to_the_function_declaration_9031","Add a return type to the function declaration."),Add_a_return_type_to_the_get_accessor_declaration:r(9032,1,"Add_a_return_type_to_the_get_accessor_declaration_9032","Add a return type to the get accessor declaration."),Add_a_type_to_parameter_of_the_set_accessor_declaration:r(9033,1,"Add_a_type_to_parameter_of_the_set_accessor_declaration_9033","Add a type to parameter of the set accessor declaration."),Add_a_return_type_to_the_method:r(9034,1,"Add_a_return_type_to_the_method_9034","Add a return type to the method"),Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit:r(9035,1,"Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035","Add satisfies and a type assertion to this expression (satisfies T as T) to make the type explicit."),Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it:r(9036,1,"Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036","Move the expression in default export to a variable and add a type annotation to it."),Default_exports_can_t_be_inferred_with_isolatedDeclarations:r(9037,1,"Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037","Default exports can't be inferred with --isolatedDeclarations."),Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations:r(9038,1,"Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038","Computed property names on class or object literals cannot be inferred with --isolatedDeclarations."),Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations:r(9039,1,"Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039","Type containing private name '{0}' can't be used with --isolatedDeclarations."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:r(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:r(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:r(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:r(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:r(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:r(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:r(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:r(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:r(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:r(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:r(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:r(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:r(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:r(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:r(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:r(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:r(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:r(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:r(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:r(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Unicode_escape_sequence_cannot_appear_here:r(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:r(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:r(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:r(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:r(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:r(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:r(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:r(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:r(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:r(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:r(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:r(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:r(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:r(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:r(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:r(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:r(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:r(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:r(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:r(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:r(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:r(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:r(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:r(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:r(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:r(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:r(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:r(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:r(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:r(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:r(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:r(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:r(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:r(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:r(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:r(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:r(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:r(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:r(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:r(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:r(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:r(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:r(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:r(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:r(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:r(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:r(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:r(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:r(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:r(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:r(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:r(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:r(90055,3,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:r(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:r(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:r(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:r(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:r(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Update_modifiers_of_0:r(90061,3,"Update_modifiers_of_0_90061","Update modifiers of '{0}'"),Add_annotation_of_type_0:r(90062,3,"Add_annotation_of_type_0_90062","Add annotation of type '{0}'"),Add_return_type_0:r(90063,3,"Add_return_type_0_90063","Add return type '{0}'"),Extract_base_class_to_variable:r(90064,3,"Extract_base_class_to_variable_90064","Extract base class to variable"),Extract_default_export_to_variable:r(90065,3,"Extract_default_export_to_variable_90065","Extract default export to variable"),Extract_binding_expressions_to_variable:r(90066,3,"Extract_binding_expressions_to_variable_90066","Extract binding expressions to variable"),Add_all_missing_type_annotations:r(90067,3,"Add_all_missing_type_annotations_90067","Add all missing type annotations"),Add_satisfies_and_an_inline_type_assertion_with_0:r(90068,3,"Add_satisfies_and_an_inline_type_assertion_with_0_90068","Add satisfies and an inline type assertion with '{0}'"),Extract_to_variable_and_replace_with_0_as_typeof_0:r(90069,3,"Extract_to_variable_and_replace_with_0_as_typeof_0_90069","Extract to variable and replace with '{0} as typeof {0}'"),Mark_array_literal_as_const:r(90070,3,"Mark_array_literal_as_const_90070","Mark array literal as const"),Annotate_types_of_properties_expando_function_in_a_namespace:r(90071,3,"Annotate_types_of_properties_expando_function_in_a_namespace_90071","Annotate types of properties expando function in a namespace"),Convert_function_to_an_ES2015_class:r(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:r(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:r(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:r(95005,3,"Extract_function_95005","Extract function"),Extract_constant:r(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:r(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:r(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:r(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:r(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:r(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:r(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:r(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:r(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:r(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:r(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:r(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:r(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:r(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:r(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:r(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:r(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:r(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:r(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:r(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:r(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:r(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:r(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:r(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:r(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:r(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:r(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:r(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:r(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:r(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:r(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:r(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:r(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:r(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:r(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:r(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:r(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:r(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:r(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:r(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:r(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:r(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:r(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:r(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:r(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:r(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:r(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:r(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:r(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:r(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:r(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:r(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:r(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:r(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:r(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:r(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:r(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:r(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:r(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:r(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:r(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:r(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:r(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:r(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:r(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:r(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:r(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:r(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:r(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:r(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:r(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:r(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:r(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:r(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:r(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:r(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:r(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:r(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:r(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:r(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:r(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:r(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:r(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:r(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:r(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:r(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:r(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:r(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:r(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:r(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:r(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:r(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:r(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:r(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:r(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:r(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:r(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:r(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:r(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:r(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:r(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:r(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:r(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:r(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:r(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:r(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:r(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:r(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:r(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:r(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:r(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:r(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:r(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:r(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:r(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:r(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:r(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:r(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:r(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:r(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:r(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:r(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:r(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:r(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:r(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:r(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:r(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:r(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:r(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:r(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:r(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:r(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:r(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:r(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:r(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:r(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:r(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:r(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:r(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:r(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:r(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:r(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:r(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:r(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:r(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:r(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:r(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:r(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:r(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:r(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:r(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:r(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:r(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:r(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:r(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:r(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:r(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:r(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:r(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:r(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:r(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:r(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:r(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:r(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:r(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:r(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:r(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:r(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:r(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:r(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:r(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:r(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:r(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:r(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:r(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:r(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:r(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:r(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:r(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:r(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:r(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:r(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:r(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:r(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),Wrap_in_parentheses:r(95194,3,"Wrap_in_parentheses_95194","Wrap in parentheses"),Wrap_all_invalid_decorator_expressions_in_parentheses:r(95195,3,"Wrap_all_invalid_decorator_expressions_in_parentheses_95195","Wrap all invalid decorator expressions in parentheses"),Add_resolution_mode_import_attribute:r(95196,3,"Add_resolution_mode_import_attribute_95196","Add 'resolution-mode' import attribute"),Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it:r(95197,3,"Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197","Add 'resolution-mode' import attribute to all type-only imports that need it"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:r(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:r(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:r(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:r(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:r(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:r(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:r(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:r(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:r(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:r(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:r(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:r(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:r(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:r(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:r(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:r(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:r(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:r(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:r(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:r(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:r(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:r(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:r(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:r(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:r(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:r(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:r(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:r(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:r(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:r(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:r(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:r(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:r(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:r(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:r(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:r(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:r(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:r(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:r(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:r(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Its_type_0_is_not_a_valid_JSX_element_type:r(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:r(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block."),_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled:r(18055,1,"_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055","'{0}' has a string type, but must have syntactically recognizable string syntax when 'isolatedModules' is enabled."),Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled:r(18056,1,"Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056","Enum member following a non-literal numeric member must have an initializer when 'isolatedModules' is enabled."),String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020:r(18057,1,"String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057","String literal import and export names are not supported when the '--module' flag is set to 'es2015' or 'es2020'."),Default_imports_are_not_allowed_in_a_deferred_import:r(18058,1,"Default_imports_are_not_allowed_in_a_deferred_import_18058","Default imports are not allowed in a deferred import."),Named_imports_are_not_allowed_in_a_deferred_import:r(18059,1,"Named_imports_are_not_allowed_in_a_deferred_import_18059","Named imports are not allowed in a deferred import."),Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve:r(18060,1,"Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve_18060","Deferred imports are only supported when the '--module' flag is set to 'esnext' or 'preserve'."),_0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer:r(18061,1,"_0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer_18061","'{0}' is not a valid meta-property for keyword 'import'. Did you mean 'meta' or 'defer'?")};function St(e){return e>=80}function Hy(e){return e===32||St(e)}var nf={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,defer:166,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},Xy=new Map(Object.entries(nf)),Jm=new Map(Object.entries({...nf,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),jm=new Map([[100,1],[103,2],[105,4],[109,8],[115,16],[117,32],[118,64],[121,128]]),$y=new Map([[1,$s.RegularExpressionFlagsHasIndices],[16,$s.RegularExpressionFlagsDotAll],[32,$s.RegularExpressionFlagsUnicode],[64,$s.RegularExpressionFlagsUnicodeSets],[128,$s.RegularExpressionFlagsSticky]]),Qy=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],Ky=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],Zy=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2160,2183,2185,2190,2208,2249,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3165,3165,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3293,3294,3296,3297,3313,3314,3332,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5905,5919,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6988,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69248,69289,69296,69297,69376,69404,69415,69415,69424,69445,69488,69505,69552,69572,69600,69622,69635,69687,69745,69746,69749,69749,69763,69807,69840,69864,69891,69926,69956,69956,69959,69959,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70207,70208,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70753,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71488,71494,71680,71723,71840,71903,71935,71942,71945,71945,71948,71955,71957,71958,71960,71983,71999,71999,72001,72001,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72368,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73474,73474,73476,73488,73490,73523,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78913,78918,82944,83526,92160,92728,92736,92766,92784,92862,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,122624,122654,122661,122666,122928,122989,123136,123180,123191,123197,123214,123214,123536,123565,123584,123627,124112,124139,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743],eg=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2160,2183,2185,2190,2200,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2901,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3132,3140,3142,3144,3146,3149,3157,3158,3160,3162,3165,3165,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3293,3294,3296,3299,3302,3311,3313,3315,3328,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3457,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3790,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5909,5919,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6159,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6847,6862,6912,6988,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43047,43052,43052,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69248,69289,69291,69292,69296,69297,69373,69404,69415,69415,69424,69456,69488,69509,69552,69572,69600,69622,69632,69702,69734,69749,69759,69818,69826,69826,69840,69864,69872,69881,69888,69940,69942,69951,69956,69959,69968,70003,70006,70006,70016,70084,70089,70092,70094,70106,70108,70108,70144,70161,70163,70199,70206,70209,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70753,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71488,71494,71680,71738,71840,71913,71935,71942,71945,71945,71948,71955,71957,71958,71960,71989,71991,71992,71995,72003,72016,72025,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72368,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73472,73488,73490,73530,73534,73538,73552,73561,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78912,78933,82944,83526,92160,92728,92736,92766,92768,92777,92784,92862,92864,92873,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94180,94192,94193,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,118528,118573,118576,118598,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122624,122654,122661,122666,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,122928,122989,123023,123023,123136,123180,123184,123197,123200,123209,123214,123214,123536,123566,123584,123641,124112,124153,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,130032,130041,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743,917760,917999],tg=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,ng=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,rg=/@(?:see|link)/i;function yl(e,t){if(e=2?yl(e,Zy):yl(e,Qy)}function ag(e,t){return t>=2?yl(e,eg):yl(e,Ky)}function Rm(e){let t=[];return e.forEach((a,_)=>{t[a]=_}),t}var sg=Rm(Jm);function nt(e){return sg[e]}function Um(e){return Jm.get(e)}var s3=Rm(jm);function kd(e){return jm.get(e)}function Bm(e){let t=[],a=0,_=0;for(;a127&&kn(f)&&(t.push(_),_=a);break}}return t.push(_),t}function _g(e,t,a,_,f){(t<0||t>=e.length)&&(f?t=t<0?0:t>=e.length?e.length-1:t:q.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${_!==void 0?dy(e,Bm(_)):"unknown"}`));let h=e[t]+a;return f?h>e[t+1]?e[t+1]:typeof _=="string"&&h>_.length?_.length:h:(t=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function kn(e){return e===10||e===13||e===8232||e===8233}function fi(e){return e>=48&&e<=57}function Tp(e){return fi(e)||e>=65&&e<=70||e>=97&&e<=102}function rf(e){return e>=65&&e<=90||e>=97&&e<=122}function Fm(e){return rf(e)||fi(e)||e===95}function xp(e){return e>=48&&e<=55}function Cr(e,t,a,_,f){if(d_(t))return t;let h=!1;for(;;){let T=e.charCodeAt(t);switch(T){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,a)return t;h=!!f;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(_)break;if(e.charCodeAt(t+1)===47){for(t+=2;t127&&qa(T)){t++;continue}break}return t}}var ul=7;function $i(e,t){if(q.assert(t>=0),t===0||kn(e.charCodeAt(t-1))){let a=e.charCodeAt(t);if(t+ul=0&&a127&&qa(R)){G&&kn(R)&&(y=!0),a++;continue}break e}}return G&&(D=f(k,c,W,y,h,D)),D}function Wm(e,t,a,_){return kl(!1,e,t,!1,a,_)}function Gm(e,t,a,_){return kl(!1,e,t,!0,a,_)}function lg(e,t,a,_,f){return kl(!0,e,t,!1,a,_,f)}function ug(e,t,a,_,f){return kl(!0,e,t,!0,a,_,f)}function Ym(e,t,a,_,f,h=[]){return h.push({kind:a,pos:e,end:t,hasTrailingNewLine:_}),h}function Jp(e,t){return lg(e,t,Ym,void 0,void 0)}function pg(e,t){return ug(e,t,Ym,void 0,void 0)}function sf(e){let t=af.exec(e);if(t)return t[0]}function Zn(e,t){return rf(e)||e===36||e===95||e>127&&ig(e,t)}function Ar(e,t,a){return Fm(e)||e===36||(a===1?e===45||e===58:!1)||e>127&&ag(e,t)}function fg(e,t,a){let _=Qi(e,0);if(!Zn(_,t))return!1;for(let f=Vt(_);fy,getStartPos:()=>y,getTokenEnd:()=>c,getTextPos:()=>c,getToken:()=>E,getTokenStart:()=>G,getTokenPos:()=>G,getTokenText:()=>k.substring(G,c),getTokenValue:()=>D,hasUnicodeEscape:()=>(R&1024)!==0,hasExtendedUnicodeEscape:()=>(R&8)!==0,hasPrecedingLineBreak:()=>(R&1)!==0,hasPrecedingJSDocComment:()=>(R&2)!==0,hasPrecedingJSDocLeadingAsterisks:()=>(R&32768)!==0,isIdentifier:()=>E===80||E>118,isReservedWord:()=>E>=83&&E<=118,isUnterminated:()=>(R&4)!==0,getCommentDirectives:()=>ue,getNumericLiteralFlags:()=>R&25584,getTokenFlags:()=>R,reScanGreaterToken:ct,reScanAsteriskEqualsToken:ar,reScanSlashToken:dt,reScanTemplateToken:qt,reScanTemplateHeadOrNoSubstitutionTemplate:tn,scanJsxIdentifier:Or,scanJsxAttributeValue:Vn,reScanJsxAttributeValue:Ce,reScanJsxToken:sr,reScanLessThanToken:mr,reScanHashToken:hr,reScanQuestionToken:Fn,reScanInvalidIdentifier:Bt,scanJsxToken:zn,scanJsDocToken:L,scanJSDocCommentTextToken:yr,scan:ot,getText:Qe,clearCommentDirectives:st,setText:Ct,setScriptTarget:lt,setLanguageVariant:Mr,setScriptKind:gr,setJSDocParsingMode:Nn,setOnError:Tt,resetTokenState:Wn,setTextPos:Wn,setSkipJsDocLeadingAsterisks:wi,tryScan:He,lookAhead:Te,scanRange:fe};return q.isDebugging&&Object.defineProperty(O,"__debugShowCurrentPositionInText",{get:()=>{let U=O.getText();return U.slice(0,O.getTokenFullStart())+"\u2551"+U.slice(O.getTokenFullStart())}}),O;function ae(U){return Qi(k,U)}function Oe(U){return U>=0&&U=0&&U=65&&me<=70)me+=32;else if(!(me>=48&&me<=57||me>=97&&me<=102))break;xe.push(me),c++,we=!1}return xe.length=W){Z+=k.substring(xe,c),R|=4,Y(A.Unterminated_string_literal);break}let Se=V(c);if(Se===K){Z+=k.substring(xe,c),c++;break}if(Se===92&&!U){Z+=k.substring(xe,c),Z+=Ot(3),xe=c;continue}if((Se===10||Se===13)&&!U){Z+=k.substring(xe,c),R|=4,Y(A.Unterminated_string_literal);break}c++}return Z}function Ir(U){let K=V(c)===96;c++;let Z=c,xe="",Se;for(;;){if(c>=W){xe+=k.substring(Z,c),R|=4,Y(A.Unterminated_template_literal),Se=K?15:18;break}let we=V(c);if(we===96){xe+=k.substring(Z,c),c++,Se=K?15:18;break}if(we===36&&c+1=W)return Y(A.Unexpected_end_of_text),"";let Z=V(c);switch(c++,Z){case 48:if(c>=W||!fi(V(c)))return"\0";case 49:case 50:case 51:c=55296&&xe<=56319&&c+6=56320&&Ve<=57343)return c=me,Se+String.fromCharCode(Ve)}return Se;case 120:for(;c1114111&&(U&&Y(A.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive,Z,c-Z),we=!0),c>=W?(U&&Y(A.Unexpected_end_of_text),we=!0):V(c)===125?c++:(U&&Y(A.Unterminated_Unicode_escape_sequence),we=!0),we?(R|=2048,k.substring(K,c)):(R|=8,Ed(Se))}function Pn(){if(c+5=0&&Ar(Z,e)){U+=Bn(!0),K=c;continue}if(Z=Pn(),!(Z>=0&&Ar(Z,e)))break;R|=1024,U+=k.substring(K,c),U+=Ed(Z),c+=6,K=c}else break}return U+=k.substring(K,c),U}function $e(){let U=D.length;if(U>=2&&U<=12){let K=D.charCodeAt(0);if(K>=97&&K<=122){let Z=Xy.get(D);if(Z!==void 0)return E=Z}}return E=80}function qn(U){let K="",Z=!1,xe=!1;for(;;){let Se=V(c);if(Se===95){R|=512,Z?(Z=!1,xe=!0):Y(xe?A.Multiple_consecutive_numeric_separators_are_not_permitted:A.Numeric_separators_are_not_allowed_here,c,1),c++;continue}if(Z=!0,!fi(Se)||Se-48>=U)break;K+=k[c],c++,xe=!1}return V(c-1)===95&&Y(A.Numeric_separators_are_not_allowed_here,c-1,1),K}function $t(){return V(c)===110?(D+="n",R&384&&(D=wb(D)+"n"),c++,10):(D=""+(R&128?parseInt(D.slice(2),2):R&256?parseInt(D.slice(2),8):+D),9)}function ot(){for(y=c,R=0;;){if(G=c,c>=W)return E=1;let U=ae(c);if(c===0&&U===35&&zm(k,c)){if(c=Vm(k,c),t)continue;return E=6}switch(U){case 10:case 13:if(R|=1,t){c++;continue}else return U===13&&c+1=0&&Zn(K,e))return D=Bn(!0)+ht(),E=$e();let Z=Pn();return Z>=0&&Zn(Z,e)?(c+=6,R|=1024,D=String.fromCharCode(Z)+ht(),E=$e()):(Y(A.Invalid_character),c++,E=0);case 35:if(c!==0&&k[c+1]==="!")return Y(A.can_only_be_used_at_the_start_of_a_file,c,2),c++,E=0;let xe=ae(c+1);if(xe===92){c++;let me=Mt();if(me>=0&&Zn(me,e))return D="#"+Bn(!0)+ht(),E=81;let Ve=Pn();if(Ve>=0&&Zn(Ve,e))return c+=6,R|=1024,D="#"+String.fromCharCode(Ve)+ht(),E=81;c--}return Zn(xe,e)?(c++,Lt(xe,e)):(D="#",Y(A.Invalid_character,c++,Vt(U))),E=81;case 65533:return Y(A.File_appears_to_be_binary,0,0),c=W,E=8;default:let Se=Lt(U,e);if(Se)return E=Se;if(n_(U)){c+=Vt(U);continue}else if(kn(U)){R|=1,c+=Vt(U);continue}let we=Vt(U);return Y(A.Invalid_character,c,we),c+=we,E=0}}}function at(){switch(de){case 0:return!0;case 1:return!1}return he!==3&&he!==4?!0:de===3?!1:rg.test(k.slice(y,c))}function Bt(){q.assert(E===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),c=G=y,R=0;let U=ae(c),K=Lt(U,99);return K?E=K:(c+=Vt(U),E)}function Lt(U,K){let Z=U;if(Zn(Z,K)){for(c+=Vt(Z);c=W)return E=1;let K=V(c);if(K===60)return V(c+1)===47?(c+=2,E=31):(c++,E=30);if(K===123)return c++,E=19;let Z=0;for(;c0)break;qa(K)||(Z=c)}c++}return D=k.substring(y,c),Z===-1?13:12}function Or(){if(St(E)){for(;c=W)return E=1;for(let K=V(c);c=0&&n_(V(c-1))&&!(c+1=W)return E=1;let U=ae(c);switch(c+=Vt(U),U){case 9:case 11:case 12:case 32:for(;c=0&&Zn(K,e))return D=Bn(!0)+ht(),E=$e();let Z=Pn();return Z>=0&&Zn(Z,e)?(c+=6,R|=1024,D=String.fromCharCode(Z)+ht(),E=$e()):(c++,E=0)}if(Zn(U,e)){let K=U;for(;c=0),c=U,y=U,G=U,E=0,D=void 0,R=0}function wi(U){be+=U?1:-1}}function Qi(e,t){return e.codePointAt(t)}function Vt(e){return e>=65536?2:e===-1?0:1}function dg(e){if(q.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);let t=Math.floor((e-65536)/1024)+55296,a=(e-65536)%1024+56320;return String.fromCharCode(t,a)}var mg=String.fromCodePoint?e=>String.fromCodePoint(e):dg;function Ed(e){return mg(e)}var Ad=new Map(Object.entries({General_Category:"General_Category",gc:"General_Category",Script:"Script",sc:"Script",Script_Extensions:"Script_Extensions",scx:"Script_Extensions"})),Cd=new Set(["ASCII","ASCII_Hex_Digit","AHex","Alphabetic","Alpha","Any","Assigned","Bidi_Control","Bidi_C","Bidi_Mirrored","Bidi_M","Case_Ignorable","CI","Cased","Changes_When_Casefolded","CWCF","Changes_When_Casemapped","CWCM","Changes_When_Lowercased","CWL","Changes_When_NFKC_Casefolded","CWKCF","Changes_When_Titlecased","CWT","Changes_When_Uppercased","CWU","Dash","Default_Ignorable_Code_Point","DI","Deprecated","Dep","Diacritic","Dia","Emoji","Emoji_Component","EComp","Emoji_Modifier","EMod","Emoji_Modifier_Base","EBase","Emoji_Presentation","EPres","Extended_Pictographic","ExtPict","Extender","Ext","Grapheme_Base","Gr_Base","Grapheme_Extend","Gr_Ext","Hex_Digit","Hex","IDS_Binary_Operator","IDSB","IDS_Trinary_Operator","IDST","ID_Continue","IDC","ID_Start","IDS","Ideographic","Ideo","Join_Control","Join_C","Logical_Order_Exception","LOE","Lowercase","Lower","Math","Noncharacter_Code_Point","NChar","Pattern_Syntax","Pat_Syn","Pattern_White_Space","Pat_WS","Quotation_Mark","QMark","Radical","Regional_Indicator","RI","Sentence_Terminal","STerm","Soft_Dotted","SD","Terminal_Punctuation","Term","Unified_Ideograph","UIdeo","Uppercase","Upper","Variation_Selector","VS","White_Space","space","XID_Continue","XIDC","XID_Start","XIDS"]),Dd=new Set(["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Flag_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence","RGI_Emoji"]),Ra={General_Category:new Set(["C","Other","Cc","Control","cntrl","Cf","Format","Cn","Unassigned","Co","Private_Use","Cs","Surrogate","L","Letter","LC","Cased_Letter","Ll","Lowercase_Letter","Lm","Modifier_Letter","Lo","Other_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter","M","Mark","Combining_Mark","Mc","Spacing_Mark","Me","Enclosing_Mark","Mn","Nonspacing_Mark","N","Number","Nd","Decimal_Number","digit","Nl","Letter_Number","No","Other_Number","P","Punctuation","punct","Pc","Connector_Punctuation","Pd","Dash_Punctuation","Pe","Close_Punctuation","Pf","Final_Punctuation","Pi","Initial_Punctuation","Po","Other_Punctuation","Ps","Open_Punctuation","S","Symbol","Sc","Currency_Symbol","Sk","Modifier_Symbol","Sm","Math_Symbol","So","Other_Symbol","Z","Separator","Zl","Line_Separator","Zp","Paragraph_Separator","Zs","Space_Separator"]),Script:new Set(["Adlm","Adlam","Aghb","Caucasian_Albanian","Ahom","Arab","Arabic","Armi","Imperial_Aramaic","Armn","Armenian","Avst","Avestan","Bali","Balinese","Bamu","Bamum","Bass","Bassa_Vah","Batk","Batak","Beng","Bengali","Bhks","Bhaiksuki","Bopo","Bopomofo","Brah","Brahmi","Brai","Braille","Bugi","Buginese","Buhd","Buhid","Cakm","Chakma","Cans","Canadian_Aboriginal","Cari","Carian","Cham","Cher","Cherokee","Chrs","Chorasmian","Copt","Coptic","Qaac","Cpmn","Cypro_Minoan","Cprt","Cypriot","Cyrl","Cyrillic","Deva","Devanagari","Diak","Dives_Akuru","Dogr","Dogra","Dsrt","Deseret","Dupl","Duployan","Egyp","Egyptian_Hieroglyphs","Elba","Elbasan","Elym","Elymaic","Ethi","Ethiopic","Geor","Georgian","Glag","Glagolitic","Gong","Gunjala_Gondi","Gonm","Masaram_Gondi","Goth","Gothic","Gran","Grantha","Grek","Greek","Gujr","Gujarati","Guru","Gurmukhi","Hang","Hangul","Hani","Han","Hano","Hanunoo","Hatr","Hatran","Hebr","Hebrew","Hira","Hiragana","Hluw","Anatolian_Hieroglyphs","Hmng","Pahawh_Hmong","Hmnp","Nyiakeng_Puachue_Hmong","Hrkt","Katakana_Or_Hiragana","Hung","Old_Hungarian","Ital","Old_Italic","Java","Javanese","Kali","Kayah_Li","Kana","Katakana","Kawi","Khar","Kharoshthi","Khmr","Khmer","Khoj","Khojki","Kits","Khitan_Small_Script","Knda","Kannada","Kthi","Kaithi","Lana","Tai_Tham","Laoo","Lao","Latn","Latin","Lepc","Lepcha","Limb","Limbu","Lina","Linear_A","Linb","Linear_B","Lisu","Lyci","Lycian","Lydi","Lydian","Mahj","Mahajani","Maka","Makasar","Mand","Mandaic","Mani","Manichaean","Marc","Marchen","Medf","Medefaidrin","Mend","Mende_Kikakui","Merc","Meroitic_Cursive","Mero","Meroitic_Hieroglyphs","Mlym","Malayalam","Modi","Mong","Mongolian","Mroo","Mro","Mtei","Meetei_Mayek","Mult","Multani","Mymr","Myanmar","Nagm","Nag_Mundari","Nand","Nandinagari","Narb","Old_North_Arabian","Nbat","Nabataean","Newa","Nkoo","Nko","Nshu","Nushu","Ogam","Ogham","Olck","Ol_Chiki","Orkh","Old_Turkic","Orya","Oriya","Osge","Osage","Osma","Osmanya","Ougr","Old_Uyghur","Palm","Palmyrene","Pauc","Pau_Cin_Hau","Perm","Old_Permic","Phag","Phags_Pa","Phli","Inscriptional_Pahlavi","Phlp","Psalter_Pahlavi","Phnx","Phoenician","Plrd","Miao","Prti","Inscriptional_Parthian","Rjng","Rejang","Rohg","Hanifi_Rohingya","Runr","Runic","Samr","Samaritan","Sarb","Old_South_Arabian","Saur","Saurashtra","Sgnw","SignWriting","Shaw","Shavian","Shrd","Sharada","Sidd","Siddham","Sind","Khudawadi","Sinh","Sinhala","Sogd","Sogdian","Sogo","Old_Sogdian","Sora","Sora_Sompeng","Soyo","Soyombo","Sund","Sundanese","Sylo","Syloti_Nagri","Syrc","Syriac","Tagb","Tagbanwa","Takr","Takri","Tale","Tai_Le","Talu","New_Tai_Lue","Taml","Tamil","Tang","Tangut","Tavt","Tai_Viet","Telu","Telugu","Tfng","Tifinagh","Tglg","Tagalog","Thaa","Thaana","Thai","Tibt","Tibetan","Tirh","Tirhuta","Tnsa","Tangsa","Toto","Ugar","Ugaritic","Vaii","Vai","Vith","Vithkuqi","Wara","Warang_Citi","Wcho","Wancho","Xpeo","Old_Persian","Xsux","Cuneiform","Yezi","Yezidi","Yiii","Yi","Zanb","Zanabazar_Square","Zinh","Inherited","Qaai","Zyyy","Common","Zzzz","Unknown"]),Script_Extensions:void 0};Ra.Script_Extensions=Ra.Script;function kr(e){return e.start+e.length}function hg(e){return e.length===0}function of(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function yg(e,t){return of(e,t-e)}function Qs(e){return of(e.span.start,e.newLength)}function gg(e){return hg(e.span)&&e.newLength===0}function Hm(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}var _3=Hm(of(0,0),0);function cf(e,t){for(;e;){let a=t(e);if(a==="quit")return;if(a)return e;e=e.parent}}function gl(e){return(e.flags&16)===0}function bg(e,t){if(e===void 0||gl(e))return e;for(e=e.original;e;){if(gl(e))return!t||t(e)?e:void 0;e=e.original}}function La(e){return e.length>=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function l_(e){let t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}function An(e){return l_(e.escapedText)}function lf(e){let t=Um(e.escapedText);return t?Ay(t,di):void 0}function jp(e){return e.valueDeclaration&&qg(e.valueDeclaration)?An(e.valueDeclaration.name):l_(e.escapedName)}function Xm(e){let t=e.parent.parent;if(t){if(Id(t))return rl(t);switch(t.kind){case 244:if(t.declarationList&&t.declarationList.declarations[0])return rl(t.declarationList.declarations[0]);break;case 245:let a=t.expression;switch(a.kind===227&&a.operatorToken.kind===64&&(a=a.left),a.kind){case 212:return a.name;case 213:let _=a.argumentExpression;if(Ke(_))return _}break;case 218:return rl(t.expression);case 257:{if(Id(t.statement)||o1(t.statement))return rl(t.statement);break}}}}function rl(e){let t=$m(e);return t&&Ke(t)?t:void 0}function vg(e){return e.name||Xm(e)}function Tg(e){return!!e.name}function uf(e){switch(e.kind){case 80:return e;case 349:case 342:{let{name:a}=e;if(a.kind===167)return a.right;break}case 214:case 227:{let a=e;switch(gf(a)){case 1:case 4:case 5:case 3:return bf(a.left);case 7:case 8:case 9:return a.arguments[1];default:return}}case 347:return vg(e);case 341:return Xm(e);case 278:{let{expression:a}=e;return Ke(a)?a:void 0}case 213:let t=e;if(m1(t))return t.argumentExpression}return e.name}function $m(e){if(e!==void 0)return uf(e)||(Lf(e)||Jf(e)||xl(e)?xg(e):void 0)}function xg(e){if(e.parent){if(Z1(e.parent)||q1(e.parent))return e.parent.name;if(na(e.parent)&&e===e.parent.right){if(Ke(e.parent.left))return e.parent.left;if(T1(e.parent.left))return bf(e.parent.left)}else if(jf(e.parent)&&Ke(e.parent.name))return e.parent.name}else return}function pf(e){if(G2(e))return Hr(e.modifiers,Cl)}function Qm(e){if(v_(e,98303))return Hr(e.modifiers,Vg)}function Km(e,t){if(e.name)if(Ke(e.name)){let a=e.name.escapedText;return u_(e.parent,t).filter(_=>Vp(_)&&Ke(_.name)&&_.name.escapedText===a)}else{let a=e.parent.parameters.indexOf(e);q.assert(a>-1,"Parameters should always be in their parents' parameter list");let _=u_(e.parent,t).filter(Vp);if(a<_.length)return[_[a]]}return vt}function Sg(e){return Km(e,!1)}function wg(e){return Km(e,!0)}function Zm(e,t){let a=e.name.escapedText;return u_(e.parent,t).filter(_=>ah(_)&&_.typeParameters.some(f=>f.name.escapedText===a))}function kg(e){return Zm(e,!1)}function Eg(e){return Zm(e,!0)}function Ag(e){return bi(e,c6)}function Cg(e){return Jg(e,g6)}function Dg(e){return bi(e,l6,!0)}function Pg(e){return bi(e,u6,!0)}function Ng(e){return bi(e,p6,!0)}function Ig(e){return bi(e,f6,!0)}function Og(e){return bi(e,d6,!0)}function Mg(e){return bi(e,h6,!0)}function Lg(e){let t=bi(e,Vf);if(t&&t.typeExpression&&t.typeExpression.type)return t}function u_(e,t){var a;if(!vf(e))return vt;let _=(a=e.jsDoc)==null?void 0:a.jsDocCache;if(_===void 0||t){let f=P2(e,t);q.assert(f.length<2||f[0]!==f[1]),_=xm(f,h=>ih(h)?h.tags:h),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=_)}return _}function e1(e){return u_(e,!1)}function bi(e,t,a){return vm(u_(e,a),t)}function Jg(e,t){return e1(e).filter(t)}function Rp(e){return e.kind===80||e.kind===81}function jg(e){return dr(e)&&!!(e.flags&64)}function Rg(e){return Ha(e)&&!!(e.flags&64)}function Pd(e){return Mf(e)&&!!(e.flags&64)}function t1(e){let t=e.kind;return!!(e.flags&64)&&(t===212||t===213||t===214||t===236)}function ff(e){return Wf(e,8)}function Ug(e){return fl(e)&&!!(e.flags&64)}function df(e){return e>=167}function mf(e){return e>=0&&e<=166}function n1(e){return mf(e.kind)}function mi(e){return Dr(e,"pos")&&Dr(e,"end")}function Bg(e){return 9<=e&&e<=15}function Nd(e){return 15<=e&&e<=18}function Ua(e){var t;return Ke(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function r1(e){var t;return gi(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function qg(e){return(Wa(e)||Yg(e))&&gi(e.name)}function Yr(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function Fg(e){return!!(b1(e)&31)}function zg(e){return Fg(e)||e===126||e===164||e===129}function Vg(e){return Yr(e.kind)}function i1(e){let t=e.kind;return t===80||t===81||t===11||t===9||t===168}function hf(e){return!!e&&Gg(e.kind)}function Wg(e){switch(e){case 263:case 175:case 177:case 178:case 179:case 219:case 220:return!0;default:return!1}}function Gg(e){switch(e){case 174:case 180:case 324:case 181:case 182:case 185:case 318:case 186:return!0;default:return Wg(e)}}function ra(e){return e&&(e.kind===264||e.kind===232)}function Yg(e){switch(e.kind){case 175:case 178:case 179:return!0;default:return!1}}function Hg(e){let t=e.kind;return t===304||t===305||t===306||t===175||t===178||t===179}function a1(e){return rb(e.kind)}function Xg(e){if(e){let t=e.kind;return t===208||t===207}return!1}function $g(e){let t=e.kind;return t===210||t===211}function Qg(e){switch(e.kind){case 261:case 170:case 209:return!0}return!1}function Fa(e){return s1(ff(e).kind)}function s1(e){switch(e){case 212:case 213:case 215:case 214:case 285:case 286:case 289:case 216:case 210:case 218:case 211:case 232:case 219:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 229:case 97:case 106:case 110:case 112:case 108:case 236:case 234:case 237:case 102:case 283:return!0;default:return!1}}function Kg(e){return _1(ff(e).kind)}function _1(e){switch(e){case 225:case 226:case 221:case 222:case 223:case 224:case 217:return!0;default:return s1(e)}}function o1(e){return Zg(ff(e).kind)}function Zg(e){switch(e){case 228:case 230:case 220:case 227:case 231:case 235:case 233:case 357:case 356:case 239:return!0;default:return _1(e)}}function e2(e){return e===220||e===209||e===264||e===232||e===176||e===177||e===267||e===307||e===282||e===263||e===219||e===178||e===274||e===272||e===277||e===265||e===292||e===175||e===174||e===268||e===271||e===275||e===281||e===170||e===304||e===173||e===172||e===179||e===305||e===266||e===169||e===261||e===347||e===339||e===349||e===203}function c1(e){return e===263||e===283||e===264||e===265||e===266||e===267||e===268||e===273||e===272||e===279||e===278||e===271}function l1(e){return e===253||e===252||e===260||e===247||e===245||e===243||e===250||e===251||e===249||e===246||e===257||e===254||e===256||e===258||e===259||e===244||e===248||e===255||e===354}function Id(e){return e.kind===169?e.parent&&e.parent.kind!==346||ia(e):e2(e.kind)}function t2(e){let t=e.kind;return l1(t)||c1(t)||n2(e)}function n2(e){return e.kind!==242||e.parent!==void 0&&(e.parent.kind===259||e.parent.kind===300)?!1:!y2(e)}function r2(e){let t=e.kind;return l1(t)||c1(t)||t===242}function u1(e){return e.kind>=310&&e.kind<=352}function i2(e){return e.kind===321||e.kind===320||e.kind===322||_2(e)||a2(e)||o6(e)||Il(e)}function a2(e){return e.kind>=328&&e.kind<=352}function il(e){return e.kind===179}function al(e){return e.kind===178}function Ki(e){if(!vf(e))return!1;let{jsDoc:t}=e;return!!t&&t.length>0}function s2(e){return!!e.initializer}function El(e){return e.kind===11||e.kind===15}function _2(e){return e.kind===325||e.kind===326||e.kind===327}function Od(e){return(e.flags&33554432)!==0}var o3=o2();function o2(){var e="";let t=a=>e+=a;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(a,_)=>t(a),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&qa(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:Va,decreaseIndent:Va,clear:()=>e=""}}function c2(e,t){let a=e.entries();for(let[_,f]of a){let h=t(f,_);if(h)return h}}function l2(e){return e.end-e.pos}function p1(e){return u2(e),(e.flags&1048576)!==0}function u2(e){e.flags&2097152||(((e.flags&262144)!==0||Xt(e,p1))&&(e.flags|=1048576),e.flags|=2097152)}function hi(e){for(;e&&e.kind!==308;)e=e.parent;return e}function Zi(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function Up(e){return!Zi(e)}function bl(e,t,a){if(Zi(e))return e.pos;if(u1(e)||e.kind===12)return Cr((t??hi(e)).text,e.pos,!1,!0);if(a&&Ki(e))return bl(e.jsDoc[0],t);if(e.kind===353){t??(t=hi(e));let _=Xp(sh(e,t));if(_)return bl(_,t,a)}return Cr((t??hi(e)).text,e.pos,!1,!1,g2(e))}function Md(e,t,a=!1){return r_(e.text,t,a)}function p2(e){return!!cf(e,th)}function r_(e,t,a=!1){if(Zi(t))return"";let _=e.substring(a?t.pos:Cr(e,t.pos),t.end);return p2(t)&&(_=_.split(/\r\n|\n|\r/).map(f=>f.replace(/^\s*\*/,"").trimStart()).join(` +`)),_}function za(e){let t=e.emitNode;return t&&t.flags||0}function f2(e,t,a){q.assertGreaterThanOrEqual(t,0),q.assertGreaterThanOrEqual(a,0),q.assertLessThanOrEqual(t,e.length),q.assertLessThanOrEqual(t+a,e.length)}function pl(e){return e.kind===245&&e.expression.kind===11}function yf(e){return!!(za(e)&2097152)}function Ld(e){return yf(e)&&Rf(e)}function d2(e){return Ke(e.name)&&!e.initializer}function Jd(e){return yf(e)&&Xa(e)&&Yp(e.declarationList.declarations,d2)}function m2(e,t){let a=e.kind===170||e.kind===169||e.kind===219||e.kind===220||e.kind===218||e.kind===261||e.kind===282?Hp(pg(t,e.pos),Jp(t,e.pos)):Jp(t,e.pos);return Hr(a,_=>_.end<=e.end&&t.charCodeAt(_.pos+1)===42&&t.charCodeAt(_.pos+2)===42&&t.charCodeAt(_.pos+3)!==47)}function h2(e){if(e)switch(e.kind){case 209:case 307:case 170:case 304:case 173:case 172:case 305:case 261:return!0}return!1}function y2(e){return e&&e.kind===242&&hf(e.parent)}function jd(e){let t=e.kind;return(t===212||t===213)&&e.expression.kind===108}function ia(e){return!!e&&!!(e.flags&524288)}function g2(e){return!!e&&!!(e.flags&16777216)}function b2(e){for(;vl(e,!0);)e=e.right;return e}function v2(e){return Ke(e)&&e.escapedText==="exports"}function T2(e){return Ke(e)&&e.escapedText==="module"}function f1(e){return(dr(e)||d1(e))&&T2(e.expression)&&f_(e)==="exports"}function gf(e){let t=S2(e);return t===5||ia(e)?t:0}function x2(e){return e_(e.arguments)===3&&dr(e.expression)&&Ke(e.expression.expression)&&An(e.expression.expression)==="Object"&&An(e.expression.name)==="defineProperty"&&Al(e.arguments[1])&&p_(e.arguments[0],!0)}function d1(e){return Ha(e)&&Al(e.argumentExpression)}function b_(e,t){return dr(e)&&(!t&&e.expression.kind===110||Ke(e.name)&&p_(e.expression,!0))||m1(e,t)}function m1(e,t){return d1(e)&&(!t&&e.expression.kind===110||Sf(e.expression)||b_(e.expression,!0))}function p_(e,t){return Sf(e)||b_(e,t)}function S2(e){if(Mf(e)){if(!x2(e))return 0;let t=e.arguments[0];return v2(t)||f1(t)?8:b_(t)&&f_(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!T1(e.left)||w2(b2(e))?0:p_(e.left.expression,!0)&&f_(e.left)==="prototype"&&Of(E2(e))?6:k2(e.left)}function w2(e){return n6(e)&&aa(e.expression)&&e.expression.text==="0"}function bf(e){if(dr(e))return e.name;let t=Tf(e.argumentExpression);return aa(t)||El(t)?t:e}function f_(e){let t=bf(e);if(t){if(Ke(t))return t.escapedText;if(El(t)||aa(t))return La(t.text)}}function k2(e){if(e.expression.kind===110)return 4;if(f1(e))return 2;if(p_(e.expression,!0)){if(tb(e.expression))return 3;let t=e;for(;!Ke(t.expression);)t=t.expression;let a=t.expression;if((a.escapedText==="exports"||a.escapedText==="module"&&f_(t)==="exports")&&b_(e))return 1;if(p_(e,!0)||Ha(e)&&B2(e))return 5}return 0}function E2(e){for(;na(e.right);)e=e.right;return e.right}function A2(e){return Pl(e)&&na(e.expression)&&gf(e.expression)!==0&&na(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function C2(e){switch(e.kind){case 244:let t=Bp(e);return t&&t.initializer;case 173:return e.initializer;case 304:return e.initializer}}function Bp(e){return Xa(e)?Xp(e.declarationList.declarations):void 0}function D2(e){return Ti(e)&&e.body&&e.body.kind===268?e.body:void 0}function vf(e){switch(e.kind){case 220:case 227:case 242:case 253:case 180:case 297:case 264:case 232:case 176:case 177:case 186:case 181:case 252:case 260:case 247:case 213:case 243:case 1:case 267:case 307:case 278:case 279:case 282:case 245:case 250:case 251:case 249:case 263:case 219:case 185:case 178:case 80:case 246:case 273:case 272:case 182:case 265:case 318:case 324:case 257:case 175:case 174:case 268:case 203:case 271:case 211:case 170:case 218:case 212:case 304:case 173:case 172:case 254:case 241:case 179:case 305:case 306:case 256:case 258:case 259:case 266:case 169:case 261:case 244:case 248:case 255:return!0;default:return!1}}function P2(e,t){let a;h2(e)&&s2(e)&&Ki(e.initializer)&&(a=En(a,Rd(e,e.initializer.jsDoc)));let _=e;for(;_&&_.parent;){if(Ki(_)&&(a=En(a,Rd(e,_.jsDoc))),_.kind===170){a=En(a,(t?wg:Sg)(_));break}if(_.kind===169){a=En(a,(t?Eg:kg)(_));break}_=I2(_)}return a||vt}function Rd(e,t){let a=gy(t);return xm(t,_=>{if(_===a){let f=Hr(_.tags,h=>N2(e,h));return _.tags===f?[_]:f}else return Hr(_.tags,m6)})}function N2(e,t){return!(Vf(t)||b6(t))||!t.parent||!ih(t.parent)||!Dl(t.parent.parent)||t.parent.parent===e}function I2(e){let t=e.parent;if(t.kind===304||t.kind===278||t.kind===173||t.kind===245&&e.kind===212||t.kind===254||D2(t)||vl(e))return t;if(t.parent&&(Bp(t.parent)===e||vl(t)))return t.parent;if(t.parent&&t.parent.parent&&(Bp(t.parent.parent)||C2(t.parent.parent)===e||A2(t.parent.parent)))return t.parent.parent}function Tf(e,t){return Wf(e,t?-2147483647:1)}function O2(e){let t=M2(e);if(t&&ia(e)){let a=Ag(e);if(a)return a.class}return t}function M2(e){let t=xf(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function L2(e){if(ia(e))return Cg(e).map(t=>t.class);{let t=xf(e.heritageClauses,119);return t?.types}}function J2(e){return T_(e)?j2(e)||vt:ra(e)&&Hp(Op(O2(e)),L2(e))||vt}function j2(e){let t=xf(e.heritageClauses,96);return t?t.types:void 0}function xf(e,t){if(e){for(let a of e)if(a.token===t)return a}}function di(e){return 83<=e&&e<=166}function R2(e){return 19<=e&&e<=79}function Sp(e){return di(e)||R2(e)}function Al(e){return El(e)||aa(e)}function U2(e){return V1(e)&&(e.operator===40||e.operator===41)&&aa(e.operand)}function B2(e){if(!(e.kind===168||e.kind===213))return!1;let t=Ha(e)?Tf(e.argumentExpression):e.expression;return!Al(t)&&!U2(t)}function q2(e){return Rp(e)?An(e):K1(e)?Pb(e):e.text}function Ja(e){return d_(e.pos)||d_(e.end)}function wp(e){switch(e){case 61:return 5;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function kp(e){return!!((e.templateFlags||0)&2048)}function F2(e){return e&&!!(A1(e)?kp(e):kp(e.head)||Zt(e.templateSpans,t=>kp(t.literal)))}var c3=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"}));var l3=new Map(Object.entries({'"':""","'":"'"}));function z2(e){return!!e&&e.kind===80&&V2(e)}function V2(e){return e.escapedText==="this"}function v_(e,t){return!!Y2(e,t)}function W2(e){return v_(e,256)}function G2(e){return v_(e,32768)}function Y2(e,t){return X2(e)&t}function H2(e,t,a){return e.kind>=0&&e.kind<=166?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=g1(e)|536870912),a||t&&ia(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=h1(e)|268435456),y1(e.modifierFlagsCache)):$2(e.modifierFlagsCache))}function X2(e){return H2(e,!1)}function h1(e){let t=0;return e.parent&&!m_(e)&&(ia(e)&&(Dg(e)&&(t|=8388608),Pg(e)&&(t|=16777216),Ng(e)&&(t|=33554432),Ig(e)&&(t|=67108864),Og(e)&&(t|=134217728)),Mg(e)&&(t|=65536)),t}function $2(e){return e&65535}function y1(e){return e&131071|(e&260046848)>>>23}function Q2(e){return y1(h1(e))}function K2(e){return g1(e)|Q2(e)}function g1(e){let t=Ol(e)?Jn(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=32),t}function Jn(e){let t=0;if(e)for(let a of e)t|=b1(a.kind);return t}function b1(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 171:return 32768}return 0}function Z2(e){return e===76||e===77||e===78}function v1(e){return e>=64&&e<=79}function vl(e,t){return na(e)&&(t?e.operatorToken.kind===64:v1(e.operatorToken.kind))&&Fa(e.left)}function Sf(e){return e.kind===80||eb(e)}function eb(e){return dr(e)&&Ke(e.name)&&Sf(e.expression)}function tb(e){return b_(e)&&f_(e)==="prototype"}function Ep(e){return e.flags&3899393?e.objectFlags:0}function nb(e){let t;return Xt(e,a=>{Up(a)&&(t=a)},a=>{for(let _=a.length-1;_>=0;_--)if(Up(a[_])){t=a[_];break}}),t}function rb(e){return e>=183&&e<=206||e===133||e===159||e===150||e===163||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===234||e===313||e===314||e===315||e===316||e===317||e===318||e===319}function T1(e){return e.kind===212||e.kind===213}function ib(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}function ab(e,t){this.flags=t,(q.isDebugging||ll)&&(this.checker=e)}function sb(e,t){this.flags=t,q.isDebugging&&(this.checker=e)}function Ap(e,t,a){this.pos=t,this.end=a,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function _b(e,t,a){this.pos=t,this.end=a,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function ob(e,t,a){this.pos=t,this.end=a,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function cb(e,t,a){this.fileName=e,this.text=t,this.skipTrivia=a||(_=>_)}var Et={getNodeConstructor:()=>Ap,getTokenConstructor:()=>_b,getIdentifierConstructor:()=>ob,getPrivateIdentifierConstructor:()=>Ap,getSourceFileConstructor:()=>Ap,getSymbolConstructor:()=>ib,getTypeConstructor:()=>ab,getSignatureConstructor:()=>sb,getSourceMapSourceConstructor:()=>cb},lb=[];function ub(e){Object.assign(Et,e),jn(lb,t=>t(Et))}function pb(e,t){return e.replace(/\{(\d+)\}/g,(a,_)=>""+q.checkDefined(t[+_]))}var Ud;function fb(e){return Ud&&Ud[e.key]||e.message}function Oa(e,t,a,_,f,...h){a+_>t.length&&(_=t.length-a),f2(t,a,_);let T=fb(f);return Zt(h)&&(T=pb(T,h)),{file:void 0,start:a,length:_,messageText:T,category:f.category,code:f.code,reportsUnnecessary:f.reportsUnnecessary,fileName:e}}function db(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function x1(e,t){let a=t.fileName||"",_=t.text.length;q.assertEqual(e.fileName,a),q.assertLessThanOrEqual(e.start,_),q.assertLessThanOrEqual(e.start+e.length,_);let f={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){f.relatedInformation=[];for(let h of e.relatedInformation)db(h)&&h.fileName===a?(q.assertLessThanOrEqual(h.start,_),q.assertLessThanOrEqual(h.start+h.length,_),f.relatedInformation.push(x1(h,t))):f.relatedInformation.push(h)}return f}function Yi(e,t){let a=[];for(let _ of e)a.push(x1(_,t));return a}function Bd(e){return e===4||e===2||e===1||e===6?1:0}var it={allowImportingTsExtensions:{dependencies:["rewriteRelativeImportExtensions"],computeValue:e=>!!(e.allowImportingTsExtensions||e.rewriteRelativeImportExtensions)},target:{dependencies:["module"],computeValue:e=>(e.target===0?void 0:e.target)??(e.module===100&&9||e.module===101&&9||e.module===102&&10||e.module===199&&99||1)},module:{dependencies:["target"],computeValue:e=>typeof e.module=="number"?e.module:it.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(t===void 0)switch(it.module.computeValue(e)){case 1:t=2;break;case 100:case 101:case 102:t=3;break;case 199:t=99;break;case 200:t=100;break;default:t=1;break}return t}},moduleDetection:{dependencies:["module","target"],computeValue:e=>{if(e.moduleDetection!==void 0)return e.moduleDetection;let t=it.module.computeValue(e);return 100<=t&&t<=199?3:2}},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:e=>!!(e.isolatedModules||e.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:e=>{if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(it.module.computeValue(e)){case 100:case 101:case 102:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:it.esModuleInterop.computeValue(e)||it.module.computeValue(e)===4||it.moduleResolution.computeValue(e)===100},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{let t=it.moduleResolution.computeValue(e);if(!qd(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:e=>{let t=it.moduleResolution.computeValue(e);if(!qd(t))return!1;if(e.resolvePackageJsonImports!==void 0)return e.resolvePackageJsonImports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>{if(e.resolveJsonModule!==void 0)return e.resolveJsonModule;switch(it.module.computeValue(e)){case 102:case 199:return!0}return it.moduleResolution.computeValue(e)===100}},declaration:{dependencies:["composite"],computeValue:e=>!!(e.declaration||e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!!(e.preserveConstEnums||it.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!!(e.incremental||e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!!(e.declarationMap&&it.declaration.computeValue(e))},allowJs:{dependencies:["checkJs"],computeValue:e=>e.allowJs===void 0?!!e.checkJs:e.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:e=>e.useDefineForClassFields===void 0?it.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>Gr(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>Gr(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>Gr(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>Gr(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>Gr(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>Gr(e,"strictPropertyInitialization")},strictBuiltinIteratorReturn:{dependencies:["strict"],computeValue:e=>Gr(e,"strictBuiltinIteratorReturn")},alwaysStrict:{dependencies:["strict"],computeValue:e=>Gr(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>Gr(e,"useUnknownInCatchVariables")}};var u3=it.allowImportingTsExtensions.computeValue,p3=it.target.computeValue,f3=it.module.computeValue,d3=it.moduleResolution.computeValue,m3=it.moduleDetection.computeValue,h3=it.isolatedModules.computeValue,y3=it.esModuleInterop.computeValue,g3=it.allowSyntheticDefaultImports.computeValue,b3=it.resolvePackageJsonExports.computeValue,v3=it.resolvePackageJsonImports.computeValue,T3=it.resolveJsonModule.computeValue,x3=it.declaration.computeValue,S3=it.preserveConstEnums.computeValue,w3=it.incremental.computeValue,k3=it.declarationMap.computeValue,E3=it.allowJs.computeValue,A3=it.useDefineForClassFields.computeValue;function qd(e){return e>=3&&e<=99||e===100}function Gr(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function mb(e){return c2(targetOptionDeclaration.type,(t,a)=>t===e?a:void 0)}var hb=["node_modules","bower_components","jspm_packages"],S1=`(?!(?:${hb.join("|")})(?:/|$))`,yb={singleAsteriskRegexFragment:"(?:[^./]|(?:\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(?:/${S1}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>w1(e,yb.singleAsteriskRegexFragment)},gb={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(?:/${S1}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>w1(e,gb.singleAsteriskRegexFragment)};function w1(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function bb(e,t){return t||vb(e)||3}function vb(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}var k1=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],C3=Tm(k1),D3=[...k1,[".json"]];var Tb=[[".js",".jsx"],[".mjs"],[".cjs"]],P3=Tm(Tb),xb=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],N3=[...xb,[".json"]],Sb=[".d.ts",".d.cts",".d.mts"];function d_(e){return!(e>=0)}function sl(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),q.assert(e.relatedInformation!==vt,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function wb(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:let W=e.length-1,y=0;for(;e.charCodeAt(y)===48;)y++;return e.slice(y,W)||"0"}let a=2,_=e.length-1,f=(_-a)*t,h=new Uint16Array((f>>>4)+(f&15?1:0));for(let W=_-1,y=0;W>=a;W--,y+=t){let G=y>>>4,E=e.charCodeAt(W),R=(E<=57?E-48:10+E-(E<=70?65:97))<<(y&15);h[G]|=R;let ue=R>>>16;ue&&(h[G+1]|=ue)}let T="",k=h.length-1,c=!0;for(;c;){let W=0;c=!1;for(let y=k;y>=0;y--){let G=W<<16|h[y],E=G/10|0;h[y]=E,W=G-E*10,E&&!c&&(k=y,c=!0)}T=W+T}return T}function kb({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function qp(e,t){return e.pos=t,e}function Eb(e,t){return e.end=t,e}function yi(e,t,a){return Eb(qp(e,t),a)}function Fd(e,t,a){return yi(e,t,t+a)}function wf(e,t){return e&&t&&(e.parent=t),e}function Ab(e,t){if(!e)return e;return mm(e,u1(e)?a:f),e;function a(h,T){if(t&&h.parent===T)return"skip";wf(h,T)}function _(h){if(Ki(h))for(let T of h.jsDoc)a(T,h),mm(T,a)}function f(h,T){return a(h,T)||_(h)}}function Cb(e){return!!(e.flags&262144&&e.isThisType)}function Db(e){var t;return((t=getSnippetElement(e))==null?void 0:t.kind)===0}function Pb(e){return`${An(e.namespace)}:${An(e.name)}`}var I3=String.prototype.replace;var Fp=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","http2","https","inspector","inspector/promises","module","net","os","path","path/posix","path/win32","perf_hooks","process","punycode","querystring","readline","readline/promises","repl","stream","stream/consumers","stream/promises","stream/web","string_decoder","sys","test/mock_loader","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],O3=new Set(Fp),Nb=new Set(["node:sea","node:sqlite","node:test","node:test/reporters"]),M3=new Set([...Fp,...Fp.map(e=>`node:${e}`),...Nb]);function Ib(){let e,t,a,_,f;return{createBaseSourceFileNode:h,createBaseIdentifierNode:T,createBasePrivateIdentifierNode:k,createBaseTokenNode:c,createBaseNode:W};function h(y){return new(f||(f=Et.getSourceFileConstructor()))(y,-1,-1)}function T(y){return new(a||(a=Et.getIdentifierConstructor()))(y,-1,-1)}function k(y){return new(_||(_=Et.getPrivateIdentifierConstructor()))(y,-1,-1)}function c(y){return new(t||(t=Et.getTokenConstructor()))(y,-1,-1)}function W(y){return new(e||(e=Et.getNodeConstructor()))(y,-1,-1)}}var Ob={getParenthesizeLeftSideOfBinaryForOperator:e=>bt,getParenthesizeRightSideOfBinaryForOperator:e=>bt,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,a)=>a,parenthesizeExpressionOfComputedPropertyName:bt,parenthesizeConditionOfConditionalExpression:bt,parenthesizeBranchOfConditionalExpression:bt,parenthesizeExpressionOfExportDefault:bt,parenthesizeExpressionOfNew:e=>Er(e,Fa),parenthesizeLeftSideOfAccess:e=>Er(e,Fa),parenthesizeOperandOfPostfixUnary:e=>Er(e,Fa),parenthesizeOperandOfPrefixUnary:e=>Er(e,Kg),parenthesizeExpressionsOfCommaDelimitedList:e=>Er(e,mi),parenthesizeExpressionForDisallowedComma:bt,parenthesizeExpressionOfExpressionStatement:bt,parenthesizeConciseBodyOfArrowFunction:bt,parenthesizeCheckTypeOfConditionalType:bt,parenthesizeExtendsTypeOfConditionalType:bt,parenthesizeConstituentTypesOfUnionType:e=>Er(e,mi),parenthesizeConstituentTypeOfUnionType:bt,parenthesizeConstituentTypesOfIntersectionType:e=>Er(e,mi),parenthesizeConstituentTypeOfIntersectionType:bt,parenthesizeOperandOfTypeOperator:bt,parenthesizeOperandOfReadonlyTypeOperator:bt,parenthesizeNonArrayTypeOfPostfixType:bt,parenthesizeElementTypesOfTupleType:e=>Er(e,mi),parenthesizeElementTypeOfTupleType:bt,parenthesizeTypeOfOptionalType:bt,parenthesizeTypeArguments:e=>e&&Er(e,mi),parenthesizeLeadingTypeArgument:bt},_l=0;var Mb=[];function kf(e,t){let a=e&8?bt:Ub,_=bd(()=>e&1?Ob:createParenthesizerRules(he)),f=bd(()=>e&2?nullNodeConverters:createNodeConverters(he)),h=Kn(n=>(i,s)=>da(i,n,s)),T=Kn(n=>i=>Ur(n,i)),k=Kn(n=>i=>ni(i,n)),c=Kn(n=>()=>Qo(n)),W=Kn(n=>i=>Cs(n,i)),y=Kn(n=>(i,s)=>wu(n,i,s)),G=Kn(n=>(i,s)=>Ko(n,i,s)),E=Kn(n=>(i,s)=>Su(n,i,s)),D=Kn(n=>(i,s)=>hc(n,i,s)),R=Kn(n=>(i,s,l)=>Lu(n,i,s,l)),ue=Kn(n=>(i,s,l)=>yc(n,i,s,l)),be=Kn(n=>(i,s,l,d)=>Ju(n,i,s,l,d)),he={get parenthesizer(){return _()},get converters(){return f()},baseFactory:t,flags:e,createNodeArray:de,createNumericLiteral:V,createBigIntLiteral:oe,createStringLiteral:ft,createStringLiteralFromNode:nr,createRegularExpressionLiteral:mn,createLiteralLikeNode:rr,createIdentifier:We,createTempVariable:ir,createLoopVariable:Ir,createUniqueName:Ot,getGeneratedNameForNode:Bn,createPrivateIdentifier:Mt,createUniquePrivateName:$e,getGeneratedPrivateNameForNode:qn,createToken:ot,createSuper:at,createThis:Bt,createNull:Lt,createTrue:ct,createFalse:ar,createModifier:dt,createModifiersFromModifierFlags:yn,createQualifiedName:yt,updateQualifiedName:_n,createComputedPropertyName:tt,updateComputedPropertyName:qt,createTypeParameterDeclaration:tn,updateTypeParameterDeclaration:sr,createParameterDeclaration:mr,updateParameterDeclaration:hr,createDecorator:Fn,updateDecorator:zn,createPropertySignature:Or,updatePropertySignature:Vn,createPropertyDeclaration:yr,updatePropertyDeclaration:L,createMethodSignature:se,updateMethodSignature:fe,createMethodDeclaration:Te,updateMethodDeclaration:He,createConstructorDeclaration:lt,updateConstructorDeclaration:Mr,createGetAccessorDeclaration:Nn,updateGetAccessorDeclaration:Wn,createSetAccessorDeclaration:U,updateSetAccessorDeclaration:K,createCallSignature:xe,updateCallSignature:Se,createConstructSignature:we,updateConstructSignature:me,createIndexSignature:Ve,updateIndexSignature:Ze,createClassStaticBlockDeclaration:st,updateClassStaticBlockDeclaration:Ct,createTemplateLiteralTypeSpan:Ye,updateTemplateLiteralTypeSpan:Ee,createKeywordTypeNode:gn,createTypePredicateNode:rt,updateTypePredicateNode:on,createTypeReferenceNode:Zr,updateTypeReferenceNode:M,createFunctionTypeNode:Ue,updateFunctionTypeNode:u,createConstructorTypeNode:Me,updateConstructorTypeNode:nn,createTypeQueryNode:Dt,updateTypeQueryNode:wt,createTypeLiteralNode:Pt,updateTypeLiteralNode:Ft,createArrayTypeNode:Gn,updateArrayTypeNode:ki,createTupleTypeNode:cn,updateTupleTypeNode:H,createNamedTupleMember:le,updateNamedTupleMember:qe,createOptionalTypeNode:ve,updateOptionalTypeNode:J,createRestTypeNode:mt,updateRestTypeNode:xt,createUnionTypeNode:ql,updateUnionTypeNode:C_,createIntersectionTypeNode:Lr,updateIntersectionTypeNode:Le,createConditionalTypeNode:pt,updateConditionalTypeNode:Fl,createInferTypeNode:Yn,updateInferTypeNode:zl,createImportTypeNode:_r,updateImportTypeNode:oa,createParenthesizedType:Qt,updateParenthesizedType:At,createThisTypeNode:P,createTypeOperatorNode:Gt,updateTypeOperatorNode:Jr,createIndexedAccessTypeNode:or,updateIndexedAccessTypeNode:Ka,createMappedTypeNode:gt,updateMappedTypeNode:jt,createLiteralTypeNode:ei,updateLiteralTypeNode:br,createTemplateLiteralType:Wt,updateTemplateLiteralType:Vl,createObjectBindingPattern:D_,updateObjectBindingPattern:Wl,createArrayBindingPattern:jr,updateArrayBindingPattern:Gl,createBindingElement:ca,updateBindingElement:ti,createArrayLiteralExpression:Za,updateArrayLiteralExpression:P_,createObjectLiteralExpression:Ei,updateObjectLiteralExpression:Yl,createPropertyAccessExpression:e&4?(n,i)=>setEmitFlags(cr(n,i),262144):cr,updatePropertyAccessExpression:Hl,createPropertyAccessChain:e&4?(n,i,s)=>setEmitFlags(Ai(n,i,s),262144):Ai,updatePropertyAccessChain:la,createElementAccessExpression:Ci,updateElementAccessExpression:Xl,createElementAccessChain:O_,updateElementAccessChain:es,createCallExpression:Di,updateCallExpression:ua,createCallChain:ts,updateCallChain:L_,createNewExpression:bn,updateNewExpression:ns,createTaggedTemplateExpression:pa,updateTaggedTemplateExpression:J_,createTypeAssertion:j_,updateTypeAssertion:R_,createParenthesizedExpression:rs,updateParenthesizedExpression:U_,createFunctionExpression:is,updateFunctionExpression:B_,createArrowFunction:as,updateArrowFunction:q_,createDeleteExpression:F_,updateDeleteExpression:z_,createTypeOfExpression:fa,updateTypeOfExpression:un,createVoidExpression:ss,updateVoidExpression:lr,createAwaitExpression:V_,updateAwaitExpression:Rr,createPrefixUnaryExpression:Ur,updatePrefixUnaryExpression:$l,createPostfixUnaryExpression:ni,updatePostfixUnaryExpression:Ql,createBinaryExpression:da,updateBinaryExpression:Kl,createConditionalExpression:G_,updateConditionalExpression:Y_,createTemplateExpression:H_,updateTemplateExpression:Hn,createTemplateHead:$_,createTemplateMiddle:ma,createTemplateTail:_s,createNoSubstitutionTemplateLiteral:eu,createTemplateLiteralLikeNode:ii,createYieldExpression:os,updateYieldExpression:tu,createSpreadElement:Q_,updateSpreadElement:nu,createClassExpression:K_,updateClassExpression:cs,createOmittedExpression:ls,createExpressionWithTypeArguments:Z_,updateExpressionWithTypeArguments:eo,createAsExpression:pn,updateAsExpression:ha,createNonNullExpression:to,updateNonNullExpression:no,createSatisfiesExpression:us,updateSatisfiesExpression:ro,createNonNullChain:ps,updateNonNullChain:In,createMetaProperty:io,updateMetaProperty:fs,createTemplateSpan:Xn,updateTemplateSpan:ya,createSemicolonClassElement:ao,createBlock:Br,updateBlock:ru,createVariableStatement:ds,updateVariableStatement:so,createEmptyStatement:_o,createExpressionStatement:Ni,updateExpressionStatement:oo,createIfStatement:co,updateIfStatement:lo,createDoStatement:uo,updateDoStatement:po,createWhileStatement:fo,updateWhileStatement:iu,createForStatement:mo,updateForStatement:ho,createForInStatement:ms,updateForInStatement:au,createForOfStatement:yo,updateForOfStatement:su,createContinueStatement:go,updateContinueStatement:_u,createBreakStatement:hs,updateBreakStatement:bo,createReturnStatement:ys,updateReturnStatement:ou,createWithStatement:gs,updateWithStatement:vo,createSwitchStatement:bs,updateSwitchStatement:ai,createLabeledStatement:To,updateLabeledStatement:xo,createThrowStatement:So,updateThrowStatement:cu,createTryStatement:wo,updateTryStatement:lu,createDebuggerStatement:ko,createVariableDeclaration:ga,updateVariableDeclaration:Eo,createVariableDeclarationList:vs,updateVariableDeclarationList:uu,createFunctionDeclaration:Ao,updateFunctionDeclaration:Ts,createClassDeclaration:Co,updateClassDeclaration:ba,createInterfaceDeclaration:Do,updateInterfaceDeclaration:Po,createTypeAliasDeclaration:_t,updateTypeAliasDeclaration:vr,createEnumDeclaration:xs,updateEnumDeclaration:Tr,createModuleDeclaration:No,updateModuleDeclaration:kt,createModuleBlock:xr,updateModuleBlock:zt,createCaseBlock:Io,updateCaseBlock:fu,createNamespaceExportDeclaration:Oo,updateNamespaceExportDeclaration:Mo,createImportEqualsDeclaration:Lo,updateImportEqualsDeclaration:Jo,createImportDeclaration:jo,updateImportDeclaration:Ro,createImportClause:Uo,updateImportClause:Bo,createAssertClause:Ss,updateAssertClause:mu,createAssertEntry:Ii,updateAssertEntry:qo,createImportTypeAssertionContainer:ws,updateImportTypeAssertionContainer:Fo,createImportAttributes:zo,updateImportAttributes:ks,createImportAttribute:Vo,updateImportAttribute:Wo,createNamespaceImport:Go,updateNamespaceImport:hu,createNamespaceExport:Yo,updateNamespaceExport:yu,createNamedImports:Ho,updateNamedImports:Xo,createImportSpecifier:Sr,updateImportSpecifier:gu,createExportAssignment:va,updateExportAssignment:Oi,createExportDeclaration:Ta,updateExportDeclaration:$o,createNamedExports:Es,updateNamedExports:bu,createExportSpecifier:xa,updateExportSpecifier:vu,createMissingDeclaration:Tu,createExternalModuleReference:As,updateExternalModuleReference:xu,get createJSDocAllType(){return c(313)},get createJSDocUnknownType(){return c(314)},get createJSDocNonNullableType(){return G(316)},get updateJSDocNonNullableType(){return E(316)},get createJSDocNullableType(){return G(315)},get updateJSDocNullableType(){return E(315)},get createJSDocOptionalType(){return W(317)},get updateJSDocOptionalType(){return y(317)},get createJSDocVariadicType(){return W(319)},get updateJSDocVariadicType(){return y(319)},get createJSDocNamepathType(){return W(320)},get updateJSDocNamepathType(){return y(320)},createJSDocFunctionType:Zo,updateJSDocFunctionType:ku,createJSDocTypeLiteral:ec,updateJSDocTypeLiteral:Eu,createJSDocTypeExpression:tc,updateJSDocTypeExpression:Ds,createJSDocSignature:nc,updateJSDocSignature:Au,createJSDocTemplateTag:Ps,updateJSDocTemplateTag:rc,createJSDocTypedefTag:Sa,updateJSDocTypedefTag:Cu,createJSDocParameterTag:Ns,updateJSDocParameterTag:Du,createJSDocPropertyTag:ic,updateJSDocPropertyTag:ac,createJSDocCallbackTag:sc,updateJSDocCallbackTag:_c,createJSDocOverloadTag:oc,updateJSDocOverloadTag:Is,createJSDocAugmentsTag:Os,updateJSDocAugmentsTag:Li,createJSDocImplementsTag:cc,updateJSDocImplementsTag:Mu,createJSDocSeeTag:Fr,updateJSDocSeeTag:wa,createJSDocImportTag:vc,updateJSDocImportTag:Tc,createJSDocNameReference:lc,updateJSDocNameReference:Pu,createJSDocMemberName:uc,updateJSDocMemberName:Nu,createJSDocLink:pc,updateJSDocLink:fc,createJSDocLinkCode:dc,updateJSDocLinkCode:Iu,createJSDocLinkPlain:mc,updateJSDocLinkPlain:Ou,get createJSDocTypeTag(){return ue(345)},get updateJSDocTypeTag(){return be(345)},get createJSDocReturnTag(){return ue(343)},get updateJSDocReturnTag(){return be(343)},get createJSDocThisTag(){return ue(344)},get updateJSDocThisTag(){return be(344)},get createJSDocAuthorTag(){return D(331)},get updateJSDocAuthorTag(){return R(331)},get createJSDocClassTag(){return D(333)},get updateJSDocClassTag(){return R(333)},get createJSDocPublicTag(){return D(334)},get updateJSDocPublicTag(){return R(334)},get createJSDocPrivateTag(){return D(335)},get updateJSDocPrivateTag(){return R(335)},get createJSDocProtectedTag(){return D(336)},get updateJSDocProtectedTag(){return R(336)},get createJSDocReadonlyTag(){return D(337)},get updateJSDocReadonlyTag(){return R(337)},get createJSDocOverrideTag(){return D(338)},get updateJSDocOverrideTag(){return R(338)},get createJSDocDeprecatedTag(){return D(332)},get updateJSDocDeprecatedTag(){return R(332)},get createJSDocThrowsTag(){return ue(350)},get updateJSDocThrowsTag(){return be(350)},get createJSDocSatisfiesTag(){return ue(351)},get updateJSDocSatisfiesTag(){return be(351)},createJSDocEnumTag:bc,updateJSDocEnumTag:Ms,createJSDocUnknownTag:gc,updateJSDocUnknownTag:ju,createJSDocText:Ls,updateJSDocText:Ru,createJSDocComment:Ji,updateJSDocComment:xc,createJsxElement:Sc,updateJsxElement:Uu,createJsxSelfClosingElement:wc,updateJsxSelfClosingElement:Bu,createJsxOpeningElement:ka,updateJsxOpeningElement:kc,createJsxClosingElement:Js,updateJsxClosingElement:js,createJsxFragment:Yt,createJsxText:ji,updateJsxText:qu,createJsxOpeningFragment:Ac,createJsxJsxClosingFragment:Cc,updateJsxFragment:Ec,createJsxAttribute:Dc,updateJsxAttribute:Fu,createJsxAttributes:Ri,updateJsxAttributes:zu,createJsxSpreadAttribute:Pc,updateJsxSpreadAttribute:Vu,createJsxExpression:Nc,updateJsxExpression:Rs,createJsxNamespacedName:si,updateJsxNamespacedName:Wu,createCaseClause:Ea,updateCaseClause:Ic,createDefaultClause:Oc,updateDefaultClause:Ui,createHeritageClause:Us,updateHeritageClause:Gu,createCatchClause:Mc,updateCatchClause:Lc,createPropertyAssignment:Aa,updatePropertyAssignment:Bs,createShorthandPropertyAssignment:Jc,updateShorthandPropertyAssignment:Yu,createSpreadAssignment:jc,updateSpreadAssignment:Rc,createEnumMember:qs,updateEnumMember:On,createSourceFile:Uc,updateSourceFile:Qu,createRedirectedSourceFile:Bc,createBundle:qc,updateBundle:Fc,createSyntheticExpression:Ku,createSyntaxList:Zu,createNotEmittedStatement:Ca,createNotEmittedTypeElement:ep,createPartiallyEmittedExpression:Vs,updatePartiallyEmittedExpression:zc,createCommaListExpression:Ws,updateCommaListExpression:np,createSyntheticReferenceExpression:Gs,updateSyntheticReferenceExpression:Vc,cloneNode:Da,get createComma(){return h(28)},get createAssignment(){return h(64)},get createLogicalOr(){return h(57)},get createLogicalAnd(){return h(56)},get createBitwiseOr(){return h(52)},get createBitwiseXor(){return h(53)},get createBitwiseAnd(){return h(51)},get createStrictEquality(){return h(37)},get createStrictInequality(){return h(38)},get createEquality(){return h(35)},get createInequality(){return h(36)},get createLessThan(){return h(30)},get createLessThanEquals(){return h(33)},get createGreaterThan(){return h(32)},get createGreaterThanEquals(){return h(34)},get createLeftShift(){return h(48)},get createRightShift(){return h(49)},get createUnsignedRightShift(){return h(50)},get createAdd(){return h(40)},get createSubtract(){return h(41)},get createMultiply(){return h(42)},get createDivide(){return h(44)},get createModulo(){return h(45)},get createExponent(){return h(43)},get createPrefixPlus(){return T(40)},get createPrefixMinus(){return T(41)},get createPrefixIncrement(){return T(46)},get createPrefixDecrement(){return T(47)},get createBitwiseNot(){return T(55)},get createLogicalNot(){return T(54)},get createPostfixIncrement(){return k(46)},get createPostfixDecrement(){return k(47)},createImmediatelyInvokedFunctionExpression:ap,createImmediatelyInvokedArrowFunction:sp,createVoidZero:Bi,createExportDefault:Yc,createExternalModuleExport:Hc,createTypeCheck:_p,createIsNotTypeCheck:Ys,createMethodCall:zr,createGlobalMethodCall:qi,createFunctionBindCall:op,createFunctionCallCall:cp,createFunctionApplyCall:lp,createArraySliceCall:up,createArrayConcatCall:Fi,createObjectDefinePropertyCall:pp,createObjectGetOwnPropertyDescriptorCall:Hs,createReflectGetCall:oi,createReflectSetCall:Xc,createPropertyDescriptor:fp,createCallBinding:Zc,createAssignmentTargetWrapper:el,inlineExpressions:o,getInternalName:m,getLocalName:g,getExportName:b,getDeclarationName:N,getNamespaceMemberName:Q,getExternalModuleOrNamespaceExportName:_e,restoreOuterExpressions:Qc,restoreEnclosingLabel:Kc,createUseStrictPrologue:ce,copyPrologue:ee,copyStandardPrologue:je,copyCustomPrologue:Je,ensureUseStrict:De,liftToBlock:Ht,mergeLexicalEnvironment:ur,replaceModifiers:pr,replaceDecoratorsAndModifiers:Mn,replacePropertyName:Vr};return jn(Mb,n=>n(he)),he;function de(n,i){if(n===void 0||n===vt)n=[];else if(mi(n)){if(i===void 0||n.hasTrailingComma===i)return n.transformFlags===void 0&&Vd(n),q.attachNodeArrayDebugInfo(n),n;let d=n.slice();return d.pos=n.pos,d.end=n.end,d.hasTrailingComma=i,d.transformFlags=n.transformFlags,q.attachNodeArrayDebugInfo(d),d}let s=n.length,l=s>=1&&s<=4?n.slice():n;return l.pos=-1,l.end=-1,l.hasTrailingComma=!!i,l.transformFlags=0,Vd(l),q.attachNodeArrayDebugInfo(l),l}function O(n){return t.createBaseNode(n)}function ae(n){let i=O(n);return i.symbol=void 0,i.localSymbol=void 0,i}function Oe(n,i){return n!==i&&(n.typeArguments=i.typeArguments),j(n,i)}function V(n,i=0){let s=typeof n=="number"?n+"":n;q.assert(s.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");let l=ae(9);return l.text=s,l.numericLiteralFlags=i,i&384&&(l.transformFlags|=1024),l}function oe(n){let i=$t(10);return i.text=typeof n=="string"?n:kb(n)+"n",i.transformFlags|=32,i}function Y(n,i){let s=ae(11);return s.text=n,s.singleQuote=i,s}function ft(n,i,s){let l=Y(n,i);return l.hasExtendedUnicodeEscape=s,s&&(l.transformFlags|=1024),l}function nr(n){let i=Y(q2(n),void 0);return i.textSourceNode=n,i}function mn(n){let i=$t(14);return i.text=n,i}function rr(n,i){switch(n){case 9:return V(i,0);case 10:return oe(i);case 11:return ft(i,void 0);case 12:return ji(i,!1);case 13:return ji(i,!0);case 14:return mn(i);case 15:return ii(n,i,void 0,0)}}function hn(n){let i=t.createBaseIdentifierNode(80);return i.escapedText=n,i.jsDoc=void 0,i.flowNode=void 0,i.symbol=void 0,i}function Dn(n,i,s,l){let d=hn(La(n));return setIdentifierAutoGenerate(d,{flags:i,id:_l,prefix:s,suffix:l}),_l++,d}function We(n,i,s){i===void 0&&n&&(i=Um(n)),i===80&&(i=void 0);let l=hn(La(n));return s&&(l.flags|=256),l.escapedText==="await"&&(l.transformFlags|=67108864),l.flags&256&&(l.transformFlags|=1024),l}function ir(n,i,s,l){let d=1;i&&(d|=8);let v=Dn("",d,s,l);return n&&n(v),v}function Ir(n){let i=2;return n&&(i|=8),Dn("",i,void 0,void 0)}function Ot(n,i=0,s,l){return q.assert(!(i&7),"Argument out of range: flags"),q.assert((i&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),Dn(n,3|i,s,l)}function Bn(n,i=0,s,l){q.assert(!(i&7),"Argument out of range: flags");let d=n?Rp(n)?Wp(!1,s,n,l,An):`generated@${getNodeId(n)}`:"";(s||l)&&(i|=16);let v=Dn(d,4|i,s,l);return v.original=n,v}function Pn(n){let i=t.createBasePrivateIdentifierNode(81);return i.escapedText=n,i.transformFlags|=16777216,i}function Mt(n){return ml(n,"#")||q.fail("First character of private identifier must be #: "+n),Pn(La(n))}function ht(n,i,s,l){let d=Pn(La(n));return setIdentifierAutoGenerate(d,{flags:i,id:_l,prefix:s,suffix:l}),_l++,d}function $e(n,i,s){n&&!ml(n,"#")&&q.fail("First character of private identifier must be #: "+n);let l=8|(n?3:1);return ht(n??"",l,i,s)}function qn(n,i,s){let l=Rp(n)?Wp(!0,i,n,s,An):`#generated@${getNodeId(n)}`,v=ht(l,4|(i||s?16:0),i,s);return v.original=n,v}function $t(n){return t.createBaseTokenNode(n)}function ot(n){q.assert(n>=0&&n<=166,"Invalid token"),q.assert(n<=15||n>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),q.assert(n<=9||n>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),q.assert(n!==80,"Invalid token. Use 'createIdentifier' to create identifiers");let i=$t(n),s=0;switch(n){case 134:s=384;break;case 160:s=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:s=1;break;case 108:s=134218752,i.flowNode=void 0;break;case 126:s=1024;break;case 129:s=16777216;break;case 110:s=16384,i.flowNode=void 0;break}return s&&(i.transformFlags|=s),i}function at(){return ot(108)}function Bt(){return ot(110)}function Lt(){return ot(106)}function ct(){return ot(112)}function ar(){return ot(97)}function dt(n){return ot(n)}function yn(n){let i=[];return n&32&&i.push(dt(95)),n&128&&i.push(dt(138)),n&2048&&i.push(dt(90)),n&4096&&i.push(dt(87)),n&1&&i.push(dt(125)),n&2&&i.push(dt(123)),n&4&&i.push(dt(124)),n&64&&i.push(dt(128)),n&256&&i.push(dt(126)),n&16&&i.push(dt(164)),n&8&&i.push(dt(148)),n&512&&i.push(dt(129)),n&1024&&i.push(dt(134)),n&8192&&i.push(dt(103)),n&16384&&i.push(dt(147)),i.length?i:void 0}function yt(n,i){let s=O(167);return s.left=n,s.right=et(i),s.transformFlags|=z(s.left)|ja(s.right),s.flowNode=void 0,s}function _n(n,i,s){return n.left!==i||n.right!==s?j(yt(i,s),n):n}function tt(n){let i=O(168);return i.expression=_().parenthesizeExpressionOfComputedPropertyName(n),i.transformFlags|=z(i.expression)|1024|131072,i}function qt(n,i){return n.expression!==i?j(tt(i),n):n}function tn(n,i,s,l){let d=ae(169);return d.modifiers=Pe(n),d.name=et(i),d.constraint=s,d.default=l,d.transformFlags=1,d.expression=void 0,d.jsDoc=void 0,d}function sr(n,i,s,l,d){return n.modifiers!==i||n.name!==s||n.constraint!==l||n.default!==d?j(tn(i,s,l,d),n):n}function mr(n,i,s,l,d,v){let F=ae(170);return F.modifiers=Pe(n),F.dotDotDotToken=i,F.name=et(s),F.questionToken=l,F.type=d,F.initializer=zi(v),z2(F.name)?F.transformFlags=1:F.transformFlags=ke(F.modifiers)|z(F.dotDotDotToken)|Ln(F.name)|z(F.questionToken)|z(F.initializer)|(F.questionToken??F.type?1:0)|(F.dotDotDotToken??F.initializer?1024:0)|(Jn(F.modifiers)&31?8192:0),F.jsDoc=void 0,F}function hr(n,i,s,l,d,v,F){return n.modifiers!==i||n.dotDotDotToken!==s||n.name!==l||n.questionToken!==d||n.type!==v||n.initializer!==F?j(mr(i,s,l,d,v,F),n):n}function Fn(n){let i=O(171);return i.expression=_().parenthesizeLeftSideOfAccess(n,!1),i.transformFlags|=z(i.expression)|1|8192|33554432,i}function zn(n,i){return n.expression!==i?j(Fn(i),n):n}function Or(n,i,s,l){let d=ae(172);return d.modifiers=Pe(n),d.name=et(i),d.type=l,d.questionToken=s,d.transformFlags=1,d.initializer=void 0,d.jsDoc=void 0,d}function Vn(n,i,s,l,d){return n.modifiers!==i||n.name!==s||n.questionToken!==l||n.type!==d?Ce(Or(i,s,l,d),n):n}function Ce(n,i){return n!==i&&(n.initializer=i.initializer),j(n,i)}function yr(n,i,s,l,d){let v=ae(173);v.modifiers=Pe(n),v.name=et(i),v.questionToken=s&&Gd(s)?s:void 0,v.exclamationToken=s&&Wd(s)?s:void 0,v.type=l,v.initializer=zi(d);let F=v.flags&33554432||Jn(v.modifiers)&128;return v.transformFlags=ke(v.modifiers)|Ln(v.name)|z(v.initializer)|(F||v.questionToken||v.exclamationToken||v.type?1:0)|(Ef(v.name)||Jn(v.modifiers)&256&&v.initializer?8192:0)|16777216,v.jsDoc=void 0,v}function L(n,i,s,l,d,v){return n.modifiers!==i||n.name!==s||n.questionToken!==(l!==void 0&&Gd(l)?l:void 0)||n.exclamationToken!==(l!==void 0&&Wd(l)?l:void 0)||n.type!==d||n.initializer!==v?j(yr(i,s,l,d,v),n):n}function se(n,i,s,l,d,v){let F=ae(174);return F.modifiers=Pe(n),F.name=et(i),F.questionToken=s,F.typeParameters=Pe(l),F.parameters=Pe(d),F.type=v,F.transformFlags=1,F.jsDoc=void 0,F.locals=void 0,F.nextContainer=void 0,F.typeArguments=void 0,F}function fe(n,i,s,l,d,v,F){return n.modifiers!==i||n.name!==s||n.questionToken!==l||n.typeParameters!==d||n.parameters!==v||n.type!==F?Oe(se(i,s,l,d,v,F),n):n}function Te(n,i,s,l,d,v,F,pe){let Fe=ae(175);if(Fe.modifiers=Pe(n),Fe.asteriskToken=i,Fe.name=et(s),Fe.questionToken=l,Fe.exclamationToken=void 0,Fe.typeParameters=Pe(d),Fe.parameters=de(v),Fe.type=F,Fe.body=pe,!Fe.body)Fe.transformFlags=1;else{let It=Jn(Fe.modifiers)&1024,fr=!!Fe.asteriskToken,xn=It&&fr;Fe.transformFlags=ke(Fe.modifiers)|z(Fe.asteriskToken)|Ln(Fe.name)|z(Fe.questionToken)|ke(Fe.typeParameters)|ke(Fe.parameters)|z(Fe.type)|z(Fe.body)&-67108865|(xn?128:It?256:fr?2048:0)|(Fe.questionToken||Fe.typeParameters||Fe.type?1:0)|1024}return Fe.typeArguments=void 0,Fe.jsDoc=void 0,Fe.locals=void 0,Fe.nextContainer=void 0,Fe.flowNode=void 0,Fe.endFlowNode=void 0,Fe.returnFlowNode=void 0,Fe}function He(n,i,s,l,d,v,F,pe,Fe){return n.modifiers!==i||n.asteriskToken!==s||n.name!==l||n.questionToken!==d||n.typeParameters!==v||n.parameters!==F||n.type!==pe||n.body!==Fe?Qe(Te(i,s,l,d,v,F,pe,Fe),n):n}function Qe(n,i){return n!==i&&(n.exclamationToken=i.exclamationToken),j(n,i)}function st(n){let i=ae(176);return i.body=n,i.transformFlags=z(n)|16777216,i.modifiers=void 0,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.endFlowNode=void 0,i.returnFlowNode=void 0,i}function Ct(n,i){return n.body!==i?Tt(st(i),n):n}function Tt(n,i){return n!==i&&(n.modifiers=i.modifiers),j(n,i)}function lt(n,i,s){let l=ae(177);return l.modifiers=Pe(n),l.parameters=de(i),l.body=s,l.body?l.transformFlags=ke(l.modifiers)|ke(l.parameters)|z(l.body)&-67108865|1024:l.transformFlags=1,l.typeParameters=void 0,l.type=void 0,l.typeArguments=void 0,l.jsDoc=void 0,l.locals=void 0,l.nextContainer=void 0,l.endFlowNode=void 0,l.returnFlowNode=void 0,l}function Mr(n,i,s,l){return n.modifiers!==i||n.parameters!==s||n.body!==l?gr(lt(i,s,l),n):n}function gr(n,i){return n!==i&&(n.typeParameters=i.typeParameters,n.type=i.type),Oe(n,i)}function Nn(n,i,s,l,d){let v=ae(178);return v.modifiers=Pe(n),v.name=et(i),v.parameters=de(s),v.type=l,v.body=d,v.body?v.transformFlags=ke(v.modifiers)|Ln(v.name)|ke(v.parameters)|z(v.type)|z(v.body)&-67108865|(v.type?1:0):v.transformFlags=1,v.typeArguments=void 0,v.typeParameters=void 0,v.jsDoc=void 0,v.locals=void 0,v.nextContainer=void 0,v.flowNode=void 0,v.endFlowNode=void 0,v.returnFlowNode=void 0,v}function Wn(n,i,s,l,d,v){return n.modifiers!==i||n.name!==s||n.parameters!==l||n.type!==d||n.body!==v?wi(Nn(i,s,l,d,v),n):n}function wi(n,i){return n!==i&&(n.typeParameters=i.typeParameters),Oe(n,i)}function U(n,i,s,l){let d=ae(179);return d.modifiers=Pe(n),d.name=et(i),d.parameters=de(s),d.body=l,d.body?d.transformFlags=ke(d.modifiers)|Ln(d.name)|ke(d.parameters)|z(d.body)&-67108865|(d.type?1:0):d.transformFlags=1,d.typeArguments=void 0,d.typeParameters=void 0,d.type=void 0,d.jsDoc=void 0,d.locals=void 0,d.nextContainer=void 0,d.flowNode=void 0,d.endFlowNode=void 0,d.returnFlowNode=void 0,d}function K(n,i,s,l,d){return n.modifiers!==i||n.name!==s||n.parameters!==l||n.body!==d?Z(U(i,s,l,d),n):n}function Z(n,i){return n!==i&&(n.typeParameters=i.typeParameters,n.type=i.type),Oe(n,i)}function xe(n,i,s){let l=ae(180);return l.typeParameters=Pe(n),l.parameters=Pe(i),l.type=s,l.transformFlags=1,l.jsDoc=void 0,l.locals=void 0,l.nextContainer=void 0,l.typeArguments=void 0,l}function Se(n,i,s,l){return n.typeParameters!==i||n.parameters!==s||n.type!==l?Oe(xe(i,s,l),n):n}function we(n,i,s){let l=ae(181);return l.typeParameters=Pe(n),l.parameters=Pe(i),l.type=s,l.transformFlags=1,l.jsDoc=void 0,l.locals=void 0,l.nextContainer=void 0,l.typeArguments=void 0,l}function me(n,i,s,l){return n.typeParameters!==i||n.parameters!==s||n.type!==l?Oe(we(i,s,l),n):n}function Ve(n,i,s){let l=ae(182);return l.modifiers=Pe(n),l.parameters=Pe(i),l.type=s,l.transformFlags=1,l.jsDoc=void 0,l.locals=void 0,l.nextContainer=void 0,l.typeArguments=void 0,l}function Ze(n,i,s,l){return n.parameters!==s||n.type!==l||n.modifiers!==i?Oe(Ve(i,s,l),n):n}function Ye(n,i){let s=O(205);return s.type=n,s.literal=i,s.transformFlags=1,s}function Ee(n,i,s){return n.type!==i||n.literal!==s?j(Ye(i,s),n):n}function gn(n){return ot(n)}function rt(n,i,s){let l=O(183);return l.assertsModifier=n,l.parameterName=et(i),l.type=s,l.transformFlags=1,l}function on(n,i,s,l){return n.assertsModifier!==i||n.parameterName!==s||n.type!==l?j(rt(i,s,l),n):n}function Zr(n,i){let s=O(184);return s.typeName=et(n),s.typeArguments=i&&_().parenthesizeTypeArguments(de(i)),s.transformFlags=1,s}function M(n,i,s){return n.typeName!==i||n.typeArguments!==s?j(Zr(i,s),n):n}function Ue(n,i,s){let l=ae(185);return l.typeParameters=Pe(n),l.parameters=Pe(i),l.type=s,l.transformFlags=1,l.modifiers=void 0,l.jsDoc=void 0,l.locals=void 0,l.nextContainer=void 0,l.typeArguments=void 0,l}function u(n,i,s,l){return n.typeParameters!==i||n.parameters!==s||n.type!==l?Ie(Ue(i,s,l),n):n}function Ie(n,i){return n!==i&&(n.modifiers=i.modifiers),Oe(n,i)}function Me(...n){return n.length===4?B(...n):n.length===3?Be(...n):q.fail("Incorrect number of arguments specified.")}function B(n,i,s,l){let d=ae(186);return d.modifiers=Pe(n),d.typeParameters=Pe(i),d.parameters=Pe(s),d.type=l,d.transformFlags=1,d.jsDoc=void 0,d.locals=void 0,d.nextContainer=void 0,d.typeArguments=void 0,d}function Be(n,i,s){return B(void 0,n,i,s)}function nn(...n){return n.length===5?ze(...n):n.length===4?Xe(...n):q.fail("Incorrect number of arguments specified.")}function ze(n,i,s,l,d){return n.modifiers!==i||n.typeParameters!==s||n.parameters!==l||n.type!==d?Oe(Me(i,s,l,d),n):n}function Xe(n,i,s,l){return ze(n,n.modifiers,i,s,l)}function Dt(n,i){let s=O(187);return s.exprName=n,s.typeArguments=i&&_().parenthesizeTypeArguments(i),s.transformFlags=1,s}function wt(n,i,s){return n.exprName!==i||n.typeArguments!==s?j(Dt(i,s),n):n}function Pt(n){let i=ae(188);return i.members=de(n),i.transformFlags=1,i}function Ft(n,i){return n.members!==i?j(Pt(i),n):n}function Gn(n){let i=O(189);return i.elementType=_().parenthesizeNonArrayTypeOfPostfixType(n),i.transformFlags=1,i}function ki(n,i){return n.elementType!==i?j(Gn(i),n):n}function cn(n){let i=O(190);return i.elements=de(_().parenthesizeElementTypesOfTupleType(n)),i.transformFlags=1,i}function H(n,i){return n.elements!==i?j(cn(i),n):n}function le(n,i,s,l){let d=ae(203);return d.dotDotDotToken=n,d.name=i,d.questionToken=s,d.type=l,d.transformFlags=1,d.jsDoc=void 0,d}function qe(n,i,s,l,d){return n.dotDotDotToken!==i||n.name!==s||n.questionToken!==l||n.type!==d?j(le(i,s,l,d),n):n}function ve(n){let i=O(191);return i.type=_().parenthesizeTypeOfOptionalType(n),i.transformFlags=1,i}function J(n,i){return n.type!==i?j(ve(i),n):n}function mt(n){let i=O(192);return i.type=n,i.transformFlags=1,i}function xt(n,i){return n.type!==i?j(mt(i),n):n}function Jt(n,i,s){let l=O(n);return l.types=he.createNodeArray(s(i)),l.transformFlags=1,l}function ln(n,i,s){return n.types!==i?j(Jt(n.kind,i,s),n):n}function ql(n){return Jt(193,n,_().parenthesizeConstituentTypesOfUnionType)}function C_(n,i){return ln(n,i,_().parenthesizeConstituentTypesOfUnionType)}function Lr(n){return Jt(194,n,_().parenthesizeConstituentTypesOfIntersectionType)}function Le(n,i){return ln(n,i,_().parenthesizeConstituentTypesOfIntersectionType)}function pt(n,i,s,l){let d=O(195);return d.checkType=_().parenthesizeCheckTypeOfConditionalType(n),d.extendsType=_().parenthesizeExtendsTypeOfConditionalType(i),d.trueType=s,d.falseType=l,d.transformFlags=1,d.locals=void 0,d.nextContainer=void 0,d}function Fl(n,i,s,l,d){return n.checkType!==i||n.extendsType!==s||n.trueType!==l||n.falseType!==d?j(pt(i,s,l,d),n):n}function Yn(n){let i=O(196);return i.typeParameter=n,i.transformFlags=1,i}function zl(n,i){return n.typeParameter!==i?j(Yn(i),n):n}function Wt(n,i){let s=O(204);return s.head=n,s.templateSpans=de(i),s.transformFlags=1,s}function Vl(n,i,s){return n.head!==i||n.templateSpans!==s?j(Wt(i,s),n):n}function _r(n,i,s,l,d=!1){let v=O(206);return v.argument=n,v.attributes=i,v.assertions&&v.assertions.assertClause&&v.attributes&&(v.assertions.assertClause=v.attributes),v.qualifier=s,v.typeArguments=l&&_().parenthesizeTypeArguments(l),v.isTypeOf=d,v.transformFlags=1,v}function oa(n,i,s,l,d,v=n.isTypeOf){return n.argument!==i||n.attributes!==s||n.qualifier!==l||n.typeArguments!==d||n.isTypeOf!==v?j(_r(i,s,l,d,v),n):n}function Qt(n){let i=O(197);return i.type=n,i.transformFlags=1,i}function At(n,i){return n.type!==i?j(Qt(i),n):n}function P(){let n=O(198);return n.transformFlags=1,n}function Gt(n,i){let s=O(199);return s.operator=n,s.type=n===148?_().parenthesizeOperandOfReadonlyTypeOperator(i):_().parenthesizeOperandOfTypeOperator(i),s.transformFlags=1,s}function Jr(n,i){return n.type!==i?j(Gt(n.operator,i),n):n}function or(n,i){let s=O(200);return s.objectType=_().parenthesizeNonArrayTypeOfPostfixType(n),s.indexType=i,s.transformFlags=1,s}function Ka(n,i,s){return n.objectType!==i||n.indexType!==s?j(or(i,s),n):n}function gt(n,i,s,l,d,v){let F=ae(201);return F.readonlyToken=n,F.typeParameter=i,F.nameType=s,F.questionToken=l,F.type=d,F.members=v&&de(v),F.transformFlags=1,F.locals=void 0,F.nextContainer=void 0,F}function jt(n,i,s,l,d,v,F){return n.readonlyToken!==i||n.typeParameter!==s||n.nameType!==l||n.questionToken!==d||n.type!==v||n.members!==F?j(gt(i,s,l,d,v,F),n):n}function ei(n){let i=O(202);return i.literal=n,i.transformFlags=1,i}function br(n,i){return n.literal!==i?j(ei(i),n):n}function D_(n){let i=O(207);return i.elements=de(n),i.transformFlags|=ke(i.elements)|1024|524288,i.transformFlags&32768&&(i.transformFlags|=65664),i}function Wl(n,i){return n.elements!==i?j(D_(i),n):n}function jr(n){let i=O(208);return i.elements=de(n),i.transformFlags|=ke(i.elements)|1024|524288,i}function Gl(n,i){return n.elements!==i?j(jr(i),n):n}function ca(n,i,s,l){let d=ae(209);return d.dotDotDotToken=n,d.propertyName=et(i),d.name=et(s),d.initializer=zi(l),d.transformFlags|=z(d.dotDotDotToken)|Ln(d.propertyName)|Ln(d.name)|z(d.initializer)|(d.dotDotDotToken?32768:0)|1024,d.flowNode=void 0,d}function ti(n,i,s,l,d){return n.propertyName!==s||n.dotDotDotToken!==i||n.name!==l||n.initializer!==d?j(ca(i,s,l,d),n):n}function Za(n,i){let s=O(210),l=n&&Ba(n),d=de(n,l&&G1(l)?!0:void 0);return s.elements=_().parenthesizeExpressionsOfCommaDelimitedList(d),s.multiLine=i,s.transformFlags|=ke(s.elements),s}function P_(n,i){return n.elements!==i?j(Za(i,n.multiLine),n):n}function Ei(n,i){let s=ae(211);return s.properties=de(n),s.multiLine=i,s.transformFlags|=ke(s.properties),s.jsDoc=void 0,s}function Yl(n,i){return n.properties!==i?j(Ei(i,n.multiLine),n):n}function N_(n,i,s){let l=ae(212);return l.expression=n,l.questionDotToken=i,l.name=s,l.transformFlags=z(l.expression)|z(l.questionDotToken)|(Ke(l.name)?ja(l.name):z(l.name)|536870912),l.jsDoc=void 0,l.flowNode=void 0,l}function cr(n,i){let s=N_(_().parenthesizeLeftSideOfAccess(n,!1),void 0,et(i));return Cp(n)&&(s.transformFlags|=384),s}function Hl(n,i,s){return jg(n)?la(n,i,n.questionDotToken,Er(s,Ke)):n.expression!==i||n.name!==s?j(cr(i,s),n):n}function Ai(n,i,s){let l=N_(_().parenthesizeLeftSideOfAccess(n,!0),i,et(s));return l.flags|=64,l.transformFlags|=32,l}function la(n,i,s,l){return q.assert(!!(n.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),n.expression!==i||n.questionDotToken!==s||n.name!==l?j(Ai(i,s,l),n):n}function I_(n,i,s){let l=ae(213);return l.expression=n,l.questionDotToken=i,l.argumentExpression=s,l.transformFlags|=z(l.expression)|z(l.questionDotToken)|z(l.argumentExpression),l.jsDoc=void 0,l.flowNode=void 0,l}function Ci(n,i){let s=I_(_().parenthesizeLeftSideOfAccess(n,!1),void 0,wr(i));return Cp(n)&&(s.transformFlags|=384),s}function Xl(n,i,s){return Rg(n)?es(n,i,n.questionDotToken,s):n.expression!==i||n.argumentExpression!==s?j(Ci(i,s),n):n}function O_(n,i,s){let l=I_(_().parenthesizeLeftSideOfAccess(n,!0),i,wr(s));return l.flags|=64,l.transformFlags|=32,l}function es(n,i,s,l){return q.assert(!!(n.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),n.expression!==i||n.questionDotToken!==s||n.argumentExpression!==l?j(O_(i,s,l),n):n}function M_(n,i,s,l){let d=ae(214);return d.expression=n,d.questionDotToken=i,d.typeArguments=s,d.arguments=l,d.transformFlags|=z(d.expression)|z(d.questionDotToken)|ke(d.typeArguments)|ke(d.arguments),d.typeArguments&&(d.transformFlags|=1),jd(d.expression)&&(d.transformFlags|=16384),d}function Di(n,i,s){let l=M_(_().parenthesizeLeftSideOfAccess(n,!1),void 0,Pe(i),_().parenthesizeExpressionsOfCommaDelimitedList(de(s)));return Vb(l.expression)&&(l.transformFlags|=8388608),l}function ua(n,i,s,l){return Pd(n)?L_(n,i,n.questionDotToken,s,l):n.expression!==i||n.typeArguments!==s||n.arguments!==l?j(Di(i,s,l),n):n}function ts(n,i,s,l){let d=M_(_().parenthesizeLeftSideOfAccess(n,!0),i,Pe(s),_().parenthesizeExpressionsOfCommaDelimitedList(de(l)));return d.flags|=64,d.transformFlags|=32,d}function L_(n,i,s,l,d){return q.assert(!!(n.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),n.expression!==i||n.questionDotToken!==s||n.typeArguments!==l||n.arguments!==d?j(ts(i,s,l,d),n):n}function bn(n,i,s){let l=ae(215);return l.expression=_().parenthesizeExpressionOfNew(n),l.typeArguments=Pe(i),l.arguments=s?_().parenthesizeExpressionsOfCommaDelimitedList(s):void 0,l.transformFlags|=z(l.expression)|ke(l.typeArguments)|ke(l.arguments)|32,l.typeArguments&&(l.transformFlags|=1),l}function ns(n,i,s,l){return n.expression!==i||n.typeArguments!==s||n.arguments!==l?j(bn(i,s,l),n):n}function pa(n,i,s){let l=O(216);return l.tag=_().parenthesizeLeftSideOfAccess(n,!1),l.typeArguments=Pe(i),l.template=s,l.transformFlags|=z(l.tag)|ke(l.typeArguments)|z(l.template)|1024,l.typeArguments&&(l.transformFlags|=1),F2(l.template)&&(l.transformFlags|=128),l}function J_(n,i,s,l){return n.tag!==i||n.typeArguments!==s||n.template!==l?j(pa(i,s,l),n):n}function j_(n,i){let s=O(217);return s.expression=_().parenthesizeOperandOfPrefixUnary(i),s.type=n,s.transformFlags|=z(s.expression)|z(s.type)|1,s}function R_(n,i,s){return n.type!==i||n.expression!==s?j(j_(i,s),n):n}function rs(n){let i=O(218);return i.expression=n,i.transformFlags=z(i.expression),i.jsDoc=void 0,i}function U_(n,i){return n.expression!==i?j(rs(i),n):n}function is(n,i,s,l,d,v,F){let pe=ae(219);pe.modifiers=Pe(n),pe.asteriskToken=i,pe.name=et(s),pe.typeParameters=Pe(l),pe.parameters=de(d),pe.type=v,pe.body=F;let Fe=Jn(pe.modifiers)&1024,It=!!pe.asteriskToken,fr=Fe&&It;return pe.transformFlags=ke(pe.modifiers)|z(pe.asteriskToken)|Ln(pe.name)|ke(pe.typeParameters)|ke(pe.parameters)|z(pe.type)|z(pe.body)&-67108865|(fr?128:Fe?256:It?2048:0)|(pe.typeParameters||pe.type?1:0)|4194304,pe.typeArguments=void 0,pe.jsDoc=void 0,pe.locals=void 0,pe.nextContainer=void 0,pe.flowNode=void 0,pe.endFlowNode=void 0,pe.returnFlowNode=void 0,pe}function B_(n,i,s,l,d,v,F,pe){return n.name!==l||n.modifiers!==i||n.asteriskToken!==s||n.typeParameters!==d||n.parameters!==v||n.type!==F||n.body!==pe?Oe(is(i,s,l,d,v,F,pe),n):n}function as(n,i,s,l,d,v){let F=ae(220);F.modifiers=Pe(n),F.typeParameters=Pe(i),F.parameters=de(s),F.type=l,F.equalsGreaterThanToken=d??ot(39),F.body=_().parenthesizeConciseBodyOfArrowFunction(v);let pe=Jn(F.modifiers)&1024;return F.transformFlags=ke(F.modifiers)|ke(F.typeParameters)|ke(F.parameters)|z(F.type)|z(F.equalsGreaterThanToken)|z(F.body)&-67108865|(F.typeParameters||F.type?1:0)|(pe?16640:0)|1024,F.typeArguments=void 0,F.jsDoc=void 0,F.locals=void 0,F.nextContainer=void 0,F.flowNode=void 0,F.endFlowNode=void 0,F.returnFlowNode=void 0,F}function q_(n,i,s,l,d,v,F){return n.modifiers!==i||n.typeParameters!==s||n.parameters!==l||n.type!==d||n.equalsGreaterThanToken!==v||n.body!==F?Oe(as(i,s,l,d,v,F),n):n}function F_(n){let i=O(221);return i.expression=_().parenthesizeOperandOfPrefixUnary(n),i.transformFlags|=z(i.expression),i}function z_(n,i){return n.expression!==i?j(F_(i),n):n}function fa(n){let i=O(222);return i.expression=_().parenthesizeOperandOfPrefixUnary(n),i.transformFlags|=z(i.expression),i}function un(n,i){return n.expression!==i?j(fa(i),n):n}function ss(n){let i=O(223);return i.expression=_().parenthesizeOperandOfPrefixUnary(n),i.transformFlags|=z(i.expression),i}function lr(n,i){return n.expression!==i?j(ss(i),n):n}function V_(n){let i=O(224);return i.expression=_().parenthesizeOperandOfPrefixUnary(n),i.transformFlags|=z(i.expression)|256|128|2097152,i}function Rr(n,i){return n.expression!==i?j(V_(i),n):n}function Ur(n,i){let s=O(225);return s.operator=n,s.operand=_().parenthesizeOperandOfPrefixUnary(i),s.transformFlags|=z(s.operand),(n===46||n===47)&&Ke(s.operand)&&!Ua(s.operand)&&!Hd(s.operand)&&(s.transformFlags|=268435456),s}function $l(n,i){return n.operand!==i?j(Ur(n.operator,i),n):n}function ni(n,i){let s=O(226);return s.operator=i,s.operand=_().parenthesizeOperandOfPostfixUnary(n),s.transformFlags|=z(s.operand),Ke(s.operand)&&!Ua(s.operand)&&!Hd(s.operand)&&(s.transformFlags|=268435456),s}function Ql(n,i){return n.operand!==i?j(ni(i,n.operator),n):n}function da(n,i,s){let l=ae(227),d=mp(i),v=d.kind;return l.left=_().parenthesizeLeftSideOfBinary(v,n),l.operatorToken=d,l.right=_().parenthesizeRightSideOfBinary(v,l.left,s),l.transformFlags|=z(l.left)|z(l.operatorToken)|z(l.right),v===61?l.transformFlags|=32:v===64?Of(l.left)?l.transformFlags|=5248|W_(l.left):F1(l.left)&&(l.transformFlags|=5120|W_(l.left)):v===43||v===68?l.transformFlags|=512:Z2(v)&&(l.transformFlags|=16),v===103&&gi(l.left)&&(l.transformFlags|=536870912),l.jsDoc=void 0,l}function W_(n){return oh(n)?65536:0}function Kl(n,i,s,l){return n.left!==i||n.operatorToken!==s||n.right!==l?j(da(i,s,l),n):n}function G_(n,i,s,l,d){let v=O(228);return v.condition=_().parenthesizeConditionOfConditionalExpression(n),v.questionToken=i??ot(58),v.whenTrue=_().parenthesizeBranchOfConditionalExpression(s),v.colonToken=l??ot(59),v.whenFalse=_().parenthesizeBranchOfConditionalExpression(d),v.transformFlags|=z(v.condition)|z(v.questionToken)|z(v.whenTrue)|z(v.colonToken)|z(v.whenFalse),v.flowNodeWhenFalse=void 0,v.flowNodeWhenTrue=void 0,v}function Y_(n,i,s,l,d,v){return n.condition!==i||n.questionToken!==s||n.whenTrue!==l||n.colonToken!==d||n.whenFalse!==v?j(G_(i,s,l,d,v),n):n}function H_(n,i){let s=O(229);return s.head=n,s.templateSpans=de(i),s.transformFlags|=z(s.head)|ke(s.templateSpans)|1024,s}function Hn(n,i,s){return n.head!==i||n.templateSpans!==s?j(H_(i,s),n):n}function Pi(n,i,s,l=0){q.assert(!(l&-7177),"Unsupported template flags.");let d;if(s!==void 0&&s!==i&&(d=Lb(n,s),typeof d=="object"))return q.fail("Invalid raw text");if(i===void 0){if(d===void 0)return q.fail("Arguments 'text' and 'rawText' may not both be undefined.");i=d}else d!==void 0&&q.assert(i===d,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return i}function X_(n){let i=1024;return n&&(i|=128),i}function Zl(n,i,s,l){let d=$t(n);return d.text=i,d.rawText=s,d.templateFlags=l&7176,d.transformFlags=X_(d.templateFlags),d}function ri(n,i,s,l){let d=ae(n);return d.text=i,d.rawText=s,d.templateFlags=l&7176,d.transformFlags=X_(d.templateFlags),d}function ii(n,i,s,l){return n===15?ri(n,i,s,l):Zl(n,i,s,l)}function $_(n,i,s){return n=Pi(16,n,i,s),ii(16,n,i,s)}function ma(n,i,s){return n=Pi(16,n,i,s),ii(17,n,i,s)}function _s(n,i,s){return n=Pi(16,n,i,s),ii(18,n,i,s)}function eu(n,i,s){return n=Pi(16,n,i,s),ri(15,n,i,s)}function os(n,i){q.assert(!n||!!i,"A `YieldExpression` with an asteriskToken must have an expression.");let s=O(230);return s.expression=i&&_().parenthesizeExpressionForDisallowedComma(i),s.asteriskToken=n,s.transformFlags|=z(s.expression)|z(s.asteriskToken)|1024|128|1048576,s}function tu(n,i,s){return n.expression!==s||n.asteriskToken!==i?j(os(i,s),n):n}function Q_(n){let i=O(231);return i.expression=_().parenthesizeExpressionForDisallowedComma(n),i.transformFlags|=z(i.expression)|1024|32768,i}function nu(n,i){return n.expression!==i?j(Q_(i),n):n}function K_(n,i,s,l,d){let v=ae(232);return v.modifiers=Pe(n),v.name=et(i),v.typeParameters=Pe(s),v.heritageClauses=Pe(l),v.members=de(d),v.transformFlags|=ke(v.modifiers)|Ln(v.name)|ke(v.typeParameters)|ke(v.heritageClauses)|ke(v.members)|(v.typeParameters?1:0)|1024,v.jsDoc=void 0,v}function cs(n,i,s,l,d,v){return n.modifiers!==i||n.name!==s||n.typeParameters!==l||n.heritageClauses!==d||n.members!==v?j(K_(i,s,l,d,v),n):n}function ls(){return O(233)}function Z_(n,i){let s=O(234);return s.expression=_().parenthesizeLeftSideOfAccess(n,!1),s.typeArguments=i&&_().parenthesizeTypeArguments(i),s.transformFlags|=z(s.expression)|ke(s.typeArguments)|1024,s}function eo(n,i,s){return n.expression!==i||n.typeArguments!==s?j(Z_(i,s),n):n}function pn(n,i){let s=O(235);return s.expression=n,s.type=i,s.transformFlags|=z(s.expression)|z(s.type)|1,s}function ha(n,i,s){return n.expression!==i||n.type!==s?j(pn(i,s),n):n}function to(n){let i=O(236);return i.expression=_().parenthesizeLeftSideOfAccess(n,!1),i.transformFlags|=z(i.expression)|1,i}function no(n,i){return Ug(n)?In(n,i):n.expression!==i?j(to(i),n):n}function us(n,i){let s=O(239);return s.expression=n,s.type=i,s.transformFlags|=z(s.expression)|z(s.type)|1,s}function ro(n,i,s){return n.expression!==i||n.type!==s?j(us(i,s),n):n}function ps(n){let i=O(236);return i.flags|=64,i.expression=_().parenthesizeLeftSideOfAccess(n,!0),i.transformFlags|=z(i.expression)|1,i}function In(n,i){return q.assert(!!(n.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),n.expression!==i?j(ps(i),n):n}function io(n,i){let s=O(237);switch(s.keywordToken=n,s.name=i,s.transformFlags|=z(s.name),n){case 105:s.transformFlags|=1024;break;case 102:s.transformFlags|=32;break;default:return q.assertNever(n)}return s.flowNode=void 0,s}function fs(n,i){return n.name!==i?j(io(n.keywordToken,i),n):n}function Xn(n,i){let s=O(240);return s.expression=n,s.literal=i,s.transformFlags|=z(s.expression)|z(s.literal)|1024,s}function ya(n,i,s){return n.expression!==i||n.literal!==s?j(Xn(i,s),n):n}function ao(){let n=O(241);return n.transformFlags|=1024,n}function Br(n,i){let s=O(242);return s.statements=de(n),s.multiLine=i,s.transformFlags|=ke(s.statements),s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s}function ru(n,i){return n.statements!==i?j(Br(i,n.multiLine),n):n}function ds(n,i){let s=O(244);return s.modifiers=Pe(n),s.declarationList=$r(i)?vs(i):i,s.transformFlags|=ke(s.modifiers)|z(s.declarationList),Jn(s.modifiers)&128&&(s.transformFlags=1),s.jsDoc=void 0,s.flowNode=void 0,s}function so(n,i,s){return n.modifiers!==i||n.declarationList!==s?j(ds(i,s),n):n}function _o(){let n=O(243);return n.jsDoc=void 0,n}function Ni(n){let i=O(245);return i.expression=_().parenthesizeExpressionOfExpressionStatement(n),i.transformFlags|=z(i.expression),i.jsDoc=void 0,i.flowNode=void 0,i}function oo(n,i){return n.expression!==i?j(Ni(i),n):n}function co(n,i,s){let l=O(246);return l.expression=n,l.thenStatement=$n(i),l.elseStatement=$n(s),l.transformFlags|=z(l.expression)|z(l.thenStatement)|z(l.elseStatement),l.jsDoc=void 0,l.flowNode=void 0,l}function lo(n,i,s,l){return n.expression!==i||n.thenStatement!==s||n.elseStatement!==l?j(co(i,s,l),n):n}function uo(n,i){let s=O(247);return s.statement=$n(n),s.expression=i,s.transformFlags|=z(s.statement)|z(s.expression),s.jsDoc=void 0,s.flowNode=void 0,s}function po(n,i,s){return n.statement!==i||n.expression!==s?j(uo(i,s),n):n}function fo(n,i){let s=O(248);return s.expression=n,s.statement=$n(i),s.transformFlags|=z(s.expression)|z(s.statement),s.jsDoc=void 0,s.flowNode=void 0,s}function iu(n,i,s){return n.expression!==i||n.statement!==s?j(fo(i,s),n):n}function mo(n,i,s,l){let d=O(249);return d.initializer=n,d.condition=i,d.incrementor=s,d.statement=$n(l),d.transformFlags|=z(d.initializer)|z(d.condition)|z(d.incrementor)|z(d.statement),d.jsDoc=void 0,d.locals=void 0,d.nextContainer=void 0,d.flowNode=void 0,d}function ho(n,i,s,l,d){return n.initializer!==i||n.condition!==s||n.incrementor!==l||n.statement!==d?j(mo(i,s,l,d),n):n}function ms(n,i,s){let l=O(250);return l.initializer=n,l.expression=i,l.statement=$n(s),l.transformFlags|=z(l.initializer)|z(l.expression)|z(l.statement),l.jsDoc=void 0,l.locals=void 0,l.nextContainer=void 0,l.flowNode=void 0,l}function au(n,i,s,l){return n.initializer!==i||n.expression!==s||n.statement!==l?j(ms(i,s,l),n):n}function yo(n,i,s,l){let d=O(251);return d.awaitModifier=n,d.initializer=i,d.expression=_().parenthesizeExpressionForDisallowedComma(s),d.statement=$n(l),d.transformFlags|=z(d.awaitModifier)|z(d.initializer)|z(d.expression)|z(d.statement)|1024,n&&(d.transformFlags|=128),d.jsDoc=void 0,d.locals=void 0,d.nextContainer=void 0,d.flowNode=void 0,d}function su(n,i,s,l,d){return n.awaitModifier!==i||n.initializer!==s||n.expression!==l||n.statement!==d?j(yo(i,s,l,d),n):n}function go(n){let i=O(252);return i.label=et(n),i.transformFlags|=z(i.label)|4194304,i.jsDoc=void 0,i.flowNode=void 0,i}function _u(n,i){return n.label!==i?j(go(i),n):n}function hs(n){let i=O(253);return i.label=et(n),i.transformFlags|=z(i.label)|4194304,i.jsDoc=void 0,i.flowNode=void 0,i}function bo(n,i){return n.label!==i?j(hs(i),n):n}function ys(n){let i=O(254);return i.expression=n,i.transformFlags|=z(i.expression)|128|4194304,i.jsDoc=void 0,i.flowNode=void 0,i}function ou(n,i){return n.expression!==i?j(ys(i),n):n}function gs(n,i){let s=O(255);return s.expression=n,s.statement=$n(i),s.transformFlags|=z(s.expression)|z(s.statement),s.jsDoc=void 0,s.flowNode=void 0,s}function vo(n,i,s){return n.expression!==i||n.statement!==s?j(gs(i,s),n):n}function bs(n,i){let s=O(256);return s.expression=_().parenthesizeExpressionForDisallowedComma(n),s.caseBlock=i,s.transformFlags|=z(s.expression)|z(s.caseBlock),s.jsDoc=void 0,s.flowNode=void 0,s.possiblyExhaustive=!1,s}function ai(n,i,s){return n.expression!==i||n.caseBlock!==s?j(bs(i,s),n):n}function To(n,i){let s=O(257);return s.label=et(n),s.statement=$n(i),s.transformFlags|=z(s.label)|z(s.statement),s.jsDoc=void 0,s.flowNode=void 0,s}function xo(n,i,s){return n.label!==i||n.statement!==s?j(To(i,s),n):n}function So(n){let i=O(258);return i.expression=n,i.transformFlags|=z(i.expression),i.jsDoc=void 0,i.flowNode=void 0,i}function cu(n,i){return n.expression!==i?j(So(i),n):n}function wo(n,i,s){let l=O(259);return l.tryBlock=n,l.catchClause=i,l.finallyBlock=s,l.transformFlags|=z(l.tryBlock)|z(l.catchClause)|z(l.finallyBlock),l.jsDoc=void 0,l.flowNode=void 0,l}function lu(n,i,s,l){return n.tryBlock!==i||n.catchClause!==s||n.finallyBlock!==l?j(wo(i,s,l),n):n}function ko(){let n=O(260);return n.jsDoc=void 0,n.flowNode=void 0,n}function ga(n,i,s,l){let d=ae(261);return d.name=et(n),d.exclamationToken=i,d.type=s,d.initializer=zi(l),d.transformFlags|=Ln(d.name)|z(d.initializer)|(d.exclamationToken??d.type?1:0),d.jsDoc=void 0,d}function Eo(n,i,s,l,d){return n.name!==i||n.type!==l||n.exclamationToken!==s||n.initializer!==d?j(ga(i,s,l,d),n):n}function vs(n,i=0){let s=O(262);return s.flags|=i&7,s.declarations=de(n),s.transformFlags|=ke(s.declarations)|4194304,i&7&&(s.transformFlags|=263168),i&4&&(s.transformFlags|=4),s}function uu(n,i){return n.declarations!==i?j(vs(i,n.flags),n):n}function Ao(n,i,s,l,d,v,F){let pe=ae(263);if(pe.modifiers=Pe(n),pe.asteriskToken=i,pe.name=et(s),pe.typeParameters=Pe(l),pe.parameters=de(d),pe.type=v,pe.body=F,!pe.body||Jn(pe.modifiers)&128)pe.transformFlags=1;else{let Fe=Jn(pe.modifiers)&1024,It=!!pe.asteriskToken,fr=Fe&&It;pe.transformFlags=ke(pe.modifiers)|z(pe.asteriskToken)|Ln(pe.name)|ke(pe.typeParameters)|ke(pe.parameters)|z(pe.type)|z(pe.body)&-67108865|(fr?128:Fe?256:It?2048:0)|(pe.typeParameters||pe.type?1:0)|4194304}return pe.typeArguments=void 0,pe.jsDoc=void 0,pe.locals=void 0,pe.nextContainer=void 0,pe.endFlowNode=void 0,pe.returnFlowNode=void 0,pe}function Ts(n,i,s,l,d,v,F,pe){return n.modifiers!==i||n.asteriskToken!==s||n.name!==l||n.typeParameters!==d||n.parameters!==v||n.type!==F||n.body!==pe?pu(Ao(i,s,l,d,v,F,pe),n):n}function pu(n,i){return n!==i&&n.modifiers===i.modifiers&&(n.modifiers=i.modifiers),Oe(n,i)}function Co(n,i,s,l,d){let v=ae(264);return v.modifiers=Pe(n),v.name=et(i),v.typeParameters=Pe(s),v.heritageClauses=Pe(l),v.members=de(d),Jn(v.modifiers)&128?v.transformFlags=1:(v.transformFlags|=ke(v.modifiers)|Ln(v.name)|ke(v.typeParameters)|ke(v.heritageClauses)|ke(v.members)|(v.typeParameters?1:0)|1024,v.transformFlags&8192&&(v.transformFlags|=1)),v.jsDoc=void 0,v}function ba(n,i,s,l,d,v){return n.modifiers!==i||n.name!==s||n.typeParameters!==l||n.heritageClauses!==d||n.members!==v?j(Co(i,s,l,d,v),n):n}function Do(n,i,s,l,d){let v=ae(265);return v.modifiers=Pe(n),v.name=et(i),v.typeParameters=Pe(s),v.heritageClauses=Pe(l),v.members=de(d),v.transformFlags=1,v.jsDoc=void 0,v}function Po(n,i,s,l,d,v){return n.modifiers!==i||n.name!==s||n.typeParameters!==l||n.heritageClauses!==d||n.members!==v?j(Do(i,s,l,d,v),n):n}function _t(n,i,s,l){let d=ae(266);return d.modifiers=Pe(n),d.name=et(i),d.typeParameters=Pe(s),d.type=l,d.transformFlags=1,d.jsDoc=void 0,d.locals=void 0,d.nextContainer=void 0,d}function vr(n,i,s,l,d){return n.modifiers!==i||n.name!==s||n.typeParameters!==l||n.type!==d?j(_t(i,s,l,d),n):n}function xs(n,i,s){let l=ae(267);return l.modifiers=Pe(n),l.name=et(i),l.members=de(s),l.transformFlags|=ke(l.modifiers)|z(l.name)|ke(l.members)|1,l.transformFlags&=-67108865,l.jsDoc=void 0,l}function Tr(n,i,s,l){return n.modifiers!==i||n.name!==s||n.members!==l?j(xs(i,s,l),n):n}function No(n,i,s,l=0){let d=ae(268);return d.modifiers=Pe(n),d.flags|=l&2088,d.name=i,d.body=s,Jn(d.modifiers)&128?d.transformFlags=1:d.transformFlags|=ke(d.modifiers)|z(d.name)|z(d.body)|1,d.transformFlags&=-67108865,d.jsDoc=void 0,d.locals=void 0,d.nextContainer=void 0,d}function kt(n,i,s,l){return n.modifiers!==i||n.name!==s||n.body!==l?j(No(i,s,l,n.flags),n):n}function xr(n){let i=O(269);return i.statements=de(n),i.transformFlags|=ke(i.statements),i.jsDoc=void 0,i}function zt(n,i){return n.statements!==i?j(xr(i),n):n}function Io(n){let i=O(270);return i.clauses=de(n),i.transformFlags|=ke(i.clauses),i.locals=void 0,i.nextContainer=void 0,i}function fu(n,i){return n.clauses!==i?j(Io(i),n):n}function Oo(n){let i=ae(271);return i.name=et(n),i.transformFlags|=ja(i.name)|1,i.modifiers=void 0,i.jsDoc=void 0,i}function Mo(n,i){return n.name!==i?du(Oo(i),n):n}function du(n,i){return n!==i&&(n.modifiers=i.modifiers),j(n,i)}function Lo(n,i,s,l){let d=ae(272);return d.modifiers=Pe(n),d.name=et(s),d.isTypeOnly=i,d.moduleReference=l,d.transformFlags|=ke(d.modifiers)|ja(d.name)|z(d.moduleReference),zf(d.moduleReference)||(d.transformFlags|=1),d.transformFlags&=-67108865,d.jsDoc=void 0,d}function Jo(n,i,s,l,d){return n.modifiers!==i||n.isTypeOnly!==s||n.name!==l||n.moduleReference!==d?j(Lo(i,s,l,d),n):n}function jo(n,i,s,l){let d=O(273);return d.modifiers=Pe(n),d.importClause=i,d.moduleSpecifier=s,d.attributes=d.assertClause=l,d.transformFlags|=z(d.importClause)|z(d.moduleSpecifier),d.transformFlags&=-67108865,d.jsDoc=void 0,d}function Ro(n,i,s,l,d){return n.modifiers!==i||n.importClause!==s||n.moduleSpecifier!==l||n.attributes!==d?j(jo(i,s,l,d),n):n}function Uo(n,i,s){let l=ae(274);return typeof n=="boolean"&&(n=n?156:void 0),l.isTypeOnly=n===156,l.phaseModifier=n,l.name=i,l.namedBindings=s,l.transformFlags|=z(l.name)|z(l.namedBindings),n===156&&(l.transformFlags|=1),l.transformFlags&=-67108865,l}function Bo(n,i,s,l){return typeof i=="boolean"&&(i=i?156:void 0),n.phaseModifier!==i||n.name!==s||n.namedBindings!==l?j(Uo(i,s,l),n):n}function Ss(n,i){let s=O(301);return s.elements=de(n),s.multiLine=i,s.token=132,s.transformFlags|=4,s}function mu(n,i,s){return n.elements!==i||n.multiLine!==s?j(Ss(i,s),n):n}function Ii(n,i){let s=O(302);return s.name=n,s.value=i,s.transformFlags|=4,s}function qo(n,i,s){return n.name!==i||n.value!==s?j(Ii(i,s),n):n}function ws(n,i){let s=O(303);return s.assertClause=n,s.multiLine=i,s}function Fo(n,i,s){return n.assertClause!==i||n.multiLine!==s?j(ws(i,s),n):n}function zo(n,i,s){let l=O(301);return l.token=s??118,l.elements=de(n),l.multiLine=i,l.transformFlags|=4,l}function ks(n,i,s){return n.elements!==i||n.multiLine!==s?j(zo(i,s,n.token),n):n}function Vo(n,i){let s=O(302);return s.name=n,s.value=i,s.transformFlags|=4,s}function Wo(n,i,s){return n.name!==i||n.value!==s?j(Vo(i,s),n):n}function Go(n){let i=ae(275);return i.name=n,i.transformFlags|=z(i.name),i.transformFlags&=-67108865,i}function hu(n,i){return n.name!==i?j(Go(i),n):n}function Yo(n){let i=ae(281);return i.name=n,i.transformFlags|=z(i.name)|32,i.transformFlags&=-67108865,i}function yu(n,i){return n.name!==i?j(Yo(i),n):n}function Ho(n){let i=O(276);return i.elements=de(n),i.transformFlags|=ke(i.elements),i.transformFlags&=-67108865,i}function Xo(n,i){return n.elements!==i?j(Ho(i),n):n}function Sr(n,i,s){let l=ae(277);return l.isTypeOnly=n,l.propertyName=i,l.name=s,l.transformFlags|=z(l.propertyName)|z(l.name),l.transformFlags&=-67108865,l}function gu(n,i,s,l){return n.isTypeOnly!==i||n.propertyName!==s||n.name!==l?j(Sr(i,s,l),n):n}function va(n,i,s){let l=ae(278);return l.modifiers=Pe(n),l.isExportEquals=i,l.expression=i?_().parenthesizeRightSideOfBinary(64,void 0,s):_().parenthesizeExpressionOfExportDefault(s),l.transformFlags|=ke(l.modifiers)|z(l.expression),l.transformFlags&=-67108865,l.jsDoc=void 0,l}function Oi(n,i,s){return n.modifiers!==i||n.expression!==s?j(va(i,n.isExportEquals,s),n):n}function Ta(n,i,s,l,d){let v=ae(279);return v.modifiers=Pe(n),v.isTypeOnly=i,v.exportClause=s,v.moduleSpecifier=l,v.attributes=v.assertClause=d,v.transformFlags|=ke(v.modifiers)|z(v.exportClause)|z(v.moduleSpecifier),v.transformFlags&=-67108865,v.jsDoc=void 0,v}function $o(n,i,s,l,d,v){return n.modifiers!==i||n.isTypeOnly!==s||n.exportClause!==l||n.moduleSpecifier!==d||n.attributes!==v?Mi(Ta(i,s,l,d,v),n):n}function Mi(n,i){return n!==i&&n.modifiers===i.modifiers&&(n.modifiers=i.modifiers),j(n,i)}function Es(n){let i=O(280);return i.elements=de(n),i.transformFlags|=ke(i.elements),i.transformFlags&=-67108865,i}function bu(n,i){return n.elements!==i?j(Es(i),n):n}function xa(n,i,s){let l=O(282);return l.isTypeOnly=n,l.propertyName=et(i),l.name=et(s),l.transformFlags|=z(l.propertyName)|z(l.name),l.transformFlags&=-67108865,l.jsDoc=void 0,l}function vu(n,i,s,l){return n.isTypeOnly!==i||n.propertyName!==s||n.name!==l?j(xa(i,s,l),n):n}function Tu(){let n=ae(283);return n.jsDoc=void 0,n}function As(n){let i=O(284);return i.expression=n,i.transformFlags|=z(i.expression),i.transformFlags&=-67108865,i}function xu(n,i){return n.expression!==i?j(As(i),n):n}function Qo(n){return O(n)}function Ko(n,i,s=!1){let l=Cs(n,s?i&&_().parenthesizeNonArrayTypeOfPostfixType(i):i);return l.postfix=s,l}function Cs(n,i){let s=O(n);return s.type=i,s}function Su(n,i,s){return i.type!==s?j(Ko(n,s,i.postfix),i):i}function wu(n,i,s){return i.type!==s?j(Cs(n,s),i):i}function Zo(n,i){let s=ae(318);return s.parameters=Pe(n),s.type=i,s.transformFlags=ke(s.parameters)|(s.type?1:0),s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.typeArguments=void 0,s}function ku(n,i,s){return n.parameters!==i||n.type!==s?j(Zo(i,s),n):n}function ec(n,i=!1){let s=ae(323);return s.jsDocPropertyTags=Pe(n),s.isArrayType=i,s}function Eu(n,i,s){return n.jsDocPropertyTags!==i||n.isArrayType!==s?j(ec(i,s),n):n}function tc(n){let i=O(310);return i.type=n,i}function Ds(n,i){return n.type!==i?j(tc(i),n):n}function nc(n,i,s){let l=ae(324);return l.typeParameters=Pe(n),l.parameters=de(i),l.type=s,l.jsDoc=void 0,l.locals=void 0,l.nextContainer=void 0,l}function Au(n,i,s,l){return n.typeParameters!==i||n.parameters!==s||n.type!==l?j(nc(i,s,l),n):n}function rn(n){let i=ol(n.kind);return n.tagName.escapedText===La(i)?n.tagName:We(i)}function vn(n,i,s){let l=O(n);return l.tagName=i,l.comment=s,l}function qr(n,i,s){let l=ae(n);return l.tagName=i,l.comment=s,l}function Ps(n,i,s,l){let d=vn(346,n??We("template"),l);return d.constraint=i,d.typeParameters=de(s),d}function rc(n,i=rn(n),s,l,d){return n.tagName!==i||n.constraint!==s||n.typeParameters!==l||n.comment!==d?j(Ps(i,s,l,d),n):n}function Sa(n,i,s,l){let d=qr(347,n??We("typedef"),l);return d.typeExpression=i,d.fullName=s,d.name=Xd(s),d.locals=void 0,d.nextContainer=void 0,d}function Cu(n,i=rn(n),s,l,d){return n.tagName!==i||n.typeExpression!==s||n.fullName!==l||n.comment!==d?j(Sa(i,s,l,d),n):n}function Ns(n,i,s,l,d,v){let F=qr(342,n??We("param"),v);return F.typeExpression=l,F.name=i,F.isNameFirst=!!d,F.isBracketed=s,F}function Du(n,i=rn(n),s,l,d,v,F){return n.tagName!==i||n.name!==s||n.isBracketed!==l||n.typeExpression!==d||n.isNameFirst!==v||n.comment!==F?j(Ns(i,s,l,d,v,F),n):n}function ic(n,i,s,l,d,v){let F=qr(349,n??We("prop"),v);return F.typeExpression=l,F.name=i,F.isNameFirst=!!d,F.isBracketed=s,F}function ac(n,i=rn(n),s,l,d,v,F){return n.tagName!==i||n.name!==s||n.isBracketed!==l||n.typeExpression!==d||n.isNameFirst!==v||n.comment!==F?j(ic(i,s,l,d,v,F),n):n}function sc(n,i,s,l){let d=qr(339,n??We("callback"),l);return d.typeExpression=i,d.fullName=s,d.name=Xd(s),d.locals=void 0,d.nextContainer=void 0,d}function _c(n,i=rn(n),s,l,d){return n.tagName!==i||n.typeExpression!==s||n.fullName!==l||n.comment!==d?j(sc(i,s,l,d),n):n}function oc(n,i,s){let l=vn(340,n??We("overload"),s);return l.typeExpression=i,l}function Is(n,i=rn(n),s,l){return n.tagName!==i||n.typeExpression!==s||n.comment!==l?j(oc(i,s,l),n):n}function Os(n,i,s){let l=vn(329,n??We("augments"),s);return l.class=i,l}function Li(n,i=rn(n),s,l){return n.tagName!==i||n.class!==s||n.comment!==l?j(Os(i,s,l),n):n}function cc(n,i,s){let l=vn(330,n??We("implements"),s);return l.class=i,l}function Fr(n,i,s){let l=vn(348,n??We("see"),s);return l.name=i,l}function wa(n,i,s,l){return n.tagName!==i||n.name!==s||n.comment!==l?j(Fr(i,s,l),n):n}function lc(n){let i=O(311);return i.name=n,i}function Pu(n,i){return n.name!==i?j(lc(i),n):n}function uc(n,i){let s=O(312);return s.left=n,s.right=i,s.transformFlags|=z(s.left)|z(s.right),s}function Nu(n,i,s){return n.left!==i||n.right!==s?j(uc(i,s),n):n}function pc(n,i){let s=O(325);return s.name=n,s.text=i,s}function fc(n,i,s){return n.name!==i?j(pc(i,s),n):n}function dc(n,i){let s=O(326);return s.name=n,s.text=i,s}function Iu(n,i,s){return n.name!==i?j(dc(i,s),n):n}function mc(n,i){let s=O(327);return s.name=n,s.text=i,s}function Ou(n,i,s){return n.name!==i?j(mc(i,s),n):n}function Mu(n,i=rn(n),s,l){return n.tagName!==i||n.class!==s||n.comment!==l?j(cc(i,s,l),n):n}function hc(n,i,s){return vn(n,i??We(ol(n)),s)}function Lu(n,i,s=rn(i),l){return i.tagName!==s||i.comment!==l?j(hc(n,s,l),i):i}function yc(n,i,s,l){let d=vn(n,i??We(ol(n)),l);return d.typeExpression=s,d}function Ju(n,i,s=rn(i),l,d){return i.tagName!==s||i.typeExpression!==l||i.comment!==d?j(yc(n,s,l,d),i):i}function gc(n,i){return vn(328,n,i)}function ju(n,i,s){return n.tagName!==i||n.comment!==s?j(gc(i,s),n):n}function bc(n,i,s){let l=qr(341,n??We(ol(341)),s);return l.typeExpression=i,l.locals=void 0,l.nextContainer=void 0,l}function Ms(n,i=rn(n),s,l){return n.tagName!==i||n.typeExpression!==s||n.comment!==l?j(bc(i,s,l),n):n}function vc(n,i,s,l,d){let v=vn(352,n??We("import"),d);return v.importClause=i,v.moduleSpecifier=s,v.attributes=l,v.comment=d,v}function Tc(n,i,s,l,d,v){return n.tagName!==i||n.comment!==v||n.importClause!==s||n.moduleSpecifier!==l||n.attributes!==d?j(vc(i,s,l,d,v),n):n}function Ls(n){let i=O(322);return i.text=n,i}function Ru(n,i){return n.text!==i?j(Ls(i),n):n}function Ji(n,i){let s=O(321);return s.comment=n,s.tags=Pe(i),s}function xc(n,i,s){return n.comment!==i||n.tags!==s?j(Ji(i,s),n):n}function Sc(n,i,s){let l=O(285);return l.openingElement=n,l.children=de(i),l.closingElement=s,l.transformFlags|=z(l.openingElement)|ke(l.children)|z(l.closingElement)|2,l}function Uu(n,i,s,l){return n.openingElement!==i||n.children!==s||n.closingElement!==l?j(Sc(i,s,l),n):n}function wc(n,i,s){let l=O(286);return l.tagName=n,l.typeArguments=Pe(i),l.attributes=s,l.transformFlags|=z(l.tagName)|ke(l.typeArguments)|z(l.attributes)|2,l.typeArguments&&(l.transformFlags|=1),l}function Bu(n,i,s,l){return n.tagName!==i||n.typeArguments!==s||n.attributes!==l?j(wc(i,s,l),n):n}function ka(n,i,s){let l=O(287);return l.tagName=n,l.typeArguments=Pe(i),l.attributes=s,l.transformFlags|=z(l.tagName)|ke(l.typeArguments)|z(l.attributes)|2,i&&(l.transformFlags|=1),l}function kc(n,i,s,l){return n.tagName!==i||n.typeArguments!==s||n.attributes!==l?j(ka(i,s,l),n):n}function Js(n){let i=O(288);return i.tagName=n,i.transformFlags|=z(i.tagName)|2,i}function js(n,i){return n.tagName!==i?j(Js(i),n):n}function Yt(n,i,s){let l=O(289);return l.openingFragment=n,l.children=de(i),l.closingFragment=s,l.transformFlags|=z(l.openingFragment)|ke(l.children)|z(l.closingFragment)|2,l}function Ec(n,i,s,l){return n.openingFragment!==i||n.children!==s||n.closingFragment!==l?j(Yt(i,s,l),n):n}function ji(n,i){let s=O(12);return s.text=n,s.containsOnlyTriviaWhiteSpaces=!!i,s.transformFlags|=2,s}function qu(n,i,s){return n.text!==i||n.containsOnlyTriviaWhiteSpaces!==s?j(ji(i,s),n):n}function Ac(){let n=O(290);return n.transformFlags|=2,n}function Cc(){let n=O(291);return n.transformFlags|=2,n}function Dc(n,i){let s=ae(292);return s.name=n,s.initializer=i,s.transformFlags|=z(s.name)|z(s.initializer)|2,s}function Fu(n,i,s){return n.name!==i||n.initializer!==s?j(Dc(i,s),n):n}function Ri(n){let i=ae(293);return i.properties=de(n),i.transformFlags|=ke(i.properties)|2,i}function zu(n,i){return n.properties!==i?j(Ri(i),n):n}function Pc(n){let i=O(294);return i.expression=n,i.transformFlags|=z(i.expression)|2,i}function Vu(n,i){return n.expression!==i?j(Pc(i),n):n}function Nc(n,i){let s=O(295);return s.dotDotDotToken=n,s.expression=i,s.transformFlags|=z(s.dotDotDotToken)|z(s.expression)|2,s}function Rs(n,i){return n.expression!==i?j(Nc(n.dotDotDotToken,i),n):n}function si(n,i){let s=O(296);return s.namespace=n,s.name=i,s.transformFlags|=z(s.namespace)|z(s.name)|2,s}function Wu(n,i,s){return n.namespace!==i||n.name!==s?j(si(i,s),n):n}function Ea(n,i){let s=O(297);return s.expression=_().parenthesizeExpressionForDisallowedComma(n),s.statements=de(i),s.transformFlags|=z(s.expression)|ke(s.statements),s.jsDoc=void 0,s}function Ic(n,i,s){return n.expression!==i||n.statements!==s?j(Ea(i,s),n):n}function Oc(n){let i=O(298);return i.statements=de(n),i.transformFlags=ke(i.statements),i}function Ui(n,i){return n.statements!==i?j(Oc(i),n):n}function Us(n,i){let s=O(299);switch(s.token=n,s.types=de(i),s.transformFlags|=ke(s.types),n){case 96:s.transformFlags|=1024;break;case 119:s.transformFlags|=1;break;default:return q.assertNever(n)}return s}function Gu(n,i){return n.types!==i?j(Us(n.token,i),n):n}function Mc(n,i){let s=O(300);return s.variableDeclaration=Tn(n),s.block=i,s.transformFlags|=z(s.variableDeclaration)|z(s.block)|(n?0:64),s.locals=void 0,s.nextContainer=void 0,s}function Lc(n,i,s){return n.variableDeclaration!==i||n.block!==s?j(Mc(i,s),n):n}function Aa(n,i){let s=ae(304);return s.name=et(n),s.initializer=_().parenthesizeExpressionForDisallowedComma(i),s.transformFlags|=Ln(s.name)|z(s.initializer),s.modifiers=void 0,s.questionToken=void 0,s.exclamationToken=void 0,s.jsDoc=void 0,s}function Bs(n,i,s){return n.name!==i||n.initializer!==s?_i(Aa(i,s),n):n}function _i(n,i){return n!==i&&(n.modifiers=i.modifiers,n.questionToken=i.questionToken,n.exclamationToken=i.exclamationToken),j(n,i)}function Jc(n,i){let s=ae(305);return s.name=et(n),s.objectAssignmentInitializer=i&&_().parenthesizeExpressionForDisallowedComma(i),s.transformFlags|=ja(s.name)|z(s.objectAssignmentInitializer)|1024,s.equalsToken=void 0,s.modifiers=void 0,s.questionToken=void 0,s.exclamationToken=void 0,s.jsDoc=void 0,s}function Yu(n,i,s){return n.name!==i||n.objectAssignmentInitializer!==s?Hu(Jc(i,s),n):n}function Hu(n,i){return n!==i&&(n.modifiers=i.modifiers,n.questionToken=i.questionToken,n.exclamationToken=i.exclamationToken,n.equalsToken=i.equalsToken),j(n,i)}function jc(n){let i=ae(306);return i.expression=_().parenthesizeExpressionForDisallowedComma(n),i.transformFlags|=z(i.expression)|128|65536,i.jsDoc=void 0,i}function Rc(n,i){return n.expression!==i?j(jc(i),n):n}function qs(n,i){let s=ae(307);return s.name=et(n),s.initializer=i&&_().parenthesizeExpressionForDisallowedComma(i),s.transformFlags|=z(s.name)|z(s.initializer)|1,s.jsDoc=void 0,s}function On(n,i,s){return n.name!==i||n.initializer!==s?j(qs(i,s),n):n}function Uc(n,i,s){let l=t.createBaseSourceFileNode(308);return l.statements=de(n),l.endOfFileToken=i,l.flags|=s,l.text="",l.fileName="",l.path="",l.resolvedPath="",l.originalFileName="",l.languageVersion=1,l.languageVariant=0,l.scriptKind=0,l.isDeclarationFile=!1,l.hasNoDefaultLib=!1,l.transformFlags|=ke(l.statements)|z(l.endOfFileToken),l.locals=void 0,l.nextContainer=void 0,l.endFlowNode=void 0,l.nodeCount=0,l.identifierCount=0,l.symbolCount=0,l.parseDiagnostics=void 0,l.bindDiagnostics=void 0,l.bindSuggestionDiagnostics=void 0,l.lineMap=void 0,l.externalModuleIndicator=void 0,l.setExternalModuleIndicator=void 0,l.pragmas=void 0,l.checkJsDirective=void 0,l.referencedFiles=void 0,l.typeReferenceDirectives=void 0,l.libReferenceDirectives=void 0,l.amdDependencies=void 0,l.commentDirectives=void 0,l.identifiers=void 0,l.packageJsonLocations=void 0,l.packageJsonScope=void 0,l.imports=void 0,l.moduleAugmentations=void 0,l.ambientModuleNames=void 0,l.classifiableNames=void 0,l.impliedNodeFormat=void 0,l}function Bc(n){let i=Object.create(n.redirectTarget);return Object.defineProperties(i,{id:{get(){return this.redirectInfo.redirectTarget.id},set(s){this.redirectInfo.redirectTarget.id=s}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(s){this.redirectInfo.redirectTarget.symbol=s}}}),i.redirectInfo=n,i}function Xu(n){let i=Bc(n.redirectInfo);return i.flags|=n.flags&-17,i.fileName=n.fileName,i.path=n.path,i.resolvedPath=n.resolvedPath,i.originalFileName=n.originalFileName,i.packageJsonLocations=n.packageJsonLocations,i.packageJsonScope=n.packageJsonScope,i.emitNode=void 0,i}function $u(n){let i=t.createBaseSourceFileNode(308);i.flags|=n.flags&-17;for(let s in n)if(!(Dr(i,s)||!Dr(n,s))){if(s==="emitNode"){i.emitNode=void 0;continue}i[s]=n[s]}return i}function Fs(n){let i=n.redirectInfo?Xu(n):$u(n);return a(i,n),i}function zs(n,i,s,l,d,v,F){let pe=Fs(n);return pe.statements=de(i),pe.isDeclarationFile=s,pe.referencedFiles=l,pe.typeReferenceDirectives=d,pe.hasNoDefaultLib=v,pe.libReferenceDirectives=F,pe.transformFlags=ke(pe.statements)|z(pe.endOfFileToken),pe}function Qu(n,i,s=n.isDeclarationFile,l=n.referencedFiles,d=n.typeReferenceDirectives,v=n.hasNoDefaultLib,F=n.libReferenceDirectives){return n.statements!==i||n.isDeclarationFile!==s||n.referencedFiles!==l||n.typeReferenceDirectives!==d||n.hasNoDefaultLib!==v||n.libReferenceDirectives!==F?j(zs(n,i,s,l,d,v,F),n):n}function qc(n){let i=O(309);return i.sourceFiles=n,i.syntheticFileReferences=void 0,i.syntheticTypeReferences=void 0,i.syntheticLibReferences=void 0,i.hasNoDefaultLib=void 0,i}function Fc(n,i){return n.sourceFiles!==i?j(qc(i),n):n}function Ku(n,i=!1,s){let l=O(238);return l.type=n,l.isSpread=i,l.tupleNameSource=s,l}function Zu(n){let i=O(353);return i._children=n,i}function Ca(n){let i=O(354);return i.original=n,dn(i,n),i}function Vs(n,i){let s=O(356);return s.expression=n,s.original=i,s.transformFlags|=z(s.expression)|1,dn(s,i),s}function zc(n,i){return n.expression!==i?j(Vs(i,n.original),n):n}function ep(){return O(355)}function tp(n){if(Ja(n)&&!gl(n)&&!n.original&&!n.emitNode&&!n.id){if(i6(n))return n.elements;if(na(n)&&Fb(n.operatorToken))return[n.left,n.right]}return n}function Ws(n){let i=O(357);return i.elements=de(py(n,tp)),i.transformFlags|=ke(i.elements),i}function np(n,i){return n.elements!==i?j(Ws(i),n):n}function Gs(n,i){let s=O(358);return s.expression=n,s.thisArg=i,s.transformFlags|=z(s.expression)|z(s.thisArg),s}function Vc(n,i,s){return n.expression!==i||n.thisArg!==s?j(Gs(i,s),n):n}function Wc(n){let i=hn(n.escapedText);return i.flags|=n.flags&-17,i.transformFlags=n.transformFlags,a(i,n),setIdentifierAutoGenerate(i,{...n.emitNode.autoGenerate}),i}function rp(n){let i=hn(n.escapedText);i.flags|=n.flags&-17,i.jsDoc=n.jsDoc,i.flowNode=n.flowNode,i.symbol=n.symbol,i.transformFlags=n.transformFlags,a(i,n);let s=getIdentifierTypeArguments(n);return s&&setIdentifierTypeArguments(i,s),i}function ip(n){let i=Pn(n.escapedText);return i.flags|=n.flags&-17,i.transformFlags=n.transformFlags,a(i,n),setIdentifierAutoGenerate(i,{...n.emitNode.autoGenerate}),i}function Gc(n){let i=Pn(n.escapedText);return i.flags|=n.flags&-17,i.transformFlags=n.transformFlags,a(i,n),i}function Da(n){if(n===void 0)return n;if(eh(n))return Fs(n);if(Ua(n))return Wc(n);if(Ke(n))return rp(n);if(r1(n))return ip(n);if(gi(n))return Gc(n);let i=df(n.kind)?t.createBaseNode(n.kind):t.createBaseTokenNode(n.kind);i.flags|=n.flags&-17,i.transformFlags=n.transformFlags,a(i,n);for(let s in n)Dr(i,s)||!Dr(n,s)||(i[s]=n[s]);return i}function ap(n,i,s){return Di(is(void 0,void 0,void 0,void 0,i?[i]:[],void 0,Br(n,!0)),void 0,s?[s]:[])}function sp(n,i,s){return Di(as(void 0,void 0,i?[i]:[],void 0,void 0,Br(n,!0)),void 0,s?[s]:[])}function Bi(){return ss(V("0"))}function Yc(n){return va(void 0,!1,n)}function Hc(n){return Ta(void 0,!1,Es([xa(!1,void 0,n)]))}function _p(n,i){return i==="null"?he.createStrictEquality(n,Lt()):i==="undefined"?he.createStrictEquality(n,Bi()):he.createStrictEquality(fa(n),ft(i))}function Ys(n,i){return i==="null"?he.createStrictInequality(n,Lt()):i==="undefined"?he.createStrictInequality(n,Bi()):he.createStrictInequality(fa(n),ft(i))}function zr(n,i,s){return Pd(n)?ts(Ai(n,void 0,i),void 0,void 0,s):Di(cr(n,i),void 0,s)}function op(n,i,s){return zr(n,"bind",[i,...s])}function cp(n,i,s){return zr(n,"call",[i,...s])}function lp(n,i,s){return zr(n,"apply",[i,s])}function qi(n,i,s){return zr(We(n),i,s)}function up(n,i){return zr(n,"slice",i===void 0?[]:[wr(i)])}function Fi(n,i){return zr(n,"concat",i)}function pp(n,i,s){return qi("Object","defineProperty",[n,wr(i),s])}function Hs(n,i){return qi("Object","getOwnPropertyDescriptor",[n,wr(i)])}function oi(n,i,s){return qi("Reflect","get",s?[n,i,s]:[n,i])}function Xc(n,i,s,l){return qi("Reflect","set",l?[n,i,s,l]:[n,i,s])}function ci(n,i,s){return s?(n.push(Aa(i,s)),!0):!1}function fp(n,i){let s=[];ci(s,"enumerable",wr(n.enumerable)),ci(s,"configurable",wr(n.configurable));let l=ci(s,"writable",wr(n.writable));l=ci(s,"value",n.value)||l;let d=ci(s,"get",n.get);return d=ci(s,"set",n.set)||d,q.assert(!(l&&d),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Ei(s,!i)}function $c(n,i){switch(n.kind){case 218:return U_(n,i);case 217:return R_(n,n.type,i);case 235:return ha(n,i,n.type);case 239:return ro(n,i,n.type);case 236:return no(n,i);case 234:return eo(n,i,n.typeArguments);case 356:return zc(n,i)}}function dp(n){return Dl(n)&&Ja(n)&&Ja(getSourceMapRange(n))&&Ja(getCommentRange(n))&&!Zt(getSyntheticLeadingComments(n))&&!Zt(getSyntheticTrailingComments(n))}function Qc(n,i,s=63){return n&&_h(n,s)&&!dp(n)?$c(n,Qc(n.expression,i)):i}function Kc(n,i,s){if(!i)return n;let l=xo(i,i.label,H1(i.statement)?Kc(n,i.statement):n);return s&&s(i),l}function Xs(n,i){let s=Tf(n);switch(s.kind){case 80:return i;case 110:case 9:case 10:case 11:return!1;case 210:return s.elements.length!==0;case 211:return s.properties.length>0;default:return!0}}function Zc(n,i,s,l=!1){let d=Wf(n,63),v,F;return jd(d)?(v=Bt(),F=d):Cp(d)?(v=Bt(),F=s!==void 0&&s<2?dn(We("_super"),d):d):za(d)&8192?(v=Bi(),F=_().parenthesizeLeftSideOfAccess(d,!1)):dr(d)?Xs(d.expression,l)?(v=ir(i),F=cr(dn(he.createAssignment(v,d.expression),d.expression),d.name),dn(F,d)):(v=d.expression,F=d):Ha(d)?Xs(d.expression,l)?(v=ir(i),F=Ci(dn(he.createAssignment(v,d.expression),d.expression),d.argumentExpression),dn(F,d)):(v=d.expression,F=d):(v=Bi(),F=_().parenthesizeLeftSideOfAccess(n,!1)),{target:F,thisArg:v}}function el(n,i){return cr(rs(Ei([U(void 0,"value",[mr(void 0,void 0,n,void 0,void 0,void 0)],Br([Ni(i)]))])),"value")}function o(n){return n.length>10?Ws(n):xy(n,he.createComma)}function p(n,i,s,l=0,d){let v=d?n&&uf(n):$m(n);if(v&&Ke(v)&&!Ua(v)){let F=wf(dn(Da(v),v),v.parent);return l|=za(v),s||(l|=96),i||(l|=3072),l&&setEmitFlags(F,l),F}return Bn(n)}function m(n,i,s){return p(n,i,s,98304)}function g(n,i,s,l){return p(n,i,s,32768,l)}function b(n,i,s){return p(n,i,s,16384)}function N(n,i,s){return p(n,i,s)}function Q(n,i,s,l){let d=cr(n,Ja(i)?i:Da(i));dn(d,i);let v=0;return l||(v|=96),s||(v|=3072),v&&setEmitFlags(d,v),d}function _e(n,i,s,l){return n&&v_(i,32)?Q(n,p(i),s,l):b(i,s,l)}function ee(n,i,s,l){let d=je(n,i,0,s);return Je(n,i,d,l)}function te(n){return vi(n.expression)&&n.expression.text==="use strict"}function ce(){return k6(Ni(ft("use strict")))}function je(n,i,s=0,l){q.assert(i.length===0,"Prologue directives should be at the first statement in the target statements array");let d=!1,v=n.length;for(;spe&&It.splice(d,0,...i.slice(pe,Fe)),pe>F&&It.splice(l,0,...i.slice(F,pe)),F>v&&It.splice(s,0,...i.slice(v,F)),v>0)if(s===0)It.splice(0,0,...i.slice(0,v));else{let fr=new Map;for(let xn=0;xn=0;xn--){let Vi=i[xn];fr.has(Vi.expression.text)||It.unshift(Vi)}}return mi(n)?dn(de(It,n.hasTrailingComma),n):n}function pr(n,i){let s;return typeof i=="number"?s=yn(i):s=i,Af(n)?sr(n,s,n.name,n.constraint,n.default):m_(n)?hr(n,s,n.dotDotDotToken,n.name,n.questionToken,n.type,n.initializer):If(n)?ze(n,s,n.typeParameters,n.parameters,n.type):D1(n)?Vn(n,s,n.name,n.questionToken,n.type):Wa(n)?L(n,s,n.name,n.questionToken??n.exclamationToken,n.type,n.initializer):P1(n)?fe(n,s,n.name,n.questionToken,n.typeParameters,n.parameters,n.type):h_(n)?He(n,s,n.asteriskToken,n.name,n.questionToken,n.typeParameters,n.parameters,n.type,n.body):Cf(n)?Mr(n,s,n.parameters,n.body):Tl(n)?Wn(n,s,n.name,n.parameters,n.type,n.body):y_(n)?K(n,s,n.name,n.parameters,n.body):Df(n)?Ze(n,s,n.parameters,n.type):Lf(n)?B_(n,s,n.asteriskToken,n.name,n.typeParameters,n.parameters,n.type,n.body):Jf(n)?q_(n,s,n.typeParameters,n.parameters,n.type,n.equalsGreaterThanToken,n.body):xl(n)?cs(n,s,n.name,n.typeParameters,n.heritageClauses,n.members):Xa(n)?so(n,s,n.declarationList):Rf(n)?Ts(n,s,n.asteriskToken,n.name,n.typeParameters,n.parameters,n.type,n.body):Ga(n)?ba(n,s,n.name,n.typeParameters,n.heritageClauses,n.members):T_(n)?Po(n,s,n.name,n.typeParameters,n.heritageClauses,n.members):Nl(n)?vr(n,s,n.name,n.typeParameters,n.type):$1(n)?Tr(n,s,n.name,n.members):Ti(n)?kt(n,s,n.name,n.body):Uf(n)?Jo(n,s,n.isTypeOnly,n.name,n.moduleReference):Bf(n)?Ro(n,s,n.importClause,n.moduleSpecifier,n.attributes):qf(n)?Oi(n,s,n.expression):Ff(n)?$o(n,s,n.isTypeOnly,n.exportClause,n.moduleSpecifier,n.attributes):q.assertNever(n)}function Mn(n,i){return m_(n)?hr(n,i,n.dotDotDotToken,n.name,n.questionToken,n.type,n.initializer):Wa(n)?L(n,i,n.name,n.questionToken??n.exclamationToken,n.type,n.initializer):h_(n)?He(n,i,n.asteriskToken,n.name,n.questionToken,n.typeParameters,n.parameters,n.type,n.body):Tl(n)?Wn(n,i,n.name,n.parameters,n.type,n.body):y_(n)?K(n,i,n.name,n.parameters,n.body):xl(n)?cs(n,i,n.name,n.typeParameters,n.heritageClauses,n.members):Ga(n)?ba(n,i,n.name,n.typeParameters,n.heritageClauses,n.members):q.assertNever(n)}function Vr(n,i){switch(n.kind){case 178:return Wn(n,n.modifiers,i,n.parameters,n.type,n.body);case 179:return K(n,n.modifiers,i,n.parameters,n.body);case 175:return He(n,n.modifiers,n.asteriskToken,i,n.questionToken,n.typeParameters,n.parameters,n.type,n.body);case 174:return fe(n,n.modifiers,i,n.questionToken,n.typeParameters,n.parameters,n.type);case 173:return L(n,n.modifiers,i,n.questionToken??n.exclamationToken,n.type,n.initializer);case 172:return Vn(n,n.modifiers,i,n.questionToken,n.type);case 304:return Bs(n,i,n.initializer)}}function Pe(n){return n?de(n):void 0}function et(n){return typeof n=="string"?We(n):n}function wr(n){return typeof n=="string"?ft(n):typeof n=="number"?V(n):typeof n=="boolean"?n?ct():ar():n}function zi(n){return n&&_().parenthesizeExpressionForDisallowedComma(n)}function mp(n){return typeof n=="number"?ot(n):n}function $n(n){return n&&a6(n)?dn(a(_o(),n),n):n}function Tn(n){return typeof n=="string"||n&&!jf(n)?ga(n,void 0,void 0,void 0):n}function j(n,i){return n!==i&&(a(n,i),dn(n,i)),n}}function ol(e){switch(e){case 345:return"type";case 343:return"returns";case 344:return"this";case 341:return"enum";case 331:return"author";case 333:return"class";case 334:return"public";case 335:return"private";case 336:return"protected";case 337:return"readonly";case 338:return"override";case 346:return"template";case 347:return"typedef";case 342:return"param";case 349:return"prop";case 339:return"callback";case 340:return"overload";case 329:return"augments";case 330:return"implements";case 352:return"import";default:return q.fail(`Unsupported kind: ${q.formatSyntaxKind(e)}`)}}var Sn,zd={};function Lb(e,t){switch(Sn||(Sn=_f(99,!1,0)),e){case 15:Sn.setText("`"+t+"`");break;case 16:Sn.setText("`"+t+"${");break;case 17:Sn.setText("}"+t+"${");break;case 18:Sn.setText("}"+t+"`");break}let a=Sn.scan();if(a===20&&(a=Sn.reScanTemplateToken(!1)),Sn.isUnterminated())return Sn.setText(void 0),zd;let _;switch(a){case 15:case 16:case 17:case 18:_=Sn.getTokenValue();break}return _===void 0||Sn.scan()!==1?(Sn.setText(void 0),zd):(Sn.setText(void 0),_)}function Ln(e){return e&&Ke(e)?ja(e):z(e)}function ja(e){return z(e)&-67108865}function Jb(e,t){return t|e.transformFlags&134234112}function z(e){if(!e)return 0;let t=e.transformFlags&~jb(e.kind);return Tg(e)&&i1(e.name)?Jb(e.name,t):t}function ke(e){return e?e.transformFlags:0}function Vd(e){let t=0;for(let a of e)t|=z(a);e.transformFlags=t}function jb(e){if(e>=183&&e<=206)return-2;switch(e){case 214:case 215:case 210:return-2147450880;case 268:return-1941676032;case 170:return-2147483648;case 220:return-2072174592;case 219:case 263:return-1937940480;case 262:return-2146893824;case 264:case 232:return-2147344384;case 177:return-1937948672;case 173:return-2013249536;case 175:case 178:case 179:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 169:case 172:case 174:case 180:case 181:case 182:case 265:case 266:return-2;case 211:return-2147278848;case 300:return-2147418112;case 207:case 208:return-2147450880;case 217:case 239:case 235:case 356:case 218:case 108:return-2147483648;case 212:case 213:return-2147483648;default:return-2147483648}}var Ks=Ib();function Zs(e){return e.flags|=16,e}var Rb={createBaseSourceFileNode:e=>Zs(Ks.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>Zs(Ks.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>Zs(Ks.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>Zs(Ks.createBaseTokenNode(e)),createBaseNode:e=>Zs(Ks.createBaseNode(e))},L3=kf(4,Rb);function Ub(e,t){if(e.original!==t&&(e.original=t,t)){let a=t.emitNode;a&&(e.emitNode=Bb(a,e.emitNode))}return e}function Bb(e,t){let{flags:a,internalFlags:_,leadingComments:f,trailingComments:h,commentRange:T,sourceMapRange:k,tokenSourceMapRanges:c,constantValue:W,helpers:y,startsOnNewLine:G,snippetElement:E,classThis:D,assignedName:R}=e;if(t||(t={}),a&&(t.flags=a),_&&(t.internalFlags=_&-9),f&&(t.leadingComments=En(f.slice(),t.leadingComments)),h&&(t.trailingComments=En(h.slice(),t.trailingComments)),T&&(t.commentRange=T),k&&(t.sourceMapRange=k),c&&(t.tokenSourceMapRanges=qb(c,t.tokenSourceMapRanges)),W!==void 0&&(t.constantValue=W),y)for(let ue of y)t.helpers=hy(t.helpers,ue);return G!==void 0&&(t.startsOnNewLine=G),E!==void 0&&(t.snippetElement=E),D&&(t.classThis=D),R&&(t.assignedName=R),t}function qb(e,t){t||(t=[]);for(let a in e)t[a]=e[a];return t}function aa(e){return e.kind===9}function E1(e){return e.kind===10}function vi(e){return e.kind===11}function A1(e){return e.kind===15}function Fb(e){return e.kind===28}function Wd(e){return e.kind===54}function Gd(e){return e.kind===58}function Ke(e){return e.kind===80}function gi(e){return e.kind===81}function zb(e){return e.kind===95}function cl(e){return e.kind===134}function Cp(e){return e.kind===108}function Vb(e){return e.kind===102}function C1(e){return e.kind===167}function Ef(e){return e.kind===168}function Af(e){return e.kind===169}function m_(e){return e.kind===170}function Cl(e){return e.kind===171}function D1(e){return e.kind===172}function Wa(e){return e.kind===173}function P1(e){return e.kind===174}function h_(e){return e.kind===175}function Cf(e){return e.kind===177}function Tl(e){return e.kind===178}function y_(e){return e.kind===179}function N1(e){return e.kind===180}function I1(e){return e.kind===181}function Df(e){return e.kind===182}function O1(e){return e.kind===183}function Pf(e){return e.kind===184}function Nf(e){return e.kind===185}function If(e){return e.kind===186}function Wb(e){return e.kind===187}function M1(e){return e.kind===188}function Gb(e){return e.kind===189}function Yb(e){return e.kind===190}function L1(e){return e.kind===203}function Hb(e){return e.kind===191}function Xb(e){return e.kind===192}function J1(e){return e.kind===193}function j1(e){return e.kind===194}function $b(e){return e.kind===195}function Qb(e){return e.kind===196}function R1(e){return e.kind===197}function Kb(e){return e.kind===198}function U1(e){return e.kind===199}function Zb(e){return e.kind===200}function B1(e){return e.kind===201}function e6(e){return e.kind===202}function t6(e){return e.kind===206}function q1(e){return e.kind===209}function F1(e){return e.kind===210}function Of(e){return e.kind===211}function dr(e){return e.kind===212}function Ha(e){return e.kind===213}function Mf(e){return e.kind===214}function z1(e){return e.kind===216}function Dl(e){return e.kind===218}function Lf(e){return e.kind===219}function Jf(e){return e.kind===220}function n6(e){return e.kind===223}function V1(e){return e.kind===225}function na(e){return e.kind===227}function W1(e){return e.kind===231}function xl(e){return e.kind===232}function G1(e){return e.kind===233}function Y1(e){return e.kind===234}function fl(e){return e.kind===236}function r6(e){return e.kind===237}function i6(e){return e.kind===357}function Xa(e){return e.kind===244}function Pl(e){return e.kind===245}function H1(e){return e.kind===257}function jf(e){return e.kind===261}function X1(e){return e.kind===262}function Rf(e){return e.kind===263}function Ga(e){return e.kind===264}function T_(e){return e.kind===265}function Nl(e){return e.kind===266}function $1(e){return e.kind===267}function Ti(e){return e.kind===268}function Uf(e){return e.kind===272}function Bf(e){return e.kind===273}function qf(e){return e.kind===278}function Ff(e){return e.kind===279}function Q1(e){return e.kind===280}function a6(e){return e.kind===354}function zf(e){return e.kind===284}function zp(e){return e.kind===287}function s6(e){return e.kind===290}function K1(e){return e.kind===296}function _6(e){return e.kind===298}function Z1(e){return e.kind===304}function eh(e){return e.kind===308}function th(e){return e.kind===310}function nh(e){return e.kind===315}function rh(e){return e.kind===318}function ih(e){return e.kind===321}function o6(e){return e.kind===323}function Il(e){return e.kind===324}function c6(e){return e.kind===329}function l6(e){return e.kind===334}function u6(e){return e.kind===335}function p6(e){return e.kind===336}function f6(e){return e.kind===337}function d6(e){return e.kind===338}function m6(e){return e.kind===340}function h6(e){return e.kind===332}function Vp(e){return e.kind===342}function y6(e){return e.kind===343}function Vf(e){return e.kind===345}function ah(e){return e.kind===346}function g6(e){return e.kind===330}function b6(e){return e.kind===351}var ea=new WeakMap;function sh(e,t){var a;let _=e.kind;return df(_)?_===353?e._children:(a=ea.get(t))==null?void 0:a.get(e):vt}function v6(e,t,a){e.kind===353&&q.fail("Should not need to re-set the children of a SyntaxList.");let _=ea.get(t);return _===void 0&&(_=new WeakMap,ea.set(t,_)),_.set(e,a),a}function Yd(e,t){var a;e.kind===353&&q.fail("Did not expect to unset the children of a SyntaxList."),(a=ea.get(t))==null||a.delete(e)}function T6(e,t){let a=ea.get(e);a!==void 0&&(ea.delete(e),ea.set(t,a))}function Hd(e){return(za(e)&32768)!==0}function x6(e){return vi(e.expression)&&e.expression.text==="use strict"}function S6(e){for(let t of e)if(pl(t)){if(x6(t))return t}else break}function w6(e){return Dl(e)&&ia(e)&&!!Lg(e)}function _h(e,t=63){switch(e.kind){case 218:return t&-2147483648&&w6(e)?!1:(t&1)!==0;case 217:case 235:return(t&2)!==0;case 239:return(t&34)!==0;case 234:return(t&16)!==0;case 236:return(t&4)!==0;case 356:return(t&8)!==0}return!1}function Wf(e,t=63){for(;_h(e,t);)e=e.expression;return e}function k6(e){return setStartsOnNewLine(e,!0)}function i_(e){if(Qg(e))return e.name;if(Hg(e)){switch(e.kind){case 304:return i_(e.initializer);case 305:return e.name;case 306:return i_(e.expression)}return}return vl(e,!0)?i_(e.left):W1(e)?i_(e.expression):e}function E6(e){switch(e.kind){case 207:case 208:case 210:return e.elements;case 211:return e.properties}}function Xd(e){if(e){let t=e;for(;;){if(Ke(t)||!t.body)return Ke(t)?t:t.name;t=t.body}}}var $d;(e=>{function t(y,G,E,D,R,ue,be){let he=G>0?R[G-1]:void 0;return q.assertEqual(E[G],t),R[G]=y.onEnter(D[G],he,be),E[G]=k(y,t),G}e.enter=t;function a(y,G,E,D,R,ue,be){q.assertEqual(E[G],a),q.assertIsDefined(y.onLeft),E[G]=k(y,a);let he=y.onLeft(D[G].left,R[G],D[G]);return he?(W(G,D,he),c(G,E,D,R,he)):G}e.left=a;function _(y,G,E,D,R,ue,be){return q.assertEqual(E[G],_),q.assertIsDefined(y.onOperator),E[G]=k(y,_),y.onOperator(D[G].operatorToken,R[G],D[G]),G}e.operator=_;function f(y,G,E,D,R,ue,be){q.assertEqual(E[G],f),q.assertIsDefined(y.onRight),E[G]=k(y,f);let he=y.onRight(D[G].right,R[G],D[G]);return he?(W(G,D,he),c(G,E,D,R,he)):G}e.right=f;function h(y,G,E,D,R,ue,be){q.assertEqual(E[G],h),E[G]=k(y,h);let he=y.onExit(D[G],R[G]);if(G>0){if(G--,y.foldState){let de=E[G]===h?"right":"left";R[G]=y.foldState(R[G],he,de)}}else ue.value=he;return G}e.exit=h;function T(y,G,E,D,R,ue,be){return q.assertEqual(E[G],T),G}e.done=T;function k(y,G){switch(G){case t:if(y.onLeft)return a;case a:if(y.onOperator)return _;case _:if(y.onRight)return f;case f:return h;case h:return T;case T:return T;default:q.fail("Invalid state")}}e.nextState=k;function c(y,G,E,D,R){return y++,G[y]=t,E[y]=R,D[y]=void 0,y}function W(y,G,E){if(q.shouldAssert(2))for(;y>=0;)q.assert(G[y]!==E,"Circular traversal detected."),y--}})($d||($d={}));function Qd(e,t){return typeof e=="object"?Wp(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function A6(e,t){return typeof e=="string"?e:C6(e,q.checkDefined(t))}function C6(e,t){return r1(e)?t(e).slice(1):Ua(e)?t(e):gi(e)?e.escapedText.slice(1):An(e)}function Wp(e,t,a,_,f){return t=Qd(t,f),_=Qd(_,f),a=A6(a,f),`${e?"#":""}${t}${a}${_}`}function oh(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(let t of E6(e)){let a=i_(t);if(a&&$g(a)&&(a.transformFlags&65536||a.transformFlags&128&&oh(a)))return!0}return!1}function dn(e,t){return t?yi(e,t.pos,t.end):e}function Ol(e){let t=e.kind;return t===169||t===170||t===172||t===173||t===174||t===175||t===177||t===178||t===179||t===182||t===186||t===219||t===220||t===232||t===244||t===263||t===264||t===265||t===266||t===267||t===268||t===272||t===273||t===278||t===279}function Gf(e){let t=e.kind;return t===170||t===173||t===175||t===178||t===179||t===232||t===264}var Kd,Zd,em,tm,nm,D6={createBaseSourceFileNode:e=>new(nm||(nm=Et.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(em||(em=Et.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(tm||(tm=Et.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(Zd||(Zd=Et.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(Kd||(Kd=Et.getNodeConstructor()))(e,-1,-1)},J3=kf(1,D6);function S(e,t){return t&&e(t)}function ie(e,t,a){if(a){if(t)return t(a);for(let _ of a){let f=e(_);if(f)return f}}}function P6(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function N6(e){return jn(e.statements,I6)||O6(e)}function I6(e){return Ol(e)&&M6(e,95)||Uf(e)&&zf(e.moduleReference)||Bf(e)||qf(e)||Ff(e)?e:void 0}function O6(e){return e.flags&8388608?ch(e):void 0}function ch(e){return L6(e)?e:Xt(e,ch)}function M6(e,t){return Zt(e.modifiers,a=>a.kind===t)}function L6(e){return r6(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}var J6={167:function(t,a,_){return S(a,t.left)||S(a,t.right)},169:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.name)||S(a,t.constraint)||S(a,t.default)||S(a,t.expression)},305:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.name)||S(a,t.questionToken)||S(a,t.exclamationToken)||S(a,t.equalsToken)||S(a,t.objectAssignmentInitializer)},306:function(t,a,_){return S(a,t.expression)},170:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.dotDotDotToken)||S(a,t.name)||S(a,t.questionToken)||S(a,t.type)||S(a,t.initializer)},173:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.name)||S(a,t.questionToken)||S(a,t.exclamationToken)||S(a,t.type)||S(a,t.initializer)},172:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.name)||S(a,t.questionToken)||S(a,t.type)||S(a,t.initializer)},304:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.name)||S(a,t.questionToken)||S(a,t.exclamationToken)||S(a,t.initializer)},261:function(t,a,_){return S(a,t.name)||S(a,t.exclamationToken)||S(a,t.type)||S(a,t.initializer)},209:function(t,a,_){return S(a,t.dotDotDotToken)||S(a,t.propertyName)||S(a,t.name)||S(a,t.initializer)},182:function(t,a,_){return ie(a,_,t.modifiers)||ie(a,_,t.typeParameters)||ie(a,_,t.parameters)||S(a,t.type)},186:function(t,a,_){return ie(a,_,t.modifiers)||ie(a,_,t.typeParameters)||ie(a,_,t.parameters)||S(a,t.type)},185:function(t,a,_){return ie(a,_,t.modifiers)||ie(a,_,t.typeParameters)||ie(a,_,t.parameters)||S(a,t.type)},180:rm,181:rm,175:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.asteriskToken)||S(a,t.name)||S(a,t.questionToken)||S(a,t.exclamationToken)||ie(a,_,t.typeParameters)||ie(a,_,t.parameters)||S(a,t.type)||S(a,t.body)},174:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.name)||S(a,t.questionToken)||ie(a,_,t.typeParameters)||ie(a,_,t.parameters)||S(a,t.type)},177:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.name)||ie(a,_,t.typeParameters)||ie(a,_,t.parameters)||S(a,t.type)||S(a,t.body)},178:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.name)||ie(a,_,t.typeParameters)||ie(a,_,t.parameters)||S(a,t.type)||S(a,t.body)},179:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.name)||ie(a,_,t.typeParameters)||ie(a,_,t.parameters)||S(a,t.type)||S(a,t.body)},263:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.asteriskToken)||S(a,t.name)||ie(a,_,t.typeParameters)||ie(a,_,t.parameters)||S(a,t.type)||S(a,t.body)},219:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.asteriskToken)||S(a,t.name)||ie(a,_,t.typeParameters)||ie(a,_,t.parameters)||S(a,t.type)||S(a,t.body)},220:function(t,a,_){return ie(a,_,t.modifiers)||ie(a,_,t.typeParameters)||ie(a,_,t.parameters)||S(a,t.type)||S(a,t.equalsGreaterThanToken)||S(a,t.body)},176:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.body)},184:function(t,a,_){return S(a,t.typeName)||ie(a,_,t.typeArguments)},183:function(t,a,_){return S(a,t.assertsModifier)||S(a,t.parameterName)||S(a,t.type)},187:function(t,a,_){return S(a,t.exprName)||ie(a,_,t.typeArguments)},188:function(t,a,_){return ie(a,_,t.members)},189:function(t,a,_){return S(a,t.elementType)},190:function(t,a,_){return ie(a,_,t.elements)},193:im,194:im,195:function(t,a,_){return S(a,t.checkType)||S(a,t.extendsType)||S(a,t.trueType)||S(a,t.falseType)},196:function(t,a,_){return S(a,t.typeParameter)},206:function(t,a,_){return S(a,t.argument)||S(a,t.attributes)||S(a,t.qualifier)||ie(a,_,t.typeArguments)},303:function(t,a,_){return S(a,t.assertClause)},197:am,199:am,200:function(t,a,_){return S(a,t.objectType)||S(a,t.indexType)},201:function(t,a,_){return S(a,t.readonlyToken)||S(a,t.typeParameter)||S(a,t.nameType)||S(a,t.questionToken)||S(a,t.type)||ie(a,_,t.members)},202:function(t,a,_){return S(a,t.literal)},203:function(t,a,_){return S(a,t.dotDotDotToken)||S(a,t.name)||S(a,t.questionToken)||S(a,t.type)},207:sm,208:sm,210:function(t,a,_){return ie(a,_,t.elements)},211:function(t,a,_){return ie(a,_,t.properties)},212:function(t,a,_){return S(a,t.expression)||S(a,t.questionDotToken)||S(a,t.name)},213:function(t,a,_){return S(a,t.expression)||S(a,t.questionDotToken)||S(a,t.argumentExpression)},214:_m,215:_m,216:function(t,a,_){return S(a,t.tag)||S(a,t.questionDotToken)||ie(a,_,t.typeArguments)||S(a,t.template)},217:function(t,a,_){return S(a,t.type)||S(a,t.expression)},218:function(t,a,_){return S(a,t.expression)},221:function(t,a,_){return S(a,t.expression)},222:function(t,a,_){return S(a,t.expression)},223:function(t,a,_){return S(a,t.expression)},225:function(t,a,_){return S(a,t.operand)},230:function(t,a,_){return S(a,t.asteriskToken)||S(a,t.expression)},224:function(t,a,_){return S(a,t.expression)},226:function(t,a,_){return S(a,t.operand)},227:function(t,a,_){return S(a,t.left)||S(a,t.operatorToken)||S(a,t.right)},235:function(t,a,_){return S(a,t.expression)||S(a,t.type)},236:function(t,a,_){return S(a,t.expression)},239:function(t,a,_){return S(a,t.expression)||S(a,t.type)},237:function(t,a,_){return S(a,t.name)},228:function(t,a,_){return S(a,t.condition)||S(a,t.questionToken)||S(a,t.whenTrue)||S(a,t.colonToken)||S(a,t.whenFalse)},231:function(t,a,_){return S(a,t.expression)},242:om,269:om,308:function(t,a,_){return ie(a,_,t.statements)||S(a,t.endOfFileToken)},244:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.declarationList)},262:function(t,a,_){return ie(a,_,t.declarations)},245:function(t,a,_){return S(a,t.expression)},246:function(t,a,_){return S(a,t.expression)||S(a,t.thenStatement)||S(a,t.elseStatement)},247:function(t,a,_){return S(a,t.statement)||S(a,t.expression)},248:function(t,a,_){return S(a,t.expression)||S(a,t.statement)},249:function(t,a,_){return S(a,t.initializer)||S(a,t.condition)||S(a,t.incrementor)||S(a,t.statement)},250:function(t,a,_){return S(a,t.initializer)||S(a,t.expression)||S(a,t.statement)},251:function(t,a,_){return S(a,t.awaitModifier)||S(a,t.initializer)||S(a,t.expression)||S(a,t.statement)},252:cm,253:cm,254:function(t,a,_){return S(a,t.expression)},255:function(t,a,_){return S(a,t.expression)||S(a,t.statement)},256:function(t,a,_){return S(a,t.expression)||S(a,t.caseBlock)},270:function(t,a,_){return ie(a,_,t.clauses)},297:function(t,a,_){return S(a,t.expression)||ie(a,_,t.statements)},298:function(t,a,_){return ie(a,_,t.statements)},257:function(t,a,_){return S(a,t.label)||S(a,t.statement)},258:function(t,a,_){return S(a,t.expression)},259:function(t,a,_){return S(a,t.tryBlock)||S(a,t.catchClause)||S(a,t.finallyBlock)},300:function(t,a,_){return S(a,t.variableDeclaration)||S(a,t.block)},171:function(t,a,_){return S(a,t.expression)},264:lm,232:lm,265:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.name)||ie(a,_,t.typeParameters)||ie(a,_,t.heritageClauses)||ie(a,_,t.members)},266:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.name)||ie(a,_,t.typeParameters)||S(a,t.type)},267:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.name)||ie(a,_,t.members)},307:function(t,a,_){return S(a,t.name)||S(a,t.initializer)},268:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.name)||S(a,t.body)},272:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.name)||S(a,t.moduleReference)},273:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.importClause)||S(a,t.moduleSpecifier)||S(a,t.attributes)},274:function(t,a,_){return S(a,t.name)||S(a,t.namedBindings)},301:function(t,a,_){return ie(a,_,t.elements)},302:function(t,a,_){return S(a,t.name)||S(a,t.value)},271:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.name)},275:function(t,a,_){return S(a,t.name)},281:function(t,a,_){return S(a,t.name)},276:um,280:um,279:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.exportClause)||S(a,t.moduleSpecifier)||S(a,t.attributes)},277:pm,282:pm,278:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.expression)},229:function(t,a,_){return S(a,t.head)||ie(a,_,t.templateSpans)},240:function(t,a,_){return S(a,t.expression)||S(a,t.literal)},204:function(t,a,_){return S(a,t.head)||ie(a,_,t.templateSpans)},205:function(t,a,_){return S(a,t.type)||S(a,t.literal)},168:function(t,a,_){return S(a,t.expression)},299:function(t,a,_){return ie(a,_,t.types)},234:function(t,a,_){return S(a,t.expression)||ie(a,_,t.typeArguments)},284:function(t,a,_){return S(a,t.expression)},283:function(t,a,_){return ie(a,_,t.modifiers)},357:function(t,a,_){return ie(a,_,t.elements)},285:function(t,a,_){return S(a,t.openingElement)||ie(a,_,t.children)||S(a,t.closingElement)},289:function(t,a,_){return S(a,t.openingFragment)||ie(a,_,t.children)||S(a,t.closingFragment)},286:fm,287:fm,293:function(t,a,_){return ie(a,_,t.properties)},292:function(t,a,_){return S(a,t.name)||S(a,t.initializer)},294:function(t,a,_){return S(a,t.expression)},295:function(t,a,_){return S(a,t.dotDotDotToken)||S(a,t.expression)},288:function(t,a,_){return S(a,t.tagName)},296:function(t,a,_){return S(a,t.namespace)||S(a,t.name)},191:Hi,192:Hi,310:Hi,316:Hi,315:Hi,317:Hi,319:Hi,318:function(t,a,_){return ie(a,_,t.parameters)||S(a,t.type)},321:function(t,a,_){return(typeof t.comment=="string"?void 0:ie(a,_,t.comment))||ie(a,_,t.tags)},348:function(t,a,_){return S(a,t.tagName)||S(a,t.name)||(typeof t.comment=="string"?void 0:ie(a,_,t.comment))},311:function(t,a,_){return S(a,t.name)},312:function(t,a,_){return S(a,t.left)||S(a,t.right)},342:dm,349:dm,331:function(t,a,_){return S(a,t.tagName)||(typeof t.comment=="string"?void 0:ie(a,_,t.comment))},330:function(t,a,_){return S(a,t.tagName)||S(a,t.class)||(typeof t.comment=="string"?void 0:ie(a,_,t.comment))},329:function(t,a,_){return S(a,t.tagName)||S(a,t.class)||(typeof t.comment=="string"?void 0:ie(a,_,t.comment))},346:function(t,a,_){return S(a,t.tagName)||S(a,t.constraint)||ie(a,_,t.typeParameters)||(typeof t.comment=="string"?void 0:ie(a,_,t.comment))},347:function(t,a,_){return S(a,t.tagName)||(t.typeExpression&&t.typeExpression.kind===310?S(a,t.typeExpression)||S(a,t.fullName)||(typeof t.comment=="string"?void 0:ie(a,_,t.comment)):S(a,t.fullName)||S(a,t.typeExpression)||(typeof t.comment=="string"?void 0:ie(a,_,t.comment)))},339:function(t,a,_){return S(a,t.tagName)||S(a,t.fullName)||S(a,t.typeExpression)||(typeof t.comment=="string"?void 0:ie(a,_,t.comment))},343:Xi,345:Xi,344:Xi,341:Xi,351:Xi,350:Xi,340:Xi,324:function(t,a,_){return jn(t.typeParameters,a)||jn(t.parameters,a)||S(a,t.type)},325:Dp,326:Dp,327:Dp,323:function(t,a,_){return jn(t.jsDocPropertyTags,a)},328:ui,333:ui,334:ui,335:ui,336:ui,337:ui,332:ui,338:ui,352:j6,356:R6};function rm(e,t,a){return ie(t,a,e.typeParameters)||ie(t,a,e.parameters)||S(t,e.type)}function im(e,t,a){return ie(t,a,e.types)}function am(e,t,a){return S(t,e.type)}function sm(e,t,a){return ie(t,a,e.elements)}function _m(e,t,a){return S(t,e.expression)||S(t,e.questionDotToken)||ie(t,a,e.typeArguments)||ie(t,a,e.arguments)}function om(e,t,a){return ie(t,a,e.statements)}function cm(e,t,a){return S(t,e.label)}function lm(e,t,a){return ie(t,a,e.modifiers)||S(t,e.name)||ie(t,a,e.typeParameters)||ie(t,a,e.heritageClauses)||ie(t,a,e.members)}function um(e,t,a){return ie(t,a,e.elements)}function pm(e,t,a){return S(t,e.propertyName)||S(t,e.name)}function fm(e,t,a){return S(t,e.tagName)||ie(t,a,e.typeArguments)||S(t,e.attributes)}function Hi(e,t,a){return S(t,e.type)}function dm(e,t,a){return S(t,e.tagName)||(e.isNameFirst?S(t,e.name)||S(t,e.typeExpression):S(t,e.typeExpression)||S(t,e.name))||(typeof e.comment=="string"?void 0:ie(t,a,e.comment))}function Xi(e,t,a){return S(t,e.tagName)||S(t,e.typeExpression)||(typeof e.comment=="string"?void 0:ie(t,a,e.comment))}function Dp(e,t,a){return S(t,e.name)}function ui(e,t,a){return S(t,e.tagName)||(typeof e.comment=="string"?void 0:ie(t,a,e.comment))}function j6(e,t,a){return S(t,e.tagName)||S(t,e.importClause)||S(t,e.moduleSpecifier)||S(t,e.attributes)||(typeof e.comment=="string"?void 0:ie(t,a,e.comment))}function R6(e,t,a){return S(t,e.expression)}function Xt(e,t,a){if(e===void 0||e.kind<=166)return;let _=J6[e.kind];return _===void 0?void 0:_(e,t,a)}function mm(e,t,a){let _=hm(e),f=[];for(;f.length<_.length;)f.push(e);for(;_.length!==0;){let h=_.pop(),T=f.pop();if($r(h)){if(a){let k=a(h,T);if(k){if(k==="skip")continue;return k}}for(let k=h.length-1;k>=0;--k)_.push(h[k]),f.push(T)}else{let k=t(h,T);if(k){if(k==="skip")continue;return k}if(h.kind>=167)for(let c of hm(h))_.push(c),f.push(h)}}}function hm(e){let t=[];return Xt(e,a,a),t;function a(_){t.unshift(_)}}function lh(e){e.externalModuleIndicator=N6(e)}function uh(e,t,a,_=!1,f){var h,T;(h=ll)==null||h.push(ll.Phase.Parse,"createSourceFile",{path:e},!0),vd("beforeParse");let k,{languageVersion:c,setExternalModuleIndicator:W,impliedNodeFormat:y,jsDocParsingMode:G}=typeof a=="object"?a:{languageVersion:a};if(c===100)k=ta.parseSourceFile(e,t,c,void 0,_,6,Va,G);else{let E=y===void 0?W:D=>(D.impliedNodeFormat=y,(W||lh)(D));k=ta.parseSourceFile(e,t,c,void 0,_,f,E,G)}return vd("afterParse"),jy("Parse","beforeParse","afterParse"),(T=ll)==null||T.pop(),k}function ph(e){return e.externalModuleIndicator!==void 0}function U6(e,t,a,_=!1){let f=Sl.updateSourceFile(e,t,a,_);return f.flags|=e.flags&12582912,f}var ta;(e=>{var t=_f(99,!0),a=40960,_,f,h,T,k;function c(o){return ar++,o}var W={createBaseSourceFileNode:o=>c(new k(o,0,0)),createBaseIdentifierNode:o=>c(new h(o,0,0)),createBasePrivateIdentifierNode:o=>c(new T(o,0,0)),createBaseTokenNode:o=>c(new f(o,0,0)),createBaseNode:o=>c(new _(o,0,0))},y=kf(11,W),{createNodeArray:G,createNumericLiteral:E,createStringLiteral:D,createLiteralLikeNode:R,createIdentifier:ue,createPrivateIdentifier:be,createToken:he,createArrayLiteralExpression:de,createObjectLiteralExpression:O,createPropertyAccessExpression:ae,createPropertyAccessChain:Oe,createElementAccessExpression:V,createElementAccessChain:oe,createCallExpression:Y,createCallChain:ft,createNewExpression:nr,createParenthesizedExpression:mn,createBlock:rr,createVariableStatement:hn,createExpressionStatement:Dn,createIfStatement:We,createWhileStatement:ir,createForStatement:Ir,createForOfStatement:Ot,createVariableDeclaration:Bn,createVariableDeclarationList:Pn}=y,Mt,ht,$e,qn,$t,ot,at,Bt,Lt,ct,ar,dt,yn,yt,_n,tt,qt=!0,tn=!1;function sr(o,p,m,g,b=!1,N,Q,_e=0){var ee;if(N=bb(o,N),N===6){let ce=hr(o,p,m,g,b);return convertToJson(ce,(ee=ce.statements[0])==null?void 0:ee.expression,ce.parseDiagnostics,!1,void 0),ce.referencedFiles=vt,ce.typeReferenceDirectives=vt,ce.libReferenceDirectives=vt,ce.amdDependencies=vt,ce.hasNoDefaultLib=!1,ce.pragmas=cy,ce}Fn(o,p,m,g,N,_e);let te=Or(m,b,N,Q||lh,_e);return zn(),te}e.parseSourceFile=sr;function mr(o,p){Fn("",o,p,void 0,1,0),B();let m=Ur(!0),g=u()===1&&!at.length;return zn(),g?m:void 0}e.parseIsolatedEntityName=mr;function hr(o,p,m=2,g,b=!1){Fn(o,p,m,g,6,0),ht=tt,B();let N=M(),Q,_e;if(u()===1)Q=At([],N,N),_e=Wt();else{let ce;for(;u()!==1;){let De;switch(u()){case 23:De=_c();break;case 112:case 97:case 106:De=Wt();break;case 41:H(()=>B()===9&&B()!==59)?De=Wo():De=Is();break;case 9:case 11:if(H(()=>B()!==59)){De=Hn();break}default:De=Is();break}ce&&$r(ce)?ce.push(De):ce?ce=[ce,De]:(ce=De,u()!==1&&Ee(A.Unexpected_token))}let je=$r(ce)?P(de(ce),N):q.checkDefined(ce),Je=Dn(je);P(Je,N),Q=At([Je],N),_e=Yn(1,A.Unexpected_token)}let ee=se(o,2,6,!1,Q,_e,ht,Va);b&&L(ee),ee.nodeCount=ar,ee.identifierCount=yn,ee.identifiers=dt,ee.parseDiagnostics=Yi(at,ee),Bt&&(ee.jsDocDiagnostics=Yi(Bt,ee));let te=ee;return zn(),te}e.parseJsonText=hr;function Fn(o,p,m,g,b,N){switch(_=Et.getNodeConstructor(),f=Et.getTokenConstructor(),h=Et.getIdentifierConstructor(),T=Et.getPrivateIdentifierConstructor(),k=Et.getSourceFileConstructor(),Mt=Yy(o),$e=p,qn=m,Lt=g,$t=b,ot=Bd(b),at=[],yt=0,dt=new Map,yn=0,ar=0,ht=0,qt=!0,$t){case 1:case 2:tt=524288;break;case 6:tt=134742016;break;default:tt=0;break}tn=!1,t.setText($e),t.setOnError(Zr),t.setScriptTarget(qn),t.setLanguageVariant(ot),t.setScriptKind($t),t.setJSDocParsingMode(N)}function zn(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),t.setScriptKind(0),t.setJSDocParsingMode(0),$e=void 0,qn=void 0,Lt=void 0,$t=void 0,ot=void 0,ht=0,at=void 0,Bt=void 0,yt=0,dt=void 0,_n=void 0,qt=!0}function Or(o,p,m,g,b){let N=F6(Mt);N&&(tt|=33554432),ht=tt,B();let Q=bn(0,Yt);q.assert(u()===1);let _e=Ue(),ee=Ce(Wt(),_e),te=se(Mt,o,m,N,Q,ee,ht,g);return W6(te,$e),G6(te,ce),te.commentDirectives=t.getCommentDirectives(),te.nodeCount=ar,te.identifierCount=yn,te.identifiers=dt,te.parseDiagnostics=Yi(at,te),te.jsDocParsingMode=b,Bt&&(te.jsDocDiagnostics=Yi(Bt,te)),p&&L(te),te;function ce(je,Je,De){at.push(Oa(Mt,$e,je,Je,De))}}let Vn=!1;function Ce(o,p){if(!p)return o;q.assert(!o.jsDoc);let m=fy(m2(o,$e),g=>el.parseJSDocComment(o,g.pos,g.end-g.pos));return m.length&&(o.jsDoc=m),Vn&&(Vn=!1,o.flags|=536870912),o}function yr(o){let p=Lt,m=Sl.createSyntaxCursor(o);Lt={currentNode:ce};let g=[],b=at;at=[];let N=0,Q=ee(o.statements,0);for(;Q!==-1;){let je=o.statements[N],Je=o.statements[Q];En(g,o.statements,N,Q),N=te(o.statements,Q);let De=bp(b,Nt=>Nt.start>=je.pos),Ht=De>=0?bp(b,Nt=>Nt.start>=Je.pos,De):-1;De>=0&&En(at,b,De,Ht>=0?Ht:void 0),cn(()=>{let Nt=tt;for(tt|=65536,t.resetTokenState(Je.pos),B();u()!==1;){let ur=t.getTokenFullStart(),pr=ns(0,Yt);if(g.push(pr),ur===t.getTokenFullStart()&&B(),N>=0){let Mn=o.statements[N];if(pr.end===Mn.pos)break;pr.end>Mn.pos&&(N=te(o.statements,N+1))}}tt=Nt},2),Q=N>=0?ee(o.statements,N):-1}if(N>=0){let je=o.statements[N];En(g,o.statements,N);let Je=bp(b,De=>De.start>=je.pos);Je>=0&&En(at,b,Je)}return Lt=p,y.updateSourceFile(o,dn(G(g),o.statements));function _e(je){return!(je.flags&65536)&&!!(je.transformFlags&67108864)}function ee(je,Je){for(let De=Je;De118}function ve(){return u()===80?!0:u()===127&&we()||u()===135&&Ye()?!1:u()>118}function J(o,p,m=!0){return u()===o?(m&&B(),!0):(p?Ee(p):Ee(A._0_expected,nt(o)),!1)}let mt=Object.keys(nf).filter(o=>o.length>2);function xt(o){if(z1(o)){rt(Cr($e,o.template.pos),o.template.end,A.Module_declaration_names_may_only_use_or_quoted_strings);return}let p=Ke(o)?An(o):void 0;if(!p||!fg(p,qn)){Ee(A._0_expected,nt(27));return}let m=Cr($e,o.pos);switch(p){case"const":case"let":case"var":rt(m,o.end,A.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":Jt(A.Interface_name_cannot_be_0,A.Interface_must_be_given_a_name,19);return;case"is":rt(m,t.getTokenStart(),A.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":Jt(A.Namespace_name_cannot_be_0,A.Namespace_must_be_given_a_name,19);return;case"type":Jt(A.Type_alias_name_cannot_be_0,A.Type_alias_must_be_given_a_name,64);return}let g=t_(p,mt,bt)??ln(p);if(g){rt(m,o.end,A.Unknown_keyword_or_identifier_Did_you_mean_0,g);return}u()!==0&&rt(m,o.end,A.Unexpected_keyword_or_identifier)}function Jt(o,p,m){u()===m?Ee(p):Ee(o,t.getTokenValue())}function ln(o){for(let p of mt)if(o.length>p.length+2&&ml(o,p))return`${p} ${o.slice(p.length)}`}function ql(o,p,m){if(u()===60&&!t.hasPrecedingLineBreak()){Ee(A.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(u()===21){Ee(A.Cannot_start_a_function_call_in_a_type_annotation),B();return}if(p&&!_r()){m?Ee(A._0_expected,nt(27)):Ee(A.Expected_for_property_initializer);return}if(!oa()){if(m){Ee(A._0_expected,nt(27));return}xt(o)}}function C_(o){return u()===o?(Be(),!0):(q.assert(Sp(o)),Ee(A._0_expected,nt(o)),!1)}function Lr(o,p,m,g){if(u()===p){B();return}let b=Ee(A._0_expected,nt(p));m&&b&&sl(b,Oa(Mt,$e,g,1,A.The_parser_expected_to_find_a_1_to_match_the_0_token_here,nt(o),nt(p)))}function Le(o){return u()===o?(B(),!0):!1}function pt(o){if(u()===o)return Wt()}function Fl(o){if(u()===o)return Vl()}function Yn(o,p,m){return pt(o)||Gt(o,!1,p||A._0_expected,m||nt(o))}function zl(o){let p=Fl(o);return p||(q.assert(Sp(o)),Gt(o,!1,A._0_expected,nt(o)))}function Wt(){let o=M(),p=u();return B(),P(he(p),o)}function Vl(){let o=M(),p=u();return Be(),P(he(p),o)}function _r(){return u()===27?!0:u()===20||u()===1||t.hasPrecedingLineBreak()}function oa(){return _r()?(u()===27&&B(),!0):!1}function Qt(){return oa()||J(27)}function At(o,p,m,g){let b=G(o,g);return yi(b,p,m??t.getTokenFullStart()),b}function P(o,p,m){return yi(o,p,m??t.getTokenFullStart()),tt&&(o.flags|=tt),tn&&(tn=!1,o.flags|=262144),o}function Gt(o,p,m,...g){p?gn(t.getTokenFullStart(),0,m,...g):m&&Ee(m,...g);let b=M(),N=o===80?ue("",void 0):Nd(o)?y.createTemplateLiteralLikeNode(o,"","",void 0):o===9?E("",void 0):o===11?D("",void 0):o===283?y.createMissingDeclaration():he(o);return P(N,b)}function Jr(o){let p=dt.get(o);return p===void 0&&dt.set(o,p=o),p}function or(o,p,m){if(o){yn++;let _e=t.hasPrecedingJSDocLeadingAsterisks()?t.getTokenStart():M(),ee=u(),te=Jr(t.getTokenValue()),ce=t.hasExtendedUnicodeEscape();return Ie(),P(ue(te,ee,ce),_e)}if(u()===81)return Ee(m||A.Private_identifiers_are_not_allowed_outside_class_bodies),or(!0);if(u()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return or(!0);yn++;let g=u()===1,b=t.isReservedWord(),N=t.getTokenText(),Q=b?A.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:A.Identifier_expected;return Gt(80,g,p||Q,N)}function Ka(o){return or(qe(),void 0,o)}function gt(o,p){return or(ve(),o,p)}function jt(o){return or(St(u()),o)}function ei(){return(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&Ee(A.Unicode_escape_sequence_cannot_appear_here),or(St(u()))}function br(){return St(u())||u()===11||u()===9||u()===10}function D_(){return St(u())||u()===11}function Wl(o){if(u()===11||u()===9||u()===10){let p=Hn();return p.text=Jr(p.text),p}return o&&u()===23?Gl():u()===81?ca():jt()}function jr(){return Wl(!0)}function Gl(){let o=M();J(23);let p=lt(kt);return J(24),P(y.createComputedPropertyName(p),o)}function ca(){let o=M(),p=be(Jr(t.getTokenValue()));return B(),P(p,o)}function ti(o){return u()===o&&le(P_)}function Za(){return B(),t.hasPrecedingLineBreak()?!1:cr()}function P_(){switch(u()){case 87:return B()===94;case 95:return B(),u()===90?H(Ai):u()===156?H(Yl):Ei();case 90:return Ai();case 126:return B(),cr();case 139:case 153:return B(),Hl();default:return Za()}}function Ei(){return u()===60||u()!==42&&u()!==130&&u()!==19&&cr()}function Yl(){return B(),Ei()}function N_(){return Yr(u())&&le(P_)}function cr(){return u()===23||u()===19||u()===42||u()===26||br()}function Hl(){return u()===23||br()}function Ai(){return B(),u()===86||u()===100||u()===120||u()===60||u()===128&&H(vc)||u()===134&&H(Tc)}function la(o,p){if(pa(o))return!0;switch(o){case 0:case 1:case 3:return!(u()===27&&p)&&xc();case 2:return u()===84||u()===90;case 4:return H(_o);case 5:return H(Jc)||u()===27&&!p;case 6:return u()===23||br();case 12:switch(u()){case 23:case 42:case 26:case 25:return!0;default:return br()}case 18:return br();case 9:return u()===23||u()===26||br();case 24:return D_();case 7:return u()===19?H(I_):p?ve()&&!es():xs()&&!es();case 8:return Rs();case 10:return u()===28||u()===26||Rs();case 19:return u()===103||u()===87||ve();case 15:switch(u()){case 28:case 25:return!0}case 11:return u()===26||Tr();case 16:return ha(!1);case 17:return ha(!0);case 20:case 21:return u()===28||ai();case 22:return Vs();case 23:return u()===161&&H(Cc)?!1:u()===11?!0:St(u());case 13:return St(u())||u()===19;case 14:return!0;case 25:return!0;case 26:return q.fail("ParsingContext.Count used as a context");default:q.assertNever(o,"Non-exhaustive case in 'isListElement'.")}}function I_(){if(q.assert(u()===19),B()===20){let o=B();return o===28||o===19||o===96||o===119}return!0}function Ci(){return B(),ve()}function Xl(){return B(),St(u())}function O_(){return B(),Hy(u())}function es(){return u()===119||u()===96?H(M_):!1}function M_(){return B(),Tr()}function Di(){return B(),ai()}function ua(o){if(u()===1)return!0;switch(o){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return u()===20;case 3:return u()===20||u()===84||u()===90;case 7:return u()===19||u()===96||u()===119;case 8:return ts();case 19:return u()===32||u()===21||u()===19||u()===96||u()===119;case 11:return u()===22||u()===27;case 15:case 21:case 10:return u()===24;case 17:case 16:case 18:return u()===22||u()===24;case 20:return u()!==28;case 22:return u()===19||u()===20;case 13:return u()===32||u()===44;case 14:return u()===30&&H(ap);default:return!1}}function ts(){return!!(_r()||qo(u())||u()===39)}function L_(){q.assert(yt,"Missing parsing context");for(let o=0;o<26;o++)if(yt&1<=0)}function ss(o){return o===6?A.An_enum_member_name_must_be_followed_by_a_or:void 0}function lr(){let o=At([],M());return o.isMissingList=!0,o}function V_(o){return!!o.isMissingList}function Rr(o,p,m,g){if(J(m)){let b=un(o,p);return J(g),b}return lr()}function Ur(o,p){let m=M(),g=o?jt(p):gt(p);for(;Le(25)&&u()!==30;)g=P(y.createQualifiedName(g,ni(o,!1,!0)),m);return g}function $l(o,p){return P(y.createQualifiedName(o,p),o.pos)}function ni(o,p,m){if(t.hasPrecedingLineBreak()&&St(u())&&H(Ms))return Gt(80,!0,A.Identifier_expected);if(u()===81){let g=ca();return p?g:Gt(80,!0,A.Identifier_expected)}return o?m?jt():ei():gt()}function Ql(o){let p=M(),m=[],g;do g=H_(o),m.push(g);while(g.literal.kind===17);return At(m,p)}function da(o){let p=M();return P(y.createTemplateExpression(Pi(o),Ql(o)),p)}function W_(){let o=M();return P(y.createTemplateLiteralType(Pi(!1),Kl()),o)}function Kl(){let o=M(),p=[],m;do m=G_(),p.push(m);while(m.literal.kind===17);return At(p,o)}function G_(){let o=M();return P(y.createTemplateLiteralTypeSpan(_t(),Y_(!1)),o)}function Y_(o){return u()===20?(Dt(o),X_()):Yn(18,A._0_expected,nt(20))}function H_(o){let p=M();return P(y.createTemplateSpan(lt(kt),Y_(o)),p)}function Hn(){return ri(u())}function Pi(o){!o&&t.getTokenFlags()&26656&&Dt(!1);let p=ri(u());return q.assert(p.kind===16,"Template head has wrong token kind"),p}function X_(){let o=ri(u());return q.assert(o.kind===17||o.kind===18,"Template fragment has wrong token kind"),o}function Zl(o){let p=o===15||o===18,m=t.getTokenText();return m.substring(1,m.length-(t.isUnterminated()?0:p?1:2))}function ri(o){let p=M(),m=Nd(o)?y.createTemplateLiteralLikeNode(o,t.getTokenValue(),Zl(o),t.getTokenFlags()&7176):o===9?E(t.getTokenValue(),t.getNumericLiteralFlags()):o===11?D(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):Bg(o)?R(o,t.getTokenValue()):q.fail();return t.hasExtendedUnicodeEscape()&&(m.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(m.isUnterminated=!0),B(),P(m,p)}function ii(){return Ur(!0,A.Type_expected)}function $_(){if(!t.hasPrecedingLineBreak()&&wt()===30)return Rr(20,_t,30,32)}function ma(){let o=M();return P(y.createTypeReferenceNode(ii(),$_()),o)}function _s(o){switch(o.kind){case 184:return Zi(o.typeName);case 185:case 186:{let{parameters:p,type:m}=o;return V_(p)||_s(m)}case 197:return _s(o.type);default:return!1}}function eu(o){return B(),P(y.createTypePredicateNode(void 0,o,_t()),o.pos)}function os(){let o=M();return B(),P(y.createThisTypeNode(),o)}function tu(){let o=M();return B(),P(y.createJSDocAllType(),o)}function Q_(){let o=M();return B(),P(y.createJSDocNonNullableType(bs(),!1),o)}function nu(){let o=M();return B(),u()===28||u()===20||u()===22||u()===32||u()===64||u()===52?P(y.createJSDocUnknownType(),o):P(y.createJSDocNullableType(_t(),!1),o)}function K_(){let o=M(),p=Ue();if(le(Gc)){let m=Xn(36),g=In(59,!1);return Ce(P(y.createJSDocFunctionType(m,g),o),p)}return P(y.createTypeReferenceNode(jt(),void 0),o)}function cs(){let o=M(),p;return(u()===110||u()===105)&&(p=jt(),J(59)),P(y.createParameterDeclaration(void 0,void 0,p,void 0,ls(),void 0),o)}function ls(){t.setSkipJsDocLeadingAsterisks(!0);let o=M();if(Le(144)){let g=y.createJSDocNamepathType(void 0);e:for(;;)switch(u()){case 20:case 1:case 28:case 5:break e;default:Be()}return t.setSkipJsDocLeadingAsterisks(!1),P(g,o)}let p=Le(26),m=ba();return t.setSkipJsDocLeadingAsterisks(!1),p&&(m=P(y.createJSDocVariadicType(m),o)),u()===64?(B(),P(y.createJSDocOptionalType(m),o)):m}function Z_(){let o=M();J(114);let p=Ur(!0),m=t.hasPrecedingLineBreak()?void 0:Ca();return P(y.createTypeQueryNode(p,m),o)}function eo(){let o=M(),p=On(!1,!0),m=gt(),g,b;Le(96)&&(ai()||!Tr()?g=_t():b=Xo());let N=Le(64)?_t():void 0,Q=y.createTypeParameterDeclaration(p,m,g,N);return Q.expression=b,P(Q,o)}function pn(){if(u()===30)return Rr(19,eo,30,32)}function ha(o){return u()===26||Rs()||Yr(u())||u()===60||ai(!o)}function to(o){let p=si(A.Private_identifiers_cannot_be_used_as_parameters);return l2(p)===0&&!Zt(o)&&Yr(u())&&B(),p}function no(){return qe()||u()===23||u()===19}function us(o){return ps(o)}function ro(o){return ps(o,!1)}function ps(o,p=!0){let m=M(),g=Ue(),b=o?U(()=>On(!0)):K(()=>On(!0));if(u()===110){let ee=y.createParameterDeclaration(b,void 0,or(!0),void 0,vr(),void 0),te=Xp(b);return te&&on(te,A.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Ce(P(ee,m),g)}let N=qt;qt=!1;let Q=pt(26);if(!p&&!no())return;let _e=Ce(P(y.createParameterDeclaration(b,Q,to(b),pt(58),vr(),xr()),m),g);return qt=N,_e}function In(o,p){if(io(o,p))return gr(ba)}function io(o,p){return o===39?(J(o),!0):Le(59)?!0:p&&u()===39?(Ee(A._0_expected,nt(59)),B(),!0):!1}function fs(o,p){let m=we(),g=Ye();He(!!(o&1)),st(!!(o&2));let b=o&32?un(17,cs):un(16,()=>p?us(g):ro(g));return He(m),st(g),b}function Xn(o){if(!J(21))return lr();let p=fs(o,!0);return J(22),p}function ya(){Le(28)||Qt()}function ao(o){let p=M(),m=Ue();o===181&&J(105);let g=pn(),b=Xn(4),N=In(59,!0);ya();let Q=o===180?y.createCallSignature(g,b,N):y.createConstructSignature(g,b,N);return Ce(P(Q,p),m)}function Br(){return u()===23&&H(ru)}function ru(){if(B(),u()===26||u()===24)return!0;if(Yr(u())){if(B(),ve())return!0}else if(ve())B();else return!1;return u()===59||u()===28?!0:u()!==58?!1:(B(),u()===59||u()===28||u()===24)}function ds(o,p,m){let g=Rr(16,()=>us(!1),23,24),b=vr();ya();let N=y.createIndexSignature(m,g,b);return Ce(P(N,o),p)}function so(o,p,m){let g=jr(),b=pt(58),N;if(u()===21||u()===30){let Q=pn(),_e=Xn(4),ee=In(59,!0);N=y.createMethodSignature(m,g,b,Q,_e,ee)}else{let Q=vr();N=y.createPropertySignature(m,g,b,Q),u()===64&&(N.initializer=xr())}return ya(),Ce(P(N,o),p)}function _o(){if(u()===21||u()===30||u()===139||u()===153)return!0;let o=!1;for(;Yr(u());)o=!0,B();return u()===23?!0:(br()&&(o=!0,B()),o?u()===21||u()===30||u()===58||u()===59||u()===28||_r():!1)}function Ni(){if(u()===21||u()===30)return ao(180);if(u()===105&&H(oo))return ao(181);let o=M(),p=Ue(),m=On(!1);return ti(139)?_i(o,p,m,178,4):ti(153)?_i(o,p,m,179,4):Br()?ds(o,p,m):so(o,p,m)}function oo(){return B(),u()===21||u()===30}function co(){return B()===25}function lo(){switch(B()){case 21:case 30:case 25:return!0}return!1}function uo(){let o=M();return P(y.createTypeLiteralNode(po()),o)}function po(){let o;return J(19)?(o=bn(4,Ni),J(20)):o=lr(),o}function fo(){return B(),u()===40||u()===41?B()===148:(u()===148&&B(),u()===23&&Ci()&&B()===103)}function iu(){let o=M(),p=jt();J(103);let m=_t();return P(y.createTypeParameterDeclaration(void 0,p,m,void 0),o)}function mo(){let o=M();J(19);let p;(u()===148||u()===40||u()===41)&&(p=Wt(),p.kind!==148&&J(148)),J(23);let m=iu(),g=Le(130)?_t():void 0;J(24);let b;(u()===58||u()===40||u()===41)&&(b=Wt(),b.kind!==58&&J(58));let N=vr();Qt();let Q=bn(4,Ni);return J(20),P(y.createMappedTypeNode(p,m,g,b,N,Q),o)}function ho(){let o=M();if(Le(26))return P(y.createRestTypeNode(_t()),o);let p=_t();if(nh(p)&&p.pos===p.type.pos){let m=y.createOptionalTypeNode(p.type);return dn(m,p),m.flags=p.flags,m}return p}function ms(){return B()===59||u()===58&&B()===59}function au(){return u()===26?St(B())&&ms():St(u())&&ms()}function yo(){if(H(au)){let o=M(),p=Ue(),m=pt(26),g=jt(),b=pt(58);J(59);let N=ho(),Q=y.createNamedTupleMember(m,g,b,N);return Ce(P(Q,o),p)}return ho()}function su(){let o=M();return P(y.createTupleTypeNode(Rr(21,yo,23,24)),o)}function go(){let o=M();J(21);let p=_t();return J(22),P(y.createParenthesizedType(p),o)}function _u(){let o;if(u()===128){let p=M();B();let m=P(he(128),p);o=At([m],p)}return o}function hs(){let o=M(),p=Ue(),m=_u(),g=Le(105);q.assert(!m||g,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");let b=pn(),N=Xn(4),Q=In(39,!1),_e=g?y.createConstructorTypeNode(m,b,N,Q):y.createFunctionTypeNode(b,N,Q);return Ce(P(_e,o),p)}function bo(){let o=Wt();return u()===25?void 0:o}function ys(o){let p=M();o&&B();let m=u()===112||u()===97||u()===106?Wt():ri(u());return o&&(m=P(y.createPrefixUnaryExpression(41,m),p)),P(y.createLiteralTypeNode(m),p)}function ou(){return B(),u()===102}function gs(){ht|=4194304;let o=M(),p=Le(114);J(102),J(21);let m=_t(),g;if(Le(28)){let Q=t.getTokenStart();J(19);let _e=u();if(_e===118||_e===132?B():Ee(A._0_expected,nt(118)),J(59),g=Ys(_e,!0),Le(28),!J(20)){let ee=Ba(at);ee&&ee.code===A._0_expected.code&&sl(ee,Oa(Mt,$e,Q,1,A.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}J(22);let b=Le(25)?ii():void 0,N=$_();return P(y.createImportTypeNode(m,g,b,N,p),o)}function vo(){return B(),u()===9||u()===10}function bs(){switch(u()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return le(bo)||ma();case 67:t.reScanAsteriskEqualsToken();case 42:return tu();case 61:t.reScanQuestionToken();case 58:return nu();case 100:return K_();case 54:return Q_();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return ys();case 41:return H(vo)?ys(!0):ma();case 116:return Wt();case 110:{let o=os();return u()===142&&!t.hasPrecedingLineBreak()?eu(o):o}case 114:return H(ou)?gs():Z_();case 19:return H(fo)?mo():uo();case 23:return su();case 21:return go();case 102:return gs();case 131:return H(Ms)?Po():ma();case 16:return W_();default:return ma()}}function ai(o){switch(u()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!o;case 41:return!o&&H(vo);case 21:return!o&&H(To);default:return ve()}}function To(){return B(),u()===22||ha(!1)||ai()}function xo(){let o=M(),p=bs();for(;!t.hasPrecedingLineBreak();)switch(u()){case 54:B(),p=P(y.createJSDocNonNullableType(p,!0),o);break;case 58:if(H(Di))return p;B(),p=P(y.createJSDocNullableType(p,!0),o);break;case 23:if(J(23),ai()){let m=_t();J(24),p=P(y.createIndexedAccessTypeNode(p,m),o)}else J(24),p=P(y.createArrayTypeNode(p),o);break;default:return p}return p}function So(o){let p=M();return J(o),P(y.createTypeOperatorNode(o,ko()),p)}function cu(){if(Le(96)){let o=Nn(_t);if(Ve()||u()!==58)return o}}function wo(){let o=M(),p=gt(),m=le(cu),g=y.createTypeParameterDeclaration(void 0,p,m);return P(g,o)}function lu(){let o=M();return J(140),P(y.createInferTypeNode(wo()),o)}function ko(){let o=u();switch(o){case 143:case 158:case 148:return So(o);case 140:return lu()}return gr(xo)}function ga(o){if(Ts()){let p=hs(),m;return Nf(p)?m=o?A.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:A.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:m=o?A.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:A.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,on(p,m),p}}function Eo(o,p,m){let g=M(),b=o===52,N=Le(o),Q=N&&ga(b)||p();if(u()===o||N){let _e=[Q];for(;Le(o);)_e.push(ga(b)||p());Q=P(m(At(_e,g)),g)}return Q}function vs(){return Eo(51,ko,y.createIntersectionTypeNode)}function uu(){return Eo(52,vs,y.createUnionTypeNode)}function Ao(){return B(),u()===105}function Ts(){return u()===30||u()===21&&H(Co)?!0:u()===105||u()===128&&H(Ao)}function pu(){if(Yr(u())&&On(!1),ve()||u()===110)return B(),!0;if(u()===23||u()===19){let o=at.length;return si(),o===at.length}return!1}function Co(){return B(),!!(u()===22||u()===26||pu()&&(u()===59||u()===28||u()===58||u()===64||u()===22&&(B(),u()===39)))}function ba(){let o=M(),p=ve()&&le(Do),m=_t();return p?P(y.createTypePredicateNode(void 0,p,m),o):m}function Do(){let o=gt();if(u()===142&&!t.hasPrecedingLineBreak())return B(),o}function Po(){let o=M(),p=Yn(131),m=u()===110?os():gt(),g=Le(142)?_t():void 0;return P(y.createTypePredicateNode(p,m,g),o)}function _t(){if(tt&81920)return Ct(81920,_t);if(Ts())return hs();let o=M(),p=uu();if(!Ve()&&!t.hasPrecedingLineBreak()&&Le(96)){let m=Nn(_t);J(58);let g=gr(_t);J(59);let b=gr(_t);return P(y.createConditionalTypeNode(p,m,g,b),o)}return p}function vr(){return Le(59)?_t():void 0}function xs(){switch(u()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return H(lo);default:return ve()}}function Tr(){if(xs())return!0;switch(u()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return Fo()?!0:ve()}}function No(){return u()!==19&&u()!==100&&u()!==86&&u()!==60&&Tr()}function kt(){let o=Ze();o&&Qe(!1);let p=M(),m=zt(!0),g;for(;g=pt(28);)m=ks(m,g,zt(!0),p);return o&&Qe(!0),m}function xr(){return Le(64)?zt(!0):void 0}function zt(o){if(Io())return Oo();let p=du(o)||Ro(o);if(p)return p;let m=M(),g=Ue(),b=Ii(0);return b.kind===80&&u()===39?Mo(m,b,o,g,void 0):Fa(b)&&v1(ze())?ks(b,Wt(),zt(o),m):mu(b,m,o)}function Io(){return u()===127?we()?!0:H(Ls):!1}function fu(){return B(),!t.hasPrecedingLineBreak()&&ve()}function Oo(){let o=M();return B(),!t.hasPrecedingLineBreak()&&(u()===42||Tr())?P(y.createYieldExpression(pt(42),zt(!0)),o):P(y.createYieldExpression(void 0,void 0),o)}function Mo(o,p,m,g,b){q.assert(u()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");let N=y.createParameterDeclaration(void 0,void 0,p,void 0,void 0,void 0);P(N,p.pos);let Q=At([N],N.pos,N.end),_e=Yn(39),ee=Ss(!!b,m),te=y.createArrowFunction(b,void 0,Q,void 0,_e,ee);return Ce(P(te,o),g)}function du(o){let p=Lo();if(p!==0)return p===1?Bo(!0,!0):le(()=>jo(o))}function Lo(){return u()===21||u()===30||u()===134?H(Jo):u()===39?1:0}function Jo(){if(u()===134&&(B(),t.hasPrecedingLineBreak()||u()!==21&&u()!==30))return 0;let o=u(),p=B();if(o===21){if(p===22)switch(B()){case 39:case 59:case 19:return 1;default:return 0}if(p===23||p===19)return 2;if(p===26)return 1;if(Yr(p)&&p!==134&&H(Ci))return B()===130?0:1;if(!ve()&&p!==110)return 0;switch(B()){case 59:return 1;case 58:return B(),u()===59||u()===28||u()===64||u()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return q.assert(o===30),!ve()&&u()!==87?0:ot===1?H(()=>{Le(87);let g=B();if(g===96)switch(B()){case 64:case 32:case 44:return!1;default:return!0}else if(g===28||g===64)return!0;return!1})?1:0:2}function jo(o){let p=t.getTokenStart();if(_n?.has(p))return;let m=Bo(!1,o);return m||(_n||(_n=new Set)).add(p),m}function Ro(o){if(u()===134&&H(Uo)===1){let p=M(),m=Ue(),g=Uc(),b=Ii(0);return Mo(p,b,o,m,g)}}function Uo(){if(u()===134){if(B(),t.hasPrecedingLineBreak()||u()===39)return 0;let o=Ii(0);if(!t.hasPrecedingLineBreak()&&o.kind===80&&u()===39)return 1}return 0}function Bo(o,p){let m=M(),g=Ue(),b=Uc(),N=Zt(b,cl)?2:0,Q=pn(),_e;if(J(21)){if(o)_e=fs(N,o);else{let ur=fs(N,o);if(!ur)return;_e=ur}if(!J(22)&&!o)return}else{if(!o)return;_e=lr()}let ee=u()===59,te=In(59,!1);if(te&&!o&&_s(te))return;let ce=te;for(;ce?.kind===197;)ce=ce.type;let je=ce&&rh(ce);if(!o&&u()!==39&&(je||u()!==19))return;let Je=u(),De=Yn(39),Ht=Je===39||Je===19?Ss(Zt(b,cl),p):gt();if(!p&&ee&&u()!==59)return;let Nt=y.createArrowFunction(b,Q,_e,te,De,Ht);return Ce(P(Nt,m),g)}function Ss(o,p){if(u()===19)return wa(o?2:0);if(u()!==27&&u()!==100&&u()!==86&&xc()&&!No())return wa(16|(o?2:0));let m=we();He(!1);let g=qt;qt=!1;let b=o?U(()=>zt(p)):K(()=>zt(p));return qt=g,He(m),b}function mu(o,p,m){let g=pt(58);if(!g)return o;let b;return P(y.createConditionalExpression(o,g,Ct(a,()=>zt(!1)),b=Yn(59),Up(b)?zt(m):Gt(80,!1,A._0_expected,nt(59))),p)}function Ii(o){let p=M(),m=Xo();return ws(o,m,p)}function qo(o){return o===103||o===165}function ws(o,p,m){for(;;){ze();let g=wp(u());if(!(u()===43?g>=o:g>o)||u()===103&&me())break;if(u()===130||u()===152){if(t.hasPrecedingLineBreak())break;{let N=u();B(),p=N===152?zo(p,_t()):Vo(p,_t())}}else p=ks(p,Wt(),Ii(g),m)}return p}function Fo(){return me()&&u()===103?!1:wp(u())>0}function zo(o,p){return P(y.createSatisfiesExpression(o,p),o.pos)}function ks(o,p,m,g){return P(y.createBinaryExpression(o,p,m),g)}function Vo(o,p){return P(y.createAsExpression(o,p),o.pos)}function Wo(){let o=M();return P(y.createPrefixUnaryExpression(u(),Me(Sr)),o)}function Go(){let o=M();return P(y.createDeleteExpression(Me(Sr)),o)}function hu(){let o=M();return P(y.createTypeOfExpression(Me(Sr)),o)}function Yo(){let o=M();return P(y.createVoidExpression(Me(Sr)),o)}function yu(){return u()===135?Ye()?!0:H(Ls):!1}function Ho(){let o=M();return P(y.createAwaitExpression(Me(Sr)),o)}function Xo(){if(gu()){let m=M(),g=va();return u()===43?ws(wp(u()),g,m):g}let o=u(),p=Sr();if(u()===43){let m=Cr($e,p.pos),{end:g}=p;p.kind===217?rt(m,g,A.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(q.assert(Sp(o)),rt(m,g,A.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,nt(o)))}return p}function Sr(){switch(u()){case 40:case 41:case 55:case 54:return Wo();case 91:return Go();case 114:return hu();case 116:return Yo();case 30:return ot===1?Mi(!0,void 0,void 0,!0):ec();case 135:if(yu())return Ho();default:return va()}}function gu(){switch(u()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(ot!==1)return!1;default:return!0}}function va(){if(u()===46||u()===47){let p=M();return P(y.createPrefixUnaryExpression(u(),Me(Oi)),p)}else if(ot===1&&u()===30&&H(O_))return Mi(!0);let o=Oi();if(q.assert(Fa(o)),(u()===46||u()===47)&&!t.hasPrecedingLineBreak()){let p=u();return B(),P(y.createPostfixUnaryExpression(o,p),o.pos)}return o}function Oi(){let o=M(),p;return u()===102?H(oo)?(ht|=4194304,p=Wt()):H(co)?(B(),B(),p=P(y.createMetaProperty(102,jt()),o),p.name.escapedText==="defer"?(u()===21||u()===30)&&(ht|=4194304):ht|=8388608):p=Ta():p=u()===108?$o():Ta(),Ps(o,p)}function Ta(){let o=M(),p=Ns();return rn(o,p,!0)}function $o(){let o=M(),p=Wt();if(u()===30){let m=M(),g=le(Sa);g!==void 0&&(rt(m,M(),A.super_may_not_use_type_arguments),vn()||(p=y.createExpressionWithTypeArguments(p,g)))}return u()===21||u()===25||u()===23?p:(Yn(25,A.super_must_be_followed_by_an_argument_list_or_member_access),P(ae(p,ni(!0,!0,!0)),o))}function Mi(o,p,m,g=!1){let b=M(),N=Tu(o),Q;if(N.kind===287){let _e=xa(N),ee,te=_e[_e.length-1];if(te?.kind===285&&!pi(te.openingElement.tagName,te.closingElement.tagName)&&pi(N.tagName,te.closingElement.tagName)){let ce=te.children.end,je=P(y.createJsxElement(te.openingElement,te.children,P(y.createJsxClosingElement(P(ue(""),ce,ce)),ce,ce)),te.openingElement.pos,ce);_e=At([..._e.slice(0,_e.length-1),je],_e.pos,ce),ee=te.closingElement}else ee=Zo(N,o),pi(N.tagName,ee.tagName)||(m&&zp(m)&&pi(ee.tagName,m.tagName)?on(N.tagName,A.JSX_element_0_has_no_corresponding_closing_tag,r_($e,N.tagName)):on(ee.tagName,A.Expected_corresponding_JSX_closing_tag_for_0,r_($e,N.tagName)));Q=P(y.createJsxElement(N,_e,ee),b)}else N.kind===290?Q=P(y.createJsxFragment(N,xa(N),ku(o)),b):(q.assert(N.kind===286),Q=N);if(!g&&o&&u()===30){let _e=typeof p>"u"?Q.pos:p,ee=le(()=>Mi(!0,_e));if(ee){let te=Gt(28,!1);return Fd(te,ee.pos,0),rt(Cr($e,_e),ee.end,A.JSX_expressions_must_have_one_parent_element),P(y.createBinaryExpression(Q,te,ee),b)}}return Q}function Es(){let o=M(),p=y.createJsxText(t.getTokenValue(),ct===13);return ct=t.scanJsxToken(),P(p,o)}function bu(o,p){switch(p){case 1:if(s6(o))on(o,A.JSX_fragment_has_no_corresponding_closing_tag);else{let m=o.tagName,g=Math.min(Cr($e,m.pos),m.end);rt(g,m.end,A.JSX_element_0_has_no_corresponding_closing_tag,r_($e,o.tagName))}return;case 31:case 7:return;case 12:case 13:return Es();case 19:return Qo(!1);case 30:return Mi(!1,void 0,o);default:return q.assertNever(p)}}function xa(o){let p=[],m=M(),g=yt;for(yt|=16384;;){let b=bu(o,ct=t.reScanJsxToken());if(!b||(p.push(b),zp(o)&&b?.kind===285&&!pi(b.openingElement.tagName,b.closingElement.tagName)&&pi(o.tagName,b.closingElement.tagName)))break}return yt=g,At(p,m)}function vu(){let o=M();return P(y.createJsxAttributes(bn(13,Ko)),o)}function Tu(o){let p=M();if(J(30),u()===32)return Gn(),P(y.createJsxOpeningFragment(),p);let m=As(),g=(tt&524288)===0?Ca():void 0,b=vu(),N;return u()===32?(Gn(),N=y.createJsxOpeningElement(m,g,b)):(J(44),J(32,void 0,!1)&&(o?B():Gn()),N=y.createJsxSelfClosingElement(m,g,b)),P(N,p)}function As(){let o=M(),p=xu();if(K1(p))return p;let m=p;for(;Le(25);)m=P(ae(m,ni(!0,!1,!1)),o);return m}function xu(){let o=M();Ft();let p=u()===110,m=ei();return Le(59)?(Ft(),P(y.createJsxNamespacedName(m,ei()),o)):p?P(y.createToken(110),o):m}function Qo(o){let p=M();if(!J(19))return;let m,g;return u()!==20&&(o||(m=pt(26)),g=kt()),o?J(20):J(20,void 0,!1)&&Gn(),P(y.createJsxExpression(m,g),p)}function Ko(){if(u()===19)return wu();let o=M();return P(y.createJsxAttribute(Su(),Cs()),o)}function Cs(){if(u()===64){if(ki()===11)return Hn();if(u()===19)return Qo(!0);if(u()===30)return Mi(!0);Ee(A.or_JSX_element_expected)}}function Su(){let o=M();Ft();let p=ei();return Le(59)?(Ft(),P(y.createJsxNamespacedName(p,ei()),o)):p}function wu(){let o=M();J(19),J(26);let p=kt();return J(20),P(y.createJsxSpreadAttribute(p),o)}function Zo(o,p){let m=M();J(31);let g=As();return J(32,void 0,!1)&&(p||!pi(o.tagName,g)?B():Gn()),P(y.createJsxClosingElement(g),m)}function ku(o){let p=M();return J(31),J(32,A.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(o?B():Gn()),P(y.createJsxJsxClosingFragment(),p)}function ec(){q.assert(ot!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");let o=M();J(30);let p=_t();J(32);let m=Sr();return P(y.createTypeAssertion(p,m),o)}function Eu(){return B(),St(u())||u()===23||vn()}function tc(){return u()===29&&H(Eu)}function Ds(o){if(o.flags&64)return!0;if(fl(o)){let p=o.expression;for(;fl(p)&&!(p.flags&64);)p=p.expression;if(p.flags&64){for(;fl(o);)o.flags|=64,o=o.expression;return!0}}return!1}function nc(o,p,m){let g=ni(!0,!0,!0),b=m||Ds(p),N=b?Oe(p,m,g):ae(p,g);if(b&&gi(N.name)&&on(N.name,A.An_optional_chain_cannot_contain_private_identifiers),Y1(p)&&p.typeArguments){let Q=p.typeArguments.pos-1,_e=Cr($e,p.typeArguments.end)+1;rt(Q,_e,A.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return P(N,o)}function Au(o,p,m){let g;if(u()===24)g=Gt(80,!0,A.An_element_access_expression_should_take_an_argument);else{let N=lt(kt);Al(N)&&(N.text=Jr(N.text)),g=N}J(24);let b=m||Ds(p)?oe(p,m,g):V(p,g);return P(b,o)}function rn(o,p,m){for(;;){let g,b=!1;if(m&&tc()?(g=Yn(29),b=St(u())):b=Le(25),b){p=nc(o,p,g);continue}if((g||!Ze())&&Le(23)){p=Au(o,p,g);continue}if(vn()){p=!g&&p.kind===234?qr(o,p.expression,g,p.typeArguments):qr(o,p,g,void 0);continue}if(!g){if(u()===54&&!t.hasPrecedingLineBreak()){B(),p=P(y.createNonNullExpression(p),o);continue}let N=le(Sa);if(N){p=P(y.createExpressionWithTypeArguments(p,N),o);continue}}return p}}function vn(){return u()===15||u()===16}function qr(o,p,m,g){let b=y.createTaggedTemplateExpression(p,g,u()===15?(Dt(!0),Hn()):da(!0));return(m||p.flags&64)&&(b.flags|=64),b.questionDotToken=m,P(b,o)}function Ps(o,p){for(;;){p=rn(o,p,!0);let m,g=pt(29);if(g&&(m=le(Sa),vn())){p=qr(o,p,g,m);continue}if(m||u()===21){!g&&p.kind===234&&(m=p.typeArguments,p=p.expression);let b=rc(),N=g||Ds(p)?ft(p,g,m,b):Y(p,m,b);p=P(N,o);continue}if(g){let b=Gt(80,!1,A.Identifier_expected);p=P(Oe(p,g,b),o)}break}return p}function rc(){J(21);let o=un(11,sc);return J(22),o}function Sa(){if((tt&524288)!==0||wt()!==30)return;B();let o=un(20,_t);if(ze()===32)return B(),o&&Cu()?o:void 0}function Cu(){switch(u()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||Fo()||!Tr()}function Ns(){switch(u()){case 15:t.getTokenFlags()&26656&&Dt(!1);case 9:case 10:case 11:return Hn();case 110:case 108:case 106:case 112:case 97:return Wt();case 21:return Du();case 23:return _c();case 19:return Is();case 134:if(!H(Tc))break;return Os();case 60:return Xu();case 86:return $u();case 100:return Os();case 105:return cc();case 44:case 69:if(Xe()===14)return Hn();break;case 16:return da(!1);case 81:return ca()}return gt(A.Expression_expected)}function Du(){let o=M(),p=Ue();J(21);let m=lt(kt);return J(22),Ce(P(mn(m),o),p)}function ic(){let o=M();J(26);let p=zt(!0);return P(y.createSpreadElement(p),o)}function ac(){return u()===26?ic():u()===28?P(y.createOmittedExpression(),M()):zt(!0)}function sc(){return Ct(a,ac)}function _c(){let o=M(),p=t.getTokenStart(),m=J(23),g=t.hasPrecedingLineBreak(),b=un(15,ac);return Lr(23,24,m,p),P(de(b,g),o)}function oc(){let o=M(),p=Ue();if(pt(26)){let ce=zt(!0);return Ce(P(y.createSpreadAssignment(ce),o),p)}let m=On(!0);if(ti(139))return _i(o,p,m,178,0);if(ti(153))return _i(o,p,m,179,0);let g=pt(42),b=ve(),N=jr(),Q=pt(58),_e=pt(54);if(g||u()===21||u()===30)return Lc(o,p,m,g,N,Q,_e);let ee;if(b&&u()!==59){let ce=pt(64),je=ce?lt(()=>zt(!0)):void 0;ee=y.createShorthandPropertyAssignment(N,je),ee.equalsToken=ce}else{J(59);let ce=lt(()=>zt(!0));ee=y.createPropertyAssignment(N,ce)}return ee.modifiers=m,ee.questionToken=Q,ee.exclamationToken=_e,Ce(P(ee,o),p)}function Is(){let o=M(),p=t.getTokenStart(),m=J(19),g=t.hasPrecedingLineBreak(),b=un(12,oc,!0);return Lr(19,20,m,p),P(O(b,g),o)}function Os(){let o=Ze();Qe(!1);let p=M(),m=Ue(),g=On(!1);J(100);let b=pt(42),N=b?1:0,Q=Zt(g,cl)?2:0,_e=N&&Q?Z(Li):N?Wn(Li):Q?U(Li):Li(),ee=pn(),te=Xn(N|Q),ce=In(59,!1),je=wa(N|Q);Qe(o);let Je=y.createFunctionExpression(g,b,_e,ee,te,ce,je);return Ce(P(Je,p),m)}function Li(){return qe()?Ka():void 0}function cc(){let o=M();if(J(105),Le(25)){let N=jt();return P(y.createMetaProperty(105,N),o)}let p=M(),m=rn(p,Ns(),!1),g;m.kind===234&&(g=m.typeArguments,m=m.expression),u()===29&&Ee(A.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,r_($e,m));let b=u()===21?rc():void 0;return P(nr(m,g,b),o)}function Fr(o,p){let m=M(),g=Ue(),b=t.getTokenStart(),N=J(19,p);if(N||o){let Q=t.hasPrecedingLineBreak(),_e=bn(1,Yt);Lr(19,20,N,b);let ee=Ce(P(rr(_e,Q),m),g);return u()===64&&(Ee(A.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),B()),ee}else{let Q=lr();return Ce(P(rr(Q,void 0),m),g)}}function wa(o,p){let m=we();He(!!(o&1));let g=Ye();st(!!(o&2));let b=qt;qt=!1;let N=Ze();N&&Qe(!1);let Q=Fr(!!(o&16),p);return N&&Qe(!0),qt=b,He(m),st(g),Q}function lc(){let o=M(),p=Ue();return J(27),Ce(P(y.createEmptyStatement(),o),p)}function Pu(){let o=M(),p=Ue();J(101);let m=t.getTokenStart(),g=J(21),b=lt(kt);Lr(21,22,g,m);let N=Yt(),Q=Le(93)?Yt():void 0;return Ce(P(We(b,N,Q),o),p)}function uc(){let o=M(),p=Ue();J(92);let m=Yt();J(117);let g=t.getTokenStart(),b=J(21),N=lt(kt);return Lr(21,22,b,g),Le(27),Ce(P(y.createDoStatement(m,N),o),p)}function Nu(){let o=M(),p=Ue();J(117);let m=t.getTokenStart(),g=J(21),b=lt(kt);Lr(21,22,g,m);let N=Yt();return Ce(P(ir(b,N),o),p)}function pc(){let o=M(),p=Ue();J(99);let m=pt(135);J(21);let g;u()!==27&&(u()===115||u()===121||u()===87||u()===160&&H(wc)||u()===135&&H(Js)?g=Ic(!0):g=Mr(kt));let b;if(m?J(165):Le(165)){let N=lt(()=>zt(!0));J(22),b=Ot(m,g,N,Yt())}else if(Le(103)){let N=lt(kt);J(22),b=y.createForInStatement(g,N,Yt())}else{J(27);let N=u()!==27&&u()!==22?lt(kt):void 0;J(27);let Q=u()!==22?lt(kt):void 0;J(22),b=Ir(g,N,Q,Yt())}return Ce(P(b,o),p)}function fc(o){let p=M(),m=Ue();J(o===253?83:88);let g=_r()?void 0:gt();Qt();let b=o===253?y.createBreakStatement(g):y.createContinueStatement(g);return Ce(P(b,p),m)}function dc(){let o=M(),p=Ue();J(107);let m=_r()?void 0:lt(kt);return Qt(),Ce(P(y.createReturnStatement(m),o),p)}function Iu(){let o=M(),p=Ue();J(118);let m=t.getTokenStart(),g=J(21),b=lt(kt);Lr(21,22,g,m);let N=Tt(67108864,Yt);return Ce(P(y.createWithStatement(b,N),o),p)}function mc(){let o=M(),p=Ue();J(84);let m=lt(kt);J(59);let g=bn(3,Yt);return Ce(P(y.createCaseClause(m,g),o),p)}function Ou(){let o=M();J(90),J(59);let p=bn(3,Yt);return P(y.createDefaultClause(p),o)}function Mu(){return u()===84?mc():Ou()}function hc(){let o=M();J(19);let p=bn(2,Mu);return J(20),P(y.createCaseBlock(p),o)}function Lu(){let o=M(),p=Ue();J(109),J(21);let m=lt(kt);J(22);let g=hc();return Ce(P(y.createSwitchStatement(m,g),o),p)}function yc(){let o=M(),p=Ue();J(111);let m=t.hasPrecedingLineBreak()?void 0:lt(kt);return m===void 0&&(yn++,m=P(ue(""),M())),oa()||xt(m),Ce(P(y.createThrowStatement(m),o),p)}function Ju(){let o=M(),p=Ue();J(113);let m=Fr(!1),g=u()===85?gc():void 0,b;return(!g||u()===98)&&(J(98,A.catch_or_finally_expected),b=Fr(!1)),Ce(P(y.createTryStatement(m,g,b),o),p)}function gc(){let o=M();J(85);let p;Le(21)?(p=Ea(),J(22)):p=void 0;let m=Fr(!1);return P(y.createCatchClause(p,m),o)}function ju(){let o=M(),p=Ue();return J(89),Qt(),Ce(P(y.createDebuggerStatement(),o),p)}function bc(){let o=M(),p=Ue(),m,g=u()===21,b=lt(kt);return Ke(b)&&Le(59)?m=y.createLabeledStatement(b,Yt()):(oa()||xt(b),m=Dn(b),g&&(p=!1)),Ce(P(m,o),p)}function Ms(){return B(),St(u())&&!t.hasPrecedingLineBreak()}function vc(){return B(),u()===86&&!t.hasPrecedingLineBreak()}function Tc(){return B(),u()===100&&!t.hasPrecedingLineBreak()}function Ls(){return B(),(St(u())||u()===9||u()===10||u()===11)&&!t.hasPrecedingLineBreak()}function Ru(){for(;;)switch(u()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return kc();case 135:return js();case 120:case 156:case 166:return fu();case 144:case 145:return Fu();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:let o=u();if(B(),t.hasPrecedingLineBreak())return!1;if(o===138&&u()===156)return!0;continue;case 162:return B(),u()===19||u()===80||u()===95;case 102:return B(),u()===166||u()===11||u()===42||u()===19||St(u());case 95:let p=B();if(p===156&&(p=H(B)),p===64||p===42||p===19||p===90||p===130||p===60)return!0;continue;case 126:B();continue;default:return!1}}function Ji(){return H(Ru)}function xc(){switch(u()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return!0;case 102:return Ji()||H(lo);case 87:case 95:return Ji();case 134:case 138:case 120:case 144:case 145:case 156:case 162:case 166:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return Ji()||!H(Ms);default:return Tr()}}function Sc(){return B(),qe()||u()===19||u()===23}function Uu(){return H(Sc)}function wc(){return ka(!0)}function Bu(){return B(),u()===64||u()===27||u()===59}function ka(o){return B(),o&&u()===165?H(Bu):(qe()||u()===19)&&!t.hasPrecedingLineBreak()}function kc(){return H(ka)}function Js(o){return B()===160?ka(o):!1}function js(){return H(Js)}function Yt(){switch(u()){case 27:return lc();case 19:return Fr(!1);case 115:return Ui(M(),Ue(),void 0);case 121:if(Uu())return Ui(M(),Ue(),void 0);break;case 135:if(js())return Ui(M(),Ue(),void 0);break;case 160:if(kc())return Ui(M(),Ue(),void 0);break;case 100:return Us(M(),Ue(),void 0);case 86:return Fs(M(),Ue(),void 0);case 101:return Pu();case 92:return uc();case 117:return Nu();case 99:return pc();case 88:return fc(252);case 83:return fc(253);case 107:return dc();case 118:return Iu();case 109:return Lu();case 111:return yc();case 113:case 85:case 98:return Ju();case 89:return ju();case 60:return ji();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(Ji())return ji();break}return bc()}function Ec(o){return o.kind===138}function ji(){let o=M(),p=Ue(),m=On(!0);if(Zt(m,Ec)){let b=qu(o);if(b)return b;for(let N of m)N.flags|=33554432;return Tt(33554432,()=>Ac(o,p,m))}else return Ac(o,p,m)}function qu(o){return Tt(33554432,()=>{let p=pa(yt,o);if(p)return J_(p)})}function Ac(o,p,m){switch(u()){case 115:case 121:case 87:case 160:case 135:return Ui(o,p,m);case 100:return Us(o,p,m);case 86:return Fs(o,p,m);case 120:return ep(o,p,m);case 156:return tp(o,p,m);case 94:return np(o,p,m);case 162:case 144:case 145:return rp(o,p,m);case 102:return Bi(o,p,m);case 95:switch(B(),u()){case 90:case 64:return Kc(o,p,m);case 130:return sp(o,p,m);default:return Qc(o,p,m)}default:if(m){let g=Gt(283,!0,A.Declaration_expected);return qp(g,o),g.modifiers=m,g}return}}function Cc(){return B()===11}function Dc(){return B(),u()===161||u()===64}function Fu(){return B(),!t.hasPrecedingLineBreak()&&(ve()||u()===11)}function Ri(o,p){if(u()!==19){if(o&4){ya();return}if(_r()){Qt();return}}return wa(o,p)}function zu(){let o=M();if(u()===28)return P(y.createOmittedExpression(),o);let p=pt(26),m=si(),g=xr();return P(y.createBindingElement(p,void 0,m,g),o)}function Pc(){let o=M(),p=pt(26),m=qe(),g=jr(),b;m&&u()!==59?(b=g,g=void 0):(J(59),b=si());let N=xr();return P(y.createBindingElement(p,g,b,N),o)}function Vu(){let o=M();J(19);let p=lt(()=>un(9,Pc));return J(20),P(y.createObjectBindingPattern(p),o)}function Nc(){let o=M();J(23);let p=lt(()=>un(10,zu));return J(24),P(y.createArrayBindingPattern(p),o)}function Rs(){return u()===19||u()===23||u()===81||qe()}function si(o){return u()===23?Nc():u()===19?Vu():Ka(o)}function Wu(){return Ea(!0)}function Ea(o){let p=M(),m=Ue(),g=si(A.Private_identifiers_are_not_allowed_in_variable_declarations),b;o&&g.kind===80&&u()===54&&!t.hasPrecedingLineBreak()&&(b=Wt());let N=vr(),Q=qo(u())?void 0:xr(),_e=Bn(g,b,N,Q);return Ce(P(_e,p),m)}function Ic(o){let p=M(),m=0;switch(u()){case 115:break;case 121:m|=1;break;case 87:m|=2;break;case 160:m|=4;break;case 135:q.assert(js()),m|=6,B();break;default:q.fail()}B();let g;if(u()===165&&H(Oc))g=lr();else{let b=me();Te(o),g=un(8,o?Ea:Wu),Te(b)}return P(Pn(g,m),p)}function Oc(){return Ci()&&B()===22}function Ui(o,p,m){let g=Ic(!1);Qt();let b=hn(m,g);return Ce(P(b,o),p)}function Us(o,p,m){let g=Ye(),b=Jn(m);J(100);let N=pt(42),Q=b&2048?Li():Ka(),_e=N?1:0,ee=b&1024?2:0,te=pn();b&32&&st(!0);let ce=Xn(_e|ee),je=In(59,!1),Je=Ri(_e|ee,A.or_expected);st(g);let De=y.createFunctionDeclaration(m,N,Q,te,ce,je,Je);return Ce(P(De,o),p)}function Gu(){if(u()===137)return J(137);if(u()===11&&H(B)===21)return le(()=>{let o=Hn();return o.text==="constructor"?o:void 0})}function Mc(o,p,m){return le(()=>{if(Gu()){let g=pn(),b=Xn(0),N=In(59,!1),Q=Ri(0,A.or_expected),_e=y.createConstructorDeclaration(m,b,Q);return _e.typeParameters=g,_e.type=N,Ce(P(_e,o),p)}})}function Lc(o,p,m,g,b,N,Q,_e){let ee=g?1:0,te=Zt(m,cl)?2:0,ce=pn(),je=Xn(ee|te),Je=In(59,!1),De=Ri(ee|te,_e),Ht=y.createMethodDeclaration(m,g,b,N,ce,je,Je,De);return Ht.exclamationToken=Q,Ce(P(Ht,o),p)}function Aa(o,p,m,g,b){let N=!b&&!t.hasPrecedingLineBreak()?pt(54):void 0,Q=vr(),_e=Ct(90112,xr);ql(g,Q,_e);let ee=y.createPropertyDeclaration(m,g,b||N,Q,_e);return Ce(P(ee,o),p)}function Bs(o,p,m){let g=pt(42),b=jr(),N=pt(58);return g||u()===21||u()===30?Lc(o,p,m,g,b,N,void 0,A.or_expected):Aa(o,p,m,b,N)}function _i(o,p,m,g,b){let N=jr(),Q=pn(),_e=Xn(0),ee=In(59,!1),te=Ri(b),ce=g===178?y.createGetAccessorDeclaration(m,N,_e,ee,te):y.createSetAccessorDeclaration(m,N,_e,te);return ce.typeParameters=Q,y_(ce)&&(ce.type=ee),Ce(P(ce,o),p)}function Jc(){let o;if(u()===60)return!0;for(;Yr(u());){if(o=u(),zg(o))return!0;B()}if(u()===42||(br()&&(o=u(),B()),u()===23))return!0;if(o!==void 0){if(!di(o)||o===153||o===139)return!0;switch(u()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return _r()}}return!1}function Yu(o,p,m){Yn(126);let g=Hu(),b=Ce(P(y.createClassStaticBlockDeclaration(g),o),p);return b.modifiers=m,b}function Hu(){let o=we(),p=Ye();He(!1),st(!0);let m=Fr(!1);return He(o),st(p),m}function jc(){if(Ye()&&u()===135){let o=M(),p=gt(A.Expression_expected);B();let m=rn(o,p,!0);return Ps(o,m)}return Oi()}function Rc(){let o=M();if(!Le(60))return;let p=wi(jc);return P(y.createDecorator(p),o)}function qs(o,p,m){let g=M(),b=u();if(u()===87&&p){if(!le(Za))return}else{if(m&&u()===126&&H(Da))return;if(o&&u()===126)return;if(!N_())return}return P(he(b),g)}function On(o,p,m){let g=M(),b,N,Q,_e=!1,ee=!1,te=!1;if(o&&u()===60)for(;N=Rc();)b=wn(b,N);for(;Q=qs(_e,p,m);)Q.kind===126&&(_e=!0),b=wn(b,Q),ee=!0;if(ee&&o&&u()===60)for(;N=Rc();)b=wn(b,N),te=!0;if(te)for(;Q=qs(_e,p,m);)Q.kind===126&&(_e=!0),b=wn(b,Q);return b&&At(b,g)}function Uc(){let o;if(u()===134){let p=M();B();let m=P(he(134),p);o=At([m],p)}return o}function Bc(){let o=M(),p=Ue();if(u()===27)return B(),Ce(P(y.createSemicolonClassElement(),o),p);let m=On(!0,!0,!0);if(u()===126&&H(Da))return Yu(o,p,m);if(ti(139))return _i(o,p,m,178,0);if(ti(153))return _i(o,p,m,179,0);if(u()===137||u()===11){let g=Mc(o,p,m);if(g)return g}if(Br())return ds(o,p,m);if(St(u())||u()===11||u()===9||u()===10||u()===42||u()===23)if(Zt(m,Ec)){for(let b of m)b.flags|=33554432;return Tt(33554432,()=>Bs(o,p,m))}else return Bs(o,p,m);if(m){let g=Gt(80,!0,A.Declaration_expected);return Aa(o,p,m,g,void 0)}return q.fail("Should not have attempted to parse class member declaration.")}function Xu(){let o=M(),p=Ue(),m=On(!0);if(u()===86)return zs(o,p,m,232);let g=Gt(283,!0,A.Expression_expected);return qp(g,o),g.modifiers=m,g}function $u(){return zs(M(),Ue(),void 0,232)}function Fs(o,p,m){return zs(o,p,m,264)}function zs(o,p,m,g){let b=Ye();J(86);let N=Qu(),Q=pn();Zt(m,zb)&&st(!0);let _e=Fc(),ee;J(19)?(ee=zc(),J(20)):ee=lr(),st(b);let te=g===264?y.createClassDeclaration(m,N,Q,_e,ee):y.createClassExpression(m,N,Q,_e,ee);return Ce(P(te,o),p)}function Qu(){return qe()&&!qc()?or(qe()):void 0}function qc(){return u()===119&&H(Xl)}function Fc(){if(Vs())return bn(22,Ku)}function Ku(){let o=M(),p=u();q.assert(p===96||p===119),B();let m=un(7,Zu);return P(y.createHeritageClause(p,m),o)}function Zu(){let o=M(),p=Oi();if(p.kind===234)return p;let m=Ca();return P(y.createExpressionWithTypeArguments(p,m),o)}function Ca(){return u()===30?Rr(20,_t,30,32):void 0}function Vs(){return u()===96||u()===119}function zc(){return bn(5,Bc)}function ep(o,p,m){J(120);let g=gt(),b=pn(),N=Fc(),Q=po(),_e=y.createInterfaceDeclaration(m,g,b,N,Q);return Ce(P(_e,o),p)}function tp(o,p,m){J(156),t.hasPrecedingLineBreak()&&Ee(A.Line_break_not_permitted_here);let g=gt(),b=pn();J(64);let N=u()===141&&le(bo)||_t();Qt();let Q=y.createTypeAliasDeclaration(m,g,b,N);return Ce(P(Q,o),p)}function Ws(){let o=M(),p=Ue(),m=jr(),g=lt(xr);return Ce(P(y.createEnumMember(m,g),o),p)}function np(o,p,m){J(94);let g=gt(),b;J(19)?(b=xe(()=>un(6,Ws)),J(20)):b=lr();let N=y.createEnumDeclaration(m,g,b);return Ce(P(N,o),p)}function Gs(){let o=M(),p;return J(19)?(p=bn(1,Yt),J(20)):p=lr(),P(y.createModuleBlock(p),o)}function Vc(o,p,m,g){let b=g&32,N=g&8?jt():gt(),Q=Le(25)?Vc(M(),!1,void 0,8|b):Gs(),_e=y.createModuleDeclaration(m,N,Q,g);return Ce(P(_e,o),p)}function Wc(o,p,m){let g=0,b;u()===162?(b=gt(),g|=2048):(b=Hn(),b.text=Jr(b.text));let N;u()===19?N=Gs():Qt();let Q=y.createModuleDeclaration(m,b,N,g);return Ce(P(Q,o),p)}function rp(o,p,m){let g=0;if(u()===162)return Wc(o,p,m);if(Le(145))g|=32;else if(J(144),u()===11)return Wc(o,p,m);return Vc(o,p,m,g)}function ip(){return u()===149&&H(Gc)}function Gc(){return B()===21}function Da(){return B()===19}function ap(){return B()===44}function sp(o,p,m){J(130),J(145);let g=gt();Qt();let b=y.createNamespaceExportDeclaration(g);return b.modifiers=m,Ce(P(b,o),p)}function Bi(o,p,m){J(102);let g=t.getTokenFullStart(),b;ve()&&(b=gt());let N;if(b?.escapedText==="type"&&(u()!==161||ve()&&H(Dc))&&(ve()||zr())?(N=156,b=ve()?gt():void 0):b?.escapedText==="defer"&&(u()===161?!H(Cc):u()!==28&&u()!==64)&&(N=166,b=ve()?gt():void 0),b&&!op()&&N!==166)return cp(o,p,m,b,N===156);let Q=Yc(b,g,N,void 0),_e=Fi(),ee=Hc();Qt();let te=y.createImportDeclaration(m,Q,_e,ee);return Ce(P(te,o),p)}function Yc(o,p,m,g=!1){let b;return(o||u()===42||u()===19)&&(b=lp(o,p,m,g),J(161)),b}function Hc(){let o=u();if((o===118||o===132)&&!t.hasPrecedingLineBreak())return Ys(o)}function _p(){let o=M(),p=St(u())?jt():ri(11);J(59);let m=zt(!0);return P(y.createImportAttribute(p,m),o)}function Ys(o,p){let m=M();p||J(o);let g=t.getTokenStart();if(J(19)){let b=t.hasPrecedingLineBreak(),N=un(24,_p,!0);if(!J(20)){let Q=Ba(at);Q&&Q.code===A._0_expected.code&&sl(Q,Oa(Mt,$e,g,1,A.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return P(y.createImportAttributes(N,b,o),m)}else{let b=At([],M(),void 0,!1);return P(y.createImportAttributes(b,!1,o),m)}}function zr(){return u()===42||u()===19}function op(){return u()===28||u()===161}function cp(o,p,m,g,b){J(64);let N=qi();Qt();let Q=y.createImportEqualsDeclaration(m,b,g,N);return Ce(P(Q,o),p)}function lp(o,p,m,g){let b;return(!o||Le(28))&&(g&&t.setSkipJsDocLeadingAsterisks(!0),u()===42?b=pp():b=Xc(276),g&&t.setSkipJsDocLeadingAsterisks(!1)),P(y.createImportClause(m,o,b),p)}function qi(){return ip()?up():Ur(!1)}function up(){let o=M();J(149),J(21);let p=Fi();return J(22),P(y.createExternalModuleReference(p),o)}function Fi(){if(u()===11){let o=Hn();return o.text=Jr(o.text),o}else return kt()}function pp(){let o=M();J(42),J(130);let p=gt();return P(y.createNamespaceImport(p),o)}function Hs(){return St(u())||u()===11}function oi(o){return u()===11?Hn():o()}function Xc(o){let p=M(),m=o===276?y.createNamedImports(Rr(23,fp,19,20)):y.createNamedExports(Rr(23,ci,19,20));return P(m,p)}function ci(){let o=Ue();return Ce($c(282),o)}function fp(){return $c(277)}function $c(o){let p=M(),m=di(u())&&!ve(),g=t.getTokenStart(),b=t.getTokenEnd(),N=!1,Q,_e=!0,ee=oi(jt);if(ee.kind===80&&ee.escapedText==="type")if(u()===130){let je=jt();if(u()===130){let Je=jt();Hs()?(N=!0,Q=je,ee=oi(ce),_e=!1):(Q=ee,ee=Je,_e=!1)}else Hs()?(Q=ee,_e=!1,ee=oi(ce)):(N=!0,ee=je)}else Hs()&&(N=!0,ee=oi(ce));_e&&u()===130&&(Q=ee,J(130),ee=oi(ce)),o===277&&(ee.kind!==80?(rt(Cr($e,ee.pos),ee.end,A.Identifier_expected),ee=yi(Gt(80,!1),ee.pos,ee.pos)):m&&rt(g,b,A.Identifier_expected));let te=o===277?y.createImportSpecifier(N,Q,ee):y.createExportSpecifier(N,Q,ee);return P(te,p);function ce(){return m=di(u())&&!ve(),g=t.getTokenStart(),b=t.getTokenEnd(),jt()}}function dp(o){return P(y.createNamespaceExport(oi(jt)),o)}function Qc(o,p,m){let g=Ye();st(!0);let b,N,Q,_e=Le(156),ee=M();Le(42)?(Le(130)&&(b=dp(ee)),J(161),N=Fi()):(b=Xc(280),(u()===161||u()===11&&!t.hasPrecedingLineBreak())&&(J(161),N=Fi()));let te=u();N&&(te===118||te===132)&&!t.hasPrecedingLineBreak()&&(Q=Ys(te)),Qt(),st(g);let ce=y.createExportDeclaration(m,_e,b,N,Q);return Ce(P(ce,o),p)}function Kc(o,p,m){let g=Ye();st(!0);let b;Le(64)?b=!0:J(90);let N=zt(!0);Qt(),st(g);let Q=y.createExportAssignment(m,b,N);return Ce(P(Q,o),p)}let Xs;(o=>{o[o.SourceElements=0]="SourceElements",o[o.BlockStatements=1]="BlockStatements",o[o.SwitchClauses=2]="SwitchClauses",o[o.SwitchClauseStatements=3]="SwitchClauseStatements",o[o.TypeMembers=4]="TypeMembers",o[o.ClassMembers=5]="ClassMembers",o[o.EnumMembers=6]="EnumMembers",o[o.HeritageClauseElement=7]="HeritageClauseElement",o[o.VariableDeclarations=8]="VariableDeclarations",o[o.ObjectBindingElements=9]="ObjectBindingElements",o[o.ArrayBindingElements=10]="ArrayBindingElements",o[o.ArgumentExpressions=11]="ArgumentExpressions",o[o.ObjectLiteralMembers=12]="ObjectLiteralMembers",o[o.JsxAttributes=13]="JsxAttributes",o[o.JsxChildren=14]="JsxChildren",o[o.ArrayLiteralMembers=15]="ArrayLiteralMembers",o[o.Parameters=16]="Parameters",o[o.JSDocParameters=17]="JSDocParameters",o[o.RestProperties=18]="RestProperties",o[o.TypeParameters=19]="TypeParameters",o[o.TypeArguments=20]="TypeArguments",o[o.TupleElementTypes=21]="TupleElementTypes",o[o.HeritageClauses=22]="HeritageClauses",o[o.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",o[o.ImportAttributes=24]="ImportAttributes",o[o.JSDocComment=25]="JSDocComment",o[o.Count=26]="Count"})(Xs||(Xs={}));let Zc;(o=>{o[o.False=0]="False",o[o.True=1]="True",o[o.Unknown=2]="Unknown"})(Zc||(Zc={}));let el;(o=>{function p(te,ce,je){Fn("file.js",te,99,void 0,1,0),t.setText(te,ce,je),ct=t.scan();let Je=m(),De=se("file.js",99,1,!1,[],he(1),0,Va),Ht=Yi(at,De);return Bt&&(De.jsDocDiagnostics=Yi(Bt,De)),zn(),Je?{jsDocTypeExpression:Je,diagnostics:Ht}:void 0}o.parseJSDocTypeExpressionForTests=p;function m(te){let ce=M(),je=(te?Le:J)(19),Je=Tt(16777216,ls);(!te||je)&&C_(20);let De=y.createJSDocTypeExpression(Je);return L(De),P(De,ce)}o.parseJSDocTypeExpression=m;function g(){let te=M(),ce=Le(19),je=M(),Je=Ur(!1);for(;u()===81;)Pt(),Be(),Je=P(y.createJSDocMemberName(Je,gt()),je);ce&&C_(20);let De=y.createJSDocNameReference(Je);return L(De),P(De,te)}o.parseJSDocNameReference=g;function b(te,ce,je){Fn("",te,99,void 0,1,0);let Je=Tt(16777216,()=>ee(ce,je)),Ht=Yi(at,{languageVariant:0,text:te});return zn(),Je?{jsDoc:Je,diagnostics:Ht}:void 0}o.parseIsolatedJSDocComment=b;function N(te,ce,je){let Je=ct,De=at.length,Ht=tn,Nt=Tt(16777216,()=>ee(ce,je));return wf(Nt,te),tt&524288&&(Bt||(Bt=[]),En(Bt,at,De)),ct=Je,at.length=De,tn=Ht,Nt}o.parseJSDocComment=N;let Q;(te=>{te[te.BeginningOfLine=0]="BeginningOfLine",te[te.SawAsterisk=1]="SawAsterisk",te[te.SavingComments=2]="SavingComments",te[te.SavingBackticks=3]="SavingBackticks"})(Q||(Q={}));let _e;(te=>{te[te.Property=1]="Property",te[te.Parameter=2]="Parameter",te[te.CallbackParameter=4]="CallbackParameter"})(_e||(_e={}));function ee(te=0,ce){let je=$e,Je=ce===void 0?je.length:te+ce;if(ce=Je-te,q.assert(te>=0),q.assert(te<=Je),q.assert(Je<=je.length),!P6(je,te))return;let De,Ht,Nt,ur,pr,Mn=[],Vr=[],Pe=yt;yt|=1<<25;let et=t.scanRange(te+3,ce-5,wr);return yt=Pe,et;function wr(){let I=1,X,$=te-(je.lastIndexOf(` +`,te)+1)+4;function ne(Re){X||(X=$),Mn.push(Re),$+=Re.length}for(Be();Gi(5););Gi(4)&&(I=0,$=0);e:for(;;){switch(u()){case 60:mp(Mn),pr||(pr=M()),Fe(n($)),I=0,X=void 0;break;case 4:Mn.push(t.getTokenText()),I=0,$=0;break;case 42:let Re=t.getTokenText();I===1?(I=2,ne(Re)):(q.assert(I===0),I=1,$+=Re.length);break;case 5:q.assert(I!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");let ut=t.getTokenText();X!==void 0&&$+ut.length>X&&Mn.push(ut.slice(X-$)),$+=ut.length;break;case 1:break e;case 82:I=2,ne(t.getTokenValue());break;case 19:I=2;let fn=t.getTokenFullStart(),an=t.getTokenEnd()-1,Kt=l(an);if(Kt){ur||zi(Mn),Vr.push(P(y.createJSDocText(Mn.join("")),ur??te,fn)),Vr.push(Kt),Mn=[],ur=t.getTokenEnd();break}default:I=2,ne(t.getTokenText());break}I===2?nn(!1):Be()}let re=Mn.join("").trimEnd();Vr.length&&re.length&&Vr.push(P(y.createJSDocText(re),ur??te,pr)),Vr.length&&De&&q.assertIsDefined(pr,"having parsed tags implies that the end of the comment span should be set");let Ne=De&&At(De,Ht,Nt);return P(y.createJSDocComment(Vr.length?At(Vr,te,pr):re.length?re:void 0,Ne),te,Je)}function zi(I){for(;I.length&&(I[0]===` +`||I[0]==="\r");)I.shift()}function mp(I){for(;I.length;){let X=I[I.length-1].trimEnd();if(X==="")I.pop();else if(X.lengthut&&(ne.push(Qn.slice(ut-I)),Re=2),I+=Qn.length;break;case 19:Re=2;let tl=t.getTokenFullStart(),Pa=t.getTokenEnd()-1,nl=l(Pa);nl?(re.push(P(y.createJSDocText(ne.join("")),Ne??$,tl)),re.push(nl),ne=[],Ne=t.getTokenEnd()):fn(t.getTokenText());break;case 62:Re===3?Re=2:Re=3,fn(t.getTokenText());break;case 82:Re!==3&&(Re=2),fn(t.getTokenValue());break;case 42:if(Re===0){Re=1,I+=1;break}default:Re!==3&&(Re=2),fn(t.getTokenText());break}Re===2||Re===3?an=nn(Re===3):an=Be()}zi(ne);let Kt=ne.join("").trimEnd();if(re.length)return Kt.length&&re.push(P(y.createJSDocText(Kt),Ne??$)),At(re,$,t.getTokenEnd());if(Kt.length)return Kt}function l(I){let X=le(v);if(!X)return;Be(),Tn();let $=d(),ne=[];for(;u()!==20&&u()!==4&&u()!==1;)ne.push(t.getTokenText()),Be();let re=X==="link"?y.createJSDocLink:X==="linkcode"?y.createJSDocLinkCode:y.createJSDocLinkPlain;return P(re($,ne.join("")),I,t.getTokenEnd())}function d(){if(St(u())){let I=M(),X=jt();for(;Le(25);)X=P(y.createQualifiedName(X,u()===81?Gt(80,!1):jt()),I);for(;u()===81;)Pt(),Be(),X=P(y.createJSDocMemberName(X,gt()),I);return X}}function v(){if(j(),u()===19&&Be()===60&&St(Be())){let I=t.getTokenValue();if(F(I))return I}}function F(I){return I==="link"||I==="linkcode"||I==="linkplain"}function pe(I,X,$,ne){return P(y.createJSDocUnknownTag(X,i(I,M(),$,ne)),I)}function Fe(I){I&&(De?De.push(I):(De=[I],Ht=I.pos),Nt=I.end)}function It(){return j(),u()===19?m():void 0}function fr(){let I=Gi(23);I&&Tn();let X=Gi(62),$=ey();return X&&zl(62),I&&(Tn(),pt(64)&&kt(),J(24)),{name:$,isBracketed:I}}function xn(I){switch(I.kind){case 151:return!0;case 189:return xn(I.elementType);default:return Pf(I)&&Ke(I.typeName)&&I.typeName.escapedText==="Object"&&!I.typeArguments}}function Vi(I,X,$,ne){let re=It(),Ne=!re;j();let{name:Re,isBracketed:ut}=fr(),fn=j();Ne&&!H(v)&&(re=It());let an=i(I,M(),ne,fn),Kt=O0(re,Re,$,ne);Kt&&(re=Kt,Ne=!0);let Qn=$===1?y.createJSDocPropertyTag(X,Re,ut,re,Ne,an):y.createJSDocParameterTag(X,Re,ut,re,Ne,an);return P(Qn,I)}function O0(I,X,$,ne){if(I&&xn(I.type)){let re=M(),Ne,Re;for(;Ne=le(()=>yp($,ne,X));)Ne.kind===342||Ne.kind===349?Re=wn(Re,Ne):Ne.kind===346&&on(Ne.tagName,A.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(Re){let ut=P(y.createJSDocTypeLiteral(Re,I.type.kind===189),re);return P(y.createJSDocTypeExpression(ut),re)}}}function M0(I,X,$,ne){Zt(De,y6)&&rt(X.pos,t.getTokenStart(),A._0_tag_already_specified,l_(X.escapedText));let re=It();return P(y.createJSDocReturnTag(X,re,i(I,M(),$,ne)),I)}function pd(I,X,$,ne){Zt(De,Vf)&&rt(X.pos,t.getTokenStart(),A._0_tag_already_specified,l_(X.escapedText));let re=m(!0),Ne=$!==void 0&&ne!==void 0?i(I,M(),$,ne):void 0;return P(y.createJSDocTypeTag(X,re,Ne),I)}function L0(I,X,$,ne){let Ne=u()===23||H(()=>Be()===60&&St(Be())&&F(t.getTokenValue()))?void 0:g(),Re=$!==void 0&&ne!==void 0?i(I,M(),$,ne):void 0;return P(y.createJSDocSeeTag(X,Ne,Re),I)}function J0(I,X,$,ne){let re=It(),Ne=i(I,M(),$,ne);return P(y.createJSDocThrowsTag(X,re,Ne),I)}function j0(I,X,$,ne){let re=M(),Ne=R0(),Re=t.getTokenFullStart(),ut=i(I,Re,$,ne);ut||(Re=t.getTokenFullStart());let fn=typeof ut!="string"?At(Hp([P(Ne,re,Re)],ut),re):Ne.text+ut;return P(y.createJSDocAuthorTag(X,fn),I)}function R0(){let I=[],X=!1,$=t.getToken();for(;$!==1&&$!==4;){if($===30)X=!0;else{if($===60&&!X)break;if($===32&&X){I.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}I.push(t.getTokenText()),$=Be()}return y.createJSDocText(I.join(""))}function U0(I,X,$,ne){let re=fd();return P(y.createJSDocImplementsTag(X,re,i(I,M(),$,ne)),I)}function B0(I,X,$,ne){let re=fd();return P(y.createJSDocAugmentsTag(X,re,i(I,M(),$,ne)),I)}function q0(I,X,$,ne){let re=m(!1),Ne=$!==void 0&&ne!==void 0?i(I,M(),$,ne):void 0;return P(y.createJSDocSatisfiesTag(X,re,Ne),I)}function F0(I,X,$,ne){let re=t.getTokenFullStart(),Ne;ve()&&(Ne=gt());let Re=Yc(Ne,re,156,!0),ut=Fi(),fn=Hc(),an=$!==void 0&&ne!==void 0?i(I,M(),$,ne):void 0;return P(y.createJSDocImportTag(X,Re,ut,fn,an),I)}function fd(){let I=Le(19),X=M(),$=z0();t.setSkipJsDocLeadingAsterisks(!0);let ne=Ca();t.setSkipJsDocLeadingAsterisks(!1);let re=y.createExpressionWithTypeArguments($,ne),Ne=P(re,X);return I&&(Tn(),J(20)),Ne}function z0(){let I=M(),X=li();for(;Le(25);){let $=li();X=P(ae(X,$),I)}return X}function Wi(I,X,$,ne,re){return P(X($,i(I,M(),ne,re)),I)}function dd(I,X,$,ne){let re=m(!0);return Tn(),P(y.createJSDocThisTag(X,re,i(I,M(),$,ne)),I)}function V0(I,X,$,ne){let re=m(!0);return Tn(),P(y.createJSDocEnumTag(X,re,i(I,M(),$,ne)),I)}function W0(I,X,$,ne){let re=It();j();let Ne=hp();Tn();let Re=s($),ut;if(!re||xn(re.type)){let an,Kt,Qn,tl=!1;for(;(an=le(()=>$0($)))&&an.kind!==346;)if(tl=!0,an.kind===345)if(Kt){let Pa=Ee(A.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);Pa&&sl(Pa,Oa(Mt,$e,0,0,A.The_tag_was_first_specified_here));break}else Kt=an;else Qn=wn(Qn,an);if(tl){let Pa=re&&re.type.kind===189,nl=y.createJSDocTypeLiteral(Qn,Pa);re=Kt&&Kt.typeExpression&&!xn(Kt.typeExpression.type)?Kt.typeExpression:P(nl,I),ut=re.end}}ut=ut||Re!==void 0?M():(Ne??re??X).end,Re||(Re=i(I,ut,$,ne));let fn=y.createJSDocTypedefTag(X,re,Ne,Re);return P(fn,I,ut)}function hp(I){let X=t.getTokenStart();if(!St(u()))return;let $=li();if(Le(25)){let ne=hp(!0),re=y.createModuleDeclaration(void 0,$,ne,I?8:void 0);return P(re,X)}return I&&($.flags|=4096),$}function G0(I){let X=M(),$,ne;for(;$=le(()=>yp(4,I));){if($.kind===346){on($.tagName,A.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}ne=wn(ne,$)}return At(ne||[],X)}function md(I,X){let $=G0(X),ne=le(()=>{if(Gi(60)){let re=n(X);if(re&&re.kind===343)return re}});return P(y.createJSDocSignature(void 0,$,ne),I)}function Y0(I,X,$,ne){let re=hp();Tn();let Ne=s($),Re=md(I,$);Ne||(Ne=i(I,M(),$,ne));let ut=Ne!==void 0?M():Re.end;return P(y.createJSDocCallbackTag(X,Re,re,Ne),I,ut)}function H0(I,X,$,ne){Tn();let re=s($),Ne=md(I,$);re||(re=i(I,M(),$,ne));let Re=re!==void 0?M():Ne.end;return P(y.createJSDocOverloadTag(X,Ne,re),I,Re)}function X0(I,X){for(;!Ke(I)||!Ke(X);)if(!Ke(I)&&!Ke(X)&&I.right.escapedText===X.right.escapedText)I=I.left,X=X.left;else return!1;return I.escapedText===X.escapedText}function $0(I){return yp(1,I)}function yp(I,X,$){let ne=!0,re=!1;for(;;)switch(Be()){case 60:if(ne){let Ne=Q0(I,X);return Ne&&(Ne.kind===342||Ne.kind===349)&&$&&(Ke(Ne.name)||!X0($,Ne.name.left))?!1:Ne}re=!1;break;case 4:ne=!0,re=!1;break;case 42:re&&(ne=!1),re=!0;break;case 80:ne=!1;break;case 1:return!1}}function Q0(I,X){q.assert(u()===60);let $=t.getTokenFullStart();Be();let ne=li(),re=j(),Ne;switch(ne.escapedText){case"type":return I===1&&pd($,ne);case"prop":case"property":Ne=1;break;case"arg":case"argument":case"param":Ne=6;break;case"template":return hd($,ne,X,re);case"this":return dd($,ne,X,re);default:return!1}return I&Ne?Vi($,ne,I,X):!1}function K0(){let I=M(),X=Gi(23);X&&Tn();let $=On(!1,!0),ne=li(A.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),re;if(X&&(Tn(),J(64),re=Tt(16777216,ls),J(24)),!Zi(ne))return P(y.createTypeParameterDeclaration($,ne,void 0,re),I)}function Z0(){let I=M(),X=[];do{Tn();let $=K0();$!==void 0&&X.push($),j()}while(Gi(28));return At(X,I)}function hd(I,X,$,ne){let re=u()===19?m():void 0,Ne=Z0();return P(y.createJSDocTemplateTag(X,re,Ne,i(I,M(),$,ne)),I)}function Gi(I){return u()===I?(Be(),!0):!1}function ey(){let I=li();for(Le(23)&&J(24);Le(25);){let X=li();Le(23)&&J(24),I=$l(I,X)}return I}function li(I){if(!St(u()))return Gt(80,!I,I||A.Identifier_expected);yn++;let X=t.getTokenStart(),$=t.getTokenEnd(),ne=u(),re=Jr(t.getTokenValue()),Ne=P(ue(re,ne),X,$);return Be(),Ne}}})(el=e.JSDocParser||(e.JSDocParser={}))})(ta||(ta={}));var ym=new WeakSet;function B6(e){ym.has(e)&&q.fail("Source file has already been incrementally parsed"),ym.add(e)}var fh=new WeakSet;function q6(e){return fh.has(e)}function Gp(e){fh.add(e)}var Sl;(e=>{function t(D,R,ue,be){if(be=be||q.shouldAssert(2),y(D,R,ue,be),gg(ue))return D;if(D.statements.length===0)return ta.parseSourceFile(D.fileName,R,D.languageVersion,void 0,!0,D.scriptKind,D.setExternalModuleIndicator,D.jsDocParsingMode);B6(D),ta.fixupParentReferences(D);let he=D.text,de=G(D),O=c(D,ue);y(D,R,O,be),q.assert(O.span.start<=ue.span.start),q.assert(kr(O.span)===kr(ue.span)),q.assert(kr(Qs(O))===kr(Qs(ue)));let ae=Qs(O).length-O.span.length;k(D,O.span.start,kr(O.span),kr(Qs(O)),ae,he,R,be);let Oe=ta.parseSourceFile(D.fileName,R,D.languageVersion,de,!0,D.scriptKind,D.setExternalModuleIndicator,D.jsDocParsingMode);return Oe.commentDirectives=a(D.commentDirectives,Oe.commentDirectives,O.span.start,kr(O.span),ae,he,R,be),Oe.impliedNodeFormat=D.impliedNodeFormat,T6(D,Oe),Oe}e.updateSourceFile=t;function a(D,R,ue,be,he,de,O,ae){if(!D)return R;let Oe,V=!1;for(let Y of D){let{range:ft,type:nr}=Y;if(ft.endbe){oe();let mn={range:{pos:ft.pos+he,end:ft.end+he},type:nr};Oe=wn(Oe,mn),ae&&q.assert(de.substring(ft.pos,ft.end)===O.substring(mn.range.pos,mn.range.end))}}return oe(),Oe;function oe(){V||(V=!0,Oe?R&&Oe.push(...R):Oe=R)}}function _(D,R,ue,be,he,de,O){ue?Oe(D):ae(D);return;function ae(V){let oe="";if(O&&f(V)&&(oe=he.substring(V.pos,V.end)),Yd(V,R),yi(V,V.pos+be,V.end+be),O&&f(V)&&q.assert(oe===de.substring(V.pos,V.end)),Xt(V,ae,Oe),Ki(V))for(let Y of V.jsDoc)ae(Y);T(V,O)}function Oe(V){yi(V,V.pos+be,V.end+be);for(let oe of V)ae(oe)}}function f(D){switch(D.kind){case 11:case 9:case 80:return!0}return!1}function h(D,R,ue,be,he){q.assert(D.end>=R,"Adjusting an element that was entirely before the change range"),q.assert(D.pos<=ue,"Adjusting an element that was entirely after the change range"),q.assert(D.pos<=D.end);let de=Math.min(D.pos,be),O=D.end>=ue?D.end+he:Math.min(D.end,be);if(q.assert(de<=O),D.parent){let ae=D.parent;q.assertGreaterThanOrEqual(de,ae.pos),q.assertLessThanOrEqual(O,ae.end)}yi(D,de,O)}function T(D,R){if(R){let ue=D.pos,be=he=>{q.assert(he.pos>=ue),ue=he.end};if(Ki(D))for(let he of D.jsDoc)be(he);Xt(D,be),q.assert(ue<=D.end)}}function k(D,R,ue,be,he,de,O,ae){Oe(D);return;function Oe(oe){if(q.assert(oe.pos<=oe.end),oe.pos>ue){_(oe,D,!1,he,de,O,ae);return}let Y=oe.end;if(Y>=R){if(Gp(oe),Yd(oe,D),h(oe,R,ue,be,he),Xt(oe,Oe,V),Ki(oe))for(let ft of oe.jsDoc)Oe(ft);T(oe,ae);return}q.assert(Yue){_(oe,D,!0,he,de,O,ae);return}let Y=oe.end;if(Y>=R){Gp(oe),h(oe,R,ue,be,he);for(let ft of oe)Oe(ft);return}q.assert(Y0&&O<=1;O++){let ae=W(D,be);q.assert(ae.pos<=be);let Oe=ae.pos;be=Math.max(0,Oe-1)}let he=yg(be,kr(R.span)),de=R.newLength+(R.span.start-be);return Hm(he,de)}function W(D,R){let ue=D,be;if(Xt(D,de),be){let O=he(be);O.pos>ue.pos&&(ue=O)}return ue;function he(O){for(;;){let ae=nb(O);if(ae)O=ae;else return O}}function de(O){if(!Zi(O))if(O.pos<=R){if(O.pos>=ue.pos&&(ue=O),RR),!0}}function y(D,R,ue,be){let he=D.text;if(ue&&(q.assert(he.length-ue.span.length+ue.newLength===R.length),be||q.shouldAssert(3))){let de=he.substr(0,ue.span.start),O=R.substr(0,ue.span.start);q.assert(de===O);let ae=he.substring(kr(ue.span),he.length),Oe=R.substring(kr(Qs(ue)),R.length);q.assert(ae===Oe)}}function G(D){let R=D.statements,ue=0;q.assert(ue=V.pos&&O=V.pos&&O{D[D.Value=-1]="Value"})(E||(E={}))})(Sl||(Sl={}));function F6(e){return z6(e)!==void 0}function z6(e){let t=Om(e,Sb,!1);if(t)return t;if(qy(e,".ts")){let a=Im(e),_=a.lastIndexOf(".d.");if(_>=0)return a.substring(_)}}function V6(e,t,a,_){if(e){if(e==="import")return 99;if(e==="require")return 1;_(t,a-t,A.resolution_mode_should_be_either_require_or_import)}}function W6(e,t){let a=[];for(let _ of Jp(t,0)||vt){let f=t.substring(_.pos,_.end);$6(a,_,f)}e.pragmas=new Map;for(let _ of a){if(e.pragmas.has(_.name)){let f=e.pragmas.get(_.name);f instanceof Array?f.push(_.args):e.pragmas.set(_.name,[f,_.args]);continue}e.pragmas.set(_.name,_.args)}}function G6(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((a,_)=>{switch(_){case"reference":{let f=e.referencedFiles,h=e.typeReferenceDirectives,T=e.libReferenceDirectives;jn(vp(a),k=>{let{types:c,lib:W,path:y,["resolution-mode"]:G,preserve:E}=k.arguments,D=E==="true"?!0:void 0;if(k.arguments["no-default-lib"]==="true")e.hasNoDefaultLib=!0;else if(c){let R=V6(G,c.pos,c.end,t);h.push({pos:c.pos,end:c.end,fileName:c.value,...R?{resolutionMode:R}:{},...D?{preserve:D}:{}})}else W?T.push({pos:W.pos,end:W.end,fileName:W.value,...D?{preserve:D}:{}}):y?f.push({pos:y.pos,end:y.end,fileName:y.value,...D?{preserve:D}:{}}):t(k.range.pos,k.range.end-k.range.pos,A.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=Np(vp(a),f=>({name:f.arguments.name,path:f.arguments.path}));break}case"amd-module":{if(a instanceof Array)for(let f of a)e.moduleName&&t(f.range.pos,f.range.end-f.range.pos,A.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=f.arguments.name;else e.moduleName=a.arguments.name;break}case"ts-nocheck":case"ts-check":{jn(vp(a),f=>{(!e.checkJsDirective||f.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:_==="ts-check",end:f.range.end,pos:f.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:q.fail("Unhandled pragma kind")}})}var Pp=new Map;function Y6(e){if(Pp.has(e))return Pp.get(e);let t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return Pp.set(e,t),t}var H6=/^\/\/\/\s*<(\S+)\s.*?\/>/m,X6=/^\/\/\/?\s*@([^\s:]+)((?:[^\S\r\n]|:).*)?$/m;function $6(e,t,a){let _=t.kind===2&&H6.exec(a);if(_){let h=_[1].toLowerCase(),T=Nm[h];if(!T||!(T.kind&1))return;if(T.args){let k={};for(let c of T.args){let y=Y6(c.name).exec(a);if(!y&&!c.optional)return;if(y){let G=y[2]||y[3];if(c.captureSpan){let E=t.pos+y.index+y[1].length+1;k[c.name]={value:G,pos:E,end:E+G.length}}else k[c.name]=G}}e.push({name:h,args:{arguments:k,range:t}})}else e.push({name:h,args:{arguments:{},range:t}});return}let f=t.kind===2&&X6.exec(a);if(f)return gm(e,t,2,f);if(t.kind===3){let h=/@(\S+)(\s+(?:\S.*)?)?$/gm,T;for(;T=h.exec(a);)gm(e,t,4,T)}}function gm(e,t,a,_){if(!_)return;let f=_[1].toLowerCase(),h=Nm[f];if(!h||!(h.kind&a))return;let T=_[2],k=Q6(h,T);k!=="fail"&&e.push({name:f,args:{arguments:k,range:t}})}function Q6(e,t){if(!t)return{};if(!e.args)return{};let a=t.trim().split(/\s+/),_={};for(let f=0;f_.kind<310||_.kind>352);return a.kind<167?a:a.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();let t=this.getChildren(e),a=Ba(t);if(a)return a.kind<167?a:a.getLastToken(e)}forEachChild(e,t){return Xt(this,e,t)}};function K6(e,t){let a=[];if(i2(e))return e.forEachChild(T=>{a.push(T)}),a;s_.setText((t||e.getSourceFile()).text);let _=e.pos,f=T=>{__(a,_,T.pos,e),a.push(T),_=T.end},h=T=>{__(a,_,T.pos,e),a.push(Z6(T,e)),_=T.end};return jn(e.jsDoc,f),_=e.pos,e.forEachChild(f,h),__(a,_,e.end,e),s_.setText(void 0),a}function __(e,t,a,_){for(s_.resetTokenState(t);tt.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function dl(e,t){if(!e)return vt;let a=ts_JsDoc_exports.getJsDocTagsFromDeclarations(e,t);if(t&&(a.length===0||e.some(gh))){let _=new Set;for(let f of e){let h=bh(t,f,T=>{var k;if(!_.has(T))return _.add(T),f.kind===178||f.kind===179?T.getContextualJsDocTags(f,t):((k=T.declarations)==null?void 0:k.length)===1?T.getJsDocTags(t):void 0});h&&(a=[...h,...a])}}return a}function a_(e,t){if(!e)return vt;let a=ts_JsDoc_exports.getJsDocCommentsFromDeclarations(e,t);if(t&&(a.length===0||e.some(gh))){let _=new Set;for(let f of e){let h=bh(t,f,T=>{if(!_.has(T))return _.add(T),f.kind===178||f.kind===179?T.getContextualDocumentationComment(f,t):T.getDocumentationComment(t)});h&&(a=a.length===0?h.slice():h.concat(lineBreakPart(),a))}}return a}function bh(e,t,a){var _;let f=((_=t.parent)==null?void 0:_.kind)===177?t.parent.parent:t.parent;if(!f)return;let h=W2(t);return ly(J2(f),T=>{let k=e.getTypeAtLocation(T),c=h&&k.symbol?e.getTypeOfSymbol(k.symbol):k,W=e.getPropertyOfType(c,t.symbol.name);return W?a(W):void 0})}var rv=class extends Yf{constructor(e,t,a){super(e,t,a)}update(e,t){return U6(this,e,t)}getLineAndCharacterOfPosition(e){return qm(this,e)}getLineStarts(){return Lp(this)}getPositionOfLineAndCharacter(e,t,a){return _g(Lp(this),e,t,this.text,a)}getLineEndOfPosition(e){let{line:t}=this.getLineAndCharacterOfPosition(e),a=this.getLineStarts(),_;t+1>=a.length&&(_=this.getEnd()),_||(_=a[t+1]-1);let f=this.getFullText();return f[_]===` +`&&f[_-1]==="\r"?_-1:_}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){let e=wy();return this.forEachChild(f),e;function t(h){let T=_(h);T&&e.add(T,h)}function a(h){let T=e.get(h);return T||e.set(h,T=[]),T}function _(h){let T=uf(h);return T&&(Ef(T)&&dr(T.expression)?T.expression.name.text:i1(T)?getNameFromPropertyName(T):void 0)}function f(h){switch(h.kind){case 263:case 219:case 175:case 174:let T=h,k=_(T);if(k){let y=a(k),G=Ba(y);G&&T.parent===G.parent&&T.symbol===G.symbol?T.body&&!G.body&&(y[y.length-1]=T):y.push(T)}Xt(h,f);break;case 264:case 232:case 265:case 266:case 267:case 268:case 272:case 282:case 277:case 274:case 275:case 178:case 179:case 188:t(h),Xt(h,f);break;case 170:if(!v_(h,31))break;case 261:case 209:{let y=h;if(Xg(y.name)){Xt(y.name,f);break}y.initializer&&f(y.initializer)}case 307:case 173:case 172:t(h);break;case 279:let c=h;c.exportClause&&(Q1(c.exportClause)?jn(c.exportClause.elements,f):f(c.exportClause.name));break;case 273:let W=h.importClause;W&&(W.name&&t(W.name),W.namedBindings&&(W.namedBindings.kind===275?t(W.namedBindings):jn(W.namedBindings.elements,f)));break;case 227:gf(h)!==0&&t(h);default:Xt(h,f)}}}},iv=class{constructor(e,t,a){this.fileName=e,this.text=t,this.skipTrivia=a||(_=>_)}getLineAndCharacterOfPosition(e){return qm(this,e)}};function av(){return{getNodeConstructor:()=>Yf,getTokenConstructor:()=>mh,getIdentifierConstructor:()=>hh,getPrivateIdentifierConstructor:()=>yh,getSourceFileConstructor:()=>rv,getSymbolConstructor:()=>ev,getTypeConstructor:()=>tv,getSignatureConstructor:()=>nv,getSourceMapSourceConstructor:()=>iv}}var sv=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes","getPasteEdits"],j3=[...sv,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors","preparePasteEditsForFile"];ub(av());var Ml=new Proxy({},{get:()=>!0});var Th=Ml["4.8"];function Rn(e,t=!1){if(e!=null){if(Th){if(t||Ol(e)){let a=Qm(e);return a?[...a]:void 0}return}return e.modifiers?.filter(a=>!Cl(a))}}function xi(e,t=!1){if(e!=null){if(Th){if(t||Gf(e)){let a=pf(e);return a?[...a]:void 0}return}return e.decorators?.filter(Cl)}}var xh={};var Ll=new Proxy({},{get:(e,t)=>t});var Sh=Ll,wh=Ll;var C=Sh,Rt=wh;var cv=Ml["5.0"],ye=Ae,lv=new Set([ye.AmpersandAmpersandToken,ye.BarBarToken,ye.QuestionQuestionToken]),uv=new Set([Ae.AmpersandAmpersandEqualsToken,Ae.AmpersandEqualsToken,Ae.AsteriskAsteriskEqualsToken,Ae.AsteriskEqualsToken,Ae.BarBarEqualsToken,Ae.BarEqualsToken,Ae.CaretEqualsToken,Ae.EqualsToken,Ae.GreaterThanGreaterThanEqualsToken,Ae.GreaterThanGreaterThanGreaterThanEqualsToken,Ae.LessThanLessThanEqualsToken,Ae.MinusEqualsToken,Ae.PercentEqualsToken,Ae.PlusEqualsToken,Ae.QuestionQuestionEqualsToken,Ae.SlashEqualsToken]),pv=new Set([ye.AmpersandAmpersandToken,ye.AmpersandToken,ye.AsteriskAsteriskToken,ye.AsteriskToken,ye.BarBarToken,ye.BarToken,ye.CaretToken,ye.EqualsEqualsEqualsToken,ye.EqualsEqualsToken,ye.ExclamationEqualsEqualsToken,ye.ExclamationEqualsToken,ye.GreaterThanEqualsToken,ye.GreaterThanGreaterThanGreaterThanToken,ye.GreaterThanGreaterThanToken,ye.GreaterThanToken,ye.InKeyword,ye.InstanceOfKeyword,ye.LessThanEqualsToken,ye.LessThanLessThanToken,ye.LessThanToken,ye.MinusToken,ye.PercentToken,ye.PlusToken,ye.SlashToken]);function fv(e){return uv.has(e.kind)}function dv(e){return lv.has(e.kind)}function mv(e){return pv.has(e.kind)}function Qr(e){return nt(e)}function kh(e){return e.kind!==ye.SemicolonClassElement}function Ge(e,t){return Rn(t)?.some(_=>_.kind===e)===!0}function Eh(e){let t=Rn(e);return t==null?null:t[t.length-1]??null}function Ah(e){return e.kind===ye.CommaToken}function hv(e){return e.kind===ye.SingleLineCommentTrivia||e.kind===ye.MultiLineCommentTrivia}function yv(e){return e.kind===ye.JSDocComment}function Ch(e){if(fv(e))return{type:C.AssignmentExpression,operator:Qr(e.kind)};if(dv(e))return{type:C.LogicalExpression,operator:Qr(e.kind)};if(mv(e))return{type:C.BinaryExpression,operator:Qr(e.kind)};throw new Error(`Unexpected binary operator ${nt(e.kind)}`)}function x_(e,t){let a=t.getLineAndCharacterOfPosition(e);return{column:a.character,line:a.line+1}}function Kr(e,t){let[a,_]=e.map(f=>x_(f,t));return{end:_,start:a}}function Dh(e){if(e.kind===Ae.Block)switch(e.parent.kind){case Ae.Constructor:case Ae.GetAccessor:case Ae.SetAccessor:case Ae.ArrowFunction:case Ae.FunctionExpression:case Ae.FunctionDeclaration:case Ae.MethodDeclaration:return!0;default:return!1}return!0}function sa(e,t){return[e.getStart(t),e.getEnd()]}function gv(e){return e.kind>=ye.FirstToken&&e.kind<=ye.LastToken}function Ph(e){return e.kind>=ye.JsxElement&&e.kind<=ye.JsxAttribute}function S_(e){return e.flags&sn.Let?"let":(e.flags&sn.AwaitUsing)===sn.AwaitUsing?"await using":e.flags&sn.Const?"const":e.flags&sn.Using?"using":"var"}function Si(e){let t=Rn(e);if(t!=null)for(let a of t)switch(a.kind){case ye.PublicKeyword:return"public";case ye.ProtectedKeyword:return"protected";case ye.PrivateKeyword:return"private";default:break}}function er(e,t,a){return _(t);function _(f){return n1(f)&&f.pos===e.end?f:wv(f.getChildren(a),h=>(h.pos<=e.pos&&h.end>e.end||h.pos===e.end)&&Sv(h,a)?_(h):void 0)}}function bv(e,t){let a=e;for(;a;){if(t(a))return a;a=a.parent}}function vv(e){return!!bv(e,Ph)}function Zf(e){return Wr(0,e,/&(?:#\d+|#x[\da-fA-F]+|[0-9a-zA-Z]+);/g,t=>{let a=t.slice(1,-1);if(a[0]==="#"){let _=a[1]==="x"?parseInt(a.slice(2),16):parseInt(a.slice(1),10);return _>1114111?t:String.fromCodePoint(_)}return xh[a]||t})}function _a(e){return e.kind===ye.ComputedPropertyName}function ed(e){return!!e.questionToken}function td(e){return e.type===C.ChainExpression}function Nh(e,t){return td(t)&&e.expression.kind!==Ae.ParenthesizedExpression}function Tv(e){if(e.kind===ye.NullKeyword)return Rt.Null;if(e.kind>=ye.FirstKeyword&&e.kind<=ye.LastFutureReservedWord)return e.kind===ye.FalseKeyword||e.kind===ye.TrueKeyword?Rt.Boolean:Rt.Keyword;if(e.kind>=ye.FirstPunctuation&&e.kind<=ye.LastPunctuation)return Rt.Punctuator;if(e.kind>=ye.NoSubstitutionTemplateLiteral&&e.kind<=ye.TemplateTail)return Rt.Template;switch(e.kind){case ye.NumericLiteral:case ye.BigIntLiteral:return Rt.Numeric;case ye.PrivateIdentifier:return Rt.PrivateIdentifier;case ye.JsxText:return Rt.JSXText;case ye.StringLiteral:return e.parent.kind===ye.JsxAttribute||e.parent.kind===ye.JsxElement?Rt.JSXText:Rt.String;case ye.RegularExpressionLiteral:return Rt.RegularExpression;case ye.Identifier:case ye.ConstructorKeyword:case ye.GetKeyword:case ye.SetKeyword:default:}if(e.kind===ye.Identifier){if(Ph(e.parent))return Rt.JSXIdentifier;if(e.parent.kind===ye.PropertyAccessExpression&&vv(e))return Rt.JSXIdentifier}return Rt.Identifier}function xv(e,t){let a=e.kind===ye.JsxText?e.getFullStart():e.getStart(t),_=e.getEnd(),f=t.text.slice(a,_),h=Tv(e),T=[a,_],k=Kr(T,t);return h===Rt.RegularExpression?{type:h,loc:k,range:T,regex:{flags:f.slice(f.lastIndexOf("/")+1),pattern:f.slice(1,f.lastIndexOf("/"))},value:f}:h===Rt.PrivateIdentifier?{type:h,loc:k,range:T,value:f.slice(1)}:{type:h,loc:k,range:T,value:f}}function Ih(e){let t=[];function a(_){hv(_)||yv(_)||(gv(_)&&_.kind!==ye.EndOfFileToken?t.push(xv(_,e)):_.getChildren(e).forEach(a))}return a(e),t}var Kf=class extends Error{fileName;location;constructor(t,a,_){super(t),this.fileName=a,this.location=_,Object.defineProperty(this,"name",{configurable:!0,enumerable:!1,value:new.target.name})}get index(){return this.location.start.offset}get lineNumber(){return this.location.start.line}get column(){return this.location.start.column}};function w_(e,t,a,_=a){let[f,h]=[a,_].map(T=>{let{character:k,line:c}=t.getLineAndCharacterOfPosition(T);return{column:k,line:c+1,offset:T}});return new Kf(e,t.fileName,{end:h,start:f})}function Sv(e,t){return e.kind===ye.EndOfFileToken?!!e.jsDoc:e.getWidth(t)!==0}function wv(e,t){if(e!==void 0)for(let a=0;a=0&&e.kind!==ge.EndOfFileToken}function Jh(e){return!Ev(e)}function Av(e){return Ge(ge.AbstractKeyword,e)}function Cv(e){if(e.parameters.length&&!Il(e)){let t=e.parameters[0];if(Dv(t))return t}return null}function Dv(e){return nd(e.name)}function Pv(e){return cf(e.parent,hf)}function Nv(e){switch(e.kind){case ge.ClassDeclaration:return!0;case ge.ClassExpression:return!0;case ge.PropertyDeclaration:{let{parent:t}=e;return!!(Ga(t)||ra(t)&&!Av(e))}case ge.GetAccessor:case ge.SetAccessor:case ge.MethodDeclaration:{let{parent:t}=e;return!!e.body&&(Ga(t)||ra(t))}case ge.Parameter:{let{parent:t}=e,a=t.parent;return!!t&&"body"in t&&!!t.body&&(t.kind===ge.Constructor||t.kind===ge.MethodDeclaration||t.kind===ge.SetAccessor)&&Cv(t)!==e&&!!a&&a.kind===ge.ClassDeclaration}}return!1}function Iv(e){return!!("illegalDecorators"in e&&e.illegalDecorators?.length)}function Ut(e,t){let a=e.getSourceFile(),_=e.getStart(a),f=e.getEnd();throw w_(t,a,_,f)}function jh(e){Iv(e)&&Ut(e.illegalDecorators[0],"Decorators are not valid here.");for(let t of xi(e,!0)??[])Nv(e)||(h_(e)&&!Jh(e.body)?Ut(t,"A decorator can only decorate a method implementation, not an overload."):Ut(t,"Decorators are not valid here."));for(let t of Rn(e,!0)??[]){if(t.kind!==ge.ReadonlyKeyword&&((e.kind===ge.PropertySignature||e.kind===ge.MethodSignature)&&Ut(t,`'${nt(t.kind)}' modifier cannot appear on a type member`),e.kind===ge.IndexSignature&&(t.kind!==ge.StaticKeyword||!ra(e.parent))&&Ut(t,`'${nt(t.kind)}' modifier cannot appear on an index signature`)),t.kind!==ge.InKeyword&&t.kind!==ge.OutKeyword&&t.kind!==ge.ConstKeyword&&e.kind===ge.TypeParameter&&Ut(t,`'${nt(t.kind)}' modifier cannot appear on a type parameter`),(t.kind===ge.InKeyword||t.kind===ge.OutKeyword)&&(e.kind!==ge.TypeParameter||!(T_(e.parent)||ra(e.parent)||Nl(e.parent)))&&Ut(t,`'${nt(t.kind)}' modifier can only appear on a type parameter of a class, interface or type alias`),t.kind===ge.ReadonlyKeyword&&e.kind!==ge.PropertyDeclaration&&e.kind!==ge.PropertySignature&&e.kind!==ge.IndexSignature&&e.kind!==ge.Parameter&&Ut(t,"'readonly' modifier can only appear on a property declaration or index signature."),t.kind===ge.DeclareKeyword&&ra(e.parent)&&!Wa(e)&&Ut(t,`'${nt(t.kind)}' modifier cannot appear on class elements of this kind.`),t.kind===ge.DeclareKeyword&&Xa(e)){let a=S_(e.declarationList);(a==="using"||a==="await using")&&Ut(t,`'declare' modifier cannot appear on a '${a}' declaration.`)}if(t.kind===ge.AbstractKeyword&&e.kind!==ge.ClassDeclaration&&e.kind!==ge.ConstructorType&&e.kind!==ge.MethodDeclaration&&e.kind!==ge.PropertyDeclaration&&e.kind!==ge.GetAccessor&&e.kind!==ge.SetAccessor&&Ut(t,`'${nt(t.kind)}' modifier can only appear on a class, method, or property declaration.`),(t.kind===ge.StaticKeyword||t.kind===ge.PublicKeyword||t.kind===ge.ProtectedKeyword||t.kind===ge.PrivateKeyword)&&(e.parent.kind===ge.ModuleBlock||e.parent.kind===ge.SourceFile)&&Ut(t,`'${nt(t.kind)}' modifier cannot appear on a module or namespace element.`),t.kind===ge.AccessorKeyword&&e.kind!==ge.PropertyDeclaration&&Ut(t,"'accessor' modifier can only appear on a property declaration."),t.kind===ge.AsyncKeyword&&e.kind!==ge.MethodDeclaration&&e.kind!==ge.FunctionDeclaration&&e.kind!==ge.FunctionExpression&&e.kind!==ge.ArrowFunction&&Ut(t,"'async' modifier cannot be used here."),e.kind===ge.Parameter&&(t.kind===ge.StaticKeyword||t.kind===ge.ExportKeyword||t.kind===ge.DeclareKeyword||t.kind===ge.AsyncKeyword)&&Ut(t,`'${nt(t.kind)}' modifier cannot appear on a parameter.`),t.kind===ge.PublicKeyword||t.kind===ge.ProtectedKeyword||t.kind===ge.PrivateKeyword)for(let a of Rn(e)??[])a!==t&&(a.kind===ge.PublicKeyword||a.kind===ge.ProtectedKeyword||a.kind===ge.PrivateKeyword)&&Ut(a,"Accessibility modifier already seen.");if(e.kind===ge.Parameter&&(t.kind===ge.PublicKeyword||t.kind===ge.PrivateKeyword||t.kind===ge.ProtectedKeyword||t.kind===ge.ReadonlyKeyword||t.kind===ge.OverrideKeyword)){let a=Pv(e);a?.kind===ge.Constructor&&Jh(a.body)||Ut(t,"A parameter property is only allowed in a constructor implementation.");let _=e;_.dotDotDotToken&&Ut(t,"A parameter property cannot be a rest parameter."),(_.name.kind===ge.ArrayBindingPattern||_.name.kind===ge.ObjectBindingPattern)&&Ut(t,"A parameter property may not be declared using a binding pattern.")}t.kind!==ge.AsyncKeyword&&e.kind===ge.MethodDeclaration&&e.parent.kind===ge.ObjectLiteralExpression&&Ut(t,`'${nt(t.kind)}' modifier cannot be used here.`)}}var x=Ae;function rd(e){return w_("message"in e&&e.message||e.messageText,e.file,e.start)}function Mv(e){return dr(e)&&Ke(e.name)&&Rh(e.expression)}function Rh(e){return e.kind===x.Identifier||Mv(e)}var Rl=class{allowPattern=!1;ast;esTreeNodeToTSNodeMap=new WeakMap;options;tsNodeToESTreeNodeMap=new WeakMap;constructor(t,a){this.ast=t,this.options={...a}}#r(t,a){let _=a===Ae.ForInStatement?"for...in":"for...of";if(X1(t)){t.declarations.length!==1&&this.#e(t,`Only a single variable declaration is allowed in a '${_}' statement.`);let f=t.declarations[0];f.initializer?this.#e(f,`The variable declaration of a '${_}' statement cannot have an initializer.`):f.type&&this.#e(f,`The variable declaration of a '${_}' statement cannot have a type annotation.`),a===Ae.ForInStatement&&t.flags&sn.Using&&this.#e(t,"The left-hand side of a 'for...in' statement cannot be a 'using' declaration.")}else!Jl(t)&&t.kind!==Ae.ObjectLiteralExpression&&t.kind!==Ae.ArrayLiteralExpression&&this.#e(t,`The left-hand side of a '${_}' statement must be a variable or a property access.`)}#i(t){this.options.allowInvalidAST||jh(t)}#e(t,a){if(this.options.allowInvalidAST)return;let _,f;throw Array.isArray(t)?[_,f]=t:typeof t=="number"?_=f=t:(_=t.getStart(this.ast),f=t.getEnd()),w_(a,this.ast,_,f)}#t(t,a,_,f=!1){let h=f;return Object.defineProperty(t,a,{configurable:!0,get:this.options.suppressDeprecatedPropertyWarnings?()=>t[_]:()=>(h||((void 0)(`The '${a}' property is deprecated on ${t.type} nodes. Use '${_}' instead. See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.`,"DeprecationWarning"),h=!0),t[_]),set(T){Object.defineProperty(t,a,{enumerable:!0,value:T,writable:!0})}}),t}#n(t,a,_,f){let h=!1;return Object.defineProperty(t,a,{configurable:!0,get:this.options.suppressDeprecatedPropertyWarnings?()=>f:()=>{if(!h){let T=`The '${a}' property is deprecated on ${t.type} nodes.`;_&&(T+=` Use ${_} instead.`),T+=" See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.",(void 0)(T,"DeprecationWarning"),h=!0}return f},set(T){Object.defineProperty(t,a,{enumerable:!0,value:T,writable:!0})}}),t}assertModuleSpecifier(t,a){!a&&t.moduleSpecifier==null&&this.#e(t,"Module specifier must be a string literal."),t.moduleSpecifier&&t.moduleSpecifier?.kind!==x.StringLiteral&&this.#e(t.moduleSpecifier,"Module specifier must be a string literal.")}convertBindingNameWithTypeAnnotation(t,a,_){let f=this.convertPattern(t);return a&&(f.typeAnnotation=this.convertTypeAnnotation(a,_),this.fixParentLocation(f,f.typeAnnotation.range)),f}convertBodyExpressions(t,a){let _=Dh(a);return t.map(f=>{let h=this.convertChild(f);if(_){if(h?.expression&&Pl(f)&&vi(f.expression)){let T=h.expression.raw;return h.directive=T.slice(1,-1),h}_=!1}return h}).filter(f=>f)}convertChainExpression(t,a){let{child:_,isOptional:f}=t.type===C.MemberExpression?{child:t.object,isOptional:t.optional}:t.type===C.CallExpression?{child:t.callee,isOptional:t.optional}:{child:t.expression,isOptional:!1},h=Nh(a,_);if(!h&&!f)return t;if(h&&td(_)){let T=_.expression;t.type===C.MemberExpression?t.object=T:t.type===C.CallExpression?t.callee=T:t.expression=T}return this.createNode(a,{type:C.ChainExpression,expression:t})}convertChild(t,a){return this.converter(t,a,!1)}convertChildren(t,a){return t.map(_=>this.converter(_,a,!1))}convertPattern(t,a){return this.converter(t,a,!0)}convertTypeAnnotation(t,a){let _=a?.kind===x.FunctionType||a?.kind===x.ConstructorType?2:1,h=[t.getFullStart()-_,t.end],T=Kr(h,this.ast);return{type:C.TSTypeAnnotation,loc:T,range:h,typeAnnotation:this.convertChild(t)}}convertTypeArgumentsToTypeParameterInstantiation(t,a){let _=er(t,this.ast,this.ast),f=[t.pos-1,_.end];return t.length===0&&this.#e(f,"Type argument list cannot be empty."),this.createNode(a,{type:C.TSTypeParameterInstantiation,range:f,params:this.convertChildren(t)})}convertTSTypeParametersToTypeParametersDeclaration(t){let a=er(t,this.ast,this.ast),_=[t.pos-1,a.end];return t.length===0&&this.#e(_,"Type parameter list cannot be empty."),{type:C.TSTypeParameterDeclaration,loc:Kr(_,this.ast),range:_,params:this.convertChildren(t)}}convertParameters(t){return t?.length?t.map(a=>{let _=this.convertChild(a);return _.decorators=this.convertChildren(xi(a)??[]),_}):[]}converter(t,a,_){if(!t)return null;this.#i(t);let f=this.allowPattern;_!=null&&(this.allowPattern=_);let h=this.convertNode(t,a??t.parent);return this.registerTSNodeInNodeMap(t,h),this.allowPattern=f,h}convertImportAttributes(t){let a=t.attributes??t.assertClause;return this.convertChildren(a?.elements??[])}convertJSXIdentifier(t){let a=this.createNode(t,{type:C.JSXIdentifier,name:t.getText()});return this.registerTSNodeInNodeMap(t,a),a}convertJSXNamespaceOrIdentifier(t){if(t.kind===Ae.JsxNamespacedName){let f=this.createNode(t,{type:C.JSXNamespacedName,name:this.createNode(t.name,{type:C.JSXIdentifier,name:t.name.text}),namespace:this.createNode(t.namespace,{type:C.JSXIdentifier,name:t.namespace.text})});return this.registerTSNodeInNodeMap(t,f),f}let a=t.getText(),_=a.indexOf(":");if(_>0){let f=sa(t,this.ast),h=this.createNode(t,{type:C.JSXNamespacedName,range:f,name:this.createNode(t,{type:C.JSXIdentifier,range:[f[0]+_+1,f[1]],name:a.slice(_+1)}),namespace:this.createNode(t,{type:C.JSXIdentifier,range:[f[0],f[0]+_],name:a.slice(0,_)})});return this.registerTSNodeInNodeMap(t,h),h}return this.convertJSXIdentifier(t)}convertJSXTagName(t,a){let _;switch(t.kind){case x.PropertyAccessExpression:t.name.kind===x.PrivateIdentifier&&this.#e(t.name,"Non-private identifier expected."),_=this.createNode(t,{type:C.JSXMemberExpression,object:this.convertJSXTagName(t.expression,a),property:this.convertJSXIdentifier(t.name)});break;case x.ThisKeyword:case x.Identifier:default:return this.convertJSXNamespaceOrIdentifier(t)}return this.registerTSNodeInNodeMap(t,_),_}convertMethodSignature(t){return this.createNode(t,{type:C.TSMethodSignature,accessibility:Si(t),computed:_a(t.name),key:this.convertChild(t.name),kind:(()=>{switch(t.kind){case x.GetAccessor:return"get";case x.SetAccessor:return"set";case x.MethodSignature:return"method"}})(),optional:ed(t),params:this.convertParameters(t.parameters),readonly:Ge(x.ReadonlyKeyword,t),returnType:t.type&&this.convertTypeAnnotation(t.type,t),static:Ge(x.StaticKeyword,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)})}fixParentLocation(t,a){a[0]t.range[1]&&(t.range[1]=a[1],t.loc.end=x_(t.range[1],this.ast))}convertNode(t,a){switch(t.kind){case x.SourceFile:return this.createNode(t,{type:C.Program,range:[t.getStart(this.ast),t.endOfFileToken.end],body:this.convertBodyExpressions(t.statements,t),comments:void 0,sourceType:t.externalModuleIndicator?"module":"script",tokens:void 0});case x.Block:return this.createNode(t,{type:C.BlockStatement,body:this.convertBodyExpressions(t.statements,t)});case x.Identifier:return Oh(t)?this.createNode(t,{type:C.ThisExpression}):this.createNode(t,{type:C.Identifier,decorators:[],name:t.text,optional:!1,typeAnnotation:void 0});case x.PrivateIdentifier:return this.createNode(t,{type:C.PrivateIdentifier,name:t.text.slice(1)});case x.WithStatement:return this.createNode(t,{type:C.WithStatement,body:this.convertChild(t.statement),object:this.convertChild(t.expression)});case x.ReturnStatement:return this.createNode(t,{type:C.ReturnStatement,argument:this.convertChild(t.expression)});case x.LabeledStatement:return this.createNode(t,{type:C.LabeledStatement,body:this.convertChild(t.statement),label:this.convertChild(t.label)});case x.ContinueStatement:return this.createNode(t,{type:C.ContinueStatement,label:this.convertChild(t.label)});case x.BreakStatement:return this.createNode(t,{type:C.BreakStatement,label:this.convertChild(t.label)});case x.IfStatement:return this.createNode(t,{type:C.IfStatement,alternate:this.convertChild(t.elseStatement),consequent:this.convertChild(t.thenStatement),test:this.convertChild(t.expression)});case x.SwitchStatement:return t.caseBlock.clauses.filter(_=>_.kind===x.DefaultClause).length>1&&this.#e(t,"A 'default' clause cannot appear more than once in a 'switch' statement."),this.createNode(t,{type:C.SwitchStatement,cases:this.convertChildren(t.caseBlock.clauses),discriminant:this.convertChild(t.expression)});case x.CaseClause:case x.DefaultClause:return this.createNode(t,{type:C.SwitchCase,consequent:this.convertChildren(t.statements),test:t.kind===x.CaseClause?this.convertChild(t.expression):null});case x.ThrowStatement:return t.expression.end===t.expression.pos&&this.#e(t,"A throw statement must throw an expression."),this.createNode(t,{type:C.ThrowStatement,argument:this.convertChild(t.expression)});case x.TryStatement:return this.createNode(t,{type:C.TryStatement,block:this.convertChild(t.tryBlock),finalizer:this.convertChild(t.finallyBlock),handler:this.convertChild(t.catchClause)});case x.CatchClause:return t.variableDeclaration?.initializer&&this.#e(t.variableDeclaration.initializer,"Catch clause variable cannot have an initializer."),this.createNode(t,{type:C.CatchClause,body:this.convertChild(t.block),param:t.variableDeclaration?this.convertBindingNameWithTypeAnnotation(t.variableDeclaration.name,t.variableDeclaration.type):null});case x.WhileStatement:return this.createNode(t,{type:C.WhileStatement,body:this.convertChild(t.statement),test:this.convertChild(t.expression)});case x.DoStatement:return this.createNode(t,{type:C.DoWhileStatement,body:this.convertChild(t.statement),test:this.convertChild(t.expression)});case x.ForStatement:return this.createNode(t,{type:C.ForStatement,body:this.convertChild(t.statement),init:this.convertChild(t.initializer),test:this.convertChild(t.condition),update:this.convertChild(t.incrementor)});case x.ForInStatement:return this.#r(t.initializer,t.kind),this.createNode(t,{type:C.ForInStatement,body:this.convertChild(t.statement),left:this.convertPattern(t.initializer),right:this.convertChild(t.expression)});case x.ForOfStatement:return this.#r(t.initializer,t.kind),this.createNode(t,{type:C.ForOfStatement,await:!!(t.awaitModifier&&t.awaitModifier.kind===x.AwaitKeyword),body:this.convertChild(t.statement),left:this.convertPattern(t.initializer),right:this.convertChild(t.expression)});case x.FunctionDeclaration:{let _=Ge(x.DeclareKeyword,t),f=Ge(x.AsyncKeyword,t),h=!!t.asteriskToken;_?t.body?this.#e(t,"An implementation cannot be declared in ambient contexts."):f?this.#e(t,"'async' modifier cannot be used in an ambient context."):h&&this.#e(t,"Generators are not allowed in an ambient context."):!t.body&&h&&this.#e(t,"A function signature cannot be declared as a generator.");let T=this.createNode(t,{type:t.body?C.FunctionDeclaration:C.TSDeclareFunction,async:f,body:this.convertChild(t.body)||void 0,declare:_,expression:!1,generator:h,id:this.convertChild(t.name),params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return this.fixExports(t,T)}case x.VariableDeclaration:{let _=!!t.exclamationToken,f=this.convertChild(t.initializer),h=this.convertBindingNameWithTypeAnnotation(t.name,t.type,t);return _&&(f?this.#e(t,"Declarations with initializers cannot also have definite assignment assertions."):(h.type!==C.Identifier||!h.typeAnnotation)&&this.#e(t,"Declarations with definite assignment assertions must also have type annotations.")),this.createNode(t,{type:C.VariableDeclarator,definite:_,id:h,init:f})}case x.VariableStatement:{let _=this.createNode(t,{type:C.VariableDeclaration,declarations:this.convertChildren(t.declarationList.declarations),declare:Ge(x.DeclareKeyword,t),kind:S_(t.declarationList)});return _.declarations.length||this.#e(t,"A variable declaration list must have at least one variable declarator."),(_.kind==="using"||_.kind==="await using")&&t.declarationList.declarations.forEach((f,h)=>{_.declarations[h].init==null&&this.#e(f,`'${_.kind}' declarations must be initialized.`),_.declarations[h].id.type!==C.Identifier&&this.#e(f.name,`'${_.kind}' declarations may not have binding patterns.`)}),(_.declare||["await using","const","using"].includes(_.kind))&&t.declarationList.declarations.forEach((f,h)=>{_.declarations[h].definite&&this.#e(f,"A definite assignment assertion '!' is not permitted in this context.")}),_.declare&&t.declarationList.declarations.forEach((f,h)=>{_.declarations[h].init&&(["let","var"].includes(_.kind)||_.declarations[h].id.typeAnnotation)&&this.#e(f,"Initializers are not permitted in ambient contexts.")}),this.fixExports(t,_)}case x.VariableDeclarationList:{let _=this.createNode(t,{type:C.VariableDeclaration,declarations:this.convertChildren(t.declarations),declare:!1,kind:S_(t)});return(_.kind==="using"||_.kind==="await using")&&t.declarations.forEach((f,h)=>{_.declarations[h].init!=null&&this.#e(f,`'${_.kind}' declarations may not be initialized in for statement.`),_.declarations[h].id.type!==C.Identifier&&this.#e(f.name,`'${_.kind}' declarations may not have binding patterns.`)}),_}case x.ExpressionStatement:return this.createNode(t,{type:C.ExpressionStatement,directive:void 0,expression:this.convertChild(t.expression)});case x.ThisKeyword:return this.createNode(t,{type:C.ThisExpression});case x.ArrayLiteralExpression:return this.allowPattern?this.createNode(t,{type:C.ArrayPattern,decorators:[],elements:t.elements.map(_=>this.convertPattern(_)),optional:!1,typeAnnotation:void 0}):this.createNode(t,{type:C.ArrayExpression,elements:this.convertChildren(t.elements)});case x.ObjectLiteralExpression:{if(this.allowPattern)return this.createNode(t,{type:C.ObjectPattern,decorators:[],optional:!1,properties:t.properties.map(f=>this.convertPattern(f)),typeAnnotation:void 0});let _=[];for(let f of t.properties)(f.kind===x.GetAccessor||f.kind===x.SetAccessor||f.kind===x.MethodDeclaration)&&!f.body&&this.#e(f.end-1,"'{' expected."),_.push(this.convertChild(f));return this.createNode(t,{type:C.ObjectExpression,properties:_})}case x.PropertyAssignment:{let{exclamationToken:_,questionToken:f}=t;return f&&this.#e(f,"A property assignment cannot have a question token."),_&&this.#e(_,"A property assignment cannot have an exclamation token."),this.createNode(t,{type:C.Property,computed:_a(t.name),key:this.convertChild(t.name),kind:"init",method:!1,optional:!1,shorthand:!1,value:this.converter(t.initializer,t,this.allowPattern)})}case x.ShorthandPropertyAssignment:{let{exclamationToken:_,modifiers:f,questionToken:h}=t;return f&&this.#e(f[0],"A shorthand property assignment cannot have modifiers."),h&&this.#e(h,"A shorthand property assignment cannot have a question token."),_&&this.#e(_,"A shorthand property assignment cannot have an exclamation token."),t.objectAssignmentInitializer?this.createNode(t,{type:C.Property,computed:!1,key:this.convertChild(t.name),kind:"init",method:!1,optional:!1,shorthand:!0,value:this.createNode(t,{type:C.AssignmentPattern,decorators:[],left:this.convertPattern(t.name),optional:!1,right:this.convertChild(t.objectAssignmentInitializer),typeAnnotation:void 0})}):this.createNode(t,{type:C.Property,computed:!1,key:this.convertChild(t.name),kind:"init",method:!1,optional:!1,shorthand:!0,value:this.convertChild(t.name)})}case x.ComputedPropertyName:return this.convertChild(t.expression);case x.PropertyDeclaration:{let _=Ge(x.AbstractKeyword,t);_&&t.initializer&&this.#e(t.initializer,"Abstract property cannot have an initializer."),t.name.kind===x.StringLiteral&&t.name.text==="constructor"&&this.#e(t.name,"Classes may not have a field named 'constructor'.");let f=Ge(x.AccessorKeyword,t),h=f?_?C.TSAbstractAccessorProperty:C.AccessorProperty:_?C.TSAbstractPropertyDefinition:C.PropertyDefinition,T=this.convertChild(t.name);return this.createNode(t,{type:h,accessibility:Si(t),computed:_a(t.name),declare:Ge(x.DeclareKeyword,t),decorators:this.convertChildren(xi(t)??[]),definite:!!t.exclamationToken,key:T,optional:(T.type===C.Literal||t.name.kind===x.Identifier||t.name.kind===x.ComputedPropertyName||t.name.kind===x.PrivateIdentifier)&&!!t.questionToken,override:Ge(x.OverrideKeyword,t),readonly:Ge(x.ReadonlyKeyword,t),static:Ge(x.StaticKeyword,t),typeAnnotation:t.type&&this.convertTypeAnnotation(t.type,t),value:_?null:this.convertChild(t.initializer)})}case x.GetAccessor:case x.SetAccessor:if(t.parent.kind===x.InterfaceDeclaration||t.parent.kind===x.TypeLiteral)return this.convertMethodSignature(t);case x.MethodDeclaration:{let _=Ge(x.AbstractKeyword,t);_&&t.body&&this.#e(t.name,t.kind===x.GetAccessor||t.kind===x.SetAccessor?"An abstract accessor cannot have an implementation.":`Method '${Lh(t.name,this.ast)}' cannot have an implementation because it is marked abstract.`);let f=this.createNode(t,{type:t.body?C.FunctionExpression:C.TSEmptyBodyFunctionExpression,range:[t.parameters.pos-1,t.end],async:Ge(x.AsyncKeyword,t),body:this.convertChild(t.body),declare:!1,expression:!1,generator:!!t.asteriskToken,id:null,params:[],returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});f.typeParameters&&this.fixParentLocation(f,f.typeParameters.range);let h;if(a.kind===x.ObjectLiteralExpression)f.params=this.convertChildren(t.parameters),h=this.createNode(t,{type:C.Property,computed:_a(t.name),key:this.convertChild(t.name),kind:"init",method:t.kind===x.MethodDeclaration,optional:!!t.questionToken,shorthand:!1,value:f});else{f.params=this.convertParameters(t.parameters);let T=_?C.TSAbstractMethodDefinition:C.MethodDefinition;h=this.createNode(t,{type:T,accessibility:Si(t),computed:_a(t.name),decorators:this.convertChildren(xi(t)??[]),key:this.convertChild(t.name),kind:"method",optional:!!t.questionToken,override:Ge(x.OverrideKeyword,t),static:Ge(x.StaticKeyword,t),value:f})}return t.kind===x.GetAccessor?h.kind="get":t.kind===x.SetAccessor?h.kind="set":!h.static&&t.name.kind===x.StringLiteral&&t.name.text==="constructor"&&h.type!==C.Property&&(h.kind="constructor"),h}case x.Constructor:{let _=Eh(t),f=(_&&er(_,t,this.ast))??t.getFirstToken(),h=this.createNode(t,{type:t.body?C.FunctionExpression:C.TSEmptyBodyFunctionExpression,range:[t.parameters.pos-1,t.end],async:!1,body:this.convertChild(t.body),declare:!1,expression:!1,generator:!1,id:null,params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});h.typeParameters&&this.fixParentLocation(h,h.typeParameters.range);let T=f.kind===x.StringLiteral?this.createNode(f,{type:C.Literal,raw:f.getText(),value:"constructor"}):this.createNode(t,{type:C.Identifier,range:[f.getStart(this.ast),f.end],decorators:[],name:"constructor",optional:!1,typeAnnotation:void 0}),k=Ge(x.StaticKeyword,t);return this.createNode(t,{type:Ge(x.AbstractKeyword,t)?C.TSAbstractMethodDefinition:C.MethodDefinition,accessibility:Si(t),computed:!1,decorators:[],key:T,kind:k?"method":"constructor",optional:!1,override:!1,static:k,value:h})}case x.FunctionExpression:return this.createNode(t,{type:C.FunctionExpression,async:Ge(x.AsyncKeyword,t),body:this.convertChild(t.body),declare:!1,expression:!1,generator:!!t.asteriskToken,id:this.convertChild(t.name),params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});case x.SuperKeyword:return this.createNode(t,{type:C.Super});case x.ArrayBindingPattern:return this.createNode(t,{type:C.ArrayPattern,decorators:[],elements:t.elements.map(_=>this.convertPattern(_)),optional:!1,typeAnnotation:void 0});case x.OmittedExpression:return null;case x.ObjectBindingPattern:return this.createNode(t,{type:C.ObjectPattern,decorators:[],optional:!1,properties:t.elements.map(_=>this.convertPattern(_)),typeAnnotation:void 0});case x.BindingElement:{if(a.kind===x.ArrayBindingPattern){let f=this.convertChild(t.name,a);return t.initializer?this.createNode(t,{type:C.AssignmentPattern,decorators:[],left:f,optional:!1,right:this.convertChild(t.initializer),typeAnnotation:void 0}):t.dotDotDotToken?this.createNode(t,{type:C.RestElement,argument:f,decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):f}let _;return t.dotDotDotToken?_=this.createNode(t,{type:C.RestElement,argument:this.convertChild(t.propertyName??t.name),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):_=this.createNode(t,{type:C.Property,computed:!!(t.propertyName&&t.propertyName.kind===x.ComputedPropertyName),key:this.convertChild(t.propertyName??t.name),kind:"init",method:!1,optional:!1,shorthand:!t.propertyName,value:this.convertChild(t.name)}),t.initializer&&(_.value=this.createNode(t,{type:C.AssignmentPattern,range:[t.name.getStart(this.ast),t.initializer.end],decorators:[],left:this.convertChild(t.name),optional:!1,right:this.convertChild(t.initializer),typeAnnotation:void 0})),_}case x.ArrowFunction:return this.createNode(t,{type:C.ArrowFunctionExpression,async:Ge(x.AsyncKeyword,t),body:this.convertChild(t.body),expression:t.body.kind!==x.Block,generator:!1,id:null,params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});case x.YieldExpression:return this.createNode(t,{type:C.YieldExpression,argument:this.convertChild(t.expression),delegate:!!t.asteriskToken});case x.AwaitExpression:return this.createNode(t,{type:C.AwaitExpression,argument:this.convertChild(t.expression)});case x.NoSubstitutionTemplateLiteral:return this.createNode(t,{type:C.TemplateLiteral,expressions:[],quasis:[this.createNode(t,{type:C.TemplateElement,tail:!0,value:{cooked:t.text,raw:this.ast.text.slice(t.getStart(this.ast)+1,t.end-1)}})]});case x.TemplateExpression:{let _=this.createNode(t,{type:C.TemplateLiteral,expressions:[],quasis:[this.convertChild(t.head)]});return t.templateSpans.forEach(f=>{_.expressions.push(this.convertChild(f.expression)),_.quasis.push(this.convertChild(f.literal))}),_}case x.TaggedTemplateExpression:return t.tag.flags&sn.OptionalChain&&this.#e(t,"Tagged template expressions are not permitted in an optional chain."),this.createNode(t,{type:C.TaggedTemplateExpression,quasi:this.convertChild(t.template),tag:this.convertChild(t.tag),typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)});case x.TemplateHead:case x.TemplateMiddle:case x.TemplateTail:{let _=t.kind===x.TemplateTail;return this.createNode(t,{type:C.TemplateElement,tail:_,value:{cooked:t.text,raw:this.ast.text.slice(t.getStart(this.ast)+1,t.end-(_?1:2))}})}case x.SpreadAssignment:case x.SpreadElement:return this.allowPattern?this.createNode(t,{type:C.RestElement,argument:this.convertPattern(t.expression),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):this.createNode(t,{type:C.SpreadElement,argument:this.convertChild(t.expression)});case x.Parameter:{let _,f;return t.dotDotDotToken?_=f=this.createNode(t,{type:C.RestElement,argument:this.convertChild(t.name),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):t.initializer?(_=this.convertChild(t.name),f=this.createNode(t,{type:C.AssignmentPattern,range:[t.name.getStart(this.ast),t.initializer.end],decorators:[],left:_,optional:!1,right:this.convertChild(t.initializer),typeAnnotation:void 0}),Rn(t)&&(f.range[0]=_.range[0],f.loc=Kr(f.range,this.ast))):_=f=this.convertChild(t.name,a),t.type&&(_.typeAnnotation=this.convertTypeAnnotation(t.type,t),this.fixParentLocation(_,_.typeAnnotation.range)),t.questionToken&&(t.questionToken.end>_.range[1]&&(_.range[1]=t.questionToken.end,_.loc.end=x_(_.range[1],this.ast)),_.optional=!0),Rn(t)?this.createNode(t,{type:C.TSParameterProperty,accessibility:Si(t),decorators:[],override:Ge(x.OverrideKeyword,t),parameter:f,readonly:Ge(x.ReadonlyKeyword,t),static:Ge(x.StaticKeyword,t)}):f}case x.ClassDeclaration:!t.name&&(!Ge(Ae.ExportKeyword,t)||!Ge(Ae.DefaultKeyword,t))&&this.#e(t,"A class declaration without the 'default' modifier must have a name.");case x.ClassExpression:{let _=t.heritageClauses??[],f=t.kind===x.ClassDeclaration?C.ClassDeclaration:C.ClassExpression,h,T;for(let c of _){let{token:W,types:y}=c;y.length===0&&this.#e(c,`'${nt(W)}' list cannot be empty.`),W===x.ExtendsKeyword?(h&&this.#e(c,"'extends' clause already seen."),T&&this.#e(c,"'extends' clause must precede 'implements' clause."),y.length>1&&this.#e(y[1],"Classes can only extend a single class."),h??(h=c)):W===x.ImplementsKeyword&&(T&&this.#e(c,"'implements' clause already seen."),T??(T=c))}let k=this.createNode(t,{type:f,abstract:Ge(x.AbstractKeyword,t),body:this.createNode(t,{type:C.ClassBody,range:[t.members.pos-1,t.end],body:this.convertChildren(t.members.filter(kh))}),declare:Ge(x.DeclareKeyword,t),decorators:this.convertChildren(xi(t)??[]),id:this.convertChild(t.name),implements:this.convertChildren(T?.types??[]),superClass:h?.types[0]?this.convertChild(h.types[0].expression):null,superTypeArguments:void 0,typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return h?.types[0]?.typeArguments&&(k.superTypeArguments=this.convertTypeArgumentsToTypeParameterInstantiation(h.types[0].typeArguments,h.types[0])),this.fixExports(t,k)}case x.ModuleBlock:return this.createNode(t,{type:C.TSModuleBlock,body:this.convertBodyExpressions(t.statements,t)});case x.ImportDeclaration:{this.assertModuleSpecifier(t,!1);let _=this.createNode(t,this.#t({type:C.ImportDeclaration,attributes:this.convertImportAttributes(t),importKind:"value",source:this.convertChild(t.moduleSpecifier),specifiers:[]},"assertions","attributes",!0));if(t.importClause&&(t.importClause.isTypeOnly&&(_.importKind="type"),t.importClause.name&&_.specifiers.push(this.convertChild(t.importClause)),t.importClause.namedBindings))switch(t.importClause.namedBindings.kind){case x.NamespaceImport:_.specifiers.push(this.convertChild(t.importClause.namedBindings));break;case x.NamedImports:_.specifiers.push(...this.convertChildren(t.importClause.namedBindings.elements));break}return _}case x.NamespaceImport:return this.createNode(t,{type:C.ImportNamespaceSpecifier,local:this.convertChild(t.name)});case x.ImportSpecifier:return this.createNode(t,{type:C.ImportSpecifier,imported:this.convertChild(t.propertyName??t.name),importKind:t.isTypeOnly?"type":"value",local:this.convertChild(t.name)});case x.ImportClause:{let _=this.convertChild(t.name);return this.createNode(t,{type:C.ImportDefaultSpecifier,range:_.range,local:_})}case x.ExportDeclaration:return t.exportClause?.kind===x.NamedExports?(this.assertModuleSpecifier(t,!0),this.createNode(t,this.#t({type:C.ExportNamedDeclaration,attributes:this.convertImportAttributes(t),declaration:null,exportKind:t.isTypeOnly?"type":"value",source:this.convertChild(t.moduleSpecifier),specifiers:this.convertChildren(t.exportClause.elements,t)},"assertions","attributes",!0))):(this.assertModuleSpecifier(t,!1),this.createNode(t,this.#t({type:C.ExportAllDeclaration,attributes:this.convertImportAttributes(t),exported:t.exportClause?.kind===x.NamespaceExport?this.convertChild(t.exportClause.name):null,exportKind:t.isTypeOnly?"type":"value",source:this.convertChild(t.moduleSpecifier)},"assertions","attributes",!0)));case x.ExportSpecifier:{let _=t.propertyName??t.name;return _.kind===x.StringLiteral&&a.kind===x.ExportDeclaration&&a.moduleSpecifier?.kind!==x.StringLiteral&&this.#e(_,"A string literal cannot be used as a local exported binding without `from`."),this.createNode(t,{type:C.ExportSpecifier,exported:this.convertChild(t.name),exportKind:t.isTypeOnly?"type":"value",local:this.convertChild(_)})}case x.ExportAssignment:return t.isExportEquals?this.createNode(t,{type:C.TSExportAssignment,expression:this.convertChild(t.expression)}):this.createNode(t,{type:C.ExportDefaultDeclaration,declaration:this.convertChild(t.expression),exportKind:"value"});case x.PrefixUnaryExpression:case x.PostfixUnaryExpression:{let _=Qr(t.operator);return _==="++"||_==="--"?(Jl(t.operand)||this.#e(t.operand,"Invalid left-hand side expression in unary operation"),this.createNode(t,{type:C.UpdateExpression,argument:this.convertChild(t.operand),operator:_,prefix:t.kind===x.PrefixUnaryExpression})):this.createNode(t,{type:C.UnaryExpression,argument:this.convertChild(t.operand),operator:_,prefix:t.kind===x.PrefixUnaryExpression})}case x.DeleteExpression:return this.createNode(t,{type:C.UnaryExpression,argument:this.convertChild(t.expression),operator:"delete",prefix:!0});case x.VoidExpression:return this.createNode(t,{type:C.UnaryExpression,argument:this.convertChild(t.expression),operator:"void",prefix:!0});case x.TypeOfExpression:return this.createNode(t,{type:C.UnaryExpression,argument:this.convertChild(t.expression),operator:"typeof",prefix:!0});case x.TypeOperator:return this.createNode(t,{type:C.TSTypeOperator,operator:Qr(t.operator),typeAnnotation:this.convertChild(t.type)});case x.BinaryExpression:{if(t.operatorToken.kind!==x.InKeyword&&t.left.kind===x.PrivateIdentifier?this.#e(t.left,"Private identifiers cannot appear on the right-hand-side of an 'in' expression."):t.right.kind===x.PrivateIdentifier&&this.#e(t.right,"Private identifiers are only allowed on the left-hand-side of an 'in' expression."),Ah(t.operatorToken)){let f=this.createNode(t,{type:C.SequenceExpression,expressions:[]}),h=this.convertChild(t.left);return h.type===C.SequenceExpression&&t.left.kind!==x.ParenthesizedExpression?f.expressions.push(...h.expressions):f.expressions.push(h),f.expressions.push(this.convertChild(t.right)),f}let _=Ch(t.operatorToken);return this.allowPattern&&_.type===C.AssignmentExpression?this.createNode(t,{type:C.AssignmentPattern,decorators:[],left:this.convertPattern(t.left,t),optional:!1,right:this.convertChild(t.right),typeAnnotation:void 0}):this.createNode(t,{..._,left:this.converter(t.left,t,_.type===C.AssignmentExpression),right:this.convertChild(t.right)})}case x.PropertyAccessExpression:{let _=this.convertChild(t.expression),f=this.convertChild(t.name),T=this.createNode(t,{type:C.MemberExpression,computed:!1,object:_,optional:t.questionDotToken!=null,property:f});return this.convertChainExpression(T,t)}case x.ElementAccessExpression:{let _=this.convertChild(t.expression),f=this.convertChild(t.argumentExpression),T=this.createNode(t,{type:C.MemberExpression,computed:!0,object:_,optional:t.questionDotToken!=null,property:f});return this.convertChainExpression(T,t)}case x.CallExpression:{if(t.expression.kind===x.ImportKeyword)return t.arguments.length!==1&&t.arguments.length!==2&&this.#e(t.arguments[2]??t,"Dynamic import requires exactly one or two arguments."),this.createNode(t,this.#t({type:C.ImportExpression,options:t.arguments[1]?this.convertChild(t.arguments[1]):null,source:this.convertChild(t.arguments[0])},"attributes","options",!0));let _=this.convertChild(t.expression),f=this.convertChildren(t.arguments),h=t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t),T=this.createNode(t,{type:C.CallExpression,arguments:f,callee:_,optional:t.questionDotToken!=null,typeArguments:h});return this.convertChainExpression(T,t)}case x.NewExpression:{let _=t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t);return this.createNode(t,{type:C.NewExpression,arguments:this.convertChildren(t.arguments??[]),callee:this.convertChild(t.expression),typeArguments:_})}case x.ConditionalExpression:return this.createNode(t,{type:C.ConditionalExpression,alternate:this.convertChild(t.whenFalse),consequent:this.convertChild(t.whenTrue),test:this.convertChild(t.condition)});case x.MetaProperty:return this.createNode(t,{type:C.MetaProperty,meta:this.createNode(t.getFirstToken(),{type:C.Identifier,decorators:[],name:Qr(t.keywordToken),optional:!1,typeAnnotation:void 0}),property:this.convertChild(t.name)});case x.Decorator:return this.createNode(t,{type:C.Decorator,expression:this.convertChild(t.expression)});case x.StringLiteral:return this.createNode(t,{type:C.Literal,raw:t.getText(),value:a.kind===x.JsxAttribute?Zf(t.text):t.text});case x.NumericLiteral:return this.createNode(t,{type:C.Literal,raw:t.getText(),value:Number(t.text)});case x.BigIntLiteral:{let _=sa(t,this.ast),f=this.ast.text.slice(_[0],_[1]),h=Wr(0,f.slice(0,-1),"_",""),T=typeof BigInt<"u"?BigInt(h):null;return this.createNode(t,{type:C.Literal,range:_,bigint:T==null?h:String(T),raw:f,value:T})}case x.RegularExpressionLiteral:{let _=t.text.slice(1,t.text.lastIndexOf("/")),f=t.text.slice(t.text.lastIndexOf("/")+1),h=null;try{h=new RegExp(_,f)}catch{}return this.createNode(t,{type:C.Literal,raw:t.text,regex:{flags:f,pattern:_},value:h})}case x.TrueKeyword:return this.createNode(t,{type:C.Literal,raw:"true",value:!0});case x.FalseKeyword:return this.createNode(t,{type:C.Literal,raw:"false",value:!1});case x.NullKeyword:return this.createNode(t,{type:C.Literal,raw:"null",value:null});case x.EmptyStatement:return this.createNode(t,{type:C.EmptyStatement});case x.DebuggerStatement:return this.createNode(t,{type:C.DebuggerStatement});case x.JsxElement:return this.createNode(t,{type:C.JSXElement,children:this.convertChildren(t.children),closingElement:this.convertChild(t.closingElement),openingElement:this.convertChild(t.openingElement)});case x.JsxFragment:return this.createNode(t,{type:C.JSXFragment,children:this.convertChildren(t.children),closingFragment:this.convertChild(t.closingFragment),openingFragment:this.convertChild(t.openingFragment)});case x.JsxSelfClosingElement:return this.createNode(t,{type:C.JSXElement,children:[],closingElement:null,openingElement:this.createNode(t,{type:C.JSXOpeningElement,range:sa(t,this.ast),attributes:this.convertChildren(t.attributes.properties),name:this.convertJSXTagName(t.tagName,t),selfClosing:!0,typeArguments:t.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t):void 0})});case x.JsxOpeningElement:return this.createNode(t,{type:C.JSXOpeningElement,attributes:this.convertChildren(t.attributes.properties),name:this.convertJSXTagName(t.tagName,t),selfClosing:!1,typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)});case x.JsxClosingElement:return this.createNode(t,{type:C.JSXClosingElement,name:this.convertJSXTagName(t.tagName,t)});case x.JsxOpeningFragment:return this.createNode(t,{type:C.JSXOpeningFragment});case x.JsxClosingFragment:return this.createNode(t,{type:C.JSXClosingFragment});case x.JsxExpression:{let _=t.expression?this.convertChild(t.expression):this.createNode(t,{type:C.JSXEmptyExpression,range:[t.getStart(this.ast)+1,t.getEnd()-1]});return t.dotDotDotToken?this.createNode(t,{type:C.JSXSpreadChild,expression:_}):this.createNode(t,{type:C.JSXExpressionContainer,expression:_})}case x.JsxAttribute:return this.createNode(t,{type:C.JSXAttribute,name:this.convertJSXNamespaceOrIdentifier(t.name),value:this.convertChild(t.initializer)});case x.JsxText:{let _=t.getFullStart(),f=t.getEnd(),h=this.ast.text.slice(_,f);return this.createNode(t,{type:C.JSXText,range:[_,f],raw:h,value:Zf(h)})}case x.JsxSpreadAttribute:return this.createNode(t,{type:C.JSXSpreadAttribute,argument:this.convertChild(t.expression)});case x.QualifiedName:return this.createNode(t,{type:C.TSQualifiedName,left:this.convertChild(t.left),right:this.convertChild(t.right)});case x.TypeReference:return this.createNode(t,{type:C.TSTypeReference,typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t),typeName:this.convertChild(t.typeName)});case x.TypeParameter:return this.createNode(t,{type:C.TSTypeParameter,const:Ge(x.ConstKeyword,t),constraint:t.constraint&&this.convertChild(t.constraint),default:t.default?this.convertChild(t.default):void 0,in:Ge(x.InKeyword,t),name:this.convertChild(t.name),out:Ge(x.OutKeyword,t)});case x.ThisType:return this.createNode(t,{type:C.TSThisType});case x.AnyKeyword:case x.BigIntKeyword:case x.BooleanKeyword:case x.NeverKeyword:case x.NumberKeyword:case x.ObjectKeyword:case x.StringKeyword:case x.SymbolKeyword:case x.UnknownKeyword:case x.VoidKeyword:case x.UndefinedKeyword:case x.IntrinsicKeyword:return this.createNode(t,{type:C[`TS${x[t.kind]}`]});case x.NonNullExpression:{let _=this.createNode(t,{type:C.TSNonNullExpression,expression:this.convertChild(t.expression)});return this.convertChainExpression(_,t)}case x.TypeLiteral:return this.createNode(t,{type:C.TSTypeLiteral,members:this.convertChildren(t.members)});case x.ArrayType:return this.createNode(t,{type:C.TSArrayType,elementType:this.convertChild(t.elementType)});case x.IndexedAccessType:return this.createNode(t,{type:C.TSIndexedAccessType,indexType:this.convertChild(t.indexType),objectType:this.convertChild(t.objectType)});case x.ConditionalType:return this.createNode(t,{type:C.TSConditionalType,checkType:this.convertChild(t.checkType),extendsType:this.convertChild(t.extendsType),falseType:this.convertChild(t.falseType),trueType:this.convertChild(t.trueType)});case x.TypeQuery:return this.createNode(t,{type:C.TSTypeQuery,exprName:this.convertChild(t.exprName),typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)});case x.MappedType:return t.members&&t.members.length>0&&this.#e(t.members[0],"A mapped type may not declare properties or methods."),this.createNode(t,this.#n({type:C.TSMappedType,constraint:this.convertChild(t.typeParameter.constraint),key:this.convertChild(t.typeParameter.name),nameType:this.convertChild(t.nameType)??null,optional:t.questionToken?t.questionToken.kind===x.QuestionToken||Qr(t.questionToken.kind):!1,readonly:t.readonlyToken?t.readonlyToken.kind===x.ReadonlyKeyword||Qr(t.readonlyToken.kind):void 0,typeAnnotation:t.type&&this.convertChild(t.type)},"typeParameter","'constraint' and 'key'",this.convertChild(t.typeParameter)));case x.ParenthesizedExpression:return this.convertChild(t.expression,a);case x.TypeAliasDeclaration:{let _=this.createNode(t,{type:C.TSTypeAliasDeclaration,declare:Ge(x.DeclareKeyword,t),id:this.convertChild(t.name),typeAnnotation:this.convertChild(t.type),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return this.fixExports(t,_)}case x.MethodSignature:return this.convertMethodSignature(t);case x.PropertySignature:{let{initializer:_}=t;return _&&this.#e(_,"A property signature cannot have an initializer."),this.createNode(t,{type:C.TSPropertySignature,accessibility:Si(t),computed:_a(t.name),key:this.convertChild(t.name),optional:ed(t),readonly:Ge(x.ReadonlyKeyword,t),static:Ge(x.StaticKeyword,t),typeAnnotation:t.type&&this.convertTypeAnnotation(t.type,t)})}case x.IndexSignature:return this.createNode(t,{type:C.TSIndexSignature,accessibility:Si(t),parameters:this.convertChildren(t.parameters),readonly:Ge(x.ReadonlyKeyword,t),static:Ge(x.StaticKeyword,t),typeAnnotation:t.type&&this.convertTypeAnnotation(t.type,t)});case x.ConstructorType:return this.createNode(t,{type:C.TSConstructorType,abstract:Ge(x.AbstractKeyword,t),params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});case x.FunctionType:{let{modifiers:_}=t;_&&this.#e(_[0],"A function type cannot have modifiers.")}case x.ConstructSignature:case x.CallSignature:{let _=t.kind===x.ConstructSignature?C.TSConstructSignatureDeclaration:t.kind===x.CallSignature?C.TSCallSignatureDeclaration:C.TSFunctionType;return this.createNode(t,{type:_,params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)})}case x.ExpressionWithTypeArguments:{let _=a.kind,f=_===x.InterfaceDeclaration?C.TSInterfaceHeritage:_===x.HeritageClause?C.TSClassImplements:C.TSInstantiationExpression;return this.createNode(t,{type:f,expression:this.convertChild(t.expression),typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)})}case x.InterfaceDeclaration:{let _=t.heritageClauses??[],f=[],h=!1;for(let k of _){k.token!==x.ExtendsKeyword&&this.#e(k,k.token===x.ImplementsKeyword?"Interface declaration cannot have 'implements' clause.":"Unexpected token."),h&&this.#e(k,"'extends' clause already seen."),h=!0;for(let c of k.types)(!Rh(c.expression)||t1(c.expression))&&this.#e(c,"Interface declaration can only extend an identifier/qualified name with optional type arguments."),f.push(this.convertChild(c,t))}let T=this.createNode(t,{type:C.TSInterfaceDeclaration,body:this.createNode(t,{type:C.TSInterfaceBody,range:[t.members.pos-1,t.end],body:this.convertChildren(t.members)}),declare:Ge(x.DeclareKeyword,t),extends:f,id:this.convertChild(t.name),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return this.fixExports(t,T)}case x.TypePredicate:{let _=this.createNode(t,{type:C.TSTypePredicate,asserts:t.assertsModifier!=null,parameterName:this.convertChild(t.parameterName),typeAnnotation:null});return t.type&&(_.typeAnnotation=this.convertTypeAnnotation(t.type,t),_.typeAnnotation.loc=_.typeAnnotation.typeAnnotation.loc,_.typeAnnotation.range=_.typeAnnotation.typeAnnotation.range),_}case x.ImportType:{let _=sa(t,this.ast);if(t.isTypeOf){let c=er(t.getFirstToken(),t,this.ast);_[0]=c.getStart(this.ast)}let f=null;if(t.attributes){let c=this.createNode(t.attributes,{type:C.ObjectExpression,properties:t.attributes.elements.map(be=>this.createNode(be,{type:C.Property,computed:!1,key:this.convertChild(be.name),kind:"init",method:!1,optional:!1,shorthand:!1,value:this.convertChild(be.value)}))}),W=er(t.argument,t,this.ast),y=er(W,t,this.ast),G=er(t.attributes,t,this.ast),E=G.kind===Ae.CommaToken?er(G,t,this.ast):G,D=er(y,t,this.ast),R=sa(D,this.ast),ue=D.kind===Ae.AssertKeyword?"assert":"with";f=this.createNode(t,{type:C.ObjectExpression,range:[y.getStart(this.ast),E.end],properties:[this.createNode(t,{type:C.Property,range:[R[0],t.attributes.end],computed:!1,key:this.createNode(t,{type:C.Identifier,range:R,decorators:[],name:ue,optional:!1,typeAnnotation:void 0}),kind:"init",method:!1,optional:!1,shorthand:!1,value:c})]})}let h=this.convertChild(t.argument),T=h.literal,k=this.createNode(t,this.#n({type:C.TSImportType,range:_,options:f,qualifier:this.convertChild(t.qualifier),source:T,typeArguments:t.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t):null},"argument","source",h));return t.isTypeOf?this.createNode(t,{type:C.TSTypeQuery,exprName:k,typeArguments:void 0}):k}case x.EnumDeclaration:{let _=this.convertChildren(t.members),f=this.createNode(t,this.#n({type:C.TSEnumDeclaration,body:this.createNode(t,{type:C.TSEnumBody,range:[t.members.pos-1,t.end],members:_}),const:Ge(x.ConstKeyword,t),declare:Ge(x.DeclareKeyword,t),id:this.convertChild(t.name)},"members","'body.members'",this.convertChildren(t.members)));return this.fixExports(t,f)}case x.EnumMember:{let _=t.name.kind===Ae.ComputedPropertyName;return _&&this.#e(t.name,"Computed property names are not allowed in enums."),(t.name.kind===x.NumericLiteral||t.name.kind===x.BigIntLiteral)&&this.#e(t.name,"An enum member cannot have a numeric name."),this.createNode(t,this.#n({type:C.TSEnumMember,id:this.convertChild(t.name),initializer:t.initializer&&this.convertChild(t.initializer)},"computed",void 0,_))}case x.ModuleDeclaration:{let _=Ge(x.DeclareKeyword,t),f=this.createNode(t,{type:C.TSModuleDeclaration,...(()=>{if(t.flags&sn.GlobalAugmentation){let T=this.convertChild(t.name),k=this.convertChild(t.body);return(k==null||k.type===C.TSModuleDeclaration)&&this.#e(t.body??t,"Expected a valid module body"),T.type!==C.Identifier&&this.#e(t.name,"global module augmentation must have an Identifier id"),{body:k,declare:!1,global:!1,id:T,kind:"global"}}if(vi(t.name)){let T=this.convertChild(t.body);return{kind:"module",...T!=null?{body:T}:{},declare:!1,global:!1,id:this.convertChild(t.name)}}t.body==null&&this.#e(t,"Expected a module body"),t.name.kind!==Ae.Identifier&&this.#e(t.name,"`namespace`s must have an Identifier id");let h=this.createNode(t.name,{type:C.Identifier,range:[t.name.getStart(this.ast),t.name.getEnd()],decorators:[],name:t.name.text,optional:!1,typeAnnotation:void 0});for(;t.body&&Ti(t.body)&&t.body.name;){t=t.body,_||(_=Ge(x.DeclareKeyword,t));let T=t.name,k=this.createNode(T,{type:C.Identifier,range:[T.getStart(this.ast),T.getEnd()],decorators:[],name:T.text,optional:!1,typeAnnotation:void 0});h=this.createNode(T,{type:C.TSQualifiedName,range:[h.range[0],k.range[1]],left:h,right:k})}return{body:this.convertChild(t.body),declare:!1,global:!1,id:h,kind:t.flags&sn.Namespace?"namespace":"module"}})()});return f.declare=_,t.flags&sn.GlobalAugmentation&&(f.global=!0),this.fixExports(t,f)}case x.ParenthesizedType:return this.convertChild(t.type);case x.UnionType:return this.createNode(t,{type:C.TSUnionType,types:this.convertChildren(t.types)});case x.IntersectionType:return this.createNode(t,{type:C.TSIntersectionType,types:this.convertChildren(t.types)});case x.AsExpression:return this.createNode(t,{type:C.TSAsExpression,expression:this.convertChild(t.expression),typeAnnotation:this.convertChild(t.type)});case x.InferType:return this.createNode(t,{type:C.TSInferType,typeParameter:this.convertChild(t.typeParameter)});case x.LiteralType:return t.literal.kind===x.NullKeyword?this.createNode(t.literal,{type:C.TSNullKeyword}):this.createNode(t,{type:C.TSLiteralType,literal:this.convertChild(t.literal)});case x.TypeAssertionExpression:return this.createNode(t,{type:C.TSTypeAssertion,expression:this.convertChild(t.expression),typeAnnotation:this.convertChild(t.type)});case x.ImportEqualsDeclaration:return this.fixExports(t,this.createNode(t,{type:C.TSImportEqualsDeclaration,id:this.convertChild(t.name),importKind:t.isTypeOnly?"type":"value",moduleReference:this.convertChild(t.moduleReference)}));case x.ExternalModuleReference:return t.expression.kind!==x.StringLiteral&&this.#e(t.expression,"String literal expected."),this.createNode(t,{type:C.TSExternalModuleReference,expression:this.convertChild(t.expression)});case x.NamespaceExportDeclaration:return this.createNode(t,{type:C.TSNamespaceExportDeclaration,id:this.convertChild(t.name)});case x.AbstractKeyword:return this.createNode(t,{type:C.TSAbstractKeyword});case x.TupleType:{let _=this.convertChildren(t.elements);return this.createNode(t,{type:C.TSTupleType,elementTypes:_})}case x.NamedTupleMember:{let _=this.createNode(t,{type:C.TSNamedTupleMember,elementType:this.convertChild(t.type,t),label:this.convertChild(t.name,t),optional:t.questionToken!=null});return t.dotDotDotToken?(_.range[0]=_.label.range[0],_.loc.start=_.label.loc.start,this.createNode(t,{type:C.TSRestType,typeAnnotation:_})):_}case x.OptionalType:return this.createNode(t,{type:C.TSOptionalType,typeAnnotation:this.convertChild(t.type)});case x.RestType:return this.createNode(t,{type:C.TSRestType,typeAnnotation:this.convertChild(t.type)});case x.TemplateLiteralType:{let _=this.createNode(t,{type:C.TSTemplateLiteralType,quasis:[this.convertChild(t.head)],types:[]});return t.templateSpans.forEach(f=>{_.types.push(this.convertChild(f.type)),_.quasis.push(this.convertChild(f.literal))}),_}case x.ClassStaticBlockDeclaration:return this.createNode(t,{type:C.StaticBlock,body:this.convertBodyExpressions(t.body.statements,t)});case x.AssertEntry:case x.ImportAttribute:return this.createNode(t,{type:C.ImportAttribute,key:this.convertChild(t.name),value:this.convertChild(t.value)});case x.SatisfiesExpression:return this.createNode(t,{type:C.TSSatisfiesExpression,expression:this.convertChild(t.expression),typeAnnotation:this.convertChild(t.type)});default:return this.deeplyCopy(t)}}createNode(t,a){let _=a;return _.range??(_.range=sa(t,this.ast)),_.loc??(_.loc=Kr(_.range,this.ast)),_&&this.options.shouldPreserveNodeMaps&&this.esTreeNodeToTSNodeMap.set(_,t),_}convertProgram(){return this.converter(this.ast)}deeplyCopy(t){t.kind===Ae.JSDocFunctionType&&this.#e(t,"JSDoc types can only be used inside documentation comments.");let a=`TS${x[t.kind]}`;if(this.options.errorOnUnknownASTType&&!C[a])throw new Error(`Unknown AST_NODE_TYPE: "${a}"`);let _=this.createNode(t,{type:a});"type"in t&&(_.typeAnnotation=t.type&&"kind"in t.type&&a1(t.type)?this.convertTypeAnnotation(t.type,t):null),"typeArguments"in t&&(_.typeArguments=t.typeArguments&&"pos"in t.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t):null),"typeParameters"in t&&(_.typeParameters=t.typeParameters&&"pos"in t.typeParameters?this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters):null);let f=xi(t);f?.length&&(_.decorators=this.convertChildren(f));let h=new Set(["_children","decorators","end","flags","heritageClauses","illegalDecorators","jsDoc","kind","locals","localSymbol","modifierFlagsCache","modifiers","nextContainer","parent","pos","symbol","transformFlags","type","typeArguments","typeParameters"]);return Object.entries(t).filter(([T])=>!h.has(T)).forEach(([T,k])=>{Array.isArray(k)?_[T]=this.convertChildren(k):k&&typeof k=="object"&&k.kind?_[T]=this.convertChild(k):_[T]=k}),_}fixExports(t,a){let f=Ti(t)&&!vi(t.name)?Mh(t):Rn(t);if(f?.[0].kind===x.ExportKeyword){this.registerTSNodeInNodeMap(t,a);let h=f[0],T=f[1],k=T?.kind===x.DefaultKeyword,c=k?er(T,this.ast,this.ast):er(h,this.ast,this.ast);if(a.range[0]=c.getStart(this.ast),a.loc=Kr(a.range,this.ast),k)return this.createNode(t,{type:C.ExportDefaultDeclaration,range:[h.getStart(this.ast),a.range[1]],declaration:a,exportKind:"value"});let W=a.type===C.TSInterfaceDeclaration||a.type===C.TSTypeAliasDeclaration,y="declare"in a&&a.declare;return this.createNode(t,this.#t({type:C.ExportNamedDeclaration,range:[h.getStart(this.ast),a.range[1]],attributes:[],declaration:a,exportKind:W||y?"type":"value",source:null,specifiers:[]},"assertions","attributes",!0))}return a}getASTMaps(){return{esTreeNodeToTSNodeMap:this.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:this.tsNodeToESTreeNodeMap}}registerTSNodeInNodeMap(t,a){a&&this.options.shouldPreserveNodeMaps&&!this.tsNodeToESTreeNodeMap.has(t)&&this.tsNodeToESTreeNodeMap.set(t,a)}};function Lv(e,t,a=e.getSourceFile()){let _=[];for(;;){if(mf(e.kind))t(e);else{let f=e.getChildren(a);if(f.length===1){e=f[0];continue}for(let h=f.length-1;h>=0;--h)_.push(f[h])}if(_.length===0)break;e=_.pop()}}function Bh(e,t,a=e.getSourceFile()){let _=a.text,f=a.languageVariant!==wl.JSX;return Lv(e,T=>{if(T.pos!==T.end&&(T.kind!==Ae.JsxText&&Wm(_,T.pos===0?(sf(_)??"").length:T.pos,h),f||Jv(T)))return Gm(_,T.end,h)},a);function h(T,k,c){t(_,{end:k,kind:c,pos:T})}}function Jv(e){switch(e.kind){case Ae.CloseBraceToken:return e.parent.kind!==Ae.JsxExpression||!id(e.parent.parent);case Ae.GreaterThanToken:switch(e.parent.kind){case Ae.JsxClosingElement:case Ae.JsxClosingFragment:return!id(e.parent.parent.parent);case Ae.JsxOpeningElement:return e.end!==e.parent.end;case Ae.JsxOpeningFragment:return!1;case Ae.JsxSelfClosingElement:return e.end!==e.parent.end||!id(e.parent.parent)}}return!0}function id(e){return e.kind===Ae.JsxElement||e.kind===Ae.JsxFragment}var[ox,cx]=bm.split(".").map(e=>Number.parseInt(e,10));var lx=en.Intrinsic??en.Any|en.Unknown|en.String|en.Number|en.BigInt|en.Boolean|en.BooleanLiteral|en.ESSymbol|en.Void|en.Undefined|en.Null|en.Never|en.NonPrimitive;function qh(e,t){let a=[];return Bh(e,(_,f)=>{let h=f.kind===Ae.SingleLineCommentTrivia?Rt.Line:Rt.Block,T=[f.pos,f.end],k=Kr(T,e),c=T[0]+2,W=f.kind===Ae.SingleLineCommentTrivia?T[1]:T[1]-2;a.push({type:h,loc:k,range:T,value:t.slice(c,W)})},e),a}var Fh=()=>{};function zh(e,t,a){let{parseDiagnostics:_}=e;if(_.length)throw rd(_[0]);let f=new Rl(e,{allowInvalidAST:t.allowInvalidAST,errorOnUnknownASTType:t.errorOnUnknownASTType,shouldPreserveNodeMaps:a,suppressDeprecatedPropertyWarnings:t.suppressDeprecatedPropertyWarnings}),h=f.convertProgram();return(!t.range||!t.loc)&&Fh(h,{enter:k=>{t.range||delete k.range,t.loc||delete k.loc}}),t.tokens&&(h.tokens=Ih(e)),t.comment&&(h.comments=qh(e,t.codeFullText)),{astMaps:f.getASTMaps(),estree:h}}function Ul(e){if(typeof e!="object"||e==null)return!1;let t=e;return t.kind===Ae.SourceFile&&typeof t.getFullText=="function"}var zv=function(e){return e&&e.__esModule?e:{default:e}};var Vv=zv({extname:e=>"."+e.split(".").pop()});function Wh(e,t){switch(Vv.default.extname(e).toLowerCase()){case Cn.Cjs:case Cn.Js:case Cn.Mjs:return Pr.JS;case Cn.Cts:case Cn.Mts:case Cn.Ts:return Pr.TS;case Cn.Json:return Pr.JSON;case Cn.Jsx:return Pr.JSX;case Cn.Tsx:return Pr.TSX;default:return t?Pr.TSX:Pr.TS}}var Gv={default:Na},Yv=(0,Gv.default)("typescript-eslint:typescript-estree:create-program:createSourceFile");function Gh(e){return Yv("Getting AST without type information in %s mode for: %s",e.jsx?"TSX":"TS",e.filePath),Ul(e.code)?e.code:uh(e.filePath,e.codeFullText,{jsDocParsingMode:e.jsDocParsingMode,languageVersion:g_.Latest,setExternalModuleIndicator:e.setExternalModuleIndicator},!0,Wh(e.filePath,e.jsx))}var Yh=e=>e;var Hh=()=>{};var Xh=class{};var Qh=()=>!1;var Kh=()=>{};var s4=function(e){return e&&e.__esModule?e:{default:e}};var _4={},ad={default:Na},o4=s4({extname:e=>"."+e.split(".").pop()}),c4=(0,ad.default)("typescript-eslint:typescript-estree:parseSettings:createParseSettings"),l4,Zh=null,k_={ParseAll:Ya?.ParseAll,ParseForTypeErrors:Ya?.ParseForTypeErrors,ParseForTypeInfo:Ya?.ParseForTypeInfo,ParseNone:Ya?.ParseNone};function e0(e,t={}){let a=u4(e),_=Qh(t),f=void 0,h=typeof t.loggerFn=="function",T=Yh(typeof t.filePath=="string"&&t.filePath!==""?t.filePath:p4(t.jsx),f),k=o4.default.extname(T).toLowerCase(),c=(()=>{switch(t.jsDocParsingMode){case"all":return k_.ParseAll;case"none":return k_.ParseNone;case"type-info":return k_.ParseForTypeInfo;default:return k_.ParseAll}})(),W={loc:t.loc===!0,range:t.range===!0,allowInvalidAST:t.allowInvalidAST===!0,code:e,codeFullText:a,comment:t.comment===!0,comments:[],debugLevel:t.debugLevel===!0?new Set(["typescript-eslint"]):Array.isArray(t.debugLevel)?new Set(t.debugLevel):new Set,errorOnTypeScriptSyntacticAndSemanticIssues:!1,errorOnUnknownASTType:t.errorOnUnknownASTType===!0,extraFileExtensions:Array.isArray(t.extraFileExtensions)&&t.extraFileExtensions.every(y=>typeof y=="string")?t.extraFileExtensions:[],filePath:T,jsDocParsingMode:c,jsx:t.jsx===!0,log:typeof t.loggerFn=="function"?t.loggerFn:t.loggerFn===!1?()=>{}:console.log,preserveNodeMaps:t.preserveNodeMaps!==!1,programs:Array.isArray(t.programs)?t.programs:null,projects:new Map,projectService:t.projectService||t.project&&t.projectService!==!1&&(void 0).env.TYPESCRIPT_ESLINT_PROJECT_SERVICE==="true"?f4(t.projectService,{jsDocParsingMode:c,tsconfigRootDir:f}):void 0,setExternalModuleIndicator:t.sourceType==="module"||t.sourceType==null&&k===Cn.Mjs||t.sourceType==null&&k===Cn.Mts?y=>{y.externalModuleIndicator=!0}:void 0,singleRun:_,suppressDeprecatedPropertyWarnings:t.suppressDeprecatedPropertyWarnings??!0,tokens:t.tokens===!0?[]:null,tsconfigMatchCache:l4??(l4=new Xh(_?"Infinity":t.cacheLifetime?.glob??void 0)),tsconfigRootDir:f};if(W.projectService&&t.project&&(void 0).env.TYPESCRIPT_ESLINT_IGNORE_PROJECT_AND_PROJECT_SERVICE_ERROR!=="true")throw new Error('Enabling "project" does nothing when "projectService" is enabled. You can remove the "project" setting.');if(W.debugLevel.size>0){let y=[];W.debugLevel.has("typescript-eslint")&&y.push("typescript-eslint:*"),(W.debugLevel.has("eslint")||ad.default.enabled("eslint:*,-eslint:code-path"))&&y.push("eslint:*,-eslint:code-path"),ad.default.enable(y.join(","))}if(Array.isArray(t.programs)){if(!t.programs.length)throw new Error("You have set parserOptions.programs to an empty array. This will cause all files to not be found in existing programs. Either provide one or more existing TypeScript Program instances in the array, or remove the parserOptions.programs setting.");c4("parserOptions.programs was provided, so parserOptions.project will be ignored.")}return!W.programs&&!W.projectService&&(W.projects=new Map),t.jsDocParsingMode==null&&W.projects.size===0&&W.programs==null&&W.projectService==null&&(W.jsDocParsingMode=k_.ParseNone),Kh(W,h),W}function u4(e){return Ul(e)?e.getFullText(e):typeof e=="string"?e:String(e)}function p4(e){return e?"estree.tsx":"estree.ts"}function f4(e,t){let a=typeof e=="object"?e:{};return Hh(a.allowDefaultProject),Zh??(Zh=(0,_4.createProjectService)({options:a,...t})),Zh}var y4={default:Na},Ex=(0,y4.default)("typescript-eslint:typescript-estree:parser");function t0(e,t){let{ast:a}=g4(e,t,!1);return a}function g4(e,t,a){let _=e0(e,t);if(t?.errorOnTypeScriptSyntacticAndSemanticIssues)throw new Error('"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()');let f=Gh(_),{astMaps:h,estree:T}=zh(f,_,a);return{ast:T,esTreeNodeToTSNodeMap:h.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:h.tsNodeToESTreeNodeMap}}function b4(e,t){let a=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(a,t)}var n0=b4;function r0(e){let t=[];for(let a of e)try{return a()}catch(_){t.push(_)}throw Object.assign(new Error("All combinations failed"),{errors:t})}var v4=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let a=this[t];if(e(a,t,this))return a}},T4=Ia("findLast",function(){if(Array.isArray(this))return v4}),i0=T4;function x4(e){return this[e<0?this.length+e:e]}var S4=Ia("at",function(){if(Array.isArray(this)||typeof this=="string")return x4}),a0=S4;function tr(e){let t=e.range?.[0]??e.start,a=(e.declaration?.decorators??e.decorators)?.[0];return a?Math.min(tr(a),t):t}function Un(e){return e.range?.[1]??e.end}function w4(e){let t=new Set(e);return a=>t.has(a?.type)}var $a=w4;var k4=$a(["Block","CommentBlock","MultiLine"]),Qa=k4;var E4=$a(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),s0=E4;var sd=new WeakMap;function A4(e){return sd.has(e)||sd.set(e,Qa(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)),sd.get(e)}var _0=A4;function C4(e){if(!Qa(e))return!1;let t=`*${e.value}*`.split(` +`);return t.length>1&&t.every(a=>a.trimStart()[0]==="*")}var _d=new WeakMap;function D4(e){return _d.has(e)||_d.set(e,C4(e)),_d.get(e)}var od=D4;function P4(e){if(e.length<2)return;let t;for(let a=e.length-1;a>=0;a--){let _=e[a];if(t&&Un(_)===tr(t)&&od(_)&&od(t)&&(e.splice(a+1,1),_.value+="*//*"+t.value,_.range=[tr(_),Un(t)]),!s0(_)&&!Qa(_))throw new TypeError(`Unknown comment type: "${_.type}".`);t=_}}var o0=P4;function N4(e){return e!==null&&typeof e=="object"}var c0=N4;var E_=null;function A_(e){if(E_!==null&&typeof E_.property){let t=E_;return E_=A_.prototype=null,t}return E_=A_.prototype=e??Object.create(null),new A_}var I4=10;for(let e=0;e<=I4;e++)A_();function cd(e){return A_(e)}function O4(e,t="type"){cd(e);function a(_){let f=_[t],h=e[f];if(!Array.isArray(h))throw Object.assign(new Error(`Missing visitor keys for '${f}'.`),{node:_});return h}return a}var l0=O4;var w=[["decorators","key","typeAnnotation","value"],[],["elementType"],["expression"],["expression","typeAnnotation"],["left","right"],["argument"],["directives","body"],["label"],["callee","typeArguments","arguments"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body","superTypeParameters"],["id","typeParameters"],["decorators","key","typeParameters","params","returnType","body"],["decorators","variance","key","typeAnnotation","value"],["name","typeAnnotation"],["test","consequent","alternate"],["checkType","extendsType","trueType","falseType"],["value"],["id","body"],["declaration","specifiers","source","attributes"],["id"],["id","typeParameters","extends","body"],["typeAnnotation"],["id","typeParameters","right"],["body","test"],["members"],["id","init"],["exported"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["id","params","body","typeParameters","returnType"],["key","value"],["local"],["objectType","indexType"],["typeParameter"],["types"],["node"],["object","property"],["argument","cases"],["pattern","body","guard"],["literal"],["decorators","key","value"],["expressions"],["qualification","id"],["decorators","key","typeAnnotation"],["typeParameters","params","returnType"],["expression","typeArguments"],["params"],["parameterName","typeAnnotation"]],u0={AccessorProperty:w[0],AnyTypeAnnotation:w[1],ArgumentPlaceholder:w[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:w[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:w[3],AsExpression:w[4],AssignmentExpression:w[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:w[6],BigIntLiteral:w[1],BigIntLiteralTypeAnnotation:w[1],BigIntTypeAnnotation:w[1],BinaryExpression:w[5],BindExpression:["object","callee"],BlockStatement:w[7],BooleanLiteral:w[1],BooleanLiteralTypeAnnotation:w[1],BooleanTypeAnnotation:w[1],BreakStatement:w[8],CallExpression:w[9],CatchClause:["param","body"],ChainExpression:w[3],ClassAccessorProperty:w[0],ClassBody:w[10],ClassDeclaration:w[11],ClassExpression:w[11],ClassImplements:w[12],ClassMethod:w[13],ClassPrivateMethod:w[13],ClassPrivateProperty:w[14],ClassProperty:w[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:w[15],ConditionalExpression:w[16],ConditionalTypeAnnotation:w[17],ContinueStatement:w[8],DebuggerStatement:w[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:w[18],DeclareEnum:w[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:w[20],DeclareFunction:["id","predicate"],DeclareHook:w[21],DeclareInterface:w[22],DeclareModule:w[19],DeclareModuleExports:w[23],DeclareNamespace:w[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:w[24],DeclareVariable:w[21],Decorator:w[3],Directive:w[18],DirectiveLiteral:w[1],DoExpression:w[10],DoWhileStatement:w[25],EmptyStatement:w[1],EmptyTypeAnnotation:w[1],EnumBigIntBody:w[26],EnumBigIntMember:w[27],EnumBooleanBody:w[26],EnumBooleanMember:w[27],EnumDeclaration:w[19],EnumDefaultedMember:w[21],EnumNumberBody:w[26],EnumNumberMember:w[27],EnumStringBody:w[26],EnumStringMember:w[27],EnumSymbolBody:w[26],ExistsTypeAnnotation:w[1],ExperimentalRestProperty:w[6],ExperimentalSpreadProperty:w[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:w[28],ExportNamedDeclaration:w[20],ExportNamespaceSpecifier:w[28],ExportSpecifier:["local","exported"],ExpressionStatement:w[3],File:["program"],ForInStatement:w[29],ForOfStatement:w[29],ForStatement:["init","test","update","body"],FunctionDeclaration:w[30],FunctionExpression:w[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:w[15],GenericTypeAnnotation:w[12],HookDeclaration:w[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:w[16],ImportAttribute:w[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:w[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:w[33],ImportSpecifier:["imported","local"],IndexedAccessType:w[34],InferredPredicate:w[1],InferTypeAnnotation:w[35],InterfaceDeclaration:w[22],InterfaceExtends:w[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:w[1],IntersectionTypeAnnotation:w[36],JsExpressionRoot:w[37],JsonRoot:w[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:w[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:w[1],JSXExpressionContainer:w[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:w[1],JSXMemberExpression:w[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:w[1],JSXSpreadAttribute:w[6],JSXSpreadChild:w[3],JSXText:w[1],KeyofTypeAnnotation:w[6],LabeledStatement:["label","body"],Literal:w[1],LogicalExpression:w[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:w[21],MatchExpression:w[39],MatchExpressionCase:w[40],MatchIdentifierPattern:w[21],MatchLiteralPattern:w[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:w[6],MatchStatement:w[39],MatchStatementCase:w[40],MatchUnaryPattern:w[6],MatchWildcardPattern:w[1],MemberExpression:w[38],MetaProperty:["meta","property"],MethodDefinition:w[42],MixedTypeAnnotation:w[1],ModuleExpression:w[10],NeverTypeAnnotation:w[1],NewExpression:w[9],NGChainedExpression:w[43],NGEmptyExpression:w[1],NGMicrosyntax:w[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:w[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:w[32],NGPipeExpression:["left","right","arguments"],NGRoot:w[37],NullableTypeAnnotation:w[23],NullLiteral:w[1],NullLiteralTypeAnnotation:w[1],NumberLiteralTypeAnnotation:w[1],NumberTypeAnnotation:w[1],NumericLiteral:w[1],ObjectExpression:["properties"],ObjectMethod:w[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:w[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:w[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:w[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:w[9],OptionalIndexedAccessType:w[34],OptionalMemberExpression:w[38],ParenthesizedExpression:w[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:w[1],PipelineTopicExpression:w[3],Placeholder:w[1],PrivateIdentifier:w[1],PrivateName:w[21],Program:w[7],Property:w[32],PropertyDefinition:w[14],QualifiedTypeIdentifier:w[44],QualifiedTypeofIdentifier:w[44],RegExpLiteral:w[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:w[6],SatisfiesExpression:w[4],SequenceExpression:w[43],SpreadElement:w[6],StaticBlock:w[10],StringLiteral:w[1],StringLiteralTypeAnnotation:w[1],StringTypeAnnotation:w[1],Super:w[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:w[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:w[1],TemplateLiteral:["quasis","expressions"],ThisExpression:w[1],ThisTypeAnnotation:w[1],ThrowStatement:w[6],TopicReference:w[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:w[45],TSAbstractKeyword:w[1],TSAbstractMethodDefinition:w[32],TSAbstractPropertyDefinition:w[45],TSAnyKeyword:w[1],TSArrayType:w[2],TSAsExpression:w[4],TSAsyncKeyword:w[1],TSBigIntKeyword:w[1],TSBooleanKeyword:w[1],TSCallSignatureDeclaration:w[46],TSClassImplements:w[47],TSConditionalType:w[17],TSConstructorType:w[46],TSConstructSignatureDeclaration:w[46],TSDeclareFunction:w[31],TSDeclareKeyword:w[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:w[26],TSEnumDeclaration:w[19],TSEnumMember:["id","initializer"],TSExportAssignment:w[3],TSExportKeyword:w[1],TSExternalModuleReference:w[3],TSFunctionType:w[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:w[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:w[35],TSInstantiationExpression:w[47],TSInterfaceBody:w[10],TSInterfaceDeclaration:w[22],TSInterfaceHeritage:w[47],TSIntersectionType:w[36],TSIntrinsicKeyword:w[1],TSJSDocAllType:w[1],TSJSDocNonNullableType:w[23],TSJSDocNullableType:w[23],TSJSDocUnknownType:w[1],TSLiteralType:w[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:w[10],TSModuleDeclaration:w[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:w[21],TSNeverKeyword:w[1],TSNonNullExpression:w[3],TSNullKeyword:w[1],TSNumberKeyword:w[1],TSObjectKeyword:w[1],TSOptionalType:w[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:w[23],TSPrivateKeyword:w[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:w[1],TSPublicKeyword:w[1],TSQualifiedName:w[5],TSReadonlyKeyword:w[1],TSRestType:w[23],TSSatisfiesExpression:w[4],TSStaticKeyword:w[1],TSStringKeyword:w[1],TSSymbolKeyword:w[1],TSTemplateLiteralType:["quasis","types"],TSThisType:w[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:w[23],TSTypeAssertion:w[4],TSTypeLiteral:w[26],TSTypeOperator:w[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:w[48],TSTypeParameterInstantiation:w[48],TSTypePredicate:w[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:w[1],TSUnionType:w[36],TSUnknownKeyword:w[1],TSVoidKeyword:w[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:w[24],TypeAnnotation:w[23],TypeCastExpression:w[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:w[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:w[48],TypeParameterInstantiation:w[48],TypePredicate:w[49],UnaryExpression:w[6],UndefinedTypeAnnotation:w[1],UnionTypeAnnotation:w[36],UnknownTypeAnnotation:w[1],UpdateExpression:w[6],V8IntrinsicIdentifier:w[1],VariableDeclaration:["declarations"],VariableDeclarator:w[27],Variance:w[1],VoidPattern:w[1],VoidTypeAnnotation:w[1],WhileStatement:w[25],WithStatement:["object","body"],YieldExpression:w[6]};var M4=l0(u0),p0=M4;function Bl(e,t){if(!c0(e))return e;if(Array.isArray(e)){for(let _=0;_D<=y);G=E&&_.slice(E,y).trim().length===0}return G?void 0:(W.extra={...W.extra,parenthesized:!0},W)}case"TemplateLiteral":if(c.expressions.length!==c.quasis.length-1)throw new Error("Malformed template literal.");break;case"TemplateElement":if(a==="flow"||a==="hermes"||a==="espree"||a==="typescript"||h){let W=tr(c)+1,y=Un(c)-(c.tail?1:2);c.range=[W,y]}break;case"VariableDeclaration":{let W=a0(0,c.declarations,-1);W?.init&&_[Un(W)]!==";"&&(c.range=[tr(c),Un(W)]);break}case"TSParenthesizedType":return c.typeAnnotation;case"TopicReference":e.extra={...e.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(c.types.length===1)return c.types[0];break;case"ImportExpression":a==="hermes"&&c.attributes&&!c.options&&(c.options=c.attributes);break}},onLeave(c){switch(c.type){case"LogicalExpression":if(d0(c))return ld(c);break;case"TSImportType":!c.source&&c.argument.type==="TSLiteralType"&&(c.source=c.argument.literal,delete c.argument);break}}}),e}function d0(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function ld(e){return d0(e)?ld({type:"LogicalExpression",operator:e.operator,left:ld({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[tr(e.left),Un(e.right.left)]}),right:e.right.right,range:[tr(e),Un(e)]}):e}var m0=L4;var J4=/\*\/$/,j4=/^\/\*\*?/,R4=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,U4=/(^|\s+)\/\/([^\n\r]*)/g,h0=/^(\r?\n)+/,B4=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,y0=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,q4=/(\r?\n|^) *\* ?/g,F4=[];function g0(e){let t=e.match(R4);return t?t[0].trimStart():""}function b0(e){e=Wr(0,e.replace(j4,"").replace(J4,""),q4,"$1");let a="";for(;a!==e;)a=e,e=Wr(0,e,B4,` +$1 $2 +`);e=e.replace(h0,"").trimEnd();let _=Object.create(null),f=Wr(0,e,y0,"").replace(h0,"").trimEnd(),h;for(;h=y0.exec(e);){let T=Wr(0,h[2],U4,"");if(typeof _[h[1]]=="string"||Array.isArray(_[h[1]])){let k=_[h[1]];_[h[1]]=[...F4,...Array.isArray(k)?k:[k],T]}else _[h[1]]=T}return{comments:f,pragmas:_}}var v0=["noformat","noprettier"],T0=["format","prettier"];function z4(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` +`);return t===-1?e:e.slice(0,t)}var x0=z4;function S0(e){let t=x0(e);t&&(e=e.slice(t.length+1));let a=g0(e),{pragmas:_,comments:f}=b0(a);return{shebang:t,text:e,pragmas:_,comments:f}}function w0(e){let{pragmas:t}=S0(e);return T0.some(a=>Object.prototype.hasOwnProperty.call(t,a))}function k0(e){let{pragmas:t}=S0(e);return v0.some(a=>Object.prototype.hasOwnProperty.call(t,a))}function V4(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:w0,hasIgnorePragma:k0,locStart:tr,locEnd:Un,...e}}var E0=V4;var A0=/^[^"'`]*<\/|^[^/]{2}.*\/>/mu;function W4(e){return e.charAt(0)==="#"&&e.charAt(1)==="!"?"//"+e.slice(2):e}var C0=W4;var D0="module";var P0="commonjs",N0=[D0,P0];function I0(e){if(typeof e=="string"){if(e=e.toLowerCase(),/\.(?:mjs|mts)$/iu.test(e))return D0;if(/\.(?:cjs|cts)$/iu.test(e))return P0}}var G4={loc:!0,range:!0,comment:!0,tokens:!1,loggerFn:!1,project:!1,jsDocParsingMode:"none",suppressDeprecatedPropertyWarnings:!0};function Y4(e){let{message:t,location:a}=e;if(!a)return e;let{start:_,end:f}=a;return n0(t,{loc:{start:{line:_.line,column:_.column+1},end:{line:f.line,column:f.column+1}},cause:e})}var H4=e=>e&&/\.(?:js|mjs|cjs|jsx|ts|mts|cts|tsx)$/iu.test(e);function X4(e,t){let a=[{...G4,filePath:t}],_=I0(t);if(_?a=a.map(h=>({...h,sourceType:_})):a=N0.flatMap(h=>a.map(T=>({...T,sourceType:h}))),H4(t))return a;let f=A0.test(e);return[f,!f].flatMap(h=>a.map(T=>({...T,jsx:h})))}function $4(e,t){let a=t?.filepath;typeof a!="string"&&(a=void 0);let _=C0(e),f=X4(e,a),h;try{h=r0(f.map(T=>()=>t0(_,T)))}catch({errors:[T]}){throw Y4(T)}return m0(h,{parser:"typescript",text:e})}var Q4=E0($4);return ay(K4);}); \ No newline at end of file diff --git a/node_modules/prettier/plugins/typescript.mjs b/node_modules/prettier/plugins/typescript.mjs new file mode 100644 index 0000000000000000000000000000000000000000..88cf25bd297bbf86ae994df53e376ae28d444a51 --- /dev/null +++ b/node_modules/prettier/plugins/typescript.mjs @@ -0,0 +1,21 @@ +var ty=Object.defineProperty;var hd=(e,t)=>{for(var a in t)ty(e,a,{get:t[a],enumerable:!0})};var I0={};hd(I0,{parsers:()=>ld});var ld={};hd(ld,{typescript:()=>Y4});var ny=()=>()=>{},Na=ny;var Ia=(e,t)=>(a,_,...f)=>a|1&&_==null?void 0:(t.call(_)??_[e]).apply(_,f);var ry=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},iy=Ia("replaceAll",function(){if(typeof this=="string")return ry}),Wr=iy;var gm="5.9";var vt=[],ay=new Map;function e_(e){return e!==void 0?e.length:0}function jn(e,t){if(e!==void 0)for(let a=0;a0;return!1}function Yp(e,t){return t===void 0||t.length===0?e:e===void 0||e.length===0?t:[...e,...t]}function ly(e,t,a=Xp){if(e===void 0||t===void 0)return e===t;if(e.length!==t.length)return!1;for(let _=0;_e?.at(t):(e,t)=>{if(e!==void 0&&(t=Np(e,t),t>1),c=a(e[k],k);switch(_(c,t)){case-1:h=k+1;break;case 0:return k;case 1:T=k-1;break}}return~h}function gy(e,t,a,_,f){if(e&&e.length>0){let h=e.length;if(h>0){let T=_===void 0||_<0?0:_,k=f===void 0||T+f>h-1?h-1:T+f,c;for(arguments.length<=2?(c=e[T],T++):c=a;T<=k;)c=t(c,e[T],T),T++;return c}}return a}var xm=Object.prototype.hasOwnProperty;function Dr(e,t){return xm.call(e,t)}function by(e){let t=[];for(let a in e)xm.call(e,a)&&t.push(a);return t}function vy(){let e=new Map;return e.add=Ty,e.remove=xy,e}function Ty(e,t){let a=this.get(e);return a!==void 0?a.push(t):this.set(e,a=[t]),a}function xy(e,t){let a=this.get(e);a!==void 0&&(Ny(a,t),a.length||this.delete(e))}function $r(e){return Array.isArray(e)}function bp(e){return $r(e)?e:[e]}function Sy(e,t){return e!==void 0&&t(e)?e:void 0}function Er(e,t){return e!==void 0&&t(e)?e:q.fail(`Invalid cast. The supplied value ${e} did not pass the test '${q.getFunctionName(t)}'.`)}function Va(e){}function wy(){return!0}function bt(e){return e}function gd(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function Kn(e){let t=new Map;return a=>{let _=`${typeof a}:${a}`,f=t.get(_);return f===void 0&&!t.has(_)&&(f=e(a),t.set(_,f)),f}}function Xp(e,t){return e===t}function $p(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function ky(e,t){return Xp(e,t)}function Ey(e,t){return e===t?0:e===void 0?-1:t===void 0?1:ea?k-a:1),y=Math.floor(t.length>a+k?a+k:t.length);f[0]=k;let G=k;for(let D=1;Da)return;let E=_;_=f,f=E}let T=_[t.length];return T>a?void 0:T}function Dy(e,t,a){let _=e.length-t.length;return _>=0&&(a?$p(e.slice(_),t):e.indexOf(t,_)===_)}function Py(e,t){e[t]=e[e.length-1],e.pop()}function Ny(e,t){return Iy(e,a=>a===t)}function Iy(e,t){for(let a=0;a{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function a(L){return e.currentLogLevel<=L}e.shouldLog=a;function _(L,se){e.loggingHost&&a(L)&&e.loggingHost.log(L,se)}function f(L){_(3,L)}e.log=f,(L=>{function se(Qe){_(1,Qe)}L.error=se;function fe(Qe){_(2,Qe)}L.warn=fe;function Te(Qe){_(3,Qe)}L.log=Te;function He(Qe){_(4,Qe)}L.trace=He})(f=e.log||(e.log={}));let h={};function T(){return t}e.getAssertionLevel=T;function k(L){let se=t;if(t=L,L>se)for(let fe of by(h)){let Te=h[fe];Te!==void 0&&e[fe]!==Te.assertion&&L>=Te.level&&(e[fe]=Te,h[fe]=void 0)}}e.setAssertionLevel=k;function c(L){return t>=L}e.shouldAssert=c;function W(L,se){return c(L)?!0:(h[se]={level:L,assertion:e[se]},e[se]=Va,!1)}function y(L,se){debugger;let fe=new Error(L?`Debug Failure. ${L}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(fe,se||y),fe}e.fail=y;function G(L,se,fe){return y(`${se||"Unexpected node."}\r +Node ${Ot(L.kind)} was unexpected.`,fe||G)}e.failBadSyntaxKind=G;function E(L,se,fe,Te){L||(se=se?`False expression: ${se}`:"False expression.",fe&&(se+=`\r +Verbose Debug Information: `+(typeof fe=="string"?fe:fe())),y(se,Te||E))}e.assert=E;function D(L,se,fe,Te,He){if(L!==se){let Qe=fe?Te?`${fe} ${Te}`:fe:"";y(`Expected ${L} === ${se}. ${Qe}`,He||D)}}e.assertEqual=D;function R(L,se,fe,Te){L>=se&&y(`Expected ${L} < ${se}. ${fe||""}`,Te||R)}e.assertLessThan=R;function ue(L,se,fe){L>se&&y(`Expected ${L} <= ${se}`,fe||ue)}e.assertLessThanOrEqual=ue;function be(L,se,fe){L= ${se}`,fe||be)}e.assertGreaterThanOrEqual=be;function he(L,se,fe){L==null&&y(se,fe||he)}e.assertIsDefined=he;function de(L,se,fe){return he(L,se,fe||de),L}e.checkDefined=de;function O(L,se,fe){for(let Te of L)he(Te,se,fe||O)}e.assertEachIsDefined=O;function ae(L,se,fe){return O(L,se,fe||ae),L}e.checkEachDefined=ae;function Oe(L,se="Illegal value:",fe){let Te=typeof L=="object"&&Dr(L,"kind")&&Dr(L,"pos")?"SyntaxKind: "+Ot(L.kind):JSON.stringify(L);return y(`${se} ${Te}`,fe||Oe)}e.assertNever=Oe;function V(L,se,fe,Te){W(1,"assertEachNode")&&E(se===void 0||Gp(L,se),fe||"Unexpected node.",()=>`Node array did not pass test '${hn(se)}'.`,Te||V)}e.assertEachNode=V;function oe(L,se,fe,Te){W(1,"assertNode")&&E(L!==void 0&&(se===void 0||se(L)),fe||"Unexpected node.",()=>`Node ${Ot(L?.kind)} did not pass test '${hn(se)}'.`,Te||oe)}e.assertNode=oe;function Y(L,se,fe,Te){W(1,"assertNotNode")&&E(L===void 0||se===void 0||!se(L),fe||"Unexpected node.",()=>`Node ${Ot(L.kind)} should not have passed test '${hn(se)}'.`,Te||Y)}e.assertNotNode=Y;function ft(L,se,fe,Te){W(1,"assertOptionalNode")&&E(se===void 0||L===void 0||se(L),fe||"Unexpected node.",()=>`Node ${Ot(L?.kind)} did not pass test '${hn(se)}'.`,Te||ft)}e.assertOptionalNode=ft;function nr(L,se,fe,Te){W(1,"assertOptionalToken")&&E(se===void 0||L===void 0||L.kind===se,fe||"Unexpected node.",()=>`Node ${Ot(L?.kind)} was not a '${Ot(se)}' token.`,Te||nr)}e.assertOptionalToken=nr;function mn(L,se,fe){W(1,"assertMissingNode")&&E(L===void 0,se||"Unexpected node.",()=>`Node ${Ot(L.kind)} was unexpected'.`,fe||mn)}e.assertMissingNode=mn;function rr(L){}e.type=rr;function hn(L){if(typeof L!="function")return"";if(Dr(L,"name"))return L.name;{let se=Function.prototype.toString.call(L),fe=/^function\s+([\w$]+)\s*\(/.exec(se);return fe?fe[1]:""}}e.getFunctionName=hn;function Dn(L){return`{ name: ${l_(L.escapedName)}; flags: ${ot(L.flags)}; declarations: ${Pp(L.declarations,se=>Ot(se.kind))} }`}e.formatSymbol=Dn;function We(L=0,se,fe){let Te=Ir(se);if(L===0)return Te.length>0&&Te[0][0]===0?Te[0][1]:"0";if(fe){let He=[],Qe=L;for(let[st,Ct]of Te){if(st>L)break;st!==0&&st&L&&(He.push(Ct),Qe&=~st)}if(Qe===0)return He.join("|")}else for(let[He,Qe]of Te)if(He===L)return Qe;return L.toString()}e.formatEnum=We;let ir=new Map;function Ir(L){let se=ir.get(L);if(se)return se;let fe=[];for(let He in L){let Qe=L[He];typeof Qe=="number"&&fe.push([Qe,He])}let Te=fy(fe,(He,Qe)=>Sm(He[0],Qe[0]));return ir.set(L,Te),Te}function Ot(L){return We(L,Ae,!1)}e.formatSyntaxKind=Ot;function Bn(L){return We(L,Cm,!1)}e.formatSnippetKind=Bn;function Pn(L){return We(L,Pr,!1)}e.formatScriptKind=Pn;function Mt(L){return We(L,sn,!0)}e.formatNodeFlags=Mt;function ht(L){return We(L,km,!0)}e.formatNodeCheckFlags=ht;function $e(L){return We(L,Qp,!0)}e.formatModifierFlags=$e;function qn(L){return We(L,Am,!0)}e.formatTransformFlags=qn;function $t(L){return We(L,Dm,!0)}e.formatEmitFlags=$t;function ot(L){return We(L,Kp,!0)}e.formatSymbolFlags=ot;function at(L){return We(L,en,!0)}e.formatTypeFlags=at;function Bt(L){return We(L,Em,!0)}e.formatSignatureFlags=Bt;function Lt(L){return We(L,Zp,!0)}e.formatObjectFlags=Lt;function ct(L){return We(L,Op,!0)}e.formatFlowFlags=ct;function ar(L){return We(L,wm,!0)}e.formatRelationComparisonResult=ar;function dt(L){return We(L,CheckMode,!0)}e.formatCheckMode=dt;function yn(L){return We(L,SignatureCheckMode,!0)}e.formatSignatureCheckMode=yn;function yt(L){return We(L,TypeFacts,!0)}e.formatTypeFacts=yt;let _n=!1,tt;function qt(L){"__debugFlowFlags"in L||Object.defineProperties(L,{__tsDebuggerDisplay:{value(){let se=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",fe=this.flags&-2048;return`${se}${fe?` (${ct(fe)})`:""}`}},__debugFlowFlags:{get(){return We(this.flags,Op,!0)}},__debugToString:{value(){return yr(this)}}})}function tn(L){return _n&&(typeof Object.setPrototypeOf=="function"?(tt||(tt=Object.create(Object.prototype),qt(tt)),Object.setPrototypeOf(L,tt)):qt(L)),L}e.attachFlowNodeDebugInfo=tn;let sr;function mr(L){"__tsDebuggerDisplay"in L||Object.defineProperties(L,{__tsDebuggerDisplay:{value(se){return se=String(se).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]"),`NodeArray ${se}`}}})}function hr(L){_n&&(typeof Object.setPrototypeOf=="function"?(sr||(sr=Object.create(Array.prototype),mr(sr)),Object.setPrototypeOf(L,sr)):mr(L))}e.attachNodeArrayDebugInfo=hr;function Fn(){if(_n)return;let L=new WeakMap,se=new WeakMap;Object.defineProperties(Et.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let Te=this.flags&33554432?"TransientSymbol":"Symbol",He=this.flags&-33554433;return`${Te} '${Jp(this)}'${He?` (${ot(He)})`:""}`}},__debugFlags:{get(){return ot(this.flags)}}}),Object.defineProperties(Et.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let Te=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",He=this.flags&524288?this.objectFlags&-1344:0;return`${Te}${this.symbol?` '${Jp(this.symbol)}'`:""}${He?` (${Lt(He)})`:""}`}},__debugFlags:{get(){return at(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?Lt(this.objectFlags):""}},__debugTypeToString:{value(){let Te=L.get(this);return Te===void 0&&(Te=this.checker.typeToString(this),L.set(this,Te)),Te}}}),Object.defineProperties(Et.getSignatureConstructor().prototype,{__debugFlags:{get(){return Bt(this.flags)}},__debugSignatureToString:{value(){var Te;return(Te=this.checker)==null?void 0:Te.signatureToString(this)}}});let fe=[Et.getNodeConstructor(),Et.getIdentifierConstructor(),Et.getTokenConstructor(),Et.getSourceFileConstructor()];for(let Te of fe)Dr(Te.prototype,"__debugKind")||Object.defineProperties(Te.prototype,{__tsDebuggerDisplay:{value(){return`${Ua(this)?"GeneratedIdentifier":Ke(this)?`Identifier '${An(this)}'`:gi(this)?`PrivateIdentifier '${An(this)}'`:vi(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:aa(this)?`NumericLiteral ${this.text}`:k1(this)?`BigIntLiteral ${this.text}n`:Ef(this)?"TypeParameterDeclaration":m_(this)?"ParameterDeclaration":Af(this)?"ConstructorDeclaration":Tl(this)?"GetAccessorDeclaration":y_(this)?"SetAccessorDeclaration":P1(this)?"CallSignatureDeclaration":N1(this)?"ConstructSignatureDeclaration":Cf(this)?"IndexSignatureDeclaration":I1(this)?"TypePredicateNode":Df(this)?"TypeReferenceNode":Pf(this)?"FunctionTypeNode":Nf(this)?"ConstructorTypeNode":qb(this)?"TypeQueryNode":O1(this)?"TypeLiteralNode":Fb(this)?"ArrayTypeNode":zb(this)?"TupleTypeNode":Vb(this)?"OptionalTypeNode":Wb(this)?"RestTypeNode":L1(this)?"UnionTypeNode":J1(this)?"IntersectionTypeNode":Gb(this)?"ConditionalTypeNode":Yb(this)?"InferTypeNode":j1(this)?"ParenthesizedTypeNode":Hb(this)?"ThisTypeNode":R1(this)?"TypeOperatorNode":Xb(this)?"IndexedAccessTypeNode":U1(this)?"MappedTypeNode":$b(this)?"LiteralTypeNode":M1(this)?"NamedTupleMember":Qb(this)?"ImportTypeNode":Ot(this.kind)}${this.flags?` (${Mt(this.flags)})`:""}`}},__debugKind:{get(){return Ot(this.kind)}},__debugNodeFlags:{get(){return Mt(this.flags)}},__debugModifierFlags:{get(){return $e(H2(this))}},__debugTransformFlags:{get(){return qn(this.transformFlags)}},__debugIsParseTreeNode:{get(){return gl(this)}},__debugEmitFlags:{get(){return $t(za(this))}},__debugGetText:{value(He){if(Ja(this))return"";let Qe=se.get(this);if(Qe===void 0){let st=mg(this),Ct=st&&hi(st);Qe=Ct?Od(Ct,st,He):"",se.set(this,Qe)}return Qe}}});_n=!0}e.enableDebugInfo=Fn;function zn(L){let se=L&7,fe=se===0?"in out":se===3?"[bivariant]":se===2?"in":se===1?"out":se===4?"[independent]":"";return L&8?fe+=" (unmeasurable)":L&16&&(fe+=" (unreliable)"),fe}e.formatVariance=zn;class Or{__debugToString(){var se;switch(this.kind){case 3:return((se=this.debugInfo)==null?void 0:se.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return yd(this.sources,this.targets||Pp(this.sources,()=>"any"),(fe,Te)=>`${fe.__debugTypeToString()} -> ${typeof Te=="string"?Te:Te.__debugTypeToString()}`).join(", ");case 2:return yd(this.sources,this.targets,(fe,Te)=>`${fe.__debugTypeToString()} -> ${Te().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` +`).join(` + `)} +m2: ${this.mapper2.__debugToString().split(` +`).join(` + `)}`;default:return Oe(this)}}}e.DebugTypeMapper=Or;function Vn(L){return e.isDebugging?Object.setPrototypeOf(L,Or.prototype):L}e.attachDebugPrototypeIfDebug=Vn;function Ce(L){return console.log(yr(L))}e.printControlFlowGraph=Ce;function yr(L){let se=-1;function fe(u){return u.id||(u.id=se,se--),u.id}let Te;(u=>{u.lr="\u2500",u.ud="\u2502",u.dr="\u256D",u.dl="\u256E",u.ul="\u256F",u.ur="\u2570",u.udr="\u251C",u.udl="\u2524",u.dlr="\u252C",u.ulr="\u2534",u.udlr="\u256B"})(Te||(Te={}));let He;(u=>{u[u.None=0]="None",u[u.Up=1]="Up",u[u.Down=2]="Down",u[u.Left=4]="Left",u[u.Right=8]="Right",u[u.UpDown=3]="UpDown",u[u.LeftRight=12]="LeftRight",u[u.UpLeft=5]="UpLeft",u[u.UpRight=9]="UpRight",u[u.DownLeft=6]="DownLeft",u[u.DownRight=10]="DownRight",u[u.UpDownLeft=7]="UpDownLeft",u[u.UpDownRight=11]="UpDownRight",u[u.UpLeftRight=13]="UpLeftRight",u[u.DownLeftRight=14]="DownLeftRight",u[u.UpDownLeftRight=15]="UpDownLeftRight",u[u.NoChildren=16]="NoChildren"})(He||(He={}));let Qe=2032,st=882,Ct=Object.create(null),Tt=[],lt=[],Mr=Se(L,new Set);for(let u of Tt)u.text=rt(u.flowNode,u.circular),me(u);let gr=Ve(Mr),Nn=Ze(gr);return Ye(Mr,0),on();function Wn(u){return!!(u.flags&128)}function wi(u){return!!(u.flags&12)&&!!u.antecedent}function U(u){return!!(u.flags&Qe)}function K(u){return!!(u.flags&st)}function Z(u){let Ie=[];for(let Me of u.edges)Me.source===u&&Ie.push(Me.target);return Ie}function xe(u){let Ie=[];for(let Me of u.edges)Me.target===u&&Ie.push(Me.source);return Ie}function Se(u,Ie){let Me=fe(u),B=Ct[Me];if(B&&Ie.has(u))return B.circular=!0,B={id:-1,flowNode:u,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},Tt.push(B),B;if(Ie.add(u),!B)if(Ct[Me]=B={id:Me,flowNode:u,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},Tt.push(B),wi(u))for(let Be of u.antecedent)we(B,Be,Ie);else U(u)&&we(B,u.antecedent,Ie);return Ie.delete(u),B}function we(u,Ie,Me){let B=Se(Ie,Me),Be={source:u,target:B};lt.push(Be),u.edges.push(Be),B.edges.push(Be)}function me(u){if(u.level!==-1)return u.level;let Ie=0;for(let Me of xe(u))Ie=Math.max(Ie,me(Me)+1);return u.level=Ie}function Ve(u){let Ie=0;for(let Me of Z(u))Ie=Math.max(Ie,Ve(Me));return Ie+1}function Ze(u){let Ie=M(Array(u),0);for(let Me of Tt)Ie[Me.level]=Math.max(Ie[Me.level],Me.text.length);return Ie}function Ye(u,Ie){if(u.lane===-1){u.lane=Ie,u.endLane=Ie;let Me=Z(u);for(let B=0;B0&&Ie++;let Be=Me[B];Ye(Be,Ie),Be.endLane>u.endLane&&(Ie=Be.endLane)}u.endLane=Ie}}function Ee(u){if(u&2)return"Start";if(u&4)return"Branch";if(u&8)return"Loop";if(u&16)return"Assignment";if(u&32)return"True";if(u&64)return"False";if(u&128)return"SwitchClause";if(u&256)return"ArrayMutation";if(u&512)return"Call";if(u&1024)return"ReduceLabel";if(u&1)return"Unreachable";throw new Error}function gn(u){let Ie=hi(u);return Od(Ie,u,!1)}function rt(u,Ie){let Me=Ee(u.flags);if(Ie&&(Me=`${Me}#${fe(u)}`),Wn(u)){let B=[],{switchStatement:Be,clauseStart:nn,clauseEnd:ze}=u.node;for(let Xe=nn;Xeze.lane)+1,Me=M(Array(Ie),""),B=Nn.map(()=>Array(Ie)),Be=Nn.map(()=>M(Array(Ie),0));for(let ze of Tt){B[ze.level][ze.lane]=ze;let Xe=Z(ze);for(let wt=0;wt0&&(Ft|=1),wt0&&(Ft|=1),wt0?Be[ze-1][Xe]:0,wt=Xe>0?Be[ze][Xe-1]:0,Pt=Be[ze][Xe];Pt||(Dt&8&&(Pt|=12),wt&2&&(Pt|=3),Be[ze][Xe]=Pt)}for(let ze=0;ze0?u.repeat(Ie):"";let Me="";for(;Me.length{},Oy=()=>{},ll,Ae=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.DeferKeyword=166]="DeferKeyword",e[e.QualifiedName=167]="QualifiedName",e[e.ComputedPropertyName=168]="ComputedPropertyName",e[e.TypeParameter=169]="TypeParameter",e[e.Parameter=170]="Parameter",e[e.Decorator=171]="Decorator",e[e.PropertySignature=172]="PropertySignature",e[e.PropertyDeclaration=173]="PropertyDeclaration",e[e.MethodSignature=174]="MethodSignature",e[e.MethodDeclaration=175]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=176]="ClassStaticBlockDeclaration",e[e.Constructor=177]="Constructor",e[e.GetAccessor=178]="GetAccessor",e[e.SetAccessor=179]="SetAccessor",e[e.CallSignature=180]="CallSignature",e[e.ConstructSignature=181]="ConstructSignature",e[e.IndexSignature=182]="IndexSignature",e[e.TypePredicate=183]="TypePredicate",e[e.TypeReference=184]="TypeReference",e[e.FunctionType=185]="FunctionType",e[e.ConstructorType=186]="ConstructorType",e[e.TypeQuery=187]="TypeQuery",e[e.TypeLiteral=188]="TypeLiteral",e[e.ArrayType=189]="ArrayType",e[e.TupleType=190]="TupleType",e[e.OptionalType=191]="OptionalType",e[e.RestType=192]="RestType",e[e.UnionType=193]="UnionType",e[e.IntersectionType=194]="IntersectionType",e[e.ConditionalType=195]="ConditionalType",e[e.InferType=196]="InferType",e[e.ParenthesizedType=197]="ParenthesizedType",e[e.ThisType=198]="ThisType",e[e.TypeOperator=199]="TypeOperator",e[e.IndexedAccessType=200]="IndexedAccessType",e[e.MappedType=201]="MappedType",e[e.LiteralType=202]="LiteralType",e[e.NamedTupleMember=203]="NamedTupleMember",e[e.TemplateLiteralType=204]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=205]="TemplateLiteralTypeSpan",e[e.ImportType=206]="ImportType",e[e.ObjectBindingPattern=207]="ObjectBindingPattern",e[e.ArrayBindingPattern=208]="ArrayBindingPattern",e[e.BindingElement=209]="BindingElement",e[e.ArrayLiteralExpression=210]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=211]="ObjectLiteralExpression",e[e.PropertyAccessExpression=212]="PropertyAccessExpression",e[e.ElementAccessExpression=213]="ElementAccessExpression",e[e.CallExpression=214]="CallExpression",e[e.NewExpression=215]="NewExpression",e[e.TaggedTemplateExpression=216]="TaggedTemplateExpression",e[e.TypeAssertionExpression=217]="TypeAssertionExpression",e[e.ParenthesizedExpression=218]="ParenthesizedExpression",e[e.FunctionExpression=219]="FunctionExpression",e[e.ArrowFunction=220]="ArrowFunction",e[e.DeleteExpression=221]="DeleteExpression",e[e.TypeOfExpression=222]="TypeOfExpression",e[e.VoidExpression=223]="VoidExpression",e[e.AwaitExpression=224]="AwaitExpression",e[e.PrefixUnaryExpression=225]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=226]="PostfixUnaryExpression",e[e.BinaryExpression=227]="BinaryExpression",e[e.ConditionalExpression=228]="ConditionalExpression",e[e.TemplateExpression=229]="TemplateExpression",e[e.YieldExpression=230]="YieldExpression",e[e.SpreadElement=231]="SpreadElement",e[e.ClassExpression=232]="ClassExpression",e[e.OmittedExpression=233]="OmittedExpression",e[e.ExpressionWithTypeArguments=234]="ExpressionWithTypeArguments",e[e.AsExpression=235]="AsExpression",e[e.NonNullExpression=236]="NonNullExpression",e[e.MetaProperty=237]="MetaProperty",e[e.SyntheticExpression=238]="SyntheticExpression",e[e.SatisfiesExpression=239]="SatisfiesExpression",e[e.TemplateSpan=240]="TemplateSpan",e[e.SemicolonClassElement=241]="SemicolonClassElement",e[e.Block=242]="Block",e[e.EmptyStatement=243]="EmptyStatement",e[e.VariableStatement=244]="VariableStatement",e[e.ExpressionStatement=245]="ExpressionStatement",e[e.IfStatement=246]="IfStatement",e[e.DoStatement=247]="DoStatement",e[e.WhileStatement=248]="WhileStatement",e[e.ForStatement=249]="ForStatement",e[e.ForInStatement=250]="ForInStatement",e[e.ForOfStatement=251]="ForOfStatement",e[e.ContinueStatement=252]="ContinueStatement",e[e.BreakStatement=253]="BreakStatement",e[e.ReturnStatement=254]="ReturnStatement",e[e.WithStatement=255]="WithStatement",e[e.SwitchStatement=256]="SwitchStatement",e[e.LabeledStatement=257]="LabeledStatement",e[e.ThrowStatement=258]="ThrowStatement",e[e.TryStatement=259]="TryStatement",e[e.DebuggerStatement=260]="DebuggerStatement",e[e.VariableDeclaration=261]="VariableDeclaration",e[e.VariableDeclarationList=262]="VariableDeclarationList",e[e.FunctionDeclaration=263]="FunctionDeclaration",e[e.ClassDeclaration=264]="ClassDeclaration",e[e.InterfaceDeclaration=265]="InterfaceDeclaration",e[e.TypeAliasDeclaration=266]="TypeAliasDeclaration",e[e.EnumDeclaration=267]="EnumDeclaration",e[e.ModuleDeclaration=268]="ModuleDeclaration",e[e.ModuleBlock=269]="ModuleBlock",e[e.CaseBlock=270]="CaseBlock",e[e.NamespaceExportDeclaration=271]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=272]="ImportEqualsDeclaration",e[e.ImportDeclaration=273]="ImportDeclaration",e[e.ImportClause=274]="ImportClause",e[e.NamespaceImport=275]="NamespaceImport",e[e.NamedImports=276]="NamedImports",e[e.ImportSpecifier=277]="ImportSpecifier",e[e.ExportAssignment=278]="ExportAssignment",e[e.ExportDeclaration=279]="ExportDeclaration",e[e.NamedExports=280]="NamedExports",e[e.NamespaceExport=281]="NamespaceExport",e[e.ExportSpecifier=282]="ExportSpecifier",e[e.MissingDeclaration=283]="MissingDeclaration",e[e.ExternalModuleReference=284]="ExternalModuleReference",e[e.JsxElement=285]="JsxElement",e[e.JsxSelfClosingElement=286]="JsxSelfClosingElement",e[e.JsxOpeningElement=287]="JsxOpeningElement",e[e.JsxClosingElement=288]="JsxClosingElement",e[e.JsxFragment=289]="JsxFragment",e[e.JsxOpeningFragment=290]="JsxOpeningFragment",e[e.JsxClosingFragment=291]="JsxClosingFragment",e[e.JsxAttribute=292]="JsxAttribute",e[e.JsxAttributes=293]="JsxAttributes",e[e.JsxSpreadAttribute=294]="JsxSpreadAttribute",e[e.JsxExpression=295]="JsxExpression",e[e.JsxNamespacedName=296]="JsxNamespacedName",e[e.CaseClause=297]="CaseClause",e[e.DefaultClause=298]="DefaultClause",e[e.HeritageClause=299]="HeritageClause",e[e.CatchClause=300]="CatchClause",e[e.ImportAttributes=301]="ImportAttributes",e[e.ImportAttribute=302]="ImportAttribute",e[e.AssertClause=301]="AssertClause",e[e.AssertEntry=302]="AssertEntry",e[e.ImportTypeAssertionContainer=303]="ImportTypeAssertionContainer",e[e.PropertyAssignment=304]="PropertyAssignment",e[e.ShorthandPropertyAssignment=305]="ShorthandPropertyAssignment",e[e.SpreadAssignment=306]="SpreadAssignment",e[e.EnumMember=307]="EnumMember",e[e.SourceFile=308]="SourceFile",e[e.Bundle=309]="Bundle",e[e.JSDocTypeExpression=310]="JSDocTypeExpression",e[e.JSDocNameReference=311]="JSDocNameReference",e[e.JSDocMemberName=312]="JSDocMemberName",e[e.JSDocAllType=313]="JSDocAllType",e[e.JSDocUnknownType=314]="JSDocUnknownType",e[e.JSDocNullableType=315]="JSDocNullableType",e[e.JSDocNonNullableType=316]="JSDocNonNullableType",e[e.JSDocOptionalType=317]="JSDocOptionalType",e[e.JSDocFunctionType=318]="JSDocFunctionType",e[e.JSDocVariadicType=319]="JSDocVariadicType",e[e.JSDocNamepathType=320]="JSDocNamepathType",e[e.JSDoc=321]="JSDoc",e[e.JSDocComment=321]="JSDocComment",e[e.JSDocText=322]="JSDocText",e[e.JSDocTypeLiteral=323]="JSDocTypeLiteral",e[e.JSDocSignature=324]="JSDocSignature",e[e.JSDocLink=325]="JSDocLink",e[e.JSDocLinkCode=326]="JSDocLinkCode",e[e.JSDocLinkPlain=327]="JSDocLinkPlain",e[e.JSDocTag=328]="JSDocTag",e[e.JSDocAugmentsTag=329]="JSDocAugmentsTag",e[e.JSDocImplementsTag=330]="JSDocImplementsTag",e[e.JSDocAuthorTag=331]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=332]="JSDocDeprecatedTag",e[e.JSDocClassTag=333]="JSDocClassTag",e[e.JSDocPublicTag=334]="JSDocPublicTag",e[e.JSDocPrivateTag=335]="JSDocPrivateTag",e[e.JSDocProtectedTag=336]="JSDocProtectedTag",e[e.JSDocReadonlyTag=337]="JSDocReadonlyTag",e[e.JSDocOverrideTag=338]="JSDocOverrideTag",e[e.JSDocCallbackTag=339]="JSDocCallbackTag",e[e.JSDocOverloadTag=340]="JSDocOverloadTag",e[e.JSDocEnumTag=341]="JSDocEnumTag",e[e.JSDocParameterTag=342]="JSDocParameterTag",e[e.JSDocReturnTag=343]="JSDocReturnTag",e[e.JSDocThisTag=344]="JSDocThisTag",e[e.JSDocTypeTag=345]="JSDocTypeTag",e[e.JSDocTemplateTag=346]="JSDocTemplateTag",e[e.JSDocTypedefTag=347]="JSDocTypedefTag",e[e.JSDocSeeTag=348]="JSDocSeeTag",e[e.JSDocPropertyTag=349]="JSDocPropertyTag",e[e.JSDocThrowsTag=350]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=351]="JSDocSatisfiesTag",e[e.JSDocImportTag=352]="JSDocImportTag",e[e.SyntaxList=353]="SyntaxList",e[e.NotEmittedStatement=354]="NotEmittedStatement",e[e.NotEmittedTypeElement=355]="NotEmittedTypeElement",e[e.PartiallyEmittedExpression=356]="PartiallyEmittedExpression",e[e.CommaListExpression=357]="CommaListExpression",e[e.SyntheticReferenceExpression=358]="SyntheticReferenceExpression",e[e.Count=359]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=166]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=183]="FirstTypeNode",e[e.LastTypeNode=206]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=166]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=244]="FirstStatement",e[e.LastStatement=260]="LastStatement",e[e.FirstNode=167]="FirstNode",e[e.FirstJSDocNode=310]="FirstJSDocNode",e[e.LastJSDocNode=352]="LastJSDocNode",e[e.FirstJSDocTagNode=328]="FirstJSDocTagNode",e[e.LastJSDocTagNode=352]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=166]="LastContextualKeyword",e))(Ae||{}),sn=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(sn||{}),Qp=(e=>(e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e))(Qp||{});var wm=(e=>(e[e.None=0]="None",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e[e.ComplexityOverflow=32]="ComplexityOverflow",e[e.StackDepthOverflow=64]="StackDepthOverflow",e[e.Overflow=96]="Overflow",e))(wm||{});var Op=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(Op||{});var Kp=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=-1]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(Kp||{});var km=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e[e.PartiallyTypeChecked=8388608]="PartiallyTypeChecked",e[e.LazyFlags=539358128]="LazyFlags",e))(km||{}),en=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.Reserved1=536870912]="Reserved1",e[e.Reserved2=1073741824]="Reserved2",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.IncludesError=1073741824]="IncludesError",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(en||{}),Zp=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.SingleSignatureType=134217728]="SingleSignatureType",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e[e.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",e))(Zp||{});var Em=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(Em||{});var Pr=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(Pr||{}),g_=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ES2023=10]="ES2023",e[e.ES2024=11]="ES2024",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(g_||{}),wl=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(wl||{});var Cn=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(Cn||{}),Am=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(Am||{}),Cm=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(Cm||{}),Dm=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(Dm||{});var $s={Classes:2,ForOf:2,Generators:2,Iteration:2,SpreadElements:2,RestElements:2,TaggedTemplates:2,DestructuringAssignment:2,BindingPatterns:2,ArrowFunctions:2,BlockScopedVariables:2,ObjectAssign:2,RegularExpressionFlagsUnicode:2,RegularExpressionFlagsSticky:2,Exponentiation:3,AsyncFunctions:4,ForAwaitOf:5,AsyncGenerators:5,AsyncIteration:5,ObjectSpreadRest:5,RegularExpressionFlagsDotAll:5,BindinglessCatch:6,BigInt:7,NullishCoalesce:7,OptionalChaining:7,LogicalAssignment:8,TopLevelAwait:9,ClassFields:9,PrivateNamesAndClassStaticBlocks:9,RegularExpressionFlagsHasIndices:9,ShebangComments:10,RegularExpressionFlagsUnicodeSets:11,UsingAndAwaitUsing:99,ClassAndClassElementDecorators:99};var Pm={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0},{name:"preserve",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},Ya=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(Ya||{});var Xr="/",My="\\",vd="://",Ly=/\\/g;function Jy(e){return e===47||e===92}function jy(e,t){return e.length>t.length&&Dy(e,t)}function ef(e){return e.length>0&&Jy(e.charCodeAt(e.length-1))}function Td(e){return e>=97&&e<=122||e>=65&&e<=90}function Ry(e,t){let a=e.charCodeAt(t);if(a===58)return t+1;if(a===37&&e.charCodeAt(t+1)===51){let _=e.charCodeAt(t+2);if(_===97||_===65)return t+3}return-1}function Uy(e){if(!e)return 0;let t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;let _=e.indexOf(t===47?Xr:My,2);return _<0?e.length:_+1}if(Td(t)&&e.charCodeAt(1)===58){let _=e.charCodeAt(2);if(_===47||_===92)return 3;if(e.length===2)return 2}let a=e.indexOf(vd);if(a!==-1){let _=a+vd.length,f=e.indexOf(Xr,_);if(f!==-1){let h=e.slice(0,a),T=e.slice(_,f);if(h==="file"&&(T===""||T==="localhost")&&Td(e.charCodeAt(f+1))){let k=Ry(e,f+2);if(k!==-1){if(e.charCodeAt(k)===47)return~(k+1);if(k===e.length)return~k}}return~(f+1)}return~e.length}return 0}function o_(e){let t=Uy(e);return t<0?~t:t}function Nm(e,t,a){if(e=c_(e),o_(e)===e.length)return"";e=hl(e);let f=e.slice(Math.max(o_(e),e.lastIndexOf(Xr)+1)),h=t!==void 0&&a!==void 0?Im(f,t,a):void 0;return h?f.slice(0,f.length-h.length):f}function xd(e,t,a){if(ml(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){let _=e.slice(e.length-t.length);if(a(_,t))return _}}function By(e,t,a){if(typeof t=="string")return xd(e,t,a)||"";for(let _ of t){let f=xd(e,_,a);if(f)return f}return""}function Im(e,t,a){if(t)return By(hl(e),t,a?$p:ky);let _=Nm(e),f=_.lastIndexOf(".");return f>=0?_.substring(f):""}function c_(e){return e.includes("\\")?e.replace(Ly,Xr):e}function qy(e,...t){e&&(e=c_(e));for(let a of t)a&&(a=c_(a),!e||o_(a)!==0?e=a:e=Mm(e)+a);return e}function Fy(e,t){let a=o_(e);a===0&&t?(e=qy(t,e),a=o_(e)):e=c_(e);let _=Om(e);if(_!==void 0)return _.length>a?hl(_):_;let f=e.length,h=e.substring(0,a),T,k=a,c=k,W=k,y=a!==0;for(;kc&&(T??(T=e.substring(0,c-1)),c=k);let E=e.indexOf(Xr,k+1);E===-1&&(E=f);let D=E-c;if(D===1&&e.charCodeAt(k)===46)T??(T=e.substring(0,W));else if(D===2&&e.charCodeAt(k)===46&&e.charCodeAt(k+1)===46)if(!y)T!==void 0?T+=T.length===a?"..":"/..":W=k+2;else if(T===void 0)W-2>=0?T=e.substring(0,Math.max(a,e.lastIndexOf(Xr,W-2))):T=e.substring(0,W);else{let R=T.lastIndexOf(Xr);R!==-1?T=T.substring(0,Math.max(a,R)):T=h,T.length===a&&(y=a!==0)}else T!==void 0?(T.length!==a&&(T+=Xr),y=!0,T+=e.substring(c,E)):(y=!0,W=E);k=E+1}return T??(f>a?hl(e):e)}function zy(e){e=c_(e);let t=Om(e);return t!==void 0?t:(t=Fy(e,""),t&&ef(e)?Mm(t):t)}function Om(e){if(!Sd.test(e))return e;let t=e.replace(/\/\.\//g,"/");if(t.startsWith("./")&&(t=t.slice(2)),t!==e&&(e=t,!Sd.test(e)))return e}function hl(e){return ef(e)?e.substr(0,e.length-1):e}function Mm(e){return ef(e)?e:e+Xr}var Sd=/\/\/|(?:^|\/)\.\.?(?:$|\/)/;function r(e,t,a,_,f,h,T){return{code:e,category:t,key:a,message:_,reportsUnnecessary:f,elidedInCompatabilityPyramid:h,reportsDeprecated:T}}var A={Unterminated_string_literal:r(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:r(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:r(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:r(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:r(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:r(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:r(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:r(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:r(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:r(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:r(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:r(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:r(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:r(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:r(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:r(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:r(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:r(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:r(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:r(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:r(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:r(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:r(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:r(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:r(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:r(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:r(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:r(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:r(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:r(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:r(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:r(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:r(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:r(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:r(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:r(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:r(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:r(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:r(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:r(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:r(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:r(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055","Type '{0}' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:r(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:r(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:r(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:r(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:r(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:r(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:r(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:r(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:r(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:r(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:r(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:r(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:r(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:r(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:r(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:r(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:r(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:r(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:r(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:r(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:r(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:r(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:r(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:r(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:r(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:r(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:r(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:r(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:r(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:r(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:r(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:r(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:r(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:r(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:r(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:r(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:r(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:r(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:r(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:r(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:r(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:r(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:r(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:r(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:r(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:r(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:r(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:r(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:r(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:r(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:r(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:r(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:r(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:r(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:r(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:r(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:r(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:r(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:r(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:r(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:r(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:r(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:r(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:r(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:r(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:r(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:r(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:r(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:r(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:r(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:r(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:r(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:r(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),_0_declarations_must_be_initialized:r(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:r(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:r(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:r(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:r(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:r(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:r(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:r(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:r(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:r(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:r(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:r(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:r(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:r(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:r(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:r(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:r(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:r(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:r(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:r(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:r(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:r(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:r(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:r(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:r(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:r(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:r(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:r(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:r(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:r(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:r(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:r(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:r(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:r(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:r(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:r(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:r(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:r(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:r(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:r(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:r(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:r(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:r(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202",`Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:r(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:r(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:r(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:r(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:r(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:r(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:r(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:r(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:r(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:r(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:r(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:r(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:r(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:r(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:r(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:r(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:r(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:r(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:r(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:r(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:r(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:r(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:r(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:r(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:r(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:r(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:r(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:r(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:r(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:r(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:r(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:r(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:r(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:r(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:r(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:r(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:r(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:r(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:r(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:r(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:r(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:r(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5:r(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:r(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:r(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:r(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:r(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:r(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:r(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:r(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:r(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:r(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:r(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:r(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:r(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:r(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:r(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:r(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:r(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:r(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:r(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:r(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:r(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:r(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:r(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:r(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:r(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:r(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:r(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:r(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:r(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:r(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:r(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:r(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:r(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:r(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:r(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax:r(1286,1,"ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_1286","ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:r(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:r(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:r(1289,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:r(1290,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:r(1291,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:r(1292,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve:r(1293,1,"ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293","ECMAScript module syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'."),This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled:r(1294,1,"This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294","This syntax is not allowed when 'erasableSyntaxOnly' is enabled."),ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjust_the_type_field_in_the_nearest_package_json_to_make_this_file_an_ECMAScript_module_or_adjust_your_verbatimModuleSyntax_module_and_moduleResolution_settings_in_TypeScript:r(1295,1,"ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjus_1295","ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'. Adjust the 'type' field in the nearest 'package.json' to make this file an ECMAScript module, or adjust your 'verbatimModuleSyntax', 'module', and 'moduleResolution' settings in TypeScript."),with_statements_are_not_allowed_in_an_async_function_block:r(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:r(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:r(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:r(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:r(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:r(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:r(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:r(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:r(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:r(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:r(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:r(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:r(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:r(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_node20_or_nodenext:r(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', 'node20', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_node20_nodenext_or_preserve:r(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'node18', 'node20', 'nodenext', or 'preserve'."),Argument_of_dynamic_import_cannot_be_spread_element:r(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:r(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:r(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:r(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:r(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:r(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:r(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:r(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:r(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:r(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:r(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:r(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:r(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:r(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:r(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:r(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_node18_node20_or_nodenext:r(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', or 'nodenext'."),A_label_is_not_allowed_here:r(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:r(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:r(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:r(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:r(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:r(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:r(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:r(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:r(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:r(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:r(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:r(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:r(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:r(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:r(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:r(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:r(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:r(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:r(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:r(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:r(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:r(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:r(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:r(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:r(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:r(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:r(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:r(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:r(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:r(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:r(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:r(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:r(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:r(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:r(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:r(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:r(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:r(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:r(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:r(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:r(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:r(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:r(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:r(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:r(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:r(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:r(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:r(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:r(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:r(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:r(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:r(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:r(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:r(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:r(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:r(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:r(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:r(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:r(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:r(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:r(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:r(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:r(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:r(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:r(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:r(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:r(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:r(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:r(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:r(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:r(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:r(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:r(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:r(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:r(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:r(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:r(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:r(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:r(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:r(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:r(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:r(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:r(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:r(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:r(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:r(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:r(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:r(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:r(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:r(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:r(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:r(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:r(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:r(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:r(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:r(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_should_be_either_require_or_import:r(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:r(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:r(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:r(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:r(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:r(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",`File is ECMAScript module because '{0}' has field "type" with value "module"`),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:r(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",`File is CommonJS module because '{0}' has field "type" whose value is not "module"`),File_is_CommonJS_module_because_0_does_not_have_field_type:r(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460",`File is CommonJS module because '{0}' does not have field "type"`),File_is_CommonJS_module_because_package_json_was_not_found:r(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:r(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:r(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:r(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:r(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:r(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:r(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:r(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:r(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:r(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:r(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:r(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:r(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479",`The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("{0}")' call instead.`),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:r(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:r(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481",`To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field \`"type": "module"\` to '{1}'.`),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:r(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:r(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:r(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:r(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:r(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:r(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:r(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:r(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:r(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:r(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:r(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:r(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:r(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:r(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:r(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator:r(1497,1,"Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497","Expression must be enclosed in parentheses to be used as a decorator."),Invalid_syntax_in_decorator:r(1498,1,"Invalid_syntax_in_decorator_1498","Invalid syntax in decorator."),Unknown_regular_expression_flag:r(1499,1,"Unknown_regular_expression_flag_1499","Unknown regular expression flag."),Duplicate_regular_expression_flag:r(1500,1,"Duplicate_regular_expression_flag_1500","Duplicate regular expression flag."),This_regular_expression_flag_is_only_available_when_targeting_0_or_later:r(1501,1,"This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501","This regular expression flag is only available when targeting '{0}' or later."),The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously:r(1502,1,"The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502","The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously."),Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later:r(1503,1,"Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503","Named capturing groups are only available when targeting 'ES2018' or later."),Subpattern_flags_must_be_present_when_there_is_a_minus_sign:r(1504,1,"Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504","Subpattern flags must be present when there is a minus sign."),Incomplete_quantifier_Digit_expected:r(1505,1,"Incomplete_quantifier_Digit_expected_1505","Incomplete quantifier. Digit expected."),Numbers_out_of_order_in_quantifier:r(1506,1,"Numbers_out_of_order_in_quantifier_1506","Numbers out of order in quantifier."),There_is_nothing_available_for_repetition:r(1507,1,"There_is_nothing_available_for_repetition_1507","There is nothing available for repetition."),Unexpected_0_Did_you_mean_to_escape_it_with_backslash:r(1508,1,"Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508","Unexpected '{0}'. Did you mean to escape it with backslash?"),This_regular_expression_flag_cannot_be_toggled_within_a_subpattern:r(1509,1,"This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509","This regular expression flag cannot be toggled within a subpattern."),k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets:r(1510,1,"k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510","'\\k' must be followed by a capturing group name enclosed in angle brackets."),q_is_only_available_inside_character_class:r(1511,1,"q_is_only_available_inside_character_class_1511","'\\q' is only available inside character class."),c_must_be_followed_by_an_ASCII_letter:r(1512,1,"c_must_be_followed_by_an_ASCII_letter_1512","'\\c' must be followed by an ASCII letter."),Undetermined_character_escape:r(1513,1,"Undetermined_character_escape_1513","Undetermined character escape."),Expected_a_capturing_group_name:r(1514,1,"Expected_a_capturing_group_name_1514","Expected a capturing group name."),Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other:r(1515,1,"Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515","Named capturing groups with the same name must be mutually exclusive to each other."),A_character_class_range_must_not_be_bounded_by_another_character_class:r(1516,1,"A_character_class_range_must_not_be_bounded_by_another_character_class_1516","A character class range must not be bounded by another character class."),Range_out_of_order_in_character_class:r(1517,1,"Range_out_of_order_in_character_class_1517","Range out of order in character class."),Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class:r(1518,1,"Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518","Anything that would possibly match more than a single character is invalid inside a negated character class."),Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead:r(1519,1,"Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519","Operators must not be mixed within a character class. Wrap it in a nested class instead."),Expected_a_class_set_operand:r(1520,1,"Expected_a_class_set_operand_1520","Expected a class set operand."),q_must_be_followed_by_string_alternatives_enclosed_in_braces:r(1521,1,"q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521","'\\q' must be followed by string alternatives enclosed in braces."),A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash:r(1522,1,"A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522","A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash?"),Expected_a_Unicode_property_name:r(1523,1,"Expected_a_Unicode_property_name_1523","Expected a Unicode property name."),Unknown_Unicode_property_name:r(1524,1,"Unknown_Unicode_property_name_1524","Unknown Unicode property name."),Expected_a_Unicode_property_value:r(1525,1,"Expected_a_Unicode_property_value_1525","Expected a Unicode property value."),Unknown_Unicode_property_value:r(1526,1,"Unknown_Unicode_property_value_1526","Unknown Unicode property value."),Expected_a_Unicode_property_name_or_value:r(1527,1,"Expected_a_Unicode_property_name_or_value_1527","Expected a Unicode property name or value."),Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set:r(1528,1,"Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528","Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set."),Unknown_Unicode_property_name_or_value:r(1529,1,"Unknown_Unicode_property_name_or_value_1529","Unknown Unicode property name or value."),Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:r(1530,1,"Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530","Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces:r(1531,1,"_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531","'\\{0}' must be followed by a Unicode property value expression enclosed in braces."),There_is_no_capturing_group_named_0_in_this_regular_expression:r(1532,1,"There_is_no_capturing_group_named_0_in_this_regular_expression_1532","There is no capturing group named '{0}' in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression:r(1533,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533","This backreference refers to a group that does not exist. There are only {0} capturing groups in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression:r(1534,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534","This backreference refers to a group that does not exist. There are no capturing groups in this regular expression."),This_character_cannot_be_escaped_in_a_regular_expression:r(1535,1,"This_character_cannot_be_escaped_in_a_regular_expression_1535","This character cannot be escaped in a regular expression."),Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead:r(1536,1,"Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536","Octal escape sequences and backreferences are not allowed in a character class. If this was intended as an escape sequence, use the syntax '{0}' instead."),Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class:r(1537,1,"Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537","Decimal escape sequences and backreferences are not allowed in a character class."),Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:r(1538,1,"Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538","Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),A_bigint_literal_cannot_be_used_as_a_property_name:r(1539,1,"A_bigint_literal_cannot_be_used_as_a_property_name_1539","A 'bigint' literal cannot be used as a property name."),A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead:r(1540,2,"A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540","A 'namespace' declaration should not be declared using the 'module' keyword. Please use the 'namespace' keyword instead.",void 0,void 0,!0),Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:r(1541,1,"Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541","Type-only import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:r(1542,1,"Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542","Type import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0:r(1543,1,"Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543",`Importing a JSON file into an ECMAScript module requires a 'type: "json"' import attribute when 'module' is set to '{0}'.`),Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0:r(1544,1,"Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544","Named imports from a JSON file into an ECMAScript module are not allowed when 'module' is set to '{0}'."),using_declarations_are_not_allowed_in_ambient_contexts:r(1545,1,"using_declarations_are_not_allowed_in_ambient_contexts_1545","'using' declarations are not allowed in ambient contexts."),await_using_declarations_are_not_allowed_in_ambient_contexts:r(1546,1,"await_using_declarations_are_not_allowed_in_ambient_contexts_1546","'await using' declarations are not allowed in ambient contexts."),The_types_of_0_are_incompatible_between_these_types:r(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:r(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:r(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:r(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:r(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:r(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:r(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:r(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:r(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:r(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:r(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:r(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:r(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:r(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:r(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:r(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:r(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:r(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:r(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:r(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:r(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:r(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:r(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:r(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:r(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:r(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:r(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:r(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:r(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:r(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:r(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:r(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:r(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:r(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:r(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:r(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:r(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:r(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:r(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:r(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:r(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:r(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:r(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:r(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:r(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:r(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_a_static_property_initializer:r(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:r(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:r(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:r(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:r(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:r(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:r(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:r(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:r(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:r(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:r(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:r(2346,1,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:r(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:r(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:r(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:r(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:r(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:r(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:r(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:r(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value:r(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:r(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:r(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:r(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:r(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:r(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:r(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:r(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:r(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:r(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:r(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:r(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:r(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:r(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:r(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:r(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:r(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:r(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:r(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:r(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:r(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:r(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:r(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:r(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:r(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:r(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:r(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:r(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:r(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:r(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:r(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:r(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:r(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:r(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:r(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:r(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:r(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:r(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:r(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:r(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:r(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:r(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:r(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:r(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:r(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:r(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:r(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:r(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:r(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:r(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:r(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:r(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:r(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:r(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:r(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:r(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:r(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:r(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:r(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:r(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:r(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:r(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:r(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:r(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:r(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:r(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:r(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:r(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:r(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:r(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:r(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:r(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:r(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:r(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:r(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:r(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:r(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:r(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:r(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:r(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:r(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:r(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:r(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:r(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:r(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:r(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:r(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:r(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:r(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:r(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:r(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:r(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:r(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:r(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:r(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:r(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:r(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:r(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:r(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:r(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:r(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:r(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:r(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:r(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:r(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:r(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:r(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:r(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:r(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:r(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:r(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:r(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:r(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:r(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:r(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:r(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:r(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:r(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:r(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:r(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:r(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:r(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:r(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:r(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:r(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression:r(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496","The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:r(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:r(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:r(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:r(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:r(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:r(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:r(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:r(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:r(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:r(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:r(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:r(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:r(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:r(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:r(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:r(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:r(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:r(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:r(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member {1} from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:r(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:r(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:r(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:r(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:r(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method:r(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522","The 'arguments' object cannot be referenced in an async function or method in ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:r(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:r(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:r(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:r(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:r(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:r(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:r(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:r(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:r(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:r(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:r(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:r(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:r(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:r(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:r(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:r(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:r(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:r(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:r(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:r(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:r(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:r(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:r(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:r(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:r(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:r(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:r(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:r(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:r(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:r(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:r(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:r(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:r(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:r(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:r(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:r(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:r(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:r(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:r(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:r(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:r(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:r(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:r(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:r(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:r(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:r(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:r(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:r(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:r(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:r(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:r(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:r(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:r(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:r(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:r(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:r(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:r(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:r(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:r(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:r(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:r(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:r(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:r(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:r(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:r(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:r(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:r(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:r(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:r(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:r(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:r(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:r(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:r(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:r(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:r(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:r(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:r(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:r(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:r(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:r(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:r(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:r(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:r(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:r(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:r(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:r(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:r(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:r(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:r(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:r(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:r(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:r(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:r(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:r(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:r(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:r(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:r(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:r(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:r(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:r(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:r(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:r(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more:r(2650,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650","Non-abstract class expression is missing implementations for the following members of '{0}': {1} and {2} more."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:r(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:r(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:r(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2:r(2654,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2}."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more:r(2655,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2} and {3} more."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1:r(2656,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656","Non-abstract class expression is missing implementations for the following members of '{0}': {1}."),JSX_expressions_must_have_one_parent_element:r(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:r(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:r(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:r(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:r(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:r(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:r(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:r(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:r(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:r(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:r(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:r(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:r(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:r(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:r(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:r(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:r(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:r(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:r(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:r(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:r(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:r(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:r(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:r(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:r(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:r(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:r(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:r(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:r(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:r(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:r(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:r(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:r(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:r(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:r(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:r(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:r(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:r(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:r(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:r(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:r(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:r(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:r(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:r(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:r(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:r(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:r(2705,1,"An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705","An async function or method in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:r(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:r(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:r(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:r(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:r(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:r(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:r(2712,1,"A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712","A dynamic import call in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:r(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713",`Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}["{1}"]'?`),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:r(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:r(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:r(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:r(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:r(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:r(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:r(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:r(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:r(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:r(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:r(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0:r(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 and above with module {0}."),Cannot_find_lib_definition_for_0:r(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:r(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:r(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:r(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:r(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:r(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:r(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:r(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:r(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:r(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:r(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:r(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:r(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:r(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:r(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:r(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:r(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:r(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:r(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:r(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:r(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:r(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:r(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:r(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:r(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:r(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:r(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:r(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:r(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:r(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:r(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:r(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:r(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:r(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:r(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:r(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:r(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:r(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:r(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:r(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:r(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:r(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:r(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:r(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:r(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:r(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:r(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:r(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:r(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:r(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:r(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:r(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:r(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:r(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:r(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:r(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:r(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:r(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:r(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:r(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:r(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:r(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:r(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:r(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:r(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:r(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:r(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:r(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:r(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:r(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:r(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:r(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:r(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:r(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:r(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:r(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:r(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:r(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:r(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:r(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:r(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:r(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:r(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:r(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:r(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:r(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:r(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:r(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks:r(2815,1,"arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks_2815","'arguments' cannot be referenced in property initializers or class static initialization blocks."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:r(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:r(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:r(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:r(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:r(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve:r(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'node18', 'node20', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:r(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve:r(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'node18', 'node20', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1:r(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:r(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:r(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:r(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:r(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:r(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:r(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:r(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:r(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:r(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:r(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:r(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:r(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:r(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:r(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:r(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:r(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:r(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:r(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:r(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:r(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:r(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:r(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:r(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:r(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:r(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:r(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:r(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:r(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:r(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:r(2865,1,"Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865","Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled."),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:r(2866,1,"Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866","Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:r(2867,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:r(2868,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish:r(2869,1,"Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869","Right operand of ?? is unreachable because the left operand is never nullish."),This_binary_expression_is_never_nullish_Are_you_missing_parentheses:r(2870,1,"This_binary_expression_is_never_nullish_Are_you_missing_parentheses_2870","This binary expression is never nullish. Are you missing parentheses?"),This_expression_is_always_nullish:r(2871,1,"This_expression_is_always_nullish_2871","This expression is always nullish."),This_kind_of_expression_is_always_truthy:r(2872,1,"This_kind_of_expression_is_always_truthy_2872","This kind of expression is always truthy."),This_kind_of_expression_is_always_falsy:r(2873,1,"This_kind_of_expression_is_always_falsy_2873","This kind of expression is always falsy."),This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:r(2874,1,"This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874","This JSX tag requires '{0}' to be in scope, but it could not be found."),This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed:r(2875,1,"This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875","This JSX tag requires the module path '{0}' to exist, but none could be found. Make sure you have types for the appropriate package installed."),This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0:r(2876,1,"This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876",'This relative import path is unsafe to rewrite because it looks like a file name, but actually resolves to "{0}".'),This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path:r(2877,1,"This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877","This import uses a '{0}' extension to resolve to an input TypeScript file, but will not be rewritten during emit because it is not a relative path."),This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files:r(2878,1,"This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878","This import path is unsafe to rewrite because it resolves to another project, and the relative path between the projects' output files is not the same as the relative path between its input files."),Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:r(2879,1,"Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879","Using JSX fragments requires fragment factory '{0}' to be in scope, but it could not be found."),Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert:r(2880,1,"Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880","Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'."),This_expression_is_never_nullish:r(2881,1,"This_expression_is_never_nullish_2881","This expression is never nullish."),Import_declaration_0_is_using_private_name_1:r(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:r(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:r(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:r(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:r(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:r(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:r(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:r(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:r(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:r(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:r(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:r(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:r(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:r(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:r(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:r(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:r(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:r(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:r(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:r(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:r(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:r(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:r(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:r(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:r(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:r(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:r(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:r(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:r(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:r(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:r(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:r(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:r(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:r(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:r(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:r(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:r(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:r(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:r(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:r(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:r(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:r(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:r(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:r(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:r(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:r(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:r(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:r(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:r(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:r(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:r(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:r(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:r(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:r(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:r(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:r(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:r(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:r(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:r(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:r(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:r(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:r(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:r(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:r(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:r(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:r(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:r(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected:r(4094,1,"Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094","Property '{0}' of exported anonymous class type may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:r(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:r(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:r(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:r(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:r(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:r(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:r(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:r(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:r(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:r(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:r(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:r(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:r(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:r(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:r(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:r(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:r(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:r(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:r(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:r(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:r(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:r(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:r(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:r(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:r(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:r(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:r(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:r(4125,1,"Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125","Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:r(4126,1,"One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126","One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic:r(4127,1,"This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127","This member cannot have an 'override' modifier because its name is dynamic."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic:r(4128,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128","This member cannot have a JSDoc comment with an '@override' tag because its name is dynamic."),The_current_host_does_not_support_the_0_option:r(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:r(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:r(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:r(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Unknown_compiler_option_0:r(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:r(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:r(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:r(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:r(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:r(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:r(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:r(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:r(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:r(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:r(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:r(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:r(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:r(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:r(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:r(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:r(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:r(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:r(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:r(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:r(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:r(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:r(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:r(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:r(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd:r(5071,1,"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071","Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'."),Unknown_build_option_0:r(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:r(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:r(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:r(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:r(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:r(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:r(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:r(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:r(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:r(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:r(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:r(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:r(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:r(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:r(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:r(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:r(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:r(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:r(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:r(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:r(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:r(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later:r(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:r(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:r(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:r(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:r(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101",`Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),Option_0_has_been_removed_Please_remove_it_from_your_configuration:r(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:r(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:r(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:r(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:r(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:r(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107",`Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:r(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:r(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:r(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:r(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:r(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:r(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:r(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:r(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:r(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:r(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:r(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:r(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:r(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:r(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:r(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:r(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:r(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:r(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:r(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:r(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:r(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:r(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:r(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:r(6024,3,"options_6024","options"),file:r(6025,3,"file_6025","file"),Examples_Colon_0:r(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:r(6027,3,"Options_Colon_6027","Options:"),Version_0:r(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:r(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:r(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:r(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:r(6034,3,"KIND_6034","KIND"),FILE:r(6035,3,"FILE_6035","FILE"),VERSION:r(6036,3,"VERSION_6036","VERSION"),LOCATION:r(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:r(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:r(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:r(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:r(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:r(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:r(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:r(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:r(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:r(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unable_to_open_file_0:r(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:r(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:r(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:r(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:r(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:r(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:r(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:r(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:r(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:r(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:r(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:r(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:r(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:r(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:r(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:r(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:r(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:r(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:r(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:r(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:r(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:r(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:r(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:r(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:r(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:r(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:r(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:r(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:r(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:r(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:r(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:r(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:r(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:r(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:r(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:r(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:r(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:r(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:r(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:r(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:r(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:r(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:r(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:r(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:r(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:r(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:r(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:r(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:r(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:r(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:r(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:r(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:r(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:r(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:r(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:r(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:r(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:r(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:r(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:r(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:r(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:r(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:r(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:r(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:r(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:r(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:r(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:r(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:r(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:r(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:r(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:r(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:r(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:r(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:r(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:r(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:r(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:r(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:r(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:r(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:r(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:r(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:r(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:r(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:r(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:r(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:r(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:r(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:r(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:r(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:r(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:r(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:r(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:r(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:r(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:r(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:r(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:r(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:r(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:r(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:r(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:r(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:r(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:r(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:r(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:r(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:r(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:r(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:r(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5:r(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5'."),Enable_all_strict_type_checking_options:r(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:r(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:r(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:r(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:r(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:r(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:r(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:r(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:r(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:r(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:r(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:r(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:r(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:r(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:r(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:r(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:r(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:r(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:r(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:r(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:r(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:r(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:r(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:r(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:r(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:r(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:r(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:r(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:r(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:r(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:r(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:r(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:r(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:r(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:r(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:r(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:r(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:r(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:r(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:r(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:r(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:r(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:r(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:r(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:r(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:r(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:r(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:r(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:r(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:r(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:r(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:r(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:r(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:r(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:r(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:r(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:r(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:r(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:r(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:r(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:r(6244,3,"Modules_6244","Modules"),File_Management:r(6245,3,"File_Management_6245","File Management"),Emit:r(6246,3,"Emit_6246","Emit"),JavaScript_Support:r(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:r(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:r(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:r(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:r(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:r(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:r(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:r(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:r(6255,3,"Projects_6255","Projects"),Output_Formatting:r(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:r(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:r(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:r(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:r(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:r(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:r(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:r(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:r(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:r(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:r(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:r(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:r(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:r(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:r(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:r(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:r(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:r(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:r(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:r(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278",`There are types at '{0}', but this result could not be resolved when respecting package.json "exports". The '{1}' library may need to update its package.json or typings.`),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:r(6279,3,"Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279","Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:r(6280,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280","There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'."),package_json_has_a_peerDependencies_field:r(6281,3,"package_json_has_a_peerDependencies_field_6281","'package.json' has a 'peerDependencies' field."),Found_peerDependency_0_with_1_version:r(6282,3,"Found_peerDependency_0_with_1_version_6282","Found peerDependency '{0}' with '{1}' version."),Failed_to_find_peerDependency_0:r(6283,3,"Failed_to_find_peerDependency_0_6283","Failed to find peerDependency '{0}'."),File_Layout:r(6284,3,"File_Layout_6284","File Layout"),Environment_Settings:r(6285,3,"Environment_Settings_6285","Environment Settings"),See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule:r(6286,3,"See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule_6286","See also https://aka.ms/tsconfig/module"),For_nodejs_Colon:r(6287,3,"For_nodejs_Colon_6287","For nodejs:"),and_npm_install_D_types_Slashnode:r(6290,3,"and_npm_install_D_types_Slashnode_6290","and npm install -D @types/node"),Other_Outputs:r(6291,3,"Other_Outputs_6291","Other Outputs"),Stricter_Typechecking_Options:r(6292,3,"Stricter_Typechecking_Options_6292","Stricter Typechecking Options"),Style_Options:r(6293,3,"Style_Options_6293","Style Options"),Recommended_Options:r(6294,3,"Recommended_Options_6294","Recommended Options"),Enable_project_compilation:r(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:r(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:r(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:r(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306",`Referenced project '{0}' must have setting "composite": true.`),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:r(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Referenced_project_0_may_not_disable_emit:r(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:r(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:r(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:r(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:r(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:r(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:r(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:r(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:r(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:r(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:r(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:r(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:r(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:r(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:r(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:r(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:r(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:r(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:r(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:r(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:r(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:r(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:r(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:r(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:r(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:r(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:r(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:r(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:r(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:r(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:r(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:r(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:r(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:r(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:r(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:r(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:r(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:r(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:r(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:r(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:r(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:r(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:r(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:r(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:r(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:r(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:r(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:r(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:r(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:r(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:r(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:r(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:r(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:r(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:r(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:r(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:r(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:r(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:r(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:r(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:r(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:r(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors:r(6419,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors_6419","Project '{0}' is out of date because buildinfo file '{1}' indicates that program needs to report errors."),Project_0_is_out_of_date_because_1:r(6420,3,"Project_0_is_out_of_date_because_1_6420","Project '{0}' is out of date because {1}."),Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files:r(6421,3,"Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421","Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:r(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:r(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:r(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:r(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:r(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:r(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:r(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these_files:r(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:r(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:r(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:r(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:r(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:r(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:r(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:r(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:r(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:r(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:r(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:r(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:r(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:r(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:r(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:r(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:r(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:r(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:r(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:r(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:r(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:r(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:r(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:r(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:r(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:r(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:r(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:r(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:r(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:r(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:r(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:r(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:r(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:r(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:r(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:r(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:r(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:r(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:r(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Skip_building_downstream_projects_on_error_in_upstream_project:r(6640,3,"Skip_building_downstream_projects_on_error_in_upstream_project_6640","Skip building downstream projects on error in upstream project."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:r(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:r(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:r(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:r(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:r(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:r(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:r(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:r(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:r(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:r(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:r(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:r(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:r(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:r(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:r(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:r(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:r(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:r(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:r(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:r(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:r(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:r(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:r(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:r(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:r(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:r(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:r(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:r(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:r(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:r(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:r(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:r(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:r(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:r(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:r(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:r(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:r(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:r(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:r(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:r(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:r(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:r(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:r(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:r(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:r(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:r(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:r(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:r(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:r(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:r(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:r(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:r(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:r(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:r(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:r(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:r(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:r(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:r(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:r(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:r(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:r(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:r(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:r(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:r(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:r(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:r(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:r(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:r(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:r(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:r(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:r(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:r(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:r(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:r(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:r(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files:r(6719,3,"Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719","Require sufficient annotation on exports so other tools can trivially generate declaration files."),Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any:r(6720,3,"Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720","Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'."),Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript:r(6721,3,"Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721","Do not allow runtime constructs that are not part of ECMAScript."),Default_catch_clause_variables_as_unknown_instead_of_any:r(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:r(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported:r(6805,3,"Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805","Disable full type checking (only critical parse and emit errors will be reported)."),Check_side_effect_imports:r(6806,3,"Check_side_effect_imports_6806","Check side effect imports."),This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2:r(6807,1,"This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807","This operation can be simplified. This shift is identical to `{0} {1} {2}`."),Enable_lib_replacement:r(6808,3,"Enable_lib_replacement_6808","Enable lib replacement."),one_of_Colon:r(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:r(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:r(6902,3,"type_Colon_6902","type:"),default_Colon:r(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:r(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:r(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:r(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:r(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:r(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:r(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:r(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:r(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:r(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:r(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:r(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:r(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:r(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:r(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:r(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:r(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:r(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:r(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:r(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:r(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:r(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:r(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:r(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:r(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:r(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:r(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:r(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:r(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:r(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:r(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:r(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:r(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:r(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:r(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:r(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:r(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:r(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:r(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:r(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:r(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:r(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:r(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:r(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:r(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:r(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:r(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation:r(7025,1,"Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025","Generator implicitly has yield type '{0}'. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:r(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:r(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:r(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:r(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:r(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:r(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:r(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:r(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:r(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:r(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:r(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:r(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:r(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:r(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:r(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:r(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:r(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:r(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:r(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:r(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:r(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:r(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:r(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:r(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:r(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:r(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:r(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:r(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:r(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:r(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:r(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:r(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:r(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:r(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:r(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:r(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:r(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:r(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:r(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:r(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:r(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:r(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:r(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:r(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:r(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:r(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:r(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:r(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:r(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:r(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:r(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:r(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:r(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:r(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:r(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:r(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:r(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:r(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:r(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:r(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:r(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:r(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:r(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:r(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:r(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:r(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:r(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:r(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:r(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:r(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:r(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:r(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:r(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:r(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:r(9007,1,"Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007","Function must have an explicit return type annotation with --isolatedDeclarations."),Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:r(9008,1,"Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008","Method must have an explicit return type annotation with --isolatedDeclarations."),At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations:r(9009,1,"At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009","At least one accessor must have an explicit type annotation with --isolatedDeclarations."),Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations:r(9010,1,"Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010","Variable must have an explicit type annotation with --isolatedDeclarations."),Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations:r(9011,1,"Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011","Parameter must have an explicit type annotation with --isolatedDeclarations."),Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations:r(9012,1,"Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012","Property must have an explicit type annotation with --isolatedDeclarations."),Expression_type_can_t_be_inferred_with_isolatedDeclarations:r(9013,1,"Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013","Expression type can't be inferred with --isolatedDeclarations."),Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations:r(9014,1,"Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014","Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations."),Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations:r(9015,1,"Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015","Objects that contain spread assignments can't be inferred with --isolatedDeclarations."),Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations:r(9016,1,"Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016","Objects that contain shorthand properties can't be inferred with --isolatedDeclarations."),Only_const_arrays_can_be_inferred_with_isolatedDeclarations:r(9017,1,"Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017","Only const arrays can be inferred with --isolatedDeclarations."),Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations:r(9018,1,"Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018","Arrays with spread elements can't inferred with --isolatedDeclarations."),Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations:r(9019,1,"Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019","Binding elements can't be exported directly with --isolatedDeclarations."),Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations:r(9020,1,"Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020","Enum member initializers must be computable without references to external symbols with --isolatedDeclarations."),Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations:r(9021,1,"Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021","Extends clause can't contain an expression with --isolatedDeclarations."),Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations:r(9022,1,"Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022","Inference from class expressions is not supported with --isolatedDeclarations."),Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function:r(9023,1,"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023","Assigning properties to functions without declaring them is not supported with --isolatedDeclarations. Add an explicit declaration for the properties assigned to this function."),Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:r(9025,1,"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025","Declaration emit for this parameter requires implicitly adding undefined to its type. This is not supported with --isolatedDeclarations."),Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations:r(9026,1,"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026","Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations."),Add_a_type_annotation_to_the_variable_0:r(9027,1,"Add_a_type_annotation_to_the_variable_0_9027","Add a type annotation to the variable {0}."),Add_a_type_annotation_to_the_parameter_0:r(9028,1,"Add_a_type_annotation_to_the_parameter_0_9028","Add a type annotation to the parameter {0}."),Add_a_type_annotation_to_the_property_0:r(9029,1,"Add_a_type_annotation_to_the_property_0_9029","Add a type annotation to the property {0}."),Add_a_return_type_to_the_function_expression:r(9030,1,"Add_a_return_type_to_the_function_expression_9030","Add a return type to the function expression."),Add_a_return_type_to_the_function_declaration:r(9031,1,"Add_a_return_type_to_the_function_declaration_9031","Add a return type to the function declaration."),Add_a_return_type_to_the_get_accessor_declaration:r(9032,1,"Add_a_return_type_to_the_get_accessor_declaration_9032","Add a return type to the get accessor declaration."),Add_a_type_to_parameter_of_the_set_accessor_declaration:r(9033,1,"Add_a_type_to_parameter_of_the_set_accessor_declaration_9033","Add a type to parameter of the set accessor declaration."),Add_a_return_type_to_the_method:r(9034,1,"Add_a_return_type_to_the_method_9034","Add a return type to the method"),Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit:r(9035,1,"Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035","Add satisfies and a type assertion to this expression (satisfies T as T) to make the type explicit."),Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it:r(9036,1,"Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036","Move the expression in default export to a variable and add a type annotation to it."),Default_exports_can_t_be_inferred_with_isolatedDeclarations:r(9037,1,"Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037","Default exports can't be inferred with --isolatedDeclarations."),Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations:r(9038,1,"Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038","Computed property names on class or object literals cannot be inferred with --isolatedDeclarations."),Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations:r(9039,1,"Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039","Type containing private name '{0}' can't be used with --isolatedDeclarations."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:r(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:r(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:r(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:r(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:r(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:r(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:r(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:r(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:r(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:r(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:r(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:r(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:r(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:r(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:r(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:r(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:r(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:r(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:r(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:r(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Unicode_escape_sequence_cannot_appear_here:r(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:r(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:r(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:r(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:r(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:r(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:r(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:r(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:r(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:r(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:r(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:r(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:r(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:r(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:r(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:r(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:r(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:r(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:r(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:r(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:r(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:r(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:r(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:r(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:r(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:r(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:r(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:r(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:r(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:r(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:r(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:r(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:r(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:r(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:r(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:r(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:r(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:r(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:r(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:r(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:r(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:r(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:r(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:r(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:r(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:r(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:r(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:r(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:r(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:r(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:r(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:r(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:r(90055,3,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:r(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:r(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:r(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:r(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:r(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Update_modifiers_of_0:r(90061,3,"Update_modifiers_of_0_90061","Update modifiers of '{0}'"),Add_annotation_of_type_0:r(90062,3,"Add_annotation_of_type_0_90062","Add annotation of type '{0}'"),Add_return_type_0:r(90063,3,"Add_return_type_0_90063","Add return type '{0}'"),Extract_base_class_to_variable:r(90064,3,"Extract_base_class_to_variable_90064","Extract base class to variable"),Extract_default_export_to_variable:r(90065,3,"Extract_default_export_to_variable_90065","Extract default export to variable"),Extract_binding_expressions_to_variable:r(90066,3,"Extract_binding_expressions_to_variable_90066","Extract binding expressions to variable"),Add_all_missing_type_annotations:r(90067,3,"Add_all_missing_type_annotations_90067","Add all missing type annotations"),Add_satisfies_and_an_inline_type_assertion_with_0:r(90068,3,"Add_satisfies_and_an_inline_type_assertion_with_0_90068","Add satisfies and an inline type assertion with '{0}'"),Extract_to_variable_and_replace_with_0_as_typeof_0:r(90069,3,"Extract_to_variable_and_replace_with_0_as_typeof_0_90069","Extract to variable and replace with '{0} as typeof {0}'"),Mark_array_literal_as_const:r(90070,3,"Mark_array_literal_as_const_90070","Mark array literal as const"),Annotate_types_of_properties_expando_function_in_a_namespace:r(90071,3,"Annotate_types_of_properties_expando_function_in_a_namespace_90071","Annotate types of properties expando function in a namespace"),Convert_function_to_an_ES2015_class:r(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:r(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:r(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:r(95005,3,"Extract_function_95005","Extract function"),Extract_constant:r(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:r(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:r(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:r(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:r(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:r(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:r(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:r(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:r(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:r(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:r(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:r(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:r(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:r(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:r(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:r(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:r(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:r(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:r(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:r(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:r(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:r(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:r(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:r(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:r(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:r(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:r(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:r(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:r(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:r(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:r(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:r(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:r(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:r(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:r(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:r(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:r(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:r(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:r(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:r(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:r(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:r(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:r(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:r(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:r(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:r(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:r(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:r(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:r(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:r(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:r(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:r(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:r(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:r(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:r(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:r(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:r(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:r(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:r(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:r(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:r(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:r(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:r(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:r(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:r(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:r(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:r(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:r(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:r(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:r(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:r(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:r(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:r(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:r(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:r(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:r(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:r(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:r(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:r(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:r(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:r(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:r(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:r(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:r(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:r(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:r(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:r(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:r(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:r(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:r(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:r(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:r(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:r(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:r(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:r(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:r(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:r(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:r(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:r(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:r(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:r(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:r(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:r(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:r(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:r(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:r(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:r(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:r(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:r(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:r(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:r(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:r(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:r(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:r(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:r(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:r(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:r(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:r(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:r(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:r(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:r(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:r(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:r(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:r(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:r(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:r(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:r(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:r(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:r(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:r(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:r(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:r(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:r(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:r(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:r(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:r(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:r(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:r(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:r(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:r(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:r(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:r(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:r(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:r(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:r(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:r(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:r(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:r(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:r(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:r(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:r(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:r(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:r(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:r(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:r(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:r(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:r(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:r(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:r(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:r(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:r(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:r(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:r(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:r(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:r(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:r(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:r(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:r(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:r(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:r(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:r(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:r(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:r(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:r(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:r(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:r(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:r(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:r(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:r(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:r(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:r(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:r(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:r(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:r(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),Wrap_in_parentheses:r(95194,3,"Wrap_in_parentheses_95194","Wrap in parentheses"),Wrap_all_invalid_decorator_expressions_in_parentheses:r(95195,3,"Wrap_all_invalid_decorator_expressions_in_parentheses_95195","Wrap all invalid decorator expressions in parentheses"),Add_resolution_mode_import_attribute:r(95196,3,"Add_resolution_mode_import_attribute_95196","Add 'resolution-mode' import attribute"),Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it:r(95197,3,"Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197","Add 'resolution-mode' import attribute to all type-only imports that need it"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:r(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:r(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:r(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:r(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:r(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:r(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:r(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:r(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:r(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:r(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:r(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:r(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:r(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:r(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:r(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:r(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:r(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:r(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:r(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:r(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:r(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:r(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:r(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:r(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:r(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:r(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:r(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:r(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:r(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:r(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:r(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:r(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:r(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:r(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:r(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:r(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:r(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:r(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:r(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:r(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Its_type_0_is_not_a_valid_JSX_element_type:r(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:r(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block."),_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled:r(18055,1,"_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055","'{0}' has a string type, but must have syntactically recognizable string syntax when 'isolatedModules' is enabled."),Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled:r(18056,1,"Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056","Enum member following a non-literal numeric member must have an initializer when 'isolatedModules' is enabled."),String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020:r(18057,1,"String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057","String literal import and export names are not supported when the '--module' flag is set to 'es2015' or 'es2020'."),Default_imports_are_not_allowed_in_a_deferred_import:r(18058,1,"Default_imports_are_not_allowed_in_a_deferred_import_18058","Default imports are not allowed in a deferred import."),Named_imports_are_not_allowed_in_a_deferred_import:r(18059,1,"Named_imports_are_not_allowed_in_a_deferred_import_18059","Named imports are not allowed in a deferred import."),Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve:r(18060,1,"Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve_18060","Deferred imports are only supported when the '--module' flag is set to 'esnext' or 'preserve'."),_0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer:r(18061,1,"_0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer_18061","'{0}' is not a valid meta-property for keyword 'import'. Did you mean 'meta' or 'defer'?")};function St(e){return e>=80}function Vy(e){return e===32||St(e)}var tf={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,defer:166,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},Wy=new Map(Object.entries(tf)),Lm=new Map(Object.entries({...tf,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),Jm=new Map([[100,1],[103,2],[105,4],[109,8],[115,16],[117,32],[118,64],[121,128]]),Gy=new Map([[1,$s.RegularExpressionFlagsHasIndices],[16,$s.RegularExpressionFlagsDotAll],[32,$s.RegularExpressionFlagsUnicode],[64,$s.RegularExpressionFlagsUnicodeSets],[128,$s.RegularExpressionFlagsSticky]]),Yy=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],Hy=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],Xy=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2160,2183,2185,2190,2208,2249,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3165,3165,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3293,3294,3296,3297,3313,3314,3332,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5905,5919,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6988,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69248,69289,69296,69297,69376,69404,69415,69415,69424,69445,69488,69505,69552,69572,69600,69622,69635,69687,69745,69746,69749,69749,69763,69807,69840,69864,69891,69926,69956,69956,69959,69959,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70207,70208,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70753,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71488,71494,71680,71723,71840,71903,71935,71942,71945,71945,71948,71955,71957,71958,71960,71983,71999,71999,72001,72001,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72368,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73474,73474,73476,73488,73490,73523,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78913,78918,82944,83526,92160,92728,92736,92766,92784,92862,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,122624,122654,122661,122666,122928,122989,123136,123180,123191,123197,123214,123214,123536,123565,123584,123627,124112,124139,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743],$y=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2160,2183,2185,2190,2200,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2901,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3132,3140,3142,3144,3146,3149,3157,3158,3160,3162,3165,3165,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3293,3294,3296,3299,3302,3311,3313,3315,3328,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3457,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3790,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5909,5919,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6159,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6847,6862,6912,6988,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43047,43052,43052,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69248,69289,69291,69292,69296,69297,69373,69404,69415,69415,69424,69456,69488,69509,69552,69572,69600,69622,69632,69702,69734,69749,69759,69818,69826,69826,69840,69864,69872,69881,69888,69940,69942,69951,69956,69959,69968,70003,70006,70006,70016,70084,70089,70092,70094,70106,70108,70108,70144,70161,70163,70199,70206,70209,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70753,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71488,71494,71680,71738,71840,71913,71935,71942,71945,71945,71948,71955,71957,71958,71960,71989,71991,71992,71995,72003,72016,72025,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72368,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73472,73488,73490,73530,73534,73538,73552,73561,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78912,78933,82944,83526,92160,92728,92736,92766,92768,92777,92784,92862,92864,92873,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94180,94192,94193,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,118528,118573,118576,118598,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122624,122654,122661,122666,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,122928,122989,123023,123023,123136,123180,123184,123197,123200,123209,123214,123214,123536,123566,123584,123641,124112,124153,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,130032,130041,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743,917760,917999],Qy=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,Ky=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,Zy=/@(?:see|link)/i;function yl(e,t){if(e=2?yl(e,Xy):yl(e,Yy)}function tg(e,t){return t>=2?yl(e,$y):yl(e,Hy)}function jm(e){let t=[];return e.forEach((a,_)=>{t[a]=_}),t}var ng=jm(Lm);function nt(e){return ng[e]}function Rm(e){return Lm.get(e)}var t3=jm(Jm);function wd(e){return Jm.get(e)}function Um(e){let t=[],a=0,_=0;for(;a127&&kn(f)&&(t.push(_),_=a);break}}return t.push(_),t}function rg(e,t,a,_,f){(t<0||t>=e.length)&&(f?t=t<0?0:t>=e.length?e.length-1:t:q.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${_!==void 0?ly(e,Um(_)):"unknown"}`));let h=e[t]+a;return f?h>e[t+1]?e[t+1]:typeof _=="string"&&h>_.length?_.length:h:(t=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function kn(e){return e===10||e===13||e===8232||e===8233}function fi(e){return e>=48&&e<=57}function vp(e){return fi(e)||e>=65&&e<=70||e>=97&&e<=102}function nf(e){return e>=65&&e<=90||e>=97&&e<=122}function qm(e){return nf(e)||fi(e)||e===95}function Tp(e){return e>=48&&e<=55}function Cr(e,t,a,_,f){if(d_(t))return t;let h=!1;for(;;){let T=e.charCodeAt(t);switch(T){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,a)return t;h=!!f;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(_)break;if(e.charCodeAt(t+1)===47){for(t+=2;t127&&qa(T)){t++;continue}break}return t}}var ul=7;function $i(e,t){if(q.assert(t>=0),t===0||kn(e.charCodeAt(t-1))){let a=e.charCodeAt(t);if(t+ul=0&&a127&&qa(R)){G&&kn(R)&&(y=!0),a++;continue}break e}}return G&&(D=f(k,c,W,y,h,D)),D}function Vm(e,t,a,_){return kl(!1,e,t,!1,a,_)}function Wm(e,t,a,_){return kl(!1,e,t,!0,a,_)}function sg(e,t,a,_,f){return kl(!0,e,t,!1,a,_,f)}function _g(e,t,a,_,f){return kl(!0,e,t,!0,a,_,f)}function Gm(e,t,a,_,f,h=[]){return h.push({kind:a,pos:e,end:t,hasTrailingNewLine:_}),h}function Lp(e,t){return sg(e,t,Gm,void 0,void 0)}function og(e,t){return _g(e,t,Gm,void 0,void 0)}function af(e){let t=rf.exec(e);if(t)return t[0]}function Zn(e,t){return nf(e)||e===36||e===95||e>127&&eg(e,t)}function Ar(e,t,a){return qm(e)||e===36||(a===1?e===45||e===58:!1)||e>127&&tg(e,t)}function cg(e,t,a){let _=Qi(e,0);if(!Zn(_,t))return!1;for(let f=Vt(_);fy,getStartPos:()=>y,getTokenEnd:()=>c,getTextPos:()=>c,getToken:()=>E,getTokenStart:()=>G,getTokenPos:()=>G,getTokenText:()=>k.substring(G,c),getTokenValue:()=>D,hasUnicodeEscape:()=>(R&1024)!==0,hasExtendedUnicodeEscape:()=>(R&8)!==0,hasPrecedingLineBreak:()=>(R&1)!==0,hasPrecedingJSDocComment:()=>(R&2)!==0,hasPrecedingJSDocLeadingAsterisks:()=>(R&32768)!==0,isIdentifier:()=>E===80||E>118,isReservedWord:()=>E>=83&&E<=118,isUnterminated:()=>(R&4)!==0,getCommentDirectives:()=>ue,getNumericLiteralFlags:()=>R&25584,getTokenFlags:()=>R,reScanGreaterToken:ct,reScanAsteriskEqualsToken:ar,reScanSlashToken:dt,reScanTemplateToken:qt,reScanTemplateHeadOrNoSubstitutionTemplate:tn,scanJsxIdentifier:Or,scanJsxAttributeValue:Vn,reScanJsxAttributeValue:Ce,reScanJsxToken:sr,reScanLessThanToken:mr,reScanHashToken:hr,reScanQuestionToken:Fn,reScanInvalidIdentifier:Bt,scanJsxToken:zn,scanJsDocToken:L,scanJSDocCommentTextToken:yr,scan:ot,getText:Qe,clearCommentDirectives:st,setText:Ct,setScriptTarget:lt,setLanguageVariant:Mr,setScriptKind:gr,setJSDocParsingMode:Nn,setOnError:Tt,resetTokenState:Wn,setTextPos:Wn,setSkipJsDocLeadingAsterisks:wi,tryScan:He,lookAhead:Te,scanRange:fe};return q.isDebugging&&Object.defineProperty(O,"__debugShowCurrentPositionInText",{get:()=>{let U=O.getText();return U.slice(0,O.getTokenFullStart())+"\u2551"+U.slice(O.getTokenFullStart())}}),O;function ae(U){return Qi(k,U)}function Oe(U){return U>=0&&U=0&&U=65&&me<=70)me+=32;else if(!(me>=48&&me<=57||me>=97&&me<=102))break;xe.push(me),c++,we=!1}return xe.length=W){Z+=k.substring(xe,c),R|=4,Y(A.Unterminated_string_literal);break}let Se=V(c);if(Se===K){Z+=k.substring(xe,c),c++;break}if(Se===92&&!U){Z+=k.substring(xe,c),Z+=Ot(3),xe=c;continue}if((Se===10||Se===13)&&!U){Z+=k.substring(xe,c),R|=4,Y(A.Unterminated_string_literal);break}c++}return Z}function Ir(U){let K=V(c)===96;c++;let Z=c,xe="",Se;for(;;){if(c>=W){xe+=k.substring(Z,c),R|=4,Y(A.Unterminated_template_literal),Se=K?15:18;break}let we=V(c);if(we===96){xe+=k.substring(Z,c),c++,Se=K?15:18;break}if(we===36&&c+1=W)return Y(A.Unexpected_end_of_text),"";let Z=V(c);switch(c++,Z){case 48:if(c>=W||!fi(V(c)))return"\0";case 49:case 50:case 51:c=55296&&xe<=56319&&c+6=56320&&Ve<=57343)return c=me,Se+String.fromCharCode(Ve)}return Se;case 120:for(;c1114111&&(U&&Y(A.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive,Z,c-Z),we=!0),c>=W?(U&&Y(A.Unexpected_end_of_text),we=!0):V(c)===125?c++:(U&&Y(A.Unterminated_Unicode_escape_sequence),we=!0),we?(R|=2048,k.substring(K,c)):(R|=8,kd(Se))}function Pn(){if(c+5=0&&Ar(Z,e)){U+=Bn(!0),K=c;continue}if(Z=Pn(),!(Z>=0&&Ar(Z,e)))break;R|=1024,U+=k.substring(K,c),U+=kd(Z),c+=6,K=c}else break}return U+=k.substring(K,c),U}function $e(){let U=D.length;if(U>=2&&U<=12){let K=D.charCodeAt(0);if(K>=97&&K<=122){let Z=Wy.get(D);if(Z!==void 0)return E=Z}}return E=80}function qn(U){let K="",Z=!1,xe=!1;for(;;){let Se=V(c);if(Se===95){R|=512,Z?(Z=!1,xe=!0):Y(xe?A.Multiple_consecutive_numeric_separators_are_not_permitted:A.Numeric_separators_are_not_allowed_here,c,1),c++;continue}if(Z=!0,!fi(Se)||Se-48>=U)break;K+=k[c],c++,xe=!1}return V(c-1)===95&&Y(A.Numeric_separators_are_not_allowed_here,c-1,1),K}function $t(){return V(c)===110?(D+="n",R&384&&(D=vb(D)+"n"),c++,10):(D=""+(R&128?parseInt(D.slice(2),2):R&256?parseInt(D.slice(2),8):+D),9)}function ot(){for(y=c,R=0;;){if(G=c,c>=W)return E=1;let U=ae(c);if(c===0&&U===35&&Fm(k,c)){if(c=zm(k,c),t)continue;return E=6}switch(U){case 10:case 13:if(R|=1,t){c++;continue}else return U===13&&c+1=0&&Zn(K,e))return D=Bn(!0)+ht(),E=$e();let Z=Pn();return Z>=0&&Zn(Z,e)?(c+=6,R|=1024,D=String.fromCharCode(Z)+ht(),E=$e()):(Y(A.Invalid_character),c++,E=0);case 35:if(c!==0&&k[c+1]==="!")return Y(A.can_only_be_used_at_the_start_of_a_file,c,2),c++,E=0;let xe=ae(c+1);if(xe===92){c++;let me=Mt();if(me>=0&&Zn(me,e))return D="#"+Bn(!0)+ht(),E=81;let Ve=Pn();if(Ve>=0&&Zn(Ve,e))return c+=6,R|=1024,D="#"+String.fromCharCode(Ve)+ht(),E=81;c--}return Zn(xe,e)?(c++,Lt(xe,e)):(D="#",Y(A.Invalid_character,c++,Vt(U))),E=81;case 65533:return Y(A.File_appears_to_be_binary,0,0),c=W,E=8;default:let Se=Lt(U,e);if(Se)return E=Se;if(n_(U)){c+=Vt(U);continue}else if(kn(U)){R|=1,c+=Vt(U);continue}let we=Vt(U);return Y(A.Invalid_character,c,we),c+=we,E=0}}}function at(){switch(de){case 0:return!0;case 1:return!1}return he!==3&&he!==4?!0:de===3?!1:Zy.test(k.slice(y,c))}function Bt(){q.assert(E===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),c=G=y,R=0;let U=ae(c),K=Lt(U,99);return K?E=K:(c+=Vt(U),E)}function Lt(U,K){let Z=U;if(Zn(Z,K)){for(c+=Vt(Z);c=W)return E=1;let K=V(c);if(K===60)return V(c+1)===47?(c+=2,E=31):(c++,E=30);if(K===123)return c++,E=19;let Z=0;for(;c0)break;qa(K)||(Z=c)}c++}return D=k.substring(y,c),Z===-1?13:12}function Or(){if(St(E)){for(;c=W)return E=1;for(let K=V(c);c=0&&n_(V(c-1))&&!(c+1=W)return E=1;let U=ae(c);switch(c+=Vt(U),U){case 9:case 11:case 12:case 32:for(;c=0&&Zn(K,e))return D=Bn(!0)+ht(),E=$e();let Z=Pn();return Z>=0&&Zn(Z,e)?(c+=6,R|=1024,D=String.fromCharCode(Z)+ht(),E=$e()):(c++,E=0)}if(Zn(U,e)){let K=U;for(;c=0),c=U,y=U,G=U,E=0,D=void 0,R=0}function wi(U){be+=U?1:-1}}function Qi(e,t){return e.codePointAt(t)}function Vt(e){return e>=65536?2:e===-1?0:1}function lg(e){if(q.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);let t=Math.floor((e-65536)/1024)+55296,a=(e-65536)%1024+56320;return String.fromCharCode(t,a)}var ug=String.fromCodePoint?e=>String.fromCodePoint(e):lg;function kd(e){return ug(e)}var Ed=new Map(Object.entries({General_Category:"General_Category",gc:"General_Category",Script:"Script",sc:"Script",Script_Extensions:"Script_Extensions",scx:"Script_Extensions"})),Ad=new Set(["ASCII","ASCII_Hex_Digit","AHex","Alphabetic","Alpha","Any","Assigned","Bidi_Control","Bidi_C","Bidi_Mirrored","Bidi_M","Case_Ignorable","CI","Cased","Changes_When_Casefolded","CWCF","Changes_When_Casemapped","CWCM","Changes_When_Lowercased","CWL","Changes_When_NFKC_Casefolded","CWKCF","Changes_When_Titlecased","CWT","Changes_When_Uppercased","CWU","Dash","Default_Ignorable_Code_Point","DI","Deprecated","Dep","Diacritic","Dia","Emoji","Emoji_Component","EComp","Emoji_Modifier","EMod","Emoji_Modifier_Base","EBase","Emoji_Presentation","EPres","Extended_Pictographic","ExtPict","Extender","Ext","Grapheme_Base","Gr_Base","Grapheme_Extend","Gr_Ext","Hex_Digit","Hex","IDS_Binary_Operator","IDSB","IDS_Trinary_Operator","IDST","ID_Continue","IDC","ID_Start","IDS","Ideographic","Ideo","Join_Control","Join_C","Logical_Order_Exception","LOE","Lowercase","Lower","Math","Noncharacter_Code_Point","NChar","Pattern_Syntax","Pat_Syn","Pattern_White_Space","Pat_WS","Quotation_Mark","QMark","Radical","Regional_Indicator","RI","Sentence_Terminal","STerm","Soft_Dotted","SD","Terminal_Punctuation","Term","Unified_Ideograph","UIdeo","Uppercase","Upper","Variation_Selector","VS","White_Space","space","XID_Continue","XIDC","XID_Start","XIDS"]),Cd=new Set(["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Flag_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence","RGI_Emoji"]),Ra={General_Category:new Set(["C","Other","Cc","Control","cntrl","Cf","Format","Cn","Unassigned","Co","Private_Use","Cs","Surrogate","L","Letter","LC","Cased_Letter","Ll","Lowercase_Letter","Lm","Modifier_Letter","Lo","Other_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter","M","Mark","Combining_Mark","Mc","Spacing_Mark","Me","Enclosing_Mark","Mn","Nonspacing_Mark","N","Number","Nd","Decimal_Number","digit","Nl","Letter_Number","No","Other_Number","P","Punctuation","punct","Pc","Connector_Punctuation","Pd","Dash_Punctuation","Pe","Close_Punctuation","Pf","Final_Punctuation","Pi","Initial_Punctuation","Po","Other_Punctuation","Ps","Open_Punctuation","S","Symbol","Sc","Currency_Symbol","Sk","Modifier_Symbol","Sm","Math_Symbol","So","Other_Symbol","Z","Separator","Zl","Line_Separator","Zp","Paragraph_Separator","Zs","Space_Separator"]),Script:new Set(["Adlm","Adlam","Aghb","Caucasian_Albanian","Ahom","Arab","Arabic","Armi","Imperial_Aramaic","Armn","Armenian","Avst","Avestan","Bali","Balinese","Bamu","Bamum","Bass","Bassa_Vah","Batk","Batak","Beng","Bengali","Bhks","Bhaiksuki","Bopo","Bopomofo","Brah","Brahmi","Brai","Braille","Bugi","Buginese","Buhd","Buhid","Cakm","Chakma","Cans","Canadian_Aboriginal","Cari","Carian","Cham","Cher","Cherokee","Chrs","Chorasmian","Copt","Coptic","Qaac","Cpmn","Cypro_Minoan","Cprt","Cypriot","Cyrl","Cyrillic","Deva","Devanagari","Diak","Dives_Akuru","Dogr","Dogra","Dsrt","Deseret","Dupl","Duployan","Egyp","Egyptian_Hieroglyphs","Elba","Elbasan","Elym","Elymaic","Ethi","Ethiopic","Geor","Georgian","Glag","Glagolitic","Gong","Gunjala_Gondi","Gonm","Masaram_Gondi","Goth","Gothic","Gran","Grantha","Grek","Greek","Gujr","Gujarati","Guru","Gurmukhi","Hang","Hangul","Hani","Han","Hano","Hanunoo","Hatr","Hatran","Hebr","Hebrew","Hira","Hiragana","Hluw","Anatolian_Hieroglyphs","Hmng","Pahawh_Hmong","Hmnp","Nyiakeng_Puachue_Hmong","Hrkt","Katakana_Or_Hiragana","Hung","Old_Hungarian","Ital","Old_Italic","Java","Javanese","Kali","Kayah_Li","Kana","Katakana","Kawi","Khar","Kharoshthi","Khmr","Khmer","Khoj","Khojki","Kits","Khitan_Small_Script","Knda","Kannada","Kthi","Kaithi","Lana","Tai_Tham","Laoo","Lao","Latn","Latin","Lepc","Lepcha","Limb","Limbu","Lina","Linear_A","Linb","Linear_B","Lisu","Lyci","Lycian","Lydi","Lydian","Mahj","Mahajani","Maka","Makasar","Mand","Mandaic","Mani","Manichaean","Marc","Marchen","Medf","Medefaidrin","Mend","Mende_Kikakui","Merc","Meroitic_Cursive","Mero","Meroitic_Hieroglyphs","Mlym","Malayalam","Modi","Mong","Mongolian","Mroo","Mro","Mtei","Meetei_Mayek","Mult","Multani","Mymr","Myanmar","Nagm","Nag_Mundari","Nand","Nandinagari","Narb","Old_North_Arabian","Nbat","Nabataean","Newa","Nkoo","Nko","Nshu","Nushu","Ogam","Ogham","Olck","Ol_Chiki","Orkh","Old_Turkic","Orya","Oriya","Osge","Osage","Osma","Osmanya","Ougr","Old_Uyghur","Palm","Palmyrene","Pauc","Pau_Cin_Hau","Perm","Old_Permic","Phag","Phags_Pa","Phli","Inscriptional_Pahlavi","Phlp","Psalter_Pahlavi","Phnx","Phoenician","Plrd","Miao","Prti","Inscriptional_Parthian","Rjng","Rejang","Rohg","Hanifi_Rohingya","Runr","Runic","Samr","Samaritan","Sarb","Old_South_Arabian","Saur","Saurashtra","Sgnw","SignWriting","Shaw","Shavian","Shrd","Sharada","Sidd","Siddham","Sind","Khudawadi","Sinh","Sinhala","Sogd","Sogdian","Sogo","Old_Sogdian","Sora","Sora_Sompeng","Soyo","Soyombo","Sund","Sundanese","Sylo","Syloti_Nagri","Syrc","Syriac","Tagb","Tagbanwa","Takr","Takri","Tale","Tai_Le","Talu","New_Tai_Lue","Taml","Tamil","Tang","Tangut","Tavt","Tai_Viet","Telu","Telugu","Tfng","Tifinagh","Tglg","Tagalog","Thaa","Thaana","Thai","Tibt","Tibetan","Tirh","Tirhuta","Tnsa","Tangsa","Toto","Ugar","Ugaritic","Vaii","Vai","Vith","Vithkuqi","Wara","Warang_Citi","Wcho","Wancho","Xpeo","Old_Persian","Xsux","Cuneiform","Yezi","Yezidi","Yiii","Yi","Zanb","Zanabazar_Square","Zinh","Inherited","Qaai","Zyyy","Common","Zzzz","Unknown"]),Script_Extensions:void 0};Ra.Script_Extensions=Ra.Script;function kr(e){return e.start+e.length}function pg(e){return e.length===0}function _f(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function fg(e,t){return _f(e,t-e)}function Qs(e){return _f(e.span.start,e.newLength)}function dg(e){return pg(e.span)&&e.newLength===0}function Ym(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}var n3=Ym(_f(0,0),0);function of(e,t){for(;e;){let a=t(e);if(a==="quit")return;if(a)return e;e=e.parent}}function gl(e){return(e.flags&16)===0}function mg(e,t){if(e===void 0||gl(e))return e;for(e=e.original;e;){if(gl(e))return!t||t(e)?e:void 0;e=e.original}}function La(e){return e.length>=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function l_(e){let t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}function An(e){return l_(e.escapedText)}function cf(e){let t=Rm(e.escapedText);return t?Sy(t,di):void 0}function Jp(e){return e.valueDeclaration&&jg(e.valueDeclaration)?An(e.valueDeclaration.name):l_(e.escapedName)}function Hm(e){let t=e.parent.parent;if(t){if(Nd(t))return rl(t);switch(t.kind){case 244:if(t.declarationList&&t.declarationList.declarations[0])return rl(t.declarationList.declarations[0]);break;case 245:let a=t.expression;switch(a.kind===227&&a.operatorToken.kind===64&&(a=a.left),a.kind){case 212:return a.name;case 213:let _=a.argumentExpression;if(Ke(_))return _}break;case 218:return rl(t.expression);case 257:{if(Nd(t.statement)||_1(t.statement))return rl(t.statement);break}}}}function rl(e){let t=Xm(e);return t&&Ke(t)?t:void 0}function hg(e){return e.name||Hm(e)}function yg(e){return!!e.name}function lf(e){switch(e.kind){case 80:return e;case 349:case 342:{let{name:a}=e;if(a.kind===167)return a.right;break}case 214:case 227:{let a=e;switch(yf(a)){case 1:case 4:case 5:case 3:return gf(a.left);case 7:case 8:case 9:return a.arguments[1];default:return}}case 347:return hg(e);case 341:return Hm(e);case 278:{let{expression:a}=e;return Ke(a)?a:void 0}case 213:let t=e;if(d1(t))return t.argumentExpression}return e.name}function Xm(e){if(e!==void 0)return lf(e)||(Mf(e)||Lf(e)||xl(e)?gg(e):void 0)}function gg(e){if(e.parent){if(K1(e.parent)||B1(e.parent))return e.parent.name;if(na(e.parent)&&e===e.parent.right){if(Ke(e.parent.left))return e.parent.left;if(v1(e.parent.left))return gf(e.parent.left)}else if(Jf(e.parent)&&Ke(e.parent.name))return e.parent.name}else return}function uf(e){if(F2(e))return Hr(e.modifiers,Cl)}function $m(e){if(v_(e,98303))return Hr(e.modifiers,Bg)}function Qm(e,t){if(e.name)if(Ke(e.name)){let a=e.name.escapedText;return u_(e.parent,t).filter(_=>zp(_)&&Ke(_.name)&&_.name.escapedText===a)}else{let a=e.parent.parameters.indexOf(e);q.assert(a>-1,"Parameters should always be in their parents' parameter list");let _=u_(e.parent,t).filter(zp);if(a<_.length)return[_[a]]}return vt}function bg(e){return Qm(e,!1)}function vg(e){return Qm(e,!0)}function Km(e,t){let a=e.name.escapedText;return u_(e.parent,t).filter(_=>ih(_)&&_.typeParameters.some(f=>f.name.escapedText===a))}function Tg(e){return Km(e,!1)}function xg(e){return Km(e,!0)}function Sg(e){return bi(e,a6)}function wg(e){return Ig(e,d6)}function kg(e){return bi(e,s6,!0)}function Eg(e){return bi(e,_6,!0)}function Ag(e){return bi(e,o6,!0)}function Cg(e){return bi(e,c6,!0)}function Dg(e){return bi(e,l6,!0)}function Pg(e){return bi(e,p6,!0)}function Ng(e){let t=bi(e,zf);if(t&&t.typeExpression&&t.typeExpression.type)return t}function u_(e,t){var a;if(!bf(e))return vt;let _=(a=e.jsDoc)==null?void 0:a.jsDocCache;if(_===void 0||t){let f=E2(e,t);q.assert(f.length<2||f[0]!==f[1]),_=Tm(f,h=>rh(h)?h.tags:h),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=_)}return _}function Zm(e){return u_(e,!1)}function bi(e,t,a){return bm(u_(e,a),t)}function Ig(e,t){return Zm(e).filter(t)}function jp(e){return e.kind===80||e.kind===81}function Og(e){return dr(e)&&!!(e.flags&64)}function Mg(e){return Ha(e)&&!!(e.flags&64)}function Dd(e){return Of(e)&&!!(e.flags&64)}function e1(e){let t=e.kind;return!!(e.flags&64)&&(t===212||t===213||t===214||t===236)}function pf(e){return Vf(e,8)}function Lg(e){return fl(e)&&!!(e.flags&64)}function ff(e){return e>=167}function df(e){return e>=0&&e<=166}function t1(e){return df(e.kind)}function mi(e){return Dr(e,"pos")&&Dr(e,"end")}function Jg(e){return 9<=e&&e<=15}function Pd(e){return 15<=e&&e<=18}function Ua(e){var t;return Ke(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function n1(e){var t;return gi(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function jg(e){return(Wa(e)||zg(e))&&gi(e.name)}function Yr(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function Rg(e){return!!(g1(e)&31)}function Ug(e){return Rg(e)||e===126||e===164||e===129}function Bg(e){return Yr(e.kind)}function r1(e){let t=e.kind;return t===80||t===81||t===11||t===9||t===168}function mf(e){return!!e&&Fg(e.kind)}function qg(e){switch(e){case 263:case 175:case 177:case 178:case 179:case 219:case 220:return!0;default:return!1}}function Fg(e){switch(e){case 174:case 180:case 324:case 181:case 182:case 185:case 318:case 186:return!0;default:return qg(e)}}function ra(e){return e&&(e.kind===264||e.kind===232)}function zg(e){switch(e.kind){case 175:case 178:case 179:return!0;default:return!1}}function Vg(e){let t=e.kind;return t===304||t===305||t===306||t===175||t===178||t===179}function i1(e){return Z2(e.kind)}function Wg(e){if(e){let t=e.kind;return t===208||t===207}return!1}function Gg(e){let t=e.kind;return t===210||t===211}function Yg(e){switch(e.kind){case 261:case 170:case 209:return!0}return!1}function Fa(e){return a1(pf(e).kind)}function a1(e){switch(e){case 212:case 213:case 215:case 214:case 285:case 286:case 289:case 216:case 210:case 218:case 211:case 232:case 219:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 229:case 97:case 106:case 110:case 112:case 108:case 236:case 234:case 237:case 102:case 283:return!0;default:return!1}}function Hg(e){return s1(pf(e).kind)}function s1(e){switch(e){case 225:case 226:case 221:case 222:case 223:case 224:case 217:return!0;default:return a1(e)}}function _1(e){return Xg(pf(e).kind)}function Xg(e){switch(e){case 228:case 230:case 220:case 227:case 231:case 235:case 233:case 357:case 356:case 239:return!0;default:return s1(e)}}function $g(e){return e===220||e===209||e===264||e===232||e===176||e===177||e===267||e===307||e===282||e===263||e===219||e===178||e===274||e===272||e===277||e===265||e===292||e===175||e===174||e===268||e===271||e===275||e===281||e===170||e===304||e===173||e===172||e===179||e===305||e===266||e===169||e===261||e===347||e===339||e===349||e===203}function o1(e){return e===263||e===283||e===264||e===265||e===266||e===267||e===268||e===273||e===272||e===279||e===278||e===271}function c1(e){return e===253||e===252||e===260||e===247||e===245||e===243||e===250||e===251||e===249||e===246||e===257||e===254||e===256||e===258||e===259||e===244||e===248||e===255||e===354}function Nd(e){return e.kind===169?e.parent&&e.parent.kind!==346||ia(e):$g(e.kind)}function Qg(e){let t=e.kind;return c1(t)||o1(t)||Kg(e)}function Kg(e){return e.kind!==242||e.parent!==void 0&&(e.parent.kind===259||e.parent.kind===300)?!1:!f2(e)}function Zg(e){let t=e.kind;return c1(t)||o1(t)||t===242}function l1(e){return e.kind>=310&&e.kind<=352}function e2(e){return e.kind===321||e.kind===320||e.kind===322||r2(e)||t2(e)||i6(e)||Il(e)}function t2(e){return e.kind>=328&&e.kind<=352}function il(e){return e.kind===179}function al(e){return e.kind===178}function Ki(e){if(!bf(e))return!1;let{jsDoc:t}=e;return!!t&&t.length>0}function n2(e){return!!e.initializer}function El(e){return e.kind===11||e.kind===15}function r2(e){return e.kind===325||e.kind===326||e.kind===327}function Id(e){return(e.flags&33554432)!==0}var r3=i2();function i2(){var e="";let t=a=>e+=a;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(a,_)=>t(a),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&qa(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:Va,decreaseIndent:Va,clear:()=>e=""}}function a2(e,t){let a=e.entries();for(let[_,f]of a){let h=t(f,_);if(h)return h}}function s2(e){return e.end-e.pos}function u1(e){return _2(e),(e.flags&1048576)!==0}function _2(e){e.flags&2097152||(((e.flags&262144)!==0||Xt(e,u1))&&(e.flags|=1048576),e.flags|=2097152)}function hi(e){for(;e&&e.kind!==308;)e=e.parent;return e}function Zi(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function Rp(e){return!Zi(e)}function bl(e,t,a){if(Zi(e))return e.pos;if(l1(e)||e.kind===12)return Cr((t??hi(e)).text,e.pos,!1,!0);if(a&&Ki(e))return bl(e.jsDoc[0],t);if(e.kind===353){t??(t=hi(e));let _=Hp(ah(e,t));if(_)return bl(_,t,a)}return Cr((t??hi(e)).text,e.pos,!1,!1,d2(e))}function Od(e,t,a=!1){return r_(e.text,t,a)}function o2(e){return!!of(e,eh)}function r_(e,t,a=!1){if(Zi(t))return"";let _=e.substring(a?t.pos:Cr(e,t.pos),t.end);return o2(t)&&(_=_.split(/\r\n|\n|\r/).map(f=>f.replace(/^\s*\*/,"").trimStart()).join(` +`)),_}function za(e){let t=e.emitNode;return t&&t.flags||0}function c2(e,t,a){q.assertGreaterThanOrEqual(t,0),q.assertGreaterThanOrEqual(a,0),q.assertLessThanOrEqual(t,e.length),q.assertLessThanOrEqual(t+a,e.length)}function pl(e){return e.kind===245&&e.expression.kind===11}function hf(e){return!!(za(e)&2097152)}function Md(e){return hf(e)&&jf(e)}function l2(e){return Ke(e.name)&&!e.initializer}function Ld(e){return hf(e)&&Xa(e)&&Gp(e.declarationList.declarations,l2)}function u2(e,t){let a=e.kind===170||e.kind===169||e.kind===219||e.kind===220||e.kind===218||e.kind===261||e.kind===282?Yp(og(t,e.pos),Lp(t,e.pos)):Lp(t,e.pos);return Hr(a,_=>_.end<=e.end&&t.charCodeAt(_.pos+1)===42&&t.charCodeAt(_.pos+2)===42&&t.charCodeAt(_.pos+3)!==47)}function p2(e){if(e)switch(e.kind){case 209:case 307:case 170:case 304:case 173:case 172:case 305:case 261:return!0}return!1}function f2(e){return e&&e.kind===242&&mf(e.parent)}function Jd(e){let t=e.kind;return(t===212||t===213)&&e.expression.kind===108}function ia(e){return!!e&&!!(e.flags&524288)}function d2(e){return!!e&&!!(e.flags&16777216)}function m2(e){for(;vl(e,!0);)e=e.right;return e}function h2(e){return Ke(e)&&e.escapedText==="exports"}function y2(e){return Ke(e)&&e.escapedText==="module"}function p1(e){return(dr(e)||f1(e))&&y2(e.expression)&&f_(e)==="exports"}function yf(e){let t=b2(e);return t===5||ia(e)?t:0}function g2(e){return e_(e.arguments)===3&&dr(e.expression)&&Ke(e.expression.expression)&&An(e.expression.expression)==="Object"&&An(e.expression.name)==="defineProperty"&&Al(e.arguments[1])&&p_(e.arguments[0],!0)}function f1(e){return Ha(e)&&Al(e.argumentExpression)}function b_(e,t){return dr(e)&&(!t&&e.expression.kind===110||Ke(e.name)&&p_(e.expression,!0))||d1(e,t)}function d1(e,t){return f1(e)&&(!t&&e.expression.kind===110||xf(e.expression)||b_(e.expression,!0))}function p_(e,t){return xf(e)||b_(e,t)}function b2(e){if(Of(e)){if(!g2(e))return 0;let t=e.arguments[0];return h2(t)||p1(t)?8:b_(t)&&f_(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!v1(e.left)||v2(m2(e))?0:p_(e.left.expression,!0)&&f_(e.left)==="prototype"&&If(x2(e))?6:T2(e.left)}function v2(e){return Kb(e)&&aa(e.expression)&&e.expression.text==="0"}function gf(e){if(dr(e))return e.name;let t=vf(e.argumentExpression);return aa(t)||El(t)?t:e}function f_(e){let t=gf(e);if(t){if(Ke(t))return t.escapedText;if(El(t)||aa(t))return La(t.text)}}function T2(e){if(e.expression.kind===110)return 4;if(p1(e))return 2;if(p_(e.expression,!0)){if(Q2(e.expression))return 3;let t=e;for(;!Ke(t.expression);)t=t.expression;let a=t.expression;if((a.escapedText==="exports"||a.escapedText==="module"&&f_(t)==="exports")&&b_(e))return 1;if(p_(e,!0)||Ha(e)&&J2(e))return 5}return 0}function x2(e){for(;na(e.right);)e=e.right;return e.right}function S2(e){return Pl(e)&&na(e.expression)&&yf(e.expression)!==0&&na(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function w2(e){switch(e.kind){case 244:let t=Up(e);return t&&t.initializer;case 173:return e.initializer;case 304:return e.initializer}}function Up(e){return Xa(e)?Hp(e.declarationList.declarations):void 0}function k2(e){return Ti(e)&&e.body&&e.body.kind===268?e.body:void 0}function bf(e){switch(e.kind){case 220:case 227:case 242:case 253:case 180:case 297:case 264:case 232:case 176:case 177:case 186:case 181:case 252:case 260:case 247:case 213:case 243:case 1:case 267:case 307:case 278:case 279:case 282:case 245:case 250:case 251:case 249:case 263:case 219:case 185:case 178:case 80:case 246:case 273:case 272:case 182:case 265:case 318:case 324:case 257:case 175:case 174:case 268:case 203:case 271:case 211:case 170:case 218:case 212:case 304:case 173:case 172:case 254:case 241:case 179:case 305:case 306:case 256:case 258:case 259:case 266:case 169:case 261:case 244:case 248:case 255:return!0;default:return!1}}function E2(e,t){let a;p2(e)&&n2(e)&&Ki(e.initializer)&&(a=En(a,jd(e,e.initializer.jsDoc)));let _=e;for(;_&&_.parent;){if(Ki(_)&&(a=En(a,jd(e,_.jsDoc))),_.kind===170){a=En(a,(t?vg:bg)(_));break}if(_.kind===169){a=En(a,(t?xg:Tg)(_));break}_=C2(_)}return a||vt}function jd(e,t){let a=dy(t);return Tm(t,_=>{if(_===a){let f=Hr(_.tags,h=>A2(e,h));return _.tags===f?[_]:f}else return Hr(_.tags,u6)})}function A2(e,t){return!(zf(t)||m6(t))||!t.parent||!rh(t.parent)||!Dl(t.parent.parent)||t.parent.parent===e}function C2(e){let t=e.parent;if(t.kind===304||t.kind===278||t.kind===173||t.kind===245&&e.kind===212||t.kind===254||k2(t)||vl(e))return t;if(t.parent&&(Up(t.parent)===e||vl(t)))return t.parent;if(t.parent&&t.parent.parent&&(Up(t.parent.parent)||w2(t.parent.parent)===e||S2(t.parent.parent)))return t.parent.parent}function vf(e,t){return Vf(e,t?-2147483647:1)}function D2(e){let t=P2(e);if(t&&ia(e)){let a=Sg(e);if(a)return a.class}return t}function P2(e){let t=Tf(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function N2(e){if(ia(e))return wg(e).map(t=>t.class);{let t=Tf(e.heritageClauses,119);return t?.types}}function I2(e){return T_(e)?O2(e)||vt:ra(e)&&Yp(Ip(D2(e)),N2(e))||vt}function O2(e){let t=Tf(e.heritageClauses,96);return t?t.types:void 0}function Tf(e,t){if(e){for(let a of e)if(a.token===t)return a}}function di(e){return 83<=e&&e<=166}function M2(e){return 19<=e&&e<=79}function xp(e){return di(e)||M2(e)}function Al(e){return El(e)||aa(e)}function L2(e){return z1(e)&&(e.operator===40||e.operator===41)&&aa(e.operand)}function J2(e){if(!(e.kind===168||e.kind===213))return!1;let t=Ha(e)?vf(e.argumentExpression):e.expression;return!Al(t)&&!L2(t)}function j2(e){return jp(e)?An(e):Q1(e)?Eb(e):e.text}function Ja(e){return d_(e.pos)||d_(e.end)}function Sp(e){switch(e){case 61:return 5;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function wp(e){return!!((e.templateFlags||0)&2048)}function R2(e){return e&&!!(E1(e)?wp(e):wp(e.head)||Zt(e.templateSpans,t=>wp(t.literal)))}var i3=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"}));var a3=new Map(Object.entries({'"':""","'":"'"}));function U2(e){return!!e&&e.kind===80&&B2(e)}function B2(e){return e.escapedText==="this"}function v_(e,t){return!!z2(e,t)}function q2(e){return v_(e,256)}function F2(e){return v_(e,32768)}function z2(e,t){return W2(e)&t}function V2(e,t,a){return e.kind>=0&&e.kind<=166?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=y1(e)|536870912),a||t&&ia(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=m1(e)|268435456),h1(e.modifierFlagsCache)):G2(e.modifierFlagsCache))}function W2(e){return V2(e,!1)}function m1(e){let t=0;return e.parent&&!m_(e)&&(ia(e)&&(kg(e)&&(t|=8388608),Eg(e)&&(t|=16777216),Ag(e)&&(t|=33554432),Cg(e)&&(t|=67108864),Dg(e)&&(t|=134217728)),Pg(e)&&(t|=65536)),t}function G2(e){return e&65535}function h1(e){return e&131071|(e&260046848)>>>23}function Y2(e){return h1(m1(e))}function H2(e){return y1(e)|Y2(e)}function y1(e){let t=Ol(e)?Jn(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=32),t}function Jn(e){let t=0;if(e)for(let a of e)t|=g1(a.kind);return t}function g1(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 171:return 32768}return 0}function X2(e){return e===76||e===77||e===78}function b1(e){return e>=64&&e<=79}function vl(e,t){return na(e)&&(t?e.operatorToken.kind===64:b1(e.operatorToken.kind))&&Fa(e.left)}function xf(e){return e.kind===80||$2(e)}function $2(e){return dr(e)&&Ke(e.name)&&xf(e.expression)}function Q2(e){return b_(e)&&f_(e)==="prototype"}function kp(e){return e.flags&3899393?e.objectFlags:0}function K2(e){let t;return Xt(e,a=>{Rp(a)&&(t=a)},a=>{for(let _=a.length-1;_>=0;_--)if(Rp(a[_])){t=a[_];break}}),t}function Z2(e){return e>=183&&e<=206||e===133||e===159||e===150||e===163||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===234||e===313||e===314||e===315||e===316||e===317||e===318||e===319}function v1(e){return e.kind===212||e.kind===213}function eb(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}function tb(e,t){this.flags=t,(q.isDebugging||ll)&&(this.checker=e)}function nb(e,t){this.flags=t,q.isDebugging&&(this.checker=e)}function Ep(e,t,a){this.pos=t,this.end=a,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function rb(e,t,a){this.pos=t,this.end=a,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function ib(e,t,a){this.pos=t,this.end=a,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function ab(e,t,a){this.fileName=e,this.text=t,this.skipTrivia=a||(_=>_)}var Et={getNodeConstructor:()=>Ep,getTokenConstructor:()=>rb,getIdentifierConstructor:()=>ib,getPrivateIdentifierConstructor:()=>Ep,getSourceFileConstructor:()=>Ep,getSymbolConstructor:()=>eb,getTypeConstructor:()=>tb,getSignatureConstructor:()=>nb,getSourceMapSourceConstructor:()=>ab},sb=[];function _b(e){Object.assign(Et,e),jn(sb,t=>t(Et))}function ob(e,t){return e.replace(/\{(\d+)\}/g,(a,_)=>""+q.checkDefined(t[+_]))}var Rd;function cb(e){return Rd&&Rd[e.key]||e.message}function Oa(e,t,a,_,f,...h){a+_>t.length&&(_=t.length-a),c2(t,a,_);let T=cb(f);return Zt(h)&&(T=ob(T,h)),{file:void 0,start:a,length:_,messageText:T,category:f.category,code:f.code,reportsUnnecessary:f.reportsUnnecessary,fileName:e}}function lb(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function T1(e,t){let a=t.fileName||"",_=t.text.length;q.assertEqual(e.fileName,a),q.assertLessThanOrEqual(e.start,_),q.assertLessThanOrEqual(e.start+e.length,_);let f={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){f.relatedInformation=[];for(let h of e.relatedInformation)lb(h)&&h.fileName===a?(q.assertLessThanOrEqual(h.start,_),q.assertLessThanOrEqual(h.start+h.length,_),f.relatedInformation.push(T1(h,t))):f.relatedInformation.push(h)}return f}function Yi(e,t){let a=[];for(let _ of e)a.push(T1(_,t));return a}function Ud(e){return e===4||e===2||e===1||e===6?1:0}var it={allowImportingTsExtensions:{dependencies:["rewriteRelativeImportExtensions"],computeValue:e=>!!(e.allowImportingTsExtensions||e.rewriteRelativeImportExtensions)},target:{dependencies:["module"],computeValue:e=>(e.target===0?void 0:e.target)??(e.module===100&&9||e.module===101&&9||e.module===102&&10||e.module===199&&99||1)},module:{dependencies:["target"],computeValue:e=>typeof e.module=="number"?e.module:it.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(t===void 0)switch(it.module.computeValue(e)){case 1:t=2;break;case 100:case 101:case 102:t=3;break;case 199:t=99;break;case 200:t=100;break;default:t=1;break}return t}},moduleDetection:{dependencies:["module","target"],computeValue:e=>{if(e.moduleDetection!==void 0)return e.moduleDetection;let t=it.module.computeValue(e);return 100<=t&&t<=199?3:2}},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:e=>!!(e.isolatedModules||e.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:e=>{if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(it.module.computeValue(e)){case 100:case 101:case 102:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:it.esModuleInterop.computeValue(e)||it.module.computeValue(e)===4||it.moduleResolution.computeValue(e)===100},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{let t=it.moduleResolution.computeValue(e);if(!Bd(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:e=>{let t=it.moduleResolution.computeValue(e);if(!Bd(t))return!1;if(e.resolvePackageJsonImports!==void 0)return e.resolvePackageJsonImports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>{if(e.resolveJsonModule!==void 0)return e.resolveJsonModule;switch(it.module.computeValue(e)){case 102:case 199:return!0}return it.moduleResolution.computeValue(e)===100}},declaration:{dependencies:["composite"],computeValue:e=>!!(e.declaration||e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!!(e.preserveConstEnums||it.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!!(e.incremental||e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!!(e.declarationMap&&it.declaration.computeValue(e))},allowJs:{dependencies:["checkJs"],computeValue:e=>e.allowJs===void 0?!!e.checkJs:e.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:e=>e.useDefineForClassFields===void 0?it.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>Gr(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>Gr(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>Gr(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>Gr(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>Gr(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>Gr(e,"strictPropertyInitialization")},strictBuiltinIteratorReturn:{dependencies:["strict"],computeValue:e=>Gr(e,"strictBuiltinIteratorReturn")},alwaysStrict:{dependencies:["strict"],computeValue:e=>Gr(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>Gr(e,"useUnknownInCatchVariables")}};var s3=it.allowImportingTsExtensions.computeValue,_3=it.target.computeValue,o3=it.module.computeValue,c3=it.moduleResolution.computeValue,l3=it.moduleDetection.computeValue,u3=it.isolatedModules.computeValue,p3=it.esModuleInterop.computeValue,f3=it.allowSyntheticDefaultImports.computeValue,d3=it.resolvePackageJsonExports.computeValue,m3=it.resolvePackageJsonImports.computeValue,h3=it.resolveJsonModule.computeValue,y3=it.declaration.computeValue,g3=it.preserveConstEnums.computeValue,b3=it.incremental.computeValue,v3=it.declarationMap.computeValue,T3=it.allowJs.computeValue,x3=it.useDefineForClassFields.computeValue;function Bd(e){return e>=3&&e<=99||e===100}function Gr(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function ub(e){return a2(targetOptionDeclaration.type,(t,a)=>t===e?a:void 0)}var pb=["node_modules","bower_components","jspm_packages"],x1=`(?!(?:${pb.join("|")})(?:/|$))`,fb={singleAsteriskRegexFragment:"(?:[^./]|(?:\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(?:/${x1}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>S1(e,fb.singleAsteriskRegexFragment)},db={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(?:/${x1}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>S1(e,db.singleAsteriskRegexFragment)};function S1(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function mb(e,t){return t||hb(e)||3}function hb(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}var w1=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],S3=vm(w1),w3=[...w1,[".json"]];var yb=[[".js",".jsx"],[".mjs"],[".cjs"]],k3=vm(yb),gb=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],E3=[...gb,[".json"]],bb=[".d.ts",".d.cts",".d.mts"];function d_(e){return!(e>=0)}function sl(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),q.assert(e.relatedInformation!==vt,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function vb(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:let W=e.length-1,y=0;for(;e.charCodeAt(y)===48;)y++;return e.slice(y,W)||"0"}let a=2,_=e.length-1,f=(_-a)*t,h=new Uint16Array((f>>>4)+(f&15?1:0));for(let W=_-1,y=0;W>=a;W--,y+=t){let G=y>>>4,E=e.charCodeAt(W),R=(E<=57?E-48:10+E-(E<=70?65:97))<<(y&15);h[G]|=R;let ue=R>>>16;ue&&(h[G+1]|=ue)}let T="",k=h.length-1,c=!0;for(;c;){let W=0;c=!1;for(let y=k;y>=0;y--){let G=W<<16|h[y],E=G/10|0;h[y]=E,W=G-E*10,E&&!c&&(k=y,c=!0)}T=W+T}return T}function Tb({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function Bp(e,t){return e.pos=t,e}function xb(e,t){return e.end=t,e}function yi(e,t,a){return xb(Bp(e,t),a)}function qd(e,t,a){return yi(e,t,t+a)}function Sf(e,t){return e&&t&&(e.parent=t),e}function Sb(e,t){if(!e)return e;return dm(e,l1(e)?a:f),e;function a(h,T){if(t&&h.parent===T)return"skip";Sf(h,T)}function _(h){if(Ki(h))for(let T of h.jsDoc)a(T,h),dm(T,a)}function f(h,T){return a(h,T)||_(h)}}function wb(e){return!!(e.flags&262144&&e.isThisType)}function kb(e){var t;return((t=getSnippetElement(e))==null?void 0:t.kind)===0}function Eb(e){return`${An(e.namespace)}:${An(e.name)}`}var A3=String.prototype.replace;var qp=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","http2","https","inspector","inspector/promises","module","net","os","path","path/posix","path/win32","perf_hooks","process","punycode","querystring","readline","readline/promises","repl","stream","stream/consumers","stream/promises","stream/web","string_decoder","sys","test/mock_loader","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],C3=new Set(qp),Ab=new Set(["node:sea","node:sqlite","node:test","node:test/reporters"]),D3=new Set([...qp,...qp.map(e=>`node:${e}`),...Ab]);function Cb(){let e,t,a,_,f;return{createBaseSourceFileNode:h,createBaseIdentifierNode:T,createBasePrivateIdentifierNode:k,createBaseTokenNode:c,createBaseNode:W};function h(y){return new(f||(f=Et.getSourceFileConstructor()))(y,-1,-1)}function T(y){return new(a||(a=Et.getIdentifierConstructor()))(y,-1,-1)}function k(y){return new(_||(_=Et.getPrivateIdentifierConstructor()))(y,-1,-1)}function c(y){return new(t||(t=Et.getTokenConstructor()))(y,-1,-1)}function W(y){return new(e||(e=Et.getNodeConstructor()))(y,-1,-1)}}var Db={getParenthesizeLeftSideOfBinaryForOperator:e=>bt,getParenthesizeRightSideOfBinaryForOperator:e=>bt,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,a)=>a,parenthesizeExpressionOfComputedPropertyName:bt,parenthesizeConditionOfConditionalExpression:bt,parenthesizeBranchOfConditionalExpression:bt,parenthesizeExpressionOfExportDefault:bt,parenthesizeExpressionOfNew:e=>Er(e,Fa),parenthesizeLeftSideOfAccess:e=>Er(e,Fa),parenthesizeOperandOfPostfixUnary:e=>Er(e,Fa),parenthesizeOperandOfPrefixUnary:e=>Er(e,Hg),parenthesizeExpressionsOfCommaDelimitedList:e=>Er(e,mi),parenthesizeExpressionForDisallowedComma:bt,parenthesizeExpressionOfExpressionStatement:bt,parenthesizeConciseBodyOfArrowFunction:bt,parenthesizeCheckTypeOfConditionalType:bt,parenthesizeExtendsTypeOfConditionalType:bt,parenthesizeConstituentTypesOfUnionType:e=>Er(e,mi),parenthesizeConstituentTypeOfUnionType:bt,parenthesizeConstituentTypesOfIntersectionType:e=>Er(e,mi),parenthesizeConstituentTypeOfIntersectionType:bt,parenthesizeOperandOfTypeOperator:bt,parenthesizeOperandOfReadonlyTypeOperator:bt,parenthesizeNonArrayTypeOfPostfixType:bt,parenthesizeElementTypesOfTupleType:e=>Er(e,mi),parenthesizeElementTypeOfTupleType:bt,parenthesizeTypeOfOptionalType:bt,parenthesizeTypeArguments:e=>e&&Er(e,mi),parenthesizeLeadingTypeArgument:bt},_l=0;var Pb=[];function wf(e,t){let a=e&8?bt:Lb,_=gd(()=>e&1?Db:createParenthesizerRules(he)),f=gd(()=>e&2?nullNodeConverters:createNodeConverters(he)),h=Kn(n=>(i,s)=>da(i,n,s)),T=Kn(n=>i=>Ur(n,i)),k=Kn(n=>i=>ni(i,n)),c=Kn(n=>()=>Qo(n)),W=Kn(n=>i=>Cs(n,i)),y=Kn(n=>(i,s)=>wu(n,i,s)),G=Kn(n=>(i,s)=>Ko(n,i,s)),E=Kn(n=>(i,s)=>Su(n,i,s)),D=Kn(n=>(i,s)=>hc(n,i,s)),R=Kn(n=>(i,s,l)=>Lu(n,i,s,l)),ue=Kn(n=>(i,s,l)=>yc(n,i,s,l)),be=Kn(n=>(i,s,l,d)=>Ju(n,i,s,l,d)),he={get parenthesizer(){return _()},get converters(){return f()},baseFactory:t,flags:e,createNodeArray:de,createNumericLiteral:V,createBigIntLiteral:oe,createStringLiteral:ft,createStringLiteralFromNode:nr,createRegularExpressionLiteral:mn,createLiteralLikeNode:rr,createIdentifier:We,createTempVariable:ir,createLoopVariable:Ir,createUniqueName:Ot,getGeneratedNameForNode:Bn,createPrivateIdentifier:Mt,createUniquePrivateName:$e,getGeneratedPrivateNameForNode:qn,createToken:ot,createSuper:at,createThis:Bt,createNull:Lt,createTrue:ct,createFalse:ar,createModifier:dt,createModifiersFromModifierFlags:yn,createQualifiedName:yt,updateQualifiedName:_n,createComputedPropertyName:tt,updateComputedPropertyName:qt,createTypeParameterDeclaration:tn,updateTypeParameterDeclaration:sr,createParameterDeclaration:mr,updateParameterDeclaration:hr,createDecorator:Fn,updateDecorator:zn,createPropertySignature:Or,updatePropertySignature:Vn,createPropertyDeclaration:yr,updatePropertyDeclaration:L,createMethodSignature:se,updateMethodSignature:fe,createMethodDeclaration:Te,updateMethodDeclaration:He,createConstructorDeclaration:lt,updateConstructorDeclaration:Mr,createGetAccessorDeclaration:Nn,updateGetAccessorDeclaration:Wn,createSetAccessorDeclaration:U,updateSetAccessorDeclaration:K,createCallSignature:xe,updateCallSignature:Se,createConstructSignature:we,updateConstructSignature:me,createIndexSignature:Ve,updateIndexSignature:Ze,createClassStaticBlockDeclaration:st,updateClassStaticBlockDeclaration:Ct,createTemplateLiteralTypeSpan:Ye,updateTemplateLiteralTypeSpan:Ee,createKeywordTypeNode:gn,createTypePredicateNode:rt,updateTypePredicateNode:on,createTypeReferenceNode:Zr,updateTypeReferenceNode:M,createFunctionTypeNode:Ue,updateFunctionTypeNode:u,createConstructorTypeNode:Me,updateConstructorTypeNode:nn,createTypeQueryNode:Dt,updateTypeQueryNode:wt,createTypeLiteralNode:Pt,updateTypeLiteralNode:Ft,createArrayTypeNode:Gn,updateArrayTypeNode:ki,createTupleTypeNode:cn,updateTupleTypeNode:H,createNamedTupleMember:le,updateNamedTupleMember:qe,createOptionalTypeNode:ve,updateOptionalTypeNode:J,createRestTypeNode:mt,updateRestTypeNode:xt,createUnionTypeNode:ql,updateUnionTypeNode:C_,createIntersectionTypeNode:Lr,updateIntersectionTypeNode:Le,createConditionalTypeNode:pt,updateConditionalTypeNode:Fl,createInferTypeNode:Yn,updateInferTypeNode:zl,createImportTypeNode:_r,updateImportTypeNode:oa,createParenthesizedType:Qt,updateParenthesizedType:At,createThisTypeNode:P,createTypeOperatorNode:Gt,updateTypeOperatorNode:Jr,createIndexedAccessTypeNode:or,updateIndexedAccessTypeNode:Ka,createMappedTypeNode:gt,updateMappedTypeNode:jt,createLiteralTypeNode:ei,updateLiteralTypeNode:br,createTemplateLiteralType:Wt,updateTemplateLiteralType:Vl,createObjectBindingPattern:D_,updateObjectBindingPattern:Wl,createArrayBindingPattern:jr,updateArrayBindingPattern:Gl,createBindingElement:ca,updateBindingElement:ti,createArrayLiteralExpression:Za,updateArrayLiteralExpression:P_,createObjectLiteralExpression:Ei,updateObjectLiteralExpression:Yl,createPropertyAccessExpression:e&4?(n,i)=>setEmitFlags(cr(n,i),262144):cr,updatePropertyAccessExpression:Hl,createPropertyAccessChain:e&4?(n,i,s)=>setEmitFlags(Ai(n,i,s),262144):Ai,updatePropertyAccessChain:la,createElementAccessExpression:Ci,updateElementAccessExpression:Xl,createElementAccessChain:O_,updateElementAccessChain:es,createCallExpression:Di,updateCallExpression:ua,createCallChain:ts,updateCallChain:L_,createNewExpression:bn,updateNewExpression:ns,createTaggedTemplateExpression:pa,updateTaggedTemplateExpression:J_,createTypeAssertion:j_,updateTypeAssertion:R_,createParenthesizedExpression:rs,updateParenthesizedExpression:U_,createFunctionExpression:is,updateFunctionExpression:B_,createArrowFunction:as,updateArrowFunction:q_,createDeleteExpression:F_,updateDeleteExpression:z_,createTypeOfExpression:fa,updateTypeOfExpression:un,createVoidExpression:ss,updateVoidExpression:lr,createAwaitExpression:V_,updateAwaitExpression:Rr,createPrefixUnaryExpression:Ur,updatePrefixUnaryExpression:$l,createPostfixUnaryExpression:ni,updatePostfixUnaryExpression:Ql,createBinaryExpression:da,updateBinaryExpression:Kl,createConditionalExpression:G_,updateConditionalExpression:Y_,createTemplateExpression:H_,updateTemplateExpression:Hn,createTemplateHead:$_,createTemplateMiddle:ma,createTemplateTail:_s,createNoSubstitutionTemplateLiteral:eu,createTemplateLiteralLikeNode:ii,createYieldExpression:os,updateYieldExpression:tu,createSpreadElement:Q_,updateSpreadElement:nu,createClassExpression:K_,updateClassExpression:cs,createOmittedExpression:ls,createExpressionWithTypeArguments:Z_,updateExpressionWithTypeArguments:eo,createAsExpression:pn,updateAsExpression:ha,createNonNullExpression:to,updateNonNullExpression:no,createSatisfiesExpression:us,updateSatisfiesExpression:ro,createNonNullChain:ps,updateNonNullChain:In,createMetaProperty:io,updateMetaProperty:fs,createTemplateSpan:Xn,updateTemplateSpan:ya,createSemicolonClassElement:ao,createBlock:Br,updateBlock:ru,createVariableStatement:ds,updateVariableStatement:so,createEmptyStatement:_o,createExpressionStatement:Ni,updateExpressionStatement:oo,createIfStatement:co,updateIfStatement:lo,createDoStatement:uo,updateDoStatement:po,createWhileStatement:fo,updateWhileStatement:iu,createForStatement:mo,updateForStatement:ho,createForInStatement:ms,updateForInStatement:au,createForOfStatement:yo,updateForOfStatement:su,createContinueStatement:go,updateContinueStatement:_u,createBreakStatement:hs,updateBreakStatement:bo,createReturnStatement:ys,updateReturnStatement:ou,createWithStatement:gs,updateWithStatement:vo,createSwitchStatement:bs,updateSwitchStatement:ai,createLabeledStatement:To,updateLabeledStatement:xo,createThrowStatement:So,updateThrowStatement:cu,createTryStatement:wo,updateTryStatement:lu,createDebuggerStatement:ko,createVariableDeclaration:ga,updateVariableDeclaration:Eo,createVariableDeclarationList:vs,updateVariableDeclarationList:uu,createFunctionDeclaration:Ao,updateFunctionDeclaration:Ts,createClassDeclaration:Co,updateClassDeclaration:ba,createInterfaceDeclaration:Do,updateInterfaceDeclaration:Po,createTypeAliasDeclaration:_t,updateTypeAliasDeclaration:vr,createEnumDeclaration:xs,updateEnumDeclaration:Tr,createModuleDeclaration:No,updateModuleDeclaration:kt,createModuleBlock:xr,updateModuleBlock:zt,createCaseBlock:Io,updateCaseBlock:fu,createNamespaceExportDeclaration:Oo,updateNamespaceExportDeclaration:Mo,createImportEqualsDeclaration:Lo,updateImportEqualsDeclaration:Jo,createImportDeclaration:jo,updateImportDeclaration:Ro,createImportClause:Uo,updateImportClause:Bo,createAssertClause:Ss,updateAssertClause:mu,createAssertEntry:Ii,updateAssertEntry:qo,createImportTypeAssertionContainer:ws,updateImportTypeAssertionContainer:Fo,createImportAttributes:zo,updateImportAttributes:ks,createImportAttribute:Vo,updateImportAttribute:Wo,createNamespaceImport:Go,updateNamespaceImport:hu,createNamespaceExport:Yo,updateNamespaceExport:yu,createNamedImports:Ho,updateNamedImports:Xo,createImportSpecifier:Sr,updateImportSpecifier:gu,createExportAssignment:va,updateExportAssignment:Oi,createExportDeclaration:Ta,updateExportDeclaration:$o,createNamedExports:Es,updateNamedExports:bu,createExportSpecifier:xa,updateExportSpecifier:vu,createMissingDeclaration:Tu,createExternalModuleReference:As,updateExternalModuleReference:xu,get createJSDocAllType(){return c(313)},get createJSDocUnknownType(){return c(314)},get createJSDocNonNullableType(){return G(316)},get updateJSDocNonNullableType(){return E(316)},get createJSDocNullableType(){return G(315)},get updateJSDocNullableType(){return E(315)},get createJSDocOptionalType(){return W(317)},get updateJSDocOptionalType(){return y(317)},get createJSDocVariadicType(){return W(319)},get updateJSDocVariadicType(){return y(319)},get createJSDocNamepathType(){return W(320)},get updateJSDocNamepathType(){return y(320)},createJSDocFunctionType:Zo,updateJSDocFunctionType:ku,createJSDocTypeLiteral:ec,updateJSDocTypeLiteral:Eu,createJSDocTypeExpression:tc,updateJSDocTypeExpression:Ds,createJSDocSignature:nc,updateJSDocSignature:Au,createJSDocTemplateTag:Ps,updateJSDocTemplateTag:rc,createJSDocTypedefTag:Sa,updateJSDocTypedefTag:Cu,createJSDocParameterTag:Ns,updateJSDocParameterTag:Du,createJSDocPropertyTag:ic,updateJSDocPropertyTag:ac,createJSDocCallbackTag:sc,updateJSDocCallbackTag:_c,createJSDocOverloadTag:oc,updateJSDocOverloadTag:Is,createJSDocAugmentsTag:Os,updateJSDocAugmentsTag:Li,createJSDocImplementsTag:cc,updateJSDocImplementsTag:Mu,createJSDocSeeTag:Fr,updateJSDocSeeTag:wa,createJSDocImportTag:vc,updateJSDocImportTag:Tc,createJSDocNameReference:lc,updateJSDocNameReference:Pu,createJSDocMemberName:uc,updateJSDocMemberName:Nu,createJSDocLink:pc,updateJSDocLink:fc,createJSDocLinkCode:dc,updateJSDocLinkCode:Iu,createJSDocLinkPlain:mc,updateJSDocLinkPlain:Ou,get createJSDocTypeTag(){return ue(345)},get updateJSDocTypeTag(){return be(345)},get createJSDocReturnTag(){return ue(343)},get updateJSDocReturnTag(){return be(343)},get createJSDocThisTag(){return ue(344)},get updateJSDocThisTag(){return be(344)},get createJSDocAuthorTag(){return D(331)},get updateJSDocAuthorTag(){return R(331)},get createJSDocClassTag(){return D(333)},get updateJSDocClassTag(){return R(333)},get createJSDocPublicTag(){return D(334)},get updateJSDocPublicTag(){return R(334)},get createJSDocPrivateTag(){return D(335)},get updateJSDocPrivateTag(){return R(335)},get createJSDocProtectedTag(){return D(336)},get updateJSDocProtectedTag(){return R(336)},get createJSDocReadonlyTag(){return D(337)},get updateJSDocReadonlyTag(){return R(337)},get createJSDocOverrideTag(){return D(338)},get updateJSDocOverrideTag(){return R(338)},get createJSDocDeprecatedTag(){return D(332)},get updateJSDocDeprecatedTag(){return R(332)},get createJSDocThrowsTag(){return ue(350)},get updateJSDocThrowsTag(){return be(350)},get createJSDocSatisfiesTag(){return ue(351)},get updateJSDocSatisfiesTag(){return be(351)},createJSDocEnumTag:bc,updateJSDocEnumTag:Ms,createJSDocUnknownTag:gc,updateJSDocUnknownTag:ju,createJSDocText:Ls,updateJSDocText:Ru,createJSDocComment:Ji,updateJSDocComment:xc,createJsxElement:Sc,updateJsxElement:Uu,createJsxSelfClosingElement:wc,updateJsxSelfClosingElement:Bu,createJsxOpeningElement:ka,updateJsxOpeningElement:kc,createJsxClosingElement:Js,updateJsxClosingElement:js,createJsxFragment:Yt,createJsxText:ji,updateJsxText:qu,createJsxOpeningFragment:Ac,createJsxJsxClosingFragment:Cc,updateJsxFragment:Ec,createJsxAttribute:Dc,updateJsxAttribute:Fu,createJsxAttributes:Ri,updateJsxAttributes:zu,createJsxSpreadAttribute:Pc,updateJsxSpreadAttribute:Vu,createJsxExpression:Nc,updateJsxExpression:Rs,createJsxNamespacedName:si,updateJsxNamespacedName:Wu,createCaseClause:Ea,updateCaseClause:Ic,createDefaultClause:Oc,updateDefaultClause:Ui,createHeritageClause:Us,updateHeritageClause:Gu,createCatchClause:Mc,updateCatchClause:Lc,createPropertyAssignment:Aa,updatePropertyAssignment:Bs,createShorthandPropertyAssignment:Jc,updateShorthandPropertyAssignment:Yu,createSpreadAssignment:jc,updateSpreadAssignment:Rc,createEnumMember:qs,updateEnumMember:On,createSourceFile:Uc,updateSourceFile:Qu,createRedirectedSourceFile:Bc,createBundle:qc,updateBundle:Fc,createSyntheticExpression:Ku,createSyntaxList:Zu,createNotEmittedStatement:Ca,createNotEmittedTypeElement:ep,createPartiallyEmittedExpression:Vs,updatePartiallyEmittedExpression:zc,createCommaListExpression:Ws,updateCommaListExpression:np,createSyntheticReferenceExpression:Gs,updateSyntheticReferenceExpression:Vc,cloneNode:Da,get createComma(){return h(28)},get createAssignment(){return h(64)},get createLogicalOr(){return h(57)},get createLogicalAnd(){return h(56)},get createBitwiseOr(){return h(52)},get createBitwiseXor(){return h(53)},get createBitwiseAnd(){return h(51)},get createStrictEquality(){return h(37)},get createStrictInequality(){return h(38)},get createEquality(){return h(35)},get createInequality(){return h(36)},get createLessThan(){return h(30)},get createLessThanEquals(){return h(33)},get createGreaterThan(){return h(32)},get createGreaterThanEquals(){return h(34)},get createLeftShift(){return h(48)},get createRightShift(){return h(49)},get createUnsignedRightShift(){return h(50)},get createAdd(){return h(40)},get createSubtract(){return h(41)},get createMultiply(){return h(42)},get createDivide(){return h(44)},get createModulo(){return h(45)},get createExponent(){return h(43)},get createPrefixPlus(){return T(40)},get createPrefixMinus(){return T(41)},get createPrefixIncrement(){return T(46)},get createPrefixDecrement(){return T(47)},get createBitwiseNot(){return T(55)},get createLogicalNot(){return T(54)},get createPostfixIncrement(){return k(46)},get createPostfixDecrement(){return k(47)},createImmediatelyInvokedFunctionExpression:ap,createImmediatelyInvokedArrowFunction:sp,createVoidZero:Bi,createExportDefault:Yc,createExternalModuleExport:Hc,createTypeCheck:_p,createIsNotTypeCheck:Ys,createMethodCall:zr,createGlobalMethodCall:qi,createFunctionBindCall:op,createFunctionCallCall:cp,createFunctionApplyCall:lp,createArraySliceCall:up,createArrayConcatCall:Fi,createObjectDefinePropertyCall:pp,createObjectGetOwnPropertyDescriptorCall:Hs,createReflectGetCall:oi,createReflectSetCall:Xc,createPropertyDescriptor:fp,createCallBinding:Zc,createAssignmentTargetWrapper:el,inlineExpressions:o,getInternalName:m,getLocalName:g,getExportName:b,getDeclarationName:N,getNamespaceMemberName:Q,getExternalModuleOrNamespaceExportName:_e,restoreOuterExpressions:Qc,restoreEnclosingLabel:Kc,createUseStrictPrologue:ce,copyPrologue:ee,copyStandardPrologue:je,copyCustomPrologue:Je,ensureUseStrict:De,liftToBlock:Ht,mergeLexicalEnvironment:ur,replaceModifiers:pr,replaceDecoratorsAndModifiers:Mn,replacePropertyName:Vr};return jn(Pb,n=>n(he)),he;function de(n,i){if(n===void 0||n===vt)n=[];else if(mi(n)){if(i===void 0||n.hasTrailingComma===i)return n.transformFlags===void 0&&zd(n),q.attachNodeArrayDebugInfo(n),n;let d=n.slice();return d.pos=n.pos,d.end=n.end,d.hasTrailingComma=i,d.transformFlags=n.transformFlags,q.attachNodeArrayDebugInfo(d),d}let s=n.length,l=s>=1&&s<=4?n.slice():n;return l.pos=-1,l.end=-1,l.hasTrailingComma=!!i,l.transformFlags=0,zd(l),q.attachNodeArrayDebugInfo(l),l}function O(n){return t.createBaseNode(n)}function ae(n){let i=O(n);return i.symbol=void 0,i.localSymbol=void 0,i}function Oe(n,i){return n!==i&&(n.typeArguments=i.typeArguments),j(n,i)}function V(n,i=0){let s=typeof n=="number"?n+"":n;q.assert(s.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");let l=ae(9);return l.text=s,l.numericLiteralFlags=i,i&384&&(l.transformFlags|=1024),l}function oe(n){let i=$t(10);return i.text=typeof n=="string"?n:Tb(n)+"n",i.transformFlags|=32,i}function Y(n,i){let s=ae(11);return s.text=n,s.singleQuote=i,s}function ft(n,i,s){let l=Y(n,i);return l.hasExtendedUnicodeEscape=s,s&&(l.transformFlags|=1024),l}function nr(n){let i=Y(j2(n),void 0);return i.textSourceNode=n,i}function mn(n){let i=$t(14);return i.text=n,i}function rr(n,i){switch(n){case 9:return V(i,0);case 10:return oe(i);case 11:return ft(i,void 0);case 12:return ji(i,!1);case 13:return ji(i,!0);case 14:return mn(i);case 15:return ii(n,i,void 0,0)}}function hn(n){let i=t.createBaseIdentifierNode(80);return i.escapedText=n,i.jsDoc=void 0,i.flowNode=void 0,i.symbol=void 0,i}function Dn(n,i,s,l){let d=hn(La(n));return setIdentifierAutoGenerate(d,{flags:i,id:_l,prefix:s,suffix:l}),_l++,d}function We(n,i,s){i===void 0&&n&&(i=Rm(n)),i===80&&(i=void 0);let l=hn(La(n));return s&&(l.flags|=256),l.escapedText==="await"&&(l.transformFlags|=67108864),l.flags&256&&(l.transformFlags|=1024),l}function ir(n,i,s,l){let d=1;i&&(d|=8);let v=Dn("",d,s,l);return n&&n(v),v}function Ir(n){let i=2;return n&&(i|=8),Dn("",i,void 0,void 0)}function Ot(n,i=0,s,l){return q.assert(!(i&7),"Argument out of range: flags"),q.assert((i&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),Dn(n,3|i,s,l)}function Bn(n,i=0,s,l){q.assert(!(i&7),"Argument out of range: flags");let d=n?jp(n)?Vp(!1,s,n,l,An):`generated@${getNodeId(n)}`:"";(s||l)&&(i|=16);let v=Dn(d,4|i,s,l);return v.original=n,v}function Pn(n){let i=t.createBasePrivateIdentifierNode(81);return i.escapedText=n,i.transformFlags|=16777216,i}function Mt(n){return ml(n,"#")||q.fail("First character of private identifier must be #: "+n),Pn(La(n))}function ht(n,i,s,l){let d=Pn(La(n));return setIdentifierAutoGenerate(d,{flags:i,id:_l,prefix:s,suffix:l}),_l++,d}function $e(n,i,s){n&&!ml(n,"#")&&q.fail("First character of private identifier must be #: "+n);let l=8|(n?3:1);return ht(n??"",l,i,s)}function qn(n,i,s){let l=jp(n)?Vp(!0,i,n,s,An):`#generated@${getNodeId(n)}`,v=ht(l,4|(i||s?16:0),i,s);return v.original=n,v}function $t(n){return t.createBaseTokenNode(n)}function ot(n){q.assert(n>=0&&n<=166,"Invalid token"),q.assert(n<=15||n>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),q.assert(n<=9||n>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),q.assert(n!==80,"Invalid token. Use 'createIdentifier' to create identifiers");let i=$t(n),s=0;switch(n){case 134:s=384;break;case 160:s=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:s=1;break;case 108:s=134218752,i.flowNode=void 0;break;case 126:s=1024;break;case 129:s=16777216;break;case 110:s=16384,i.flowNode=void 0;break}return s&&(i.transformFlags|=s),i}function at(){return ot(108)}function Bt(){return ot(110)}function Lt(){return ot(106)}function ct(){return ot(112)}function ar(){return ot(97)}function dt(n){return ot(n)}function yn(n){let i=[];return n&32&&i.push(dt(95)),n&128&&i.push(dt(138)),n&2048&&i.push(dt(90)),n&4096&&i.push(dt(87)),n&1&&i.push(dt(125)),n&2&&i.push(dt(123)),n&4&&i.push(dt(124)),n&64&&i.push(dt(128)),n&256&&i.push(dt(126)),n&16&&i.push(dt(164)),n&8&&i.push(dt(148)),n&512&&i.push(dt(129)),n&1024&&i.push(dt(134)),n&8192&&i.push(dt(103)),n&16384&&i.push(dt(147)),i.length?i:void 0}function yt(n,i){let s=O(167);return s.left=n,s.right=et(i),s.transformFlags|=z(s.left)|ja(s.right),s.flowNode=void 0,s}function _n(n,i,s){return n.left!==i||n.right!==s?j(yt(i,s),n):n}function tt(n){let i=O(168);return i.expression=_().parenthesizeExpressionOfComputedPropertyName(n),i.transformFlags|=z(i.expression)|1024|131072,i}function qt(n,i){return n.expression!==i?j(tt(i),n):n}function tn(n,i,s,l){let d=ae(169);return d.modifiers=Pe(n),d.name=et(i),d.constraint=s,d.default=l,d.transformFlags=1,d.expression=void 0,d.jsDoc=void 0,d}function sr(n,i,s,l,d){return n.modifiers!==i||n.name!==s||n.constraint!==l||n.default!==d?j(tn(i,s,l,d),n):n}function mr(n,i,s,l,d,v){let F=ae(170);return F.modifiers=Pe(n),F.dotDotDotToken=i,F.name=et(s),F.questionToken=l,F.type=d,F.initializer=zi(v),U2(F.name)?F.transformFlags=1:F.transformFlags=ke(F.modifiers)|z(F.dotDotDotToken)|Ln(F.name)|z(F.questionToken)|z(F.initializer)|(F.questionToken??F.type?1:0)|(F.dotDotDotToken??F.initializer?1024:0)|(Jn(F.modifiers)&31?8192:0),F.jsDoc=void 0,F}function hr(n,i,s,l,d,v,F){return n.modifiers!==i||n.dotDotDotToken!==s||n.name!==l||n.questionToken!==d||n.type!==v||n.initializer!==F?j(mr(i,s,l,d,v,F),n):n}function Fn(n){let i=O(171);return i.expression=_().parenthesizeLeftSideOfAccess(n,!1),i.transformFlags|=z(i.expression)|1|8192|33554432,i}function zn(n,i){return n.expression!==i?j(Fn(i),n):n}function Or(n,i,s,l){let d=ae(172);return d.modifiers=Pe(n),d.name=et(i),d.type=l,d.questionToken=s,d.transformFlags=1,d.initializer=void 0,d.jsDoc=void 0,d}function Vn(n,i,s,l,d){return n.modifiers!==i||n.name!==s||n.questionToken!==l||n.type!==d?Ce(Or(i,s,l,d),n):n}function Ce(n,i){return n!==i&&(n.initializer=i.initializer),j(n,i)}function yr(n,i,s,l,d){let v=ae(173);v.modifiers=Pe(n),v.name=et(i),v.questionToken=s&&Wd(s)?s:void 0,v.exclamationToken=s&&Vd(s)?s:void 0,v.type=l,v.initializer=zi(d);let F=v.flags&33554432||Jn(v.modifiers)&128;return v.transformFlags=ke(v.modifiers)|Ln(v.name)|z(v.initializer)|(F||v.questionToken||v.exclamationToken||v.type?1:0)|(kf(v.name)||Jn(v.modifiers)&256&&v.initializer?8192:0)|16777216,v.jsDoc=void 0,v}function L(n,i,s,l,d,v){return n.modifiers!==i||n.name!==s||n.questionToken!==(l!==void 0&&Wd(l)?l:void 0)||n.exclamationToken!==(l!==void 0&&Vd(l)?l:void 0)||n.type!==d||n.initializer!==v?j(yr(i,s,l,d,v),n):n}function se(n,i,s,l,d,v){let F=ae(174);return F.modifiers=Pe(n),F.name=et(i),F.questionToken=s,F.typeParameters=Pe(l),F.parameters=Pe(d),F.type=v,F.transformFlags=1,F.jsDoc=void 0,F.locals=void 0,F.nextContainer=void 0,F.typeArguments=void 0,F}function fe(n,i,s,l,d,v,F){return n.modifiers!==i||n.name!==s||n.questionToken!==l||n.typeParameters!==d||n.parameters!==v||n.type!==F?Oe(se(i,s,l,d,v,F),n):n}function Te(n,i,s,l,d,v,F,pe){let Fe=ae(175);if(Fe.modifiers=Pe(n),Fe.asteriskToken=i,Fe.name=et(s),Fe.questionToken=l,Fe.exclamationToken=void 0,Fe.typeParameters=Pe(d),Fe.parameters=de(v),Fe.type=F,Fe.body=pe,!Fe.body)Fe.transformFlags=1;else{let It=Jn(Fe.modifiers)&1024,fr=!!Fe.asteriskToken,xn=It&&fr;Fe.transformFlags=ke(Fe.modifiers)|z(Fe.asteriskToken)|Ln(Fe.name)|z(Fe.questionToken)|ke(Fe.typeParameters)|ke(Fe.parameters)|z(Fe.type)|z(Fe.body)&-67108865|(xn?128:It?256:fr?2048:0)|(Fe.questionToken||Fe.typeParameters||Fe.type?1:0)|1024}return Fe.typeArguments=void 0,Fe.jsDoc=void 0,Fe.locals=void 0,Fe.nextContainer=void 0,Fe.flowNode=void 0,Fe.endFlowNode=void 0,Fe.returnFlowNode=void 0,Fe}function He(n,i,s,l,d,v,F,pe,Fe){return n.modifiers!==i||n.asteriskToken!==s||n.name!==l||n.questionToken!==d||n.typeParameters!==v||n.parameters!==F||n.type!==pe||n.body!==Fe?Qe(Te(i,s,l,d,v,F,pe,Fe),n):n}function Qe(n,i){return n!==i&&(n.exclamationToken=i.exclamationToken),j(n,i)}function st(n){let i=ae(176);return i.body=n,i.transformFlags=z(n)|16777216,i.modifiers=void 0,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.endFlowNode=void 0,i.returnFlowNode=void 0,i}function Ct(n,i){return n.body!==i?Tt(st(i),n):n}function Tt(n,i){return n!==i&&(n.modifiers=i.modifiers),j(n,i)}function lt(n,i,s){let l=ae(177);return l.modifiers=Pe(n),l.parameters=de(i),l.body=s,l.body?l.transformFlags=ke(l.modifiers)|ke(l.parameters)|z(l.body)&-67108865|1024:l.transformFlags=1,l.typeParameters=void 0,l.type=void 0,l.typeArguments=void 0,l.jsDoc=void 0,l.locals=void 0,l.nextContainer=void 0,l.endFlowNode=void 0,l.returnFlowNode=void 0,l}function Mr(n,i,s,l){return n.modifiers!==i||n.parameters!==s||n.body!==l?gr(lt(i,s,l),n):n}function gr(n,i){return n!==i&&(n.typeParameters=i.typeParameters,n.type=i.type),Oe(n,i)}function Nn(n,i,s,l,d){let v=ae(178);return v.modifiers=Pe(n),v.name=et(i),v.parameters=de(s),v.type=l,v.body=d,v.body?v.transformFlags=ke(v.modifiers)|Ln(v.name)|ke(v.parameters)|z(v.type)|z(v.body)&-67108865|(v.type?1:0):v.transformFlags=1,v.typeArguments=void 0,v.typeParameters=void 0,v.jsDoc=void 0,v.locals=void 0,v.nextContainer=void 0,v.flowNode=void 0,v.endFlowNode=void 0,v.returnFlowNode=void 0,v}function Wn(n,i,s,l,d,v){return n.modifiers!==i||n.name!==s||n.parameters!==l||n.type!==d||n.body!==v?wi(Nn(i,s,l,d,v),n):n}function wi(n,i){return n!==i&&(n.typeParameters=i.typeParameters),Oe(n,i)}function U(n,i,s,l){let d=ae(179);return d.modifiers=Pe(n),d.name=et(i),d.parameters=de(s),d.body=l,d.body?d.transformFlags=ke(d.modifiers)|Ln(d.name)|ke(d.parameters)|z(d.body)&-67108865|(d.type?1:0):d.transformFlags=1,d.typeArguments=void 0,d.typeParameters=void 0,d.type=void 0,d.jsDoc=void 0,d.locals=void 0,d.nextContainer=void 0,d.flowNode=void 0,d.endFlowNode=void 0,d.returnFlowNode=void 0,d}function K(n,i,s,l,d){return n.modifiers!==i||n.name!==s||n.parameters!==l||n.body!==d?Z(U(i,s,l,d),n):n}function Z(n,i){return n!==i&&(n.typeParameters=i.typeParameters,n.type=i.type),Oe(n,i)}function xe(n,i,s){let l=ae(180);return l.typeParameters=Pe(n),l.parameters=Pe(i),l.type=s,l.transformFlags=1,l.jsDoc=void 0,l.locals=void 0,l.nextContainer=void 0,l.typeArguments=void 0,l}function Se(n,i,s,l){return n.typeParameters!==i||n.parameters!==s||n.type!==l?Oe(xe(i,s,l),n):n}function we(n,i,s){let l=ae(181);return l.typeParameters=Pe(n),l.parameters=Pe(i),l.type=s,l.transformFlags=1,l.jsDoc=void 0,l.locals=void 0,l.nextContainer=void 0,l.typeArguments=void 0,l}function me(n,i,s,l){return n.typeParameters!==i||n.parameters!==s||n.type!==l?Oe(we(i,s,l),n):n}function Ve(n,i,s){let l=ae(182);return l.modifiers=Pe(n),l.parameters=Pe(i),l.type=s,l.transformFlags=1,l.jsDoc=void 0,l.locals=void 0,l.nextContainer=void 0,l.typeArguments=void 0,l}function Ze(n,i,s,l){return n.parameters!==s||n.type!==l||n.modifiers!==i?Oe(Ve(i,s,l),n):n}function Ye(n,i){let s=O(205);return s.type=n,s.literal=i,s.transformFlags=1,s}function Ee(n,i,s){return n.type!==i||n.literal!==s?j(Ye(i,s),n):n}function gn(n){return ot(n)}function rt(n,i,s){let l=O(183);return l.assertsModifier=n,l.parameterName=et(i),l.type=s,l.transformFlags=1,l}function on(n,i,s,l){return n.assertsModifier!==i||n.parameterName!==s||n.type!==l?j(rt(i,s,l),n):n}function Zr(n,i){let s=O(184);return s.typeName=et(n),s.typeArguments=i&&_().parenthesizeTypeArguments(de(i)),s.transformFlags=1,s}function M(n,i,s){return n.typeName!==i||n.typeArguments!==s?j(Zr(i,s),n):n}function Ue(n,i,s){let l=ae(185);return l.typeParameters=Pe(n),l.parameters=Pe(i),l.type=s,l.transformFlags=1,l.modifiers=void 0,l.jsDoc=void 0,l.locals=void 0,l.nextContainer=void 0,l.typeArguments=void 0,l}function u(n,i,s,l){return n.typeParameters!==i||n.parameters!==s||n.type!==l?Ie(Ue(i,s,l),n):n}function Ie(n,i){return n!==i&&(n.modifiers=i.modifiers),Oe(n,i)}function Me(...n){return n.length===4?B(...n):n.length===3?Be(...n):q.fail("Incorrect number of arguments specified.")}function B(n,i,s,l){let d=ae(186);return d.modifiers=Pe(n),d.typeParameters=Pe(i),d.parameters=Pe(s),d.type=l,d.transformFlags=1,d.jsDoc=void 0,d.locals=void 0,d.nextContainer=void 0,d.typeArguments=void 0,d}function Be(n,i,s){return B(void 0,n,i,s)}function nn(...n){return n.length===5?ze(...n):n.length===4?Xe(...n):q.fail("Incorrect number of arguments specified.")}function ze(n,i,s,l,d){return n.modifiers!==i||n.typeParameters!==s||n.parameters!==l||n.type!==d?Oe(Me(i,s,l,d),n):n}function Xe(n,i,s,l){return ze(n,n.modifiers,i,s,l)}function Dt(n,i){let s=O(187);return s.exprName=n,s.typeArguments=i&&_().parenthesizeTypeArguments(i),s.transformFlags=1,s}function wt(n,i,s){return n.exprName!==i||n.typeArguments!==s?j(Dt(i,s),n):n}function Pt(n){let i=ae(188);return i.members=de(n),i.transformFlags=1,i}function Ft(n,i){return n.members!==i?j(Pt(i),n):n}function Gn(n){let i=O(189);return i.elementType=_().parenthesizeNonArrayTypeOfPostfixType(n),i.transformFlags=1,i}function ki(n,i){return n.elementType!==i?j(Gn(i),n):n}function cn(n){let i=O(190);return i.elements=de(_().parenthesizeElementTypesOfTupleType(n)),i.transformFlags=1,i}function H(n,i){return n.elements!==i?j(cn(i),n):n}function le(n,i,s,l){let d=ae(203);return d.dotDotDotToken=n,d.name=i,d.questionToken=s,d.type=l,d.transformFlags=1,d.jsDoc=void 0,d}function qe(n,i,s,l,d){return n.dotDotDotToken!==i||n.name!==s||n.questionToken!==l||n.type!==d?j(le(i,s,l,d),n):n}function ve(n){let i=O(191);return i.type=_().parenthesizeTypeOfOptionalType(n),i.transformFlags=1,i}function J(n,i){return n.type!==i?j(ve(i),n):n}function mt(n){let i=O(192);return i.type=n,i.transformFlags=1,i}function xt(n,i){return n.type!==i?j(mt(i),n):n}function Jt(n,i,s){let l=O(n);return l.types=he.createNodeArray(s(i)),l.transformFlags=1,l}function ln(n,i,s){return n.types!==i?j(Jt(n.kind,i,s),n):n}function ql(n){return Jt(193,n,_().parenthesizeConstituentTypesOfUnionType)}function C_(n,i){return ln(n,i,_().parenthesizeConstituentTypesOfUnionType)}function Lr(n){return Jt(194,n,_().parenthesizeConstituentTypesOfIntersectionType)}function Le(n,i){return ln(n,i,_().parenthesizeConstituentTypesOfIntersectionType)}function pt(n,i,s,l){let d=O(195);return d.checkType=_().parenthesizeCheckTypeOfConditionalType(n),d.extendsType=_().parenthesizeExtendsTypeOfConditionalType(i),d.trueType=s,d.falseType=l,d.transformFlags=1,d.locals=void 0,d.nextContainer=void 0,d}function Fl(n,i,s,l,d){return n.checkType!==i||n.extendsType!==s||n.trueType!==l||n.falseType!==d?j(pt(i,s,l,d),n):n}function Yn(n){let i=O(196);return i.typeParameter=n,i.transformFlags=1,i}function zl(n,i){return n.typeParameter!==i?j(Yn(i),n):n}function Wt(n,i){let s=O(204);return s.head=n,s.templateSpans=de(i),s.transformFlags=1,s}function Vl(n,i,s){return n.head!==i||n.templateSpans!==s?j(Wt(i,s),n):n}function _r(n,i,s,l,d=!1){let v=O(206);return v.argument=n,v.attributes=i,v.assertions&&v.assertions.assertClause&&v.attributes&&(v.assertions.assertClause=v.attributes),v.qualifier=s,v.typeArguments=l&&_().parenthesizeTypeArguments(l),v.isTypeOf=d,v.transformFlags=1,v}function oa(n,i,s,l,d,v=n.isTypeOf){return n.argument!==i||n.attributes!==s||n.qualifier!==l||n.typeArguments!==d||n.isTypeOf!==v?j(_r(i,s,l,d,v),n):n}function Qt(n){let i=O(197);return i.type=n,i.transformFlags=1,i}function At(n,i){return n.type!==i?j(Qt(i),n):n}function P(){let n=O(198);return n.transformFlags=1,n}function Gt(n,i){let s=O(199);return s.operator=n,s.type=n===148?_().parenthesizeOperandOfReadonlyTypeOperator(i):_().parenthesizeOperandOfTypeOperator(i),s.transformFlags=1,s}function Jr(n,i){return n.type!==i?j(Gt(n.operator,i),n):n}function or(n,i){let s=O(200);return s.objectType=_().parenthesizeNonArrayTypeOfPostfixType(n),s.indexType=i,s.transformFlags=1,s}function Ka(n,i,s){return n.objectType!==i||n.indexType!==s?j(or(i,s),n):n}function gt(n,i,s,l,d,v){let F=ae(201);return F.readonlyToken=n,F.typeParameter=i,F.nameType=s,F.questionToken=l,F.type=d,F.members=v&&de(v),F.transformFlags=1,F.locals=void 0,F.nextContainer=void 0,F}function jt(n,i,s,l,d,v,F){return n.readonlyToken!==i||n.typeParameter!==s||n.nameType!==l||n.questionToken!==d||n.type!==v||n.members!==F?j(gt(i,s,l,d,v,F),n):n}function ei(n){let i=O(202);return i.literal=n,i.transformFlags=1,i}function br(n,i){return n.literal!==i?j(ei(i),n):n}function D_(n){let i=O(207);return i.elements=de(n),i.transformFlags|=ke(i.elements)|1024|524288,i.transformFlags&32768&&(i.transformFlags|=65664),i}function Wl(n,i){return n.elements!==i?j(D_(i),n):n}function jr(n){let i=O(208);return i.elements=de(n),i.transformFlags|=ke(i.elements)|1024|524288,i}function Gl(n,i){return n.elements!==i?j(jr(i),n):n}function ca(n,i,s,l){let d=ae(209);return d.dotDotDotToken=n,d.propertyName=et(i),d.name=et(s),d.initializer=zi(l),d.transformFlags|=z(d.dotDotDotToken)|Ln(d.propertyName)|Ln(d.name)|z(d.initializer)|(d.dotDotDotToken?32768:0)|1024,d.flowNode=void 0,d}function ti(n,i,s,l,d){return n.propertyName!==s||n.dotDotDotToken!==i||n.name!==l||n.initializer!==d?j(ca(i,s,l,d),n):n}function Za(n,i){let s=O(210),l=n&&Ba(n),d=de(n,l&&W1(l)?!0:void 0);return s.elements=_().parenthesizeExpressionsOfCommaDelimitedList(d),s.multiLine=i,s.transformFlags|=ke(s.elements),s}function P_(n,i){return n.elements!==i?j(Za(i,n.multiLine),n):n}function Ei(n,i){let s=ae(211);return s.properties=de(n),s.multiLine=i,s.transformFlags|=ke(s.properties),s.jsDoc=void 0,s}function Yl(n,i){return n.properties!==i?j(Ei(i,n.multiLine),n):n}function N_(n,i,s){let l=ae(212);return l.expression=n,l.questionDotToken=i,l.name=s,l.transformFlags=z(l.expression)|z(l.questionDotToken)|(Ke(l.name)?ja(l.name):z(l.name)|536870912),l.jsDoc=void 0,l.flowNode=void 0,l}function cr(n,i){let s=N_(_().parenthesizeLeftSideOfAccess(n,!1),void 0,et(i));return Ap(n)&&(s.transformFlags|=384),s}function Hl(n,i,s){return Og(n)?la(n,i,n.questionDotToken,Er(s,Ke)):n.expression!==i||n.name!==s?j(cr(i,s),n):n}function Ai(n,i,s){let l=N_(_().parenthesizeLeftSideOfAccess(n,!0),i,et(s));return l.flags|=64,l.transformFlags|=32,l}function la(n,i,s,l){return q.assert(!!(n.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),n.expression!==i||n.questionDotToken!==s||n.name!==l?j(Ai(i,s,l),n):n}function I_(n,i,s){let l=ae(213);return l.expression=n,l.questionDotToken=i,l.argumentExpression=s,l.transformFlags|=z(l.expression)|z(l.questionDotToken)|z(l.argumentExpression),l.jsDoc=void 0,l.flowNode=void 0,l}function Ci(n,i){let s=I_(_().parenthesizeLeftSideOfAccess(n,!1),void 0,wr(i));return Ap(n)&&(s.transformFlags|=384),s}function Xl(n,i,s){return Mg(n)?es(n,i,n.questionDotToken,s):n.expression!==i||n.argumentExpression!==s?j(Ci(i,s),n):n}function O_(n,i,s){let l=I_(_().parenthesizeLeftSideOfAccess(n,!0),i,wr(s));return l.flags|=64,l.transformFlags|=32,l}function es(n,i,s,l){return q.assert(!!(n.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),n.expression!==i||n.questionDotToken!==s||n.argumentExpression!==l?j(O_(i,s,l),n):n}function M_(n,i,s,l){let d=ae(214);return d.expression=n,d.questionDotToken=i,d.typeArguments=s,d.arguments=l,d.transformFlags|=z(d.expression)|z(d.questionDotToken)|ke(d.typeArguments)|ke(d.arguments),d.typeArguments&&(d.transformFlags|=1),Jd(d.expression)&&(d.transformFlags|=16384),d}function Di(n,i,s){let l=M_(_().parenthesizeLeftSideOfAccess(n,!1),void 0,Pe(i),_().parenthesizeExpressionsOfCommaDelimitedList(de(s)));return Bb(l.expression)&&(l.transformFlags|=8388608),l}function ua(n,i,s,l){return Dd(n)?L_(n,i,n.questionDotToken,s,l):n.expression!==i||n.typeArguments!==s||n.arguments!==l?j(Di(i,s,l),n):n}function ts(n,i,s,l){let d=M_(_().parenthesizeLeftSideOfAccess(n,!0),i,Pe(s),_().parenthesizeExpressionsOfCommaDelimitedList(de(l)));return d.flags|=64,d.transformFlags|=32,d}function L_(n,i,s,l,d){return q.assert(!!(n.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),n.expression!==i||n.questionDotToken!==s||n.typeArguments!==l||n.arguments!==d?j(ts(i,s,l,d),n):n}function bn(n,i,s){let l=ae(215);return l.expression=_().parenthesizeExpressionOfNew(n),l.typeArguments=Pe(i),l.arguments=s?_().parenthesizeExpressionsOfCommaDelimitedList(s):void 0,l.transformFlags|=z(l.expression)|ke(l.typeArguments)|ke(l.arguments)|32,l.typeArguments&&(l.transformFlags|=1),l}function ns(n,i,s,l){return n.expression!==i||n.typeArguments!==s||n.arguments!==l?j(bn(i,s,l),n):n}function pa(n,i,s){let l=O(216);return l.tag=_().parenthesizeLeftSideOfAccess(n,!1),l.typeArguments=Pe(i),l.template=s,l.transformFlags|=z(l.tag)|ke(l.typeArguments)|z(l.template)|1024,l.typeArguments&&(l.transformFlags|=1),R2(l.template)&&(l.transformFlags|=128),l}function J_(n,i,s,l){return n.tag!==i||n.typeArguments!==s||n.template!==l?j(pa(i,s,l),n):n}function j_(n,i){let s=O(217);return s.expression=_().parenthesizeOperandOfPrefixUnary(i),s.type=n,s.transformFlags|=z(s.expression)|z(s.type)|1,s}function R_(n,i,s){return n.type!==i||n.expression!==s?j(j_(i,s),n):n}function rs(n){let i=O(218);return i.expression=n,i.transformFlags=z(i.expression),i.jsDoc=void 0,i}function U_(n,i){return n.expression!==i?j(rs(i),n):n}function is(n,i,s,l,d,v,F){let pe=ae(219);pe.modifiers=Pe(n),pe.asteriskToken=i,pe.name=et(s),pe.typeParameters=Pe(l),pe.parameters=de(d),pe.type=v,pe.body=F;let Fe=Jn(pe.modifiers)&1024,It=!!pe.asteriskToken,fr=Fe&&It;return pe.transformFlags=ke(pe.modifiers)|z(pe.asteriskToken)|Ln(pe.name)|ke(pe.typeParameters)|ke(pe.parameters)|z(pe.type)|z(pe.body)&-67108865|(fr?128:Fe?256:It?2048:0)|(pe.typeParameters||pe.type?1:0)|4194304,pe.typeArguments=void 0,pe.jsDoc=void 0,pe.locals=void 0,pe.nextContainer=void 0,pe.flowNode=void 0,pe.endFlowNode=void 0,pe.returnFlowNode=void 0,pe}function B_(n,i,s,l,d,v,F,pe){return n.name!==l||n.modifiers!==i||n.asteriskToken!==s||n.typeParameters!==d||n.parameters!==v||n.type!==F||n.body!==pe?Oe(is(i,s,l,d,v,F,pe),n):n}function as(n,i,s,l,d,v){let F=ae(220);F.modifiers=Pe(n),F.typeParameters=Pe(i),F.parameters=de(s),F.type=l,F.equalsGreaterThanToken=d??ot(39),F.body=_().parenthesizeConciseBodyOfArrowFunction(v);let pe=Jn(F.modifiers)&1024;return F.transformFlags=ke(F.modifiers)|ke(F.typeParameters)|ke(F.parameters)|z(F.type)|z(F.equalsGreaterThanToken)|z(F.body)&-67108865|(F.typeParameters||F.type?1:0)|(pe?16640:0)|1024,F.typeArguments=void 0,F.jsDoc=void 0,F.locals=void 0,F.nextContainer=void 0,F.flowNode=void 0,F.endFlowNode=void 0,F.returnFlowNode=void 0,F}function q_(n,i,s,l,d,v,F){return n.modifiers!==i||n.typeParameters!==s||n.parameters!==l||n.type!==d||n.equalsGreaterThanToken!==v||n.body!==F?Oe(as(i,s,l,d,v,F),n):n}function F_(n){let i=O(221);return i.expression=_().parenthesizeOperandOfPrefixUnary(n),i.transformFlags|=z(i.expression),i}function z_(n,i){return n.expression!==i?j(F_(i),n):n}function fa(n){let i=O(222);return i.expression=_().parenthesizeOperandOfPrefixUnary(n),i.transformFlags|=z(i.expression),i}function un(n,i){return n.expression!==i?j(fa(i),n):n}function ss(n){let i=O(223);return i.expression=_().parenthesizeOperandOfPrefixUnary(n),i.transformFlags|=z(i.expression),i}function lr(n,i){return n.expression!==i?j(ss(i),n):n}function V_(n){let i=O(224);return i.expression=_().parenthesizeOperandOfPrefixUnary(n),i.transformFlags|=z(i.expression)|256|128|2097152,i}function Rr(n,i){return n.expression!==i?j(V_(i),n):n}function Ur(n,i){let s=O(225);return s.operator=n,s.operand=_().parenthesizeOperandOfPrefixUnary(i),s.transformFlags|=z(s.operand),(n===46||n===47)&&Ke(s.operand)&&!Ua(s.operand)&&!Yd(s.operand)&&(s.transformFlags|=268435456),s}function $l(n,i){return n.operand!==i?j(Ur(n.operator,i),n):n}function ni(n,i){let s=O(226);return s.operator=i,s.operand=_().parenthesizeOperandOfPostfixUnary(n),s.transformFlags|=z(s.operand),Ke(s.operand)&&!Ua(s.operand)&&!Yd(s.operand)&&(s.transformFlags|=268435456),s}function Ql(n,i){return n.operand!==i?j(ni(i,n.operator),n):n}function da(n,i,s){let l=ae(227),d=mp(i),v=d.kind;return l.left=_().parenthesizeLeftSideOfBinary(v,n),l.operatorToken=d,l.right=_().parenthesizeRightSideOfBinary(v,l.left,s),l.transformFlags|=z(l.left)|z(l.operatorToken)|z(l.right),v===61?l.transformFlags|=32:v===64?If(l.left)?l.transformFlags|=5248|W_(l.left):q1(l.left)&&(l.transformFlags|=5120|W_(l.left)):v===43||v===68?l.transformFlags|=512:X2(v)&&(l.transformFlags|=16),v===103&&gi(l.left)&&(l.transformFlags|=536870912),l.jsDoc=void 0,l}function W_(n){return _h(n)?65536:0}function Kl(n,i,s,l){return n.left!==i||n.operatorToken!==s||n.right!==l?j(da(i,s,l),n):n}function G_(n,i,s,l,d){let v=O(228);return v.condition=_().parenthesizeConditionOfConditionalExpression(n),v.questionToken=i??ot(58),v.whenTrue=_().parenthesizeBranchOfConditionalExpression(s),v.colonToken=l??ot(59),v.whenFalse=_().parenthesizeBranchOfConditionalExpression(d),v.transformFlags|=z(v.condition)|z(v.questionToken)|z(v.whenTrue)|z(v.colonToken)|z(v.whenFalse),v.flowNodeWhenFalse=void 0,v.flowNodeWhenTrue=void 0,v}function Y_(n,i,s,l,d,v){return n.condition!==i||n.questionToken!==s||n.whenTrue!==l||n.colonToken!==d||n.whenFalse!==v?j(G_(i,s,l,d,v),n):n}function H_(n,i){let s=O(229);return s.head=n,s.templateSpans=de(i),s.transformFlags|=z(s.head)|ke(s.templateSpans)|1024,s}function Hn(n,i,s){return n.head!==i||n.templateSpans!==s?j(H_(i,s),n):n}function Pi(n,i,s,l=0){q.assert(!(l&-7177),"Unsupported template flags.");let d;if(s!==void 0&&s!==i&&(d=Nb(n,s),typeof d=="object"))return q.fail("Invalid raw text");if(i===void 0){if(d===void 0)return q.fail("Arguments 'text' and 'rawText' may not both be undefined.");i=d}else d!==void 0&&q.assert(i===d,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return i}function X_(n){let i=1024;return n&&(i|=128),i}function Zl(n,i,s,l){let d=$t(n);return d.text=i,d.rawText=s,d.templateFlags=l&7176,d.transformFlags=X_(d.templateFlags),d}function ri(n,i,s,l){let d=ae(n);return d.text=i,d.rawText=s,d.templateFlags=l&7176,d.transformFlags=X_(d.templateFlags),d}function ii(n,i,s,l){return n===15?ri(n,i,s,l):Zl(n,i,s,l)}function $_(n,i,s){return n=Pi(16,n,i,s),ii(16,n,i,s)}function ma(n,i,s){return n=Pi(16,n,i,s),ii(17,n,i,s)}function _s(n,i,s){return n=Pi(16,n,i,s),ii(18,n,i,s)}function eu(n,i,s){return n=Pi(16,n,i,s),ri(15,n,i,s)}function os(n,i){q.assert(!n||!!i,"A `YieldExpression` with an asteriskToken must have an expression.");let s=O(230);return s.expression=i&&_().parenthesizeExpressionForDisallowedComma(i),s.asteriskToken=n,s.transformFlags|=z(s.expression)|z(s.asteriskToken)|1024|128|1048576,s}function tu(n,i,s){return n.expression!==s||n.asteriskToken!==i?j(os(i,s),n):n}function Q_(n){let i=O(231);return i.expression=_().parenthesizeExpressionForDisallowedComma(n),i.transformFlags|=z(i.expression)|1024|32768,i}function nu(n,i){return n.expression!==i?j(Q_(i),n):n}function K_(n,i,s,l,d){let v=ae(232);return v.modifiers=Pe(n),v.name=et(i),v.typeParameters=Pe(s),v.heritageClauses=Pe(l),v.members=de(d),v.transformFlags|=ke(v.modifiers)|Ln(v.name)|ke(v.typeParameters)|ke(v.heritageClauses)|ke(v.members)|(v.typeParameters?1:0)|1024,v.jsDoc=void 0,v}function cs(n,i,s,l,d,v){return n.modifiers!==i||n.name!==s||n.typeParameters!==l||n.heritageClauses!==d||n.members!==v?j(K_(i,s,l,d,v),n):n}function ls(){return O(233)}function Z_(n,i){let s=O(234);return s.expression=_().parenthesizeLeftSideOfAccess(n,!1),s.typeArguments=i&&_().parenthesizeTypeArguments(i),s.transformFlags|=z(s.expression)|ke(s.typeArguments)|1024,s}function eo(n,i,s){return n.expression!==i||n.typeArguments!==s?j(Z_(i,s),n):n}function pn(n,i){let s=O(235);return s.expression=n,s.type=i,s.transformFlags|=z(s.expression)|z(s.type)|1,s}function ha(n,i,s){return n.expression!==i||n.type!==s?j(pn(i,s),n):n}function to(n){let i=O(236);return i.expression=_().parenthesizeLeftSideOfAccess(n,!1),i.transformFlags|=z(i.expression)|1,i}function no(n,i){return Lg(n)?In(n,i):n.expression!==i?j(to(i),n):n}function us(n,i){let s=O(239);return s.expression=n,s.type=i,s.transformFlags|=z(s.expression)|z(s.type)|1,s}function ro(n,i,s){return n.expression!==i||n.type!==s?j(us(i,s),n):n}function ps(n){let i=O(236);return i.flags|=64,i.expression=_().parenthesizeLeftSideOfAccess(n,!0),i.transformFlags|=z(i.expression)|1,i}function In(n,i){return q.assert(!!(n.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),n.expression!==i?j(ps(i),n):n}function io(n,i){let s=O(237);switch(s.keywordToken=n,s.name=i,s.transformFlags|=z(s.name),n){case 105:s.transformFlags|=1024;break;case 102:s.transformFlags|=32;break;default:return q.assertNever(n)}return s.flowNode=void 0,s}function fs(n,i){return n.name!==i?j(io(n.keywordToken,i),n):n}function Xn(n,i){let s=O(240);return s.expression=n,s.literal=i,s.transformFlags|=z(s.expression)|z(s.literal)|1024,s}function ya(n,i,s){return n.expression!==i||n.literal!==s?j(Xn(i,s),n):n}function ao(){let n=O(241);return n.transformFlags|=1024,n}function Br(n,i){let s=O(242);return s.statements=de(n),s.multiLine=i,s.transformFlags|=ke(s.statements),s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s}function ru(n,i){return n.statements!==i?j(Br(i,n.multiLine),n):n}function ds(n,i){let s=O(244);return s.modifiers=Pe(n),s.declarationList=$r(i)?vs(i):i,s.transformFlags|=ke(s.modifiers)|z(s.declarationList),Jn(s.modifiers)&128&&(s.transformFlags=1),s.jsDoc=void 0,s.flowNode=void 0,s}function so(n,i,s){return n.modifiers!==i||n.declarationList!==s?j(ds(i,s),n):n}function _o(){let n=O(243);return n.jsDoc=void 0,n}function Ni(n){let i=O(245);return i.expression=_().parenthesizeExpressionOfExpressionStatement(n),i.transformFlags|=z(i.expression),i.jsDoc=void 0,i.flowNode=void 0,i}function oo(n,i){return n.expression!==i?j(Ni(i),n):n}function co(n,i,s){let l=O(246);return l.expression=n,l.thenStatement=$n(i),l.elseStatement=$n(s),l.transformFlags|=z(l.expression)|z(l.thenStatement)|z(l.elseStatement),l.jsDoc=void 0,l.flowNode=void 0,l}function lo(n,i,s,l){return n.expression!==i||n.thenStatement!==s||n.elseStatement!==l?j(co(i,s,l),n):n}function uo(n,i){let s=O(247);return s.statement=$n(n),s.expression=i,s.transformFlags|=z(s.statement)|z(s.expression),s.jsDoc=void 0,s.flowNode=void 0,s}function po(n,i,s){return n.statement!==i||n.expression!==s?j(uo(i,s),n):n}function fo(n,i){let s=O(248);return s.expression=n,s.statement=$n(i),s.transformFlags|=z(s.expression)|z(s.statement),s.jsDoc=void 0,s.flowNode=void 0,s}function iu(n,i,s){return n.expression!==i||n.statement!==s?j(fo(i,s),n):n}function mo(n,i,s,l){let d=O(249);return d.initializer=n,d.condition=i,d.incrementor=s,d.statement=$n(l),d.transformFlags|=z(d.initializer)|z(d.condition)|z(d.incrementor)|z(d.statement),d.jsDoc=void 0,d.locals=void 0,d.nextContainer=void 0,d.flowNode=void 0,d}function ho(n,i,s,l,d){return n.initializer!==i||n.condition!==s||n.incrementor!==l||n.statement!==d?j(mo(i,s,l,d),n):n}function ms(n,i,s){let l=O(250);return l.initializer=n,l.expression=i,l.statement=$n(s),l.transformFlags|=z(l.initializer)|z(l.expression)|z(l.statement),l.jsDoc=void 0,l.locals=void 0,l.nextContainer=void 0,l.flowNode=void 0,l}function au(n,i,s,l){return n.initializer!==i||n.expression!==s||n.statement!==l?j(ms(i,s,l),n):n}function yo(n,i,s,l){let d=O(251);return d.awaitModifier=n,d.initializer=i,d.expression=_().parenthesizeExpressionForDisallowedComma(s),d.statement=$n(l),d.transformFlags|=z(d.awaitModifier)|z(d.initializer)|z(d.expression)|z(d.statement)|1024,n&&(d.transformFlags|=128),d.jsDoc=void 0,d.locals=void 0,d.nextContainer=void 0,d.flowNode=void 0,d}function su(n,i,s,l,d){return n.awaitModifier!==i||n.initializer!==s||n.expression!==l||n.statement!==d?j(yo(i,s,l,d),n):n}function go(n){let i=O(252);return i.label=et(n),i.transformFlags|=z(i.label)|4194304,i.jsDoc=void 0,i.flowNode=void 0,i}function _u(n,i){return n.label!==i?j(go(i),n):n}function hs(n){let i=O(253);return i.label=et(n),i.transformFlags|=z(i.label)|4194304,i.jsDoc=void 0,i.flowNode=void 0,i}function bo(n,i){return n.label!==i?j(hs(i),n):n}function ys(n){let i=O(254);return i.expression=n,i.transformFlags|=z(i.expression)|128|4194304,i.jsDoc=void 0,i.flowNode=void 0,i}function ou(n,i){return n.expression!==i?j(ys(i),n):n}function gs(n,i){let s=O(255);return s.expression=n,s.statement=$n(i),s.transformFlags|=z(s.expression)|z(s.statement),s.jsDoc=void 0,s.flowNode=void 0,s}function vo(n,i,s){return n.expression!==i||n.statement!==s?j(gs(i,s),n):n}function bs(n,i){let s=O(256);return s.expression=_().parenthesizeExpressionForDisallowedComma(n),s.caseBlock=i,s.transformFlags|=z(s.expression)|z(s.caseBlock),s.jsDoc=void 0,s.flowNode=void 0,s.possiblyExhaustive=!1,s}function ai(n,i,s){return n.expression!==i||n.caseBlock!==s?j(bs(i,s),n):n}function To(n,i){let s=O(257);return s.label=et(n),s.statement=$n(i),s.transformFlags|=z(s.label)|z(s.statement),s.jsDoc=void 0,s.flowNode=void 0,s}function xo(n,i,s){return n.label!==i||n.statement!==s?j(To(i,s),n):n}function So(n){let i=O(258);return i.expression=n,i.transformFlags|=z(i.expression),i.jsDoc=void 0,i.flowNode=void 0,i}function cu(n,i){return n.expression!==i?j(So(i),n):n}function wo(n,i,s){let l=O(259);return l.tryBlock=n,l.catchClause=i,l.finallyBlock=s,l.transformFlags|=z(l.tryBlock)|z(l.catchClause)|z(l.finallyBlock),l.jsDoc=void 0,l.flowNode=void 0,l}function lu(n,i,s,l){return n.tryBlock!==i||n.catchClause!==s||n.finallyBlock!==l?j(wo(i,s,l),n):n}function ko(){let n=O(260);return n.jsDoc=void 0,n.flowNode=void 0,n}function ga(n,i,s,l){let d=ae(261);return d.name=et(n),d.exclamationToken=i,d.type=s,d.initializer=zi(l),d.transformFlags|=Ln(d.name)|z(d.initializer)|(d.exclamationToken??d.type?1:0),d.jsDoc=void 0,d}function Eo(n,i,s,l,d){return n.name!==i||n.type!==l||n.exclamationToken!==s||n.initializer!==d?j(ga(i,s,l,d),n):n}function vs(n,i=0){let s=O(262);return s.flags|=i&7,s.declarations=de(n),s.transformFlags|=ke(s.declarations)|4194304,i&7&&(s.transformFlags|=263168),i&4&&(s.transformFlags|=4),s}function uu(n,i){return n.declarations!==i?j(vs(i,n.flags),n):n}function Ao(n,i,s,l,d,v,F){let pe=ae(263);if(pe.modifiers=Pe(n),pe.asteriskToken=i,pe.name=et(s),pe.typeParameters=Pe(l),pe.parameters=de(d),pe.type=v,pe.body=F,!pe.body||Jn(pe.modifiers)&128)pe.transformFlags=1;else{let Fe=Jn(pe.modifiers)&1024,It=!!pe.asteriskToken,fr=Fe&&It;pe.transformFlags=ke(pe.modifiers)|z(pe.asteriskToken)|Ln(pe.name)|ke(pe.typeParameters)|ke(pe.parameters)|z(pe.type)|z(pe.body)&-67108865|(fr?128:Fe?256:It?2048:0)|(pe.typeParameters||pe.type?1:0)|4194304}return pe.typeArguments=void 0,pe.jsDoc=void 0,pe.locals=void 0,pe.nextContainer=void 0,pe.endFlowNode=void 0,pe.returnFlowNode=void 0,pe}function Ts(n,i,s,l,d,v,F,pe){return n.modifiers!==i||n.asteriskToken!==s||n.name!==l||n.typeParameters!==d||n.parameters!==v||n.type!==F||n.body!==pe?pu(Ao(i,s,l,d,v,F,pe),n):n}function pu(n,i){return n!==i&&n.modifiers===i.modifiers&&(n.modifiers=i.modifiers),Oe(n,i)}function Co(n,i,s,l,d){let v=ae(264);return v.modifiers=Pe(n),v.name=et(i),v.typeParameters=Pe(s),v.heritageClauses=Pe(l),v.members=de(d),Jn(v.modifiers)&128?v.transformFlags=1:(v.transformFlags|=ke(v.modifiers)|Ln(v.name)|ke(v.typeParameters)|ke(v.heritageClauses)|ke(v.members)|(v.typeParameters?1:0)|1024,v.transformFlags&8192&&(v.transformFlags|=1)),v.jsDoc=void 0,v}function ba(n,i,s,l,d,v){return n.modifiers!==i||n.name!==s||n.typeParameters!==l||n.heritageClauses!==d||n.members!==v?j(Co(i,s,l,d,v),n):n}function Do(n,i,s,l,d){let v=ae(265);return v.modifiers=Pe(n),v.name=et(i),v.typeParameters=Pe(s),v.heritageClauses=Pe(l),v.members=de(d),v.transformFlags=1,v.jsDoc=void 0,v}function Po(n,i,s,l,d,v){return n.modifiers!==i||n.name!==s||n.typeParameters!==l||n.heritageClauses!==d||n.members!==v?j(Do(i,s,l,d,v),n):n}function _t(n,i,s,l){let d=ae(266);return d.modifiers=Pe(n),d.name=et(i),d.typeParameters=Pe(s),d.type=l,d.transformFlags=1,d.jsDoc=void 0,d.locals=void 0,d.nextContainer=void 0,d}function vr(n,i,s,l,d){return n.modifiers!==i||n.name!==s||n.typeParameters!==l||n.type!==d?j(_t(i,s,l,d),n):n}function xs(n,i,s){let l=ae(267);return l.modifiers=Pe(n),l.name=et(i),l.members=de(s),l.transformFlags|=ke(l.modifiers)|z(l.name)|ke(l.members)|1,l.transformFlags&=-67108865,l.jsDoc=void 0,l}function Tr(n,i,s,l){return n.modifiers!==i||n.name!==s||n.members!==l?j(xs(i,s,l),n):n}function No(n,i,s,l=0){let d=ae(268);return d.modifiers=Pe(n),d.flags|=l&2088,d.name=i,d.body=s,Jn(d.modifiers)&128?d.transformFlags=1:d.transformFlags|=ke(d.modifiers)|z(d.name)|z(d.body)|1,d.transformFlags&=-67108865,d.jsDoc=void 0,d.locals=void 0,d.nextContainer=void 0,d}function kt(n,i,s,l){return n.modifiers!==i||n.name!==s||n.body!==l?j(No(i,s,l,n.flags),n):n}function xr(n){let i=O(269);return i.statements=de(n),i.transformFlags|=ke(i.statements),i.jsDoc=void 0,i}function zt(n,i){return n.statements!==i?j(xr(i),n):n}function Io(n){let i=O(270);return i.clauses=de(n),i.transformFlags|=ke(i.clauses),i.locals=void 0,i.nextContainer=void 0,i}function fu(n,i){return n.clauses!==i?j(Io(i),n):n}function Oo(n){let i=ae(271);return i.name=et(n),i.transformFlags|=ja(i.name)|1,i.modifiers=void 0,i.jsDoc=void 0,i}function Mo(n,i){return n.name!==i?du(Oo(i),n):n}function du(n,i){return n!==i&&(n.modifiers=i.modifiers),j(n,i)}function Lo(n,i,s,l){let d=ae(272);return d.modifiers=Pe(n),d.name=et(s),d.isTypeOnly=i,d.moduleReference=l,d.transformFlags|=ke(d.modifiers)|ja(d.name)|z(d.moduleReference),Ff(d.moduleReference)||(d.transformFlags|=1),d.transformFlags&=-67108865,d.jsDoc=void 0,d}function Jo(n,i,s,l,d){return n.modifiers!==i||n.isTypeOnly!==s||n.name!==l||n.moduleReference!==d?j(Lo(i,s,l,d),n):n}function jo(n,i,s,l){let d=O(273);return d.modifiers=Pe(n),d.importClause=i,d.moduleSpecifier=s,d.attributes=d.assertClause=l,d.transformFlags|=z(d.importClause)|z(d.moduleSpecifier),d.transformFlags&=-67108865,d.jsDoc=void 0,d}function Ro(n,i,s,l,d){return n.modifiers!==i||n.importClause!==s||n.moduleSpecifier!==l||n.attributes!==d?j(jo(i,s,l,d),n):n}function Uo(n,i,s){let l=ae(274);return typeof n=="boolean"&&(n=n?156:void 0),l.isTypeOnly=n===156,l.phaseModifier=n,l.name=i,l.namedBindings=s,l.transformFlags|=z(l.name)|z(l.namedBindings),n===156&&(l.transformFlags|=1),l.transformFlags&=-67108865,l}function Bo(n,i,s,l){return typeof i=="boolean"&&(i=i?156:void 0),n.phaseModifier!==i||n.name!==s||n.namedBindings!==l?j(Uo(i,s,l),n):n}function Ss(n,i){let s=O(301);return s.elements=de(n),s.multiLine=i,s.token=132,s.transformFlags|=4,s}function mu(n,i,s){return n.elements!==i||n.multiLine!==s?j(Ss(i,s),n):n}function Ii(n,i){let s=O(302);return s.name=n,s.value=i,s.transformFlags|=4,s}function qo(n,i,s){return n.name!==i||n.value!==s?j(Ii(i,s),n):n}function ws(n,i){let s=O(303);return s.assertClause=n,s.multiLine=i,s}function Fo(n,i,s){return n.assertClause!==i||n.multiLine!==s?j(ws(i,s),n):n}function zo(n,i,s){let l=O(301);return l.token=s??118,l.elements=de(n),l.multiLine=i,l.transformFlags|=4,l}function ks(n,i,s){return n.elements!==i||n.multiLine!==s?j(zo(i,s,n.token),n):n}function Vo(n,i){let s=O(302);return s.name=n,s.value=i,s.transformFlags|=4,s}function Wo(n,i,s){return n.name!==i||n.value!==s?j(Vo(i,s),n):n}function Go(n){let i=ae(275);return i.name=n,i.transformFlags|=z(i.name),i.transformFlags&=-67108865,i}function hu(n,i){return n.name!==i?j(Go(i),n):n}function Yo(n){let i=ae(281);return i.name=n,i.transformFlags|=z(i.name)|32,i.transformFlags&=-67108865,i}function yu(n,i){return n.name!==i?j(Yo(i),n):n}function Ho(n){let i=O(276);return i.elements=de(n),i.transformFlags|=ke(i.elements),i.transformFlags&=-67108865,i}function Xo(n,i){return n.elements!==i?j(Ho(i),n):n}function Sr(n,i,s){let l=ae(277);return l.isTypeOnly=n,l.propertyName=i,l.name=s,l.transformFlags|=z(l.propertyName)|z(l.name),l.transformFlags&=-67108865,l}function gu(n,i,s,l){return n.isTypeOnly!==i||n.propertyName!==s||n.name!==l?j(Sr(i,s,l),n):n}function va(n,i,s){let l=ae(278);return l.modifiers=Pe(n),l.isExportEquals=i,l.expression=i?_().parenthesizeRightSideOfBinary(64,void 0,s):_().parenthesizeExpressionOfExportDefault(s),l.transformFlags|=ke(l.modifiers)|z(l.expression),l.transformFlags&=-67108865,l.jsDoc=void 0,l}function Oi(n,i,s){return n.modifiers!==i||n.expression!==s?j(va(i,n.isExportEquals,s),n):n}function Ta(n,i,s,l,d){let v=ae(279);return v.modifiers=Pe(n),v.isTypeOnly=i,v.exportClause=s,v.moduleSpecifier=l,v.attributes=v.assertClause=d,v.transformFlags|=ke(v.modifiers)|z(v.exportClause)|z(v.moduleSpecifier),v.transformFlags&=-67108865,v.jsDoc=void 0,v}function $o(n,i,s,l,d,v){return n.modifiers!==i||n.isTypeOnly!==s||n.exportClause!==l||n.moduleSpecifier!==d||n.attributes!==v?Mi(Ta(i,s,l,d,v),n):n}function Mi(n,i){return n!==i&&n.modifiers===i.modifiers&&(n.modifiers=i.modifiers),j(n,i)}function Es(n){let i=O(280);return i.elements=de(n),i.transformFlags|=ke(i.elements),i.transformFlags&=-67108865,i}function bu(n,i){return n.elements!==i?j(Es(i),n):n}function xa(n,i,s){let l=O(282);return l.isTypeOnly=n,l.propertyName=et(i),l.name=et(s),l.transformFlags|=z(l.propertyName)|z(l.name),l.transformFlags&=-67108865,l.jsDoc=void 0,l}function vu(n,i,s,l){return n.isTypeOnly!==i||n.propertyName!==s||n.name!==l?j(xa(i,s,l),n):n}function Tu(){let n=ae(283);return n.jsDoc=void 0,n}function As(n){let i=O(284);return i.expression=n,i.transformFlags|=z(i.expression),i.transformFlags&=-67108865,i}function xu(n,i){return n.expression!==i?j(As(i),n):n}function Qo(n){return O(n)}function Ko(n,i,s=!1){let l=Cs(n,s?i&&_().parenthesizeNonArrayTypeOfPostfixType(i):i);return l.postfix=s,l}function Cs(n,i){let s=O(n);return s.type=i,s}function Su(n,i,s){return i.type!==s?j(Ko(n,s,i.postfix),i):i}function wu(n,i,s){return i.type!==s?j(Cs(n,s),i):i}function Zo(n,i){let s=ae(318);return s.parameters=Pe(n),s.type=i,s.transformFlags=ke(s.parameters)|(s.type?1:0),s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.typeArguments=void 0,s}function ku(n,i,s){return n.parameters!==i||n.type!==s?j(Zo(i,s),n):n}function ec(n,i=!1){let s=ae(323);return s.jsDocPropertyTags=Pe(n),s.isArrayType=i,s}function Eu(n,i,s){return n.jsDocPropertyTags!==i||n.isArrayType!==s?j(ec(i,s),n):n}function tc(n){let i=O(310);return i.type=n,i}function Ds(n,i){return n.type!==i?j(tc(i),n):n}function nc(n,i,s){let l=ae(324);return l.typeParameters=Pe(n),l.parameters=de(i),l.type=s,l.jsDoc=void 0,l.locals=void 0,l.nextContainer=void 0,l}function Au(n,i,s,l){return n.typeParameters!==i||n.parameters!==s||n.type!==l?j(nc(i,s,l),n):n}function rn(n){let i=ol(n.kind);return n.tagName.escapedText===La(i)?n.tagName:We(i)}function vn(n,i,s){let l=O(n);return l.tagName=i,l.comment=s,l}function qr(n,i,s){let l=ae(n);return l.tagName=i,l.comment=s,l}function Ps(n,i,s,l){let d=vn(346,n??We("template"),l);return d.constraint=i,d.typeParameters=de(s),d}function rc(n,i=rn(n),s,l,d){return n.tagName!==i||n.constraint!==s||n.typeParameters!==l||n.comment!==d?j(Ps(i,s,l,d),n):n}function Sa(n,i,s,l){let d=qr(347,n??We("typedef"),l);return d.typeExpression=i,d.fullName=s,d.name=Hd(s),d.locals=void 0,d.nextContainer=void 0,d}function Cu(n,i=rn(n),s,l,d){return n.tagName!==i||n.typeExpression!==s||n.fullName!==l||n.comment!==d?j(Sa(i,s,l,d),n):n}function Ns(n,i,s,l,d,v){let F=qr(342,n??We("param"),v);return F.typeExpression=l,F.name=i,F.isNameFirst=!!d,F.isBracketed=s,F}function Du(n,i=rn(n),s,l,d,v,F){return n.tagName!==i||n.name!==s||n.isBracketed!==l||n.typeExpression!==d||n.isNameFirst!==v||n.comment!==F?j(Ns(i,s,l,d,v,F),n):n}function ic(n,i,s,l,d,v){let F=qr(349,n??We("prop"),v);return F.typeExpression=l,F.name=i,F.isNameFirst=!!d,F.isBracketed=s,F}function ac(n,i=rn(n),s,l,d,v,F){return n.tagName!==i||n.name!==s||n.isBracketed!==l||n.typeExpression!==d||n.isNameFirst!==v||n.comment!==F?j(ic(i,s,l,d,v,F),n):n}function sc(n,i,s,l){let d=qr(339,n??We("callback"),l);return d.typeExpression=i,d.fullName=s,d.name=Hd(s),d.locals=void 0,d.nextContainer=void 0,d}function _c(n,i=rn(n),s,l,d){return n.tagName!==i||n.typeExpression!==s||n.fullName!==l||n.comment!==d?j(sc(i,s,l,d),n):n}function oc(n,i,s){let l=vn(340,n??We("overload"),s);return l.typeExpression=i,l}function Is(n,i=rn(n),s,l){return n.tagName!==i||n.typeExpression!==s||n.comment!==l?j(oc(i,s,l),n):n}function Os(n,i,s){let l=vn(329,n??We("augments"),s);return l.class=i,l}function Li(n,i=rn(n),s,l){return n.tagName!==i||n.class!==s||n.comment!==l?j(Os(i,s,l),n):n}function cc(n,i,s){let l=vn(330,n??We("implements"),s);return l.class=i,l}function Fr(n,i,s){let l=vn(348,n??We("see"),s);return l.name=i,l}function wa(n,i,s,l){return n.tagName!==i||n.name!==s||n.comment!==l?j(Fr(i,s,l),n):n}function lc(n){let i=O(311);return i.name=n,i}function Pu(n,i){return n.name!==i?j(lc(i),n):n}function uc(n,i){let s=O(312);return s.left=n,s.right=i,s.transformFlags|=z(s.left)|z(s.right),s}function Nu(n,i,s){return n.left!==i||n.right!==s?j(uc(i,s),n):n}function pc(n,i){let s=O(325);return s.name=n,s.text=i,s}function fc(n,i,s){return n.name!==i?j(pc(i,s),n):n}function dc(n,i){let s=O(326);return s.name=n,s.text=i,s}function Iu(n,i,s){return n.name!==i?j(dc(i,s),n):n}function mc(n,i){let s=O(327);return s.name=n,s.text=i,s}function Ou(n,i,s){return n.name!==i?j(mc(i,s),n):n}function Mu(n,i=rn(n),s,l){return n.tagName!==i||n.class!==s||n.comment!==l?j(cc(i,s,l),n):n}function hc(n,i,s){return vn(n,i??We(ol(n)),s)}function Lu(n,i,s=rn(i),l){return i.tagName!==s||i.comment!==l?j(hc(n,s,l),i):i}function yc(n,i,s,l){let d=vn(n,i??We(ol(n)),l);return d.typeExpression=s,d}function Ju(n,i,s=rn(i),l,d){return i.tagName!==s||i.typeExpression!==l||i.comment!==d?j(yc(n,s,l,d),i):i}function gc(n,i){return vn(328,n,i)}function ju(n,i,s){return n.tagName!==i||n.comment!==s?j(gc(i,s),n):n}function bc(n,i,s){let l=qr(341,n??We(ol(341)),s);return l.typeExpression=i,l.locals=void 0,l.nextContainer=void 0,l}function Ms(n,i=rn(n),s,l){return n.tagName!==i||n.typeExpression!==s||n.comment!==l?j(bc(i,s,l),n):n}function vc(n,i,s,l,d){let v=vn(352,n??We("import"),d);return v.importClause=i,v.moduleSpecifier=s,v.attributes=l,v.comment=d,v}function Tc(n,i,s,l,d,v){return n.tagName!==i||n.comment!==v||n.importClause!==s||n.moduleSpecifier!==l||n.attributes!==d?j(vc(i,s,l,d,v),n):n}function Ls(n){let i=O(322);return i.text=n,i}function Ru(n,i){return n.text!==i?j(Ls(i),n):n}function Ji(n,i){let s=O(321);return s.comment=n,s.tags=Pe(i),s}function xc(n,i,s){return n.comment!==i||n.tags!==s?j(Ji(i,s),n):n}function Sc(n,i,s){let l=O(285);return l.openingElement=n,l.children=de(i),l.closingElement=s,l.transformFlags|=z(l.openingElement)|ke(l.children)|z(l.closingElement)|2,l}function Uu(n,i,s,l){return n.openingElement!==i||n.children!==s||n.closingElement!==l?j(Sc(i,s,l),n):n}function wc(n,i,s){let l=O(286);return l.tagName=n,l.typeArguments=Pe(i),l.attributes=s,l.transformFlags|=z(l.tagName)|ke(l.typeArguments)|z(l.attributes)|2,l.typeArguments&&(l.transformFlags|=1),l}function Bu(n,i,s,l){return n.tagName!==i||n.typeArguments!==s||n.attributes!==l?j(wc(i,s,l),n):n}function ka(n,i,s){let l=O(287);return l.tagName=n,l.typeArguments=Pe(i),l.attributes=s,l.transformFlags|=z(l.tagName)|ke(l.typeArguments)|z(l.attributes)|2,i&&(l.transformFlags|=1),l}function kc(n,i,s,l){return n.tagName!==i||n.typeArguments!==s||n.attributes!==l?j(ka(i,s,l),n):n}function Js(n){let i=O(288);return i.tagName=n,i.transformFlags|=z(i.tagName)|2,i}function js(n,i){return n.tagName!==i?j(Js(i),n):n}function Yt(n,i,s){let l=O(289);return l.openingFragment=n,l.children=de(i),l.closingFragment=s,l.transformFlags|=z(l.openingFragment)|ke(l.children)|z(l.closingFragment)|2,l}function Ec(n,i,s,l){return n.openingFragment!==i||n.children!==s||n.closingFragment!==l?j(Yt(i,s,l),n):n}function ji(n,i){let s=O(12);return s.text=n,s.containsOnlyTriviaWhiteSpaces=!!i,s.transformFlags|=2,s}function qu(n,i,s){return n.text!==i||n.containsOnlyTriviaWhiteSpaces!==s?j(ji(i,s),n):n}function Ac(){let n=O(290);return n.transformFlags|=2,n}function Cc(){let n=O(291);return n.transformFlags|=2,n}function Dc(n,i){let s=ae(292);return s.name=n,s.initializer=i,s.transformFlags|=z(s.name)|z(s.initializer)|2,s}function Fu(n,i,s){return n.name!==i||n.initializer!==s?j(Dc(i,s),n):n}function Ri(n){let i=ae(293);return i.properties=de(n),i.transformFlags|=ke(i.properties)|2,i}function zu(n,i){return n.properties!==i?j(Ri(i),n):n}function Pc(n){let i=O(294);return i.expression=n,i.transformFlags|=z(i.expression)|2,i}function Vu(n,i){return n.expression!==i?j(Pc(i),n):n}function Nc(n,i){let s=O(295);return s.dotDotDotToken=n,s.expression=i,s.transformFlags|=z(s.dotDotDotToken)|z(s.expression)|2,s}function Rs(n,i){return n.expression!==i?j(Nc(n.dotDotDotToken,i),n):n}function si(n,i){let s=O(296);return s.namespace=n,s.name=i,s.transformFlags|=z(s.namespace)|z(s.name)|2,s}function Wu(n,i,s){return n.namespace!==i||n.name!==s?j(si(i,s),n):n}function Ea(n,i){let s=O(297);return s.expression=_().parenthesizeExpressionForDisallowedComma(n),s.statements=de(i),s.transformFlags|=z(s.expression)|ke(s.statements),s.jsDoc=void 0,s}function Ic(n,i,s){return n.expression!==i||n.statements!==s?j(Ea(i,s),n):n}function Oc(n){let i=O(298);return i.statements=de(n),i.transformFlags=ke(i.statements),i}function Ui(n,i){return n.statements!==i?j(Oc(i),n):n}function Us(n,i){let s=O(299);switch(s.token=n,s.types=de(i),s.transformFlags|=ke(s.types),n){case 96:s.transformFlags|=1024;break;case 119:s.transformFlags|=1;break;default:return q.assertNever(n)}return s}function Gu(n,i){return n.types!==i?j(Us(n.token,i),n):n}function Mc(n,i){let s=O(300);return s.variableDeclaration=Tn(n),s.block=i,s.transformFlags|=z(s.variableDeclaration)|z(s.block)|(n?0:64),s.locals=void 0,s.nextContainer=void 0,s}function Lc(n,i,s){return n.variableDeclaration!==i||n.block!==s?j(Mc(i,s),n):n}function Aa(n,i){let s=ae(304);return s.name=et(n),s.initializer=_().parenthesizeExpressionForDisallowedComma(i),s.transformFlags|=Ln(s.name)|z(s.initializer),s.modifiers=void 0,s.questionToken=void 0,s.exclamationToken=void 0,s.jsDoc=void 0,s}function Bs(n,i,s){return n.name!==i||n.initializer!==s?_i(Aa(i,s),n):n}function _i(n,i){return n!==i&&(n.modifiers=i.modifiers,n.questionToken=i.questionToken,n.exclamationToken=i.exclamationToken),j(n,i)}function Jc(n,i){let s=ae(305);return s.name=et(n),s.objectAssignmentInitializer=i&&_().parenthesizeExpressionForDisallowedComma(i),s.transformFlags|=ja(s.name)|z(s.objectAssignmentInitializer)|1024,s.equalsToken=void 0,s.modifiers=void 0,s.questionToken=void 0,s.exclamationToken=void 0,s.jsDoc=void 0,s}function Yu(n,i,s){return n.name!==i||n.objectAssignmentInitializer!==s?Hu(Jc(i,s),n):n}function Hu(n,i){return n!==i&&(n.modifiers=i.modifiers,n.questionToken=i.questionToken,n.exclamationToken=i.exclamationToken,n.equalsToken=i.equalsToken),j(n,i)}function jc(n){let i=ae(306);return i.expression=_().parenthesizeExpressionForDisallowedComma(n),i.transformFlags|=z(i.expression)|128|65536,i.jsDoc=void 0,i}function Rc(n,i){return n.expression!==i?j(jc(i),n):n}function qs(n,i){let s=ae(307);return s.name=et(n),s.initializer=i&&_().parenthesizeExpressionForDisallowedComma(i),s.transformFlags|=z(s.name)|z(s.initializer)|1,s.jsDoc=void 0,s}function On(n,i,s){return n.name!==i||n.initializer!==s?j(qs(i,s),n):n}function Uc(n,i,s){let l=t.createBaseSourceFileNode(308);return l.statements=de(n),l.endOfFileToken=i,l.flags|=s,l.text="",l.fileName="",l.path="",l.resolvedPath="",l.originalFileName="",l.languageVersion=1,l.languageVariant=0,l.scriptKind=0,l.isDeclarationFile=!1,l.hasNoDefaultLib=!1,l.transformFlags|=ke(l.statements)|z(l.endOfFileToken),l.locals=void 0,l.nextContainer=void 0,l.endFlowNode=void 0,l.nodeCount=0,l.identifierCount=0,l.symbolCount=0,l.parseDiagnostics=void 0,l.bindDiagnostics=void 0,l.bindSuggestionDiagnostics=void 0,l.lineMap=void 0,l.externalModuleIndicator=void 0,l.setExternalModuleIndicator=void 0,l.pragmas=void 0,l.checkJsDirective=void 0,l.referencedFiles=void 0,l.typeReferenceDirectives=void 0,l.libReferenceDirectives=void 0,l.amdDependencies=void 0,l.commentDirectives=void 0,l.identifiers=void 0,l.packageJsonLocations=void 0,l.packageJsonScope=void 0,l.imports=void 0,l.moduleAugmentations=void 0,l.ambientModuleNames=void 0,l.classifiableNames=void 0,l.impliedNodeFormat=void 0,l}function Bc(n){let i=Object.create(n.redirectTarget);return Object.defineProperties(i,{id:{get(){return this.redirectInfo.redirectTarget.id},set(s){this.redirectInfo.redirectTarget.id=s}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(s){this.redirectInfo.redirectTarget.symbol=s}}}),i.redirectInfo=n,i}function Xu(n){let i=Bc(n.redirectInfo);return i.flags|=n.flags&-17,i.fileName=n.fileName,i.path=n.path,i.resolvedPath=n.resolvedPath,i.originalFileName=n.originalFileName,i.packageJsonLocations=n.packageJsonLocations,i.packageJsonScope=n.packageJsonScope,i.emitNode=void 0,i}function $u(n){let i=t.createBaseSourceFileNode(308);i.flags|=n.flags&-17;for(let s in n)if(!(Dr(i,s)||!Dr(n,s))){if(s==="emitNode"){i.emitNode=void 0;continue}i[s]=n[s]}return i}function Fs(n){let i=n.redirectInfo?Xu(n):$u(n);return a(i,n),i}function zs(n,i,s,l,d,v,F){let pe=Fs(n);return pe.statements=de(i),pe.isDeclarationFile=s,pe.referencedFiles=l,pe.typeReferenceDirectives=d,pe.hasNoDefaultLib=v,pe.libReferenceDirectives=F,pe.transformFlags=ke(pe.statements)|z(pe.endOfFileToken),pe}function Qu(n,i,s=n.isDeclarationFile,l=n.referencedFiles,d=n.typeReferenceDirectives,v=n.hasNoDefaultLib,F=n.libReferenceDirectives){return n.statements!==i||n.isDeclarationFile!==s||n.referencedFiles!==l||n.typeReferenceDirectives!==d||n.hasNoDefaultLib!==v||n.libReferenceDirectives!==F?j(zs(n,i,s,l,d,v,F),n):n}function qc(n){let i=O(309);return i.sourceFiles=n,i.syntheticFileReferences=void 0,i.syntheticTypeReferences=void 0,i.syntheticLibReferences=void 0,i.hasNoDefaultLib=void 0,i}function Fc(n,i){return n.sourceFiles!==i?j(qc(i),n):n}function Ku(n,i=!1,s){let l=O(238);return l.type=n,l.isSpread=i,l.tupleNameSource=s,l}function Zu(n){let i=O(353);return i._children=n,i}function Ca(n){let i=O(354);return i.original=n,dn(i,n),i}function Vs(n,i){let s=O(356);return s.expression=n,s.original=i,s.transformFlags|=z(s.expression)|1,dn(s,i),s}function zc(n,i){return n.expression!==i?j(Vs(i,n.original),n):n}function ep(){return O(355)}function tp(n){if(Ja(n)&&!gl(n)&&!n.original&&!n.emitNode&&!n.id){if(e6(n))return n.elements;if(na(n)&&Rb(n.operatorToken))return[n.left,n.right]}return n}function Ws(n){let i=O(357);return i.elements=de(oy(n,tp)),i.transformFlags|=ke(i.elements),i}function np(n,i){return n.elements!==i?j(Ws(i),n):n}function Gs(n,i){let s=O(358);return s.expression=n,s.thisArg=i,s.transformFlags|=z(s.expression)|z(s.thisArg),s}function Vc(n,i,s){return n.expression!==i||n.thisArg!==s?j(Gs(i,s),n):n}function Wc(n){let i=hn(n.escapedText);return i.flags|=n.flags&-17,i.transformFlags=n.transformFlags,a(i,n),setIdentifierAutoGenerate(i,{...n.emitNode.autoGenerate}),i}function rp(n){let i=hn(n.escapedText);i.flags|=n.flags&-17,i.jsDoc=n.jsDoc,i.flowNode=n.flowNode,i.symbol=n.symbol,i.transformFlags=n.transformFlags,a(i,n);let s=getIdentifierTypeArguments(n);return s&&setIdentifierTypeArguments(i,s),i}function ip(n){let i=Pn(n.escapedText);return i.flags|=n.flags&-17,i.transformFlags=n.transformFlags,a(i,n),setIdentifierAutoGenerate(i,{...n.emitNode.autoGenerate}),i}function Gc(n){let i=Pn(n.escapedText);return i.flags|=n.flags&-17,i.transformFlags=n.transformFlags,a(i,n),i}function Da(n){if(n===void 0)return n;if(Z1(n))return Fs(n);if(Ua(n))return Wc(n);if(Ke(n))return rp(n);if(n1(n))return ip(n);if(gi(n))return Gc(n);let i=ff(n.kind)?t.createBaseNode(n.kind):t.createBaseTokenNode(n.kind);i.flags|=n.flags&-17,i.transformFlags=n.transformFlags,a(i,n);for(let s in n)Dr(i,s)||!Dr(n,s)||(i[s]=n[s]);return i}function ap(n,i,s){return Di(is(void 0,void 0,void 0,void 0,i?[i]:[],void 0,Br(n,!0)),void 0,s?[s]:[])}function sp(n,i,s){return Di(as(void 0,void 0,i?[i]:[],void 0,void 0,Br(n,!0)),void 0,s?[s]:[])}function Bi(){return ss(V("0"))}function Yc(n){return va(void 0,!1,n)}function Hc(n){return Ta(void 0,!1,Es([xa(!1,void 0,n)]))}function _p(n,i){return i==="null"?he.createStrictEquality(n,Lt()):i==="undefined"?he.createStrictEquality(n,Bi()):he.createStrictEquality(fa(n),ft(i))}function Ys(n,i){return i==="null"?he.createStrictInequality(n,Lt()):i==="undefined"?he.createStrictInequality(n,Bi()):he.createStrictInequality(fa(n),ft(i))}function zr(n,i,s){return Dd(n)?ts(Ai(n,void 0,i),void 0,void 0,s):Di(cr(n,i),void 0,s)}function op(n,i,s){return zr(n,"bind",[i,...s])}function cp(n,i,s){return zr(n,"call",[i,...s])}function lp(n,i,s){return zr(n,"apply",[i,s])}function qi(n,i,s){return zr(We(n),i,s)}function up(n,i){return zr(n,"slice",i===void 0?[]:[wr(i)])}function Fi(n,i){return zr(n,"concat",i)}function pp(n,i,s){return qi("Object","defineProperty",[n,wr(i),s])}function Hs(n,i){return qi("Object","getOwnPropertyDescriptor",[n,wr(i)])}function oi(n,i,s){return qi("Reflect","get",s?[n,i,s]:[n,i])}function Xc(n,i,s,l){return qi("Reflect","set",l?[n,i,s,l]:[n,i,s])}function ci(n,i,s){return s?(n.push(Aa(i,s)),!0):!1}function fp(n,i){let s=[];ci(s,"enumerable",wr(n.enumerable)),ci(s,"configurable",wr(n.configurable));let l=ci(s,"writable",wr(n.writable));l=ci(s,"value",n.value)||l;let d=ci(s,"get",n.get);return d=ci(s,"set",n.set)||d,q.assert(!(l&&d),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Ei(s,!i)}function $c(n,i){switch(n.kind){case 218:return U_(n,i);case 217:return R_(n,n.type,i);case 235:return ha(n,i,n.type);case 239:return ro(n,i,n.type);case 236:return no(n,i);case 234:return eo(n,i,n.typeArguments);case 356:return zc(n,i)}}function dp(n){return Dl(n)&&Ja(n)&&Ja(getSourceMapRange(n))&&Ja(getCommentRange(n))&&!Zt(getSyntheticLeadingComments(n))&&!Zt(getSyntheticTrailingComments(n))}function Qc(n,i,s=63){return n&&sh(n,s)&&!dp(n)?$c(n,Qc(n.expression,i)):i}function Kc(n,i,s){if(!i)return n;let l=xo(i,i.label,Y1(i.statement)?Kc(n,i.statement):n);return s&&s(i),l}function Xs(n,i){let s=vf(n);switch(s.kind){case 80:return i;case 110:case 9:case 10:case 11:return!1;case 210:return s.elements.length!==0;case 211:return s.properties.length>0;default:return!0}}function Zc(n,i,s,l=!1){let d=Vf(n,63),v,F;return Jd(d)?(v=Bt(),F=d):Ap(d)?(v=Bt(),F=s!==void 0&&s<2?dn(We("_super"),d):d):za(d)&8192?(v=Bi(),F=_().parenthesizeLeftSideOfAccess(d,!1)):dr(d)?Xs(d.expression,l)?(v=ir(i),F=cr(dn(he.createAssignment(v,d.expression),d.expression),d.name),dn(F,d)):(v=d.expression,F=d):Ha(d)?Xs(d.expression,l)?(v=ir(i),F=Ci(dn(he.createAssignment(v,d.expression),d.expression),d.argumentExpression),dn(F,d)):(v=d.expression,F=d):(v=Bi(),F=_().parenthesizeLeftSideOfAccess(n,!1)),{target:F,thisArg:v}}function el(n,i){return cr(rs(Ei([U(void 0,"value",[mr(void 0,void 0,n,void 0,void 0,void 0)],Br([Ni(i)]))])),"value")}function o(n){return n.length>10?Ws(n):gy(n,he.createComma)}function p(n,i,s,l=0,d){let v=d?n&&lf(n):Xm(n);if(v&&Ke(v)&&!Ua(v)){let F=Sf(dn(Da(v),v),v.parent);return l|=za(v),s||(l|=96),i||(l|=3072),l&&setEmitFlags(F,l),F}return Bn(n)}function m(n,i,s){return p(n,i,s,98304)}function g(n,i,s,l){return p(n,i,s,32768,l)}function b(n,i,s){return p(n,i,s,16384)}function N(n,i,s){return p(n,i,s)}function Q(n,i,s,l){let d=cr(n,Ja(i)?i:Da(i));dn(d,i);let v=0;return l||(v|=96),s||(v|=3072),v&&setEmitFlags(d,v),d}function _e(n,i,s,l){return n&&v_(i,32)?Q(n,p(i),s,l):b(i,s,l)}function ee(n,i,s,l){let d=je(n,i,0,s);return Je(n,i,d,l)}function te(n){return vi(n.expression)&&n.expression.text==="use strict"}function ce(){return T6(Ni(ft("use strict")))}function je(n,i,s=0,l){q.assert(i.length===0,"Prologue directives should be at the first statement in the target statements array");let d=!1,v=n.length;for(;spe&&It.splice(d,0,...i.slice(pe,Fe)),pe>F&&It.splice(l,0,...i.slice(F,pe)),F>v&&It.splice(s,0,...i.slice(v,F)),v>0)if(s===0)It.splice(0,0,...i.slice(0,v));else{let fr=new Map;for(let xn=0;xn=0;xn--){let Vi=i[xn];fr.has(Vi.expression.text)||It.unshift(Vi)}}return mi(n)?dn(de(It,n.hasTrailingComma),n):n}function pr(n,i){let s;return typeof i=="number"?s=yn(i):s=i,Ef(n)?sr(n,s,n.name,n.constraint,n.default):m_(n)?hr(n,s,n.dotDotDotToken,n.name,n.questionToken,n.type,n.initializer):Nf(n)?ze(n,s,n.typeParameters,n.parameters,n.type):C1(n)?Vn(n,s,n.name,n.questionToken,n.type):Wa(n)?L(n,s,n.name,n.questionToken??n.exclamationToken,n.type,n.initializer):D1(n)?fe(n,s,n.name,n.questionToken,n.typeParameters,n.parameters,n.type):h_(n)?He(n,s,n.asteriskToken,n.name,n.questionToken,n.typeParameters,n.parameters,n.type,n.body):Af(n)?Mr(n,s,n.parameters,n.body):Tl(n)?Wn(n,s,n.name,n.parameters,n.type,n.body):y_(n)?K(n,s,n.name,n.parameters,n.body):Cf(n)?Ze(n,s,n.parameters,n.type):Mf(n)?B_(n,s,n.asteriskToken,n.name,n.typeParameters,n.parameters,n.type,n.body):Lf(n)?q_(n,s,n.typeParameters,n.parameters,n.type,n.equalsGreaterThanToken,n.body):xl(n)?cs(n,s,n.name,n.typeParameters,n.heritageClauses,n.members):Xa(n)?so(n,s,n.declarationList):jf(n)?Ts(n,s,n.asteriskToken,n.name,n.typeParameters,n.parameters,n.type,n.body):Ga(n)?ba(n,s,n.name,n.typeParameters,n.heritageClauses,n.members):T_(n)?Po(n,s,n.name,n.typeParameters,n.heritageClauses,n.members):Nl(n)?vr(n,s,n.name,n.typeParameters,n.type):X1(n)?Tr(n,s,n.name,n.members):Ti(n)?kt(n,s,n.name,n.body):Rf(n)?Jo(n,s,n.isTypeOnly,n.name,n.moduleReference):Uf(n)?Ro(n,s,n.importClause,n.moduleSpecifier,n.attributes):Bf(n)?Oi(n,s,n.expression):qf(n)?$o(n,s,n.isTypeOnly,n.exportClause,n.moduleSpecifier,n.attributes):q.assertNever(n)}function Mn(n,i){return m_(n)?hr(n,i,n.dotDotDotToken,n.name,n.questionToken,n.type,n.initializer):Wa(n)?L(n,i,n.name,n.questionToken??n.exclamationToken,n.type,n.initializer):h_(n)?He(n,i,n.asteriskToken,n.name,n.questionToken,n.typeParameters,n.parameters,n.type,n.body):Tl(n)?Wn(n,i,n.name,n.parameters,n.type,n.body):y_(n)?K(n,i,n.name,n.parameters,n.body):xl(n)?cs(n,i,n.name,n.typeParameters,n.heritageClauses,n.members):Ga(n)?ba(n,i,n.name,n.typeParameters,n.heritageClauses,n.members):q.assertNever(n)}function Vr(n,i){switch(n.kind){case 178:return Wn(n,n.modifiers,i,n.parameters,n.type,n.body);case 179:return K(n,n.modifiers,i,n.parameters,n.body);case 175:return He(n,n.modifiers,n.asteriskToken,i,n.questionToken,n.typeParameters,n.parameters,n.type,n.body);case 174:return fe(n,n.modifiers,i,n.questionToken,n.typeParameters,n.parameters,n.type);case 173:return L(n,n.modifiers,i,n.questionToken??n.exclamationToken,n.type,n.initializer);case 172:return Vn(n,n.modifiers,i,n.questionToken,n.type);case 304:return Bs(n,i,n.initializer)}}function Pe(n){return n?de(n):void 0}function et(n){return typeof n=="string"?We(n):n}function wr(n){return typeof n=="string"?ft(n):typeof n=="number"?V(n):typeof n=="boolean"?n?ct():ar():n}function zi(n){return n&&_().parenthesizeExpressionForDisallowedComma(n)}function mp(n){return typeof n=="number"?ot(n):n}function $n(n){return n&&t6(n)?dn(a(_o(),n),n):n}function Tn(n){return typeof n=="string"||n&&!Jf(n)?ga(n,void 0,void 0,void 0):n}function j(n,i){return n!==i&&(a(n,i),dn(n,i)),n}}function ol(e){switch(e){case 345:return"type";case 343:return"returns";case 344:return"this";case 341:return"enum";case 331:return"author";case 333:return"class";case 334:return"public";case 335:return"private";case 336:return"protected";case 337:return"readonly";case 338:return"override";case 346:return"template";case 347:return"typedef";case 342:return"param";case 349:return"prop";case 339:return"callback";case 340:return"overload";case 329:return"augments";case 330:return"implements";case 352:return"import";default:return q.fail(`Unsupported kind: ${q.formatSyntaxKind(e)}`)}}var Sn,Fd={};function Nb(e,t){switch(Sn||(Sn=sf(99,!1,0)),e){case 15:Sn.setText("`"+t+"`");break;case 16:Sn.setText("`"+t+"${");break;case 17:Sn.setText("}"+t+"${");break;case 18:Sn.setText("}"+t+"`");break}let a=Sn.scan();if(a===20&&(a=Sn.reScanTemplateToken(!1)),Sn.isUnterminated())return Sn.setText(void 0),Fd;let _;switch(a){case 15:case 16:case 17:case 18:_=Sn.getTokenValue();break}return _===void 0||Sn.scan()!==1?(Sn.setText(void 0),Fd):(Sn.setText(void 0),_)}function Ln(e){return e&&Ke(e)?ja(e):z(e)}function ja(e){return z(e)&-67108865}function Ib(e,t){return t|e.transformFlags&134234112}function z(e){if(!e)return 0;let t=e.transformFlags&~Ob(e.kind);return yg(e)&&r1(e.name)?Ib(e.name,t):t}function ke(e){return e?e.transformFlags:0}function zd(e){let t=0;for(let a of e)t|=z(a);e.transformFlags=t}function Ob(e){if(e>=183&&e<=206)return-2;switch(e){case 214:case 215:case 210:return-2147450880;case 268:return-1941676032;case 170:return-2147483648;case 220:return-2072174592;case 219:case 263:return-1937940480;case 262:return-2146893824;case 264:case 232:return-2147344384;case 177:return-1937948672;case 173:return-2013249536;case 175:case 178:case 179:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 169:case 172:case 174:case 180:case 181:case 182:case 265:case 266:return-2;case 211:return-2147278848;case 300:return-2147418112;case 207:case 208:return-2147450880;case 217:case 239:case 235:case 356:case 218:case 108:return-2147483648;case 212:case 213:return-2147483648;default:return-2147483648}}var Ks=Cb();function Zs(e){return e.flags|=16,e}var Mb={createBaseSourceFileNode:e=>Zs(Ks.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>Zs(Ks.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>Zs(Ks.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>Zs(Ks.createBaseTokenNode(e)),createBaseNode:e=>Zs(Ks.createBaseNode(e))},P3=wf(4,Mb);function Lb(e,t){if(e.original!==t&&(e.original=t,t)){let a=t.emitNode;a&&(e.emitNode=Jb(a,e.emitNode))}return e}function Jb(e,t){let{flags:a,internalFlags:_,leadingComments:f,trailingComments:h,commentRange:T,sourceMapRange:k,tokenSourceMapRanges:c,constantValue:W,helpers:y,startsOnNewLine:G,snippetElement:E,classThis:D,assignedName:R}=e;if(t||(t={}),a&&(t.flags=a),_&&(t.internalFlags=_&-9),f&&(t.leadingComments=En(f.slice(),t.leadingComments)),h&&(t.trailingComments=En(h.slice(),t.trailingComments)),T&&(t.commentRange=T),k&&(t.sourceMapRange=k),c&&(t.tokenSourceMapRanges=jb(c,t.tokenSourceMapRanges)),W!==void 0&&(t.constantValue=W),y)for(let ue of y)t.helpers=py(t.helpers,ue);return G!==void 0&&(t.startsOnNewLine=G),E!==void 0&&(t.snippetElement=E),D&&(t.classThis=D),R&&(t.assignedName=R),t}function jb(e,t){t||(t=[]);for(let a in e)t[a]=e[a];return t}function aa(e){return e.kind===9}function k1(e){return e.kind===10}function vi(e){return e.kind===11}function E1(e){return e.kind===15}function Rb(e){return e.kind===28}function Vd(e){return e.kind===54}function Wd(e){return e.kind===58}function Ke(e){return e.kind===80}function gi(e){return e.kind===81}function Ub(e){return e.kind===95}function cl(e){return e.kind===134}function Ap(e){return e.kind===108}function Bb(e){return e.kind===102}function A1(e){return e.kind===167}function kf(e){return e.kind===168}function Ef(e){return e.kind===169}function m_(e){return e.kind===170}function Cl(e){return e.kind===171}function C1(e){return e.kind===172}function Wa(e){return e.kind===173}function D1(e){return e.kind===174}function h_(e){return e.kind===175}function Af(e){return e.kind===177}function Tl(e){return e.kind===178}function y_(e){return e.kind===179}function P1(e){return e.kind===180}function N1(e){return e.kind===181}function Cf(e){return e.kind===182}function I1(e){return e.kind===183}function Df(e){return e.kind===184}function Pf(e){return e.kind===185}function Nf(e){return e.kind===186}function qb(e){return e.kind===187}function O1(e){return e.kind===188}function Fb(e){return e.kind===189}function zb(e){return e.kind===190}function M1(e){return e.kind===203}function Vb(e){return e.kind===191}function Wb(e){return e.kind===192}function L1(e){return e.kind===193}function J1(e){return e.kind===194}function Gb(e){return e.kind===195}function Yb(e){return e.kind===196}function j1(e){return e.kind===197}function Hb(e){return e.kind===198}function R1(e){return e.kind===199}function Xb(e){return e.kind===200}function U1(e){return e.kind===201}function $b(e){return e.kind===202}function Qb(e){return e.kind===206}function B1(e){return e.kind===209}function q1(e){return e.kind===210}function If(e){return e.kind===211}function dr(e){return e.kind===212}function Ha(e){return e.kind===213}function Of(e){return e.kind===214}function F1(e){return e.kind===216}function Dl(e){return e.kind===218}function Mf(e){return e.kind===219}function Lf(e){return e.kind===220}function Kb(e){return e.kind===223}function z1(e){return e.kind===225}function na(e){return e.kind===227}function V1(e){return e.kind===231}function xl(e){return e.kind===232}function W1(e){return e.kind===233}function G1(e){return e.kind===234}function fl(e){return e.kind===236}function Zb(e){return e.kind===237}function e6(e){return e.kind===357}function Xa(e){return e.kind===244}function Pl(e){return e.kind===245}function Y1(e){return e.kind===257}function Jf(e){return e.kind===261}function H1(e){return e.kind===262}function jf(e){return e.kind===263}function Ga(e){return e.kind===264}function T_(e){return e.kind===265}function Nl(e){return e.kind===266}function X1(e){return e.kind===267}function Ti(e){return e.kind===268}function Rf(e){return e.kind===272}function Uf(e){return e.kind===273}function Bf(e){return e.kind===278}function qf(e){return e.kind===279}function $1(e){return e.kind===280}function t6(e){return e.kind===354}function Ff(e){return e.kind===284}function Fp(e){return e.kind===287}function n6(e){return e.kind===290}function Q1(e){return e.kind===296}function r6(e){return e.kind===298}function K1(e){return e.kind===304}function Z1(e){return e.kind===308}function eh(e){return e.kind===310}function th(e){return e.kind===315}function nh(e){return e.kind===318}function rh(e){return e.kind===321}function i6(e){return e.kind===323}function Il(e){return e.kind===324}function a6(e){return e.kind===329}function s6(e){return e.kind===334}function _6(e){return e.kind===335}function o6(e){return e.kind===336}function c6(e){return e.kind===337}function l6(e){return e.kind===338}function u6(e){return e.kind===340}function p6(e){return e.kind===332}function zp(e){return e.kind===342}function f6(e){return e.kind===343}function zf(e){return e.kind===345}function ih(e){return e.kind===346}function d6(e){return e.kind===330}function m6(e){return e.kind===351}var ea=new WeakMap;function ah(e,t){var a;let _=e.kind;return ff(_)?_===353?e._children:(a=ea.get(t))==null?void 0:a.get(e):vt}function h6(e,t,a){e.kind===353&&q.fail("Should not need to re-set the children of a SyntaxList.");let _=ea.get(t);return _===void 0&&(_=new WeakMap,ea.set(t,_)),_.set(e,a),a}function Gd(e,t){var a;e.kind===353&&q.fail("Did not expect to unset the children of a SyntaxList."),(a=ea.get(t))==null||a.delete(e)}function y6(e,t){let a=ea.get(e);a!==void 0&&(ea.delete(e),ea.set(t,a))}function Yd(e){return(za(e)&32768)!==0}function g6(e){return vi(e.expression)&&e.expression.text==="use strict"}function b6(e){for(let t of e)if(pl(t)){if(g6(t))return t}else break}function v6(e){return Dl(e)&&ia(e)&&!!Ng(e)}function sh(e,t=63){switch(e.kind){case 218:return t&-2147483648&&v6(e)?!1:(t&1)!==0;case 217:case 235:return(t&2)!==0;case 239:return(t&34)!==0;case 234:return(t&16)!==0;case 236:return(t&4)!==0;case 356:return(t&8)!==0}return!1}function Vf(e,t=63){for(;sh(e,t);)e=e.expression;return e}function T6(e){return setStartsOnNewLine(e,!0)}function i_(e){if(Yg(e))return e.name;if(Vg(e)){switch(e.kind){case 304:return i_(e.initializer);case 305:return e.name;case 306:return i_(e.expression)}return}return vl(e,!0)?i_(e.left):V1(e)?i_(e.expression):e}function x6(e){switch(e.kind){case 207:case 208:case 210:return e.elements;case 211:return e.properties}}function Hd(e){if(e){let t=e;for(;;){if(Ke(t)||!t.body)return Ke(t)?t:t.name;t=t.body}}}var Xd;(e=>{function t(y,G,E,D,R,ue,be){let he=G>0?R[G-1]:void 0;return q.assertEqual(E[G],t),R[G]=y.onEnter(D[G],he,be),E[G]=k(y,t),G}e.enter=t;function a(y,G,E,D,R,ue,be){q.assertEqual(E[G],a),q.assertIsDefined(y.onLeft),E[G]=k(y,a);let he=y.onLeft(D[G].left,R[G],D[G]);return he?(W(G,D,he),c(G,E,D,R,he)):G}e.left=a;function _(y,G,E,D,R,ue,be){return q.assertEqual(E[G],_),q.assertIsDefined(y.onOperator),E[G]=k(y,_),y.onOperator(D[G].operatorToken,R[G],D[G]),G}e.operator=_;function f(y,G,E,D,R,ue,be){q.assertEqual(E[G],f),q.assertIsDefined(y.onRight),E[G]=k(y,f);let he=y.onRight(D[G].right,R[G],D[G]);return he?(W(G,D,he),c(G,E,D,R,he)):G}e.right=f;function h(y,G,E,D,R,ue,be){q.assertEqual(E[G],h),E[G]=k(y,h);let he=y.onExit(D[G],R[G]);if(G>0){if(G--,y.foldState){let de=E[G]===h?"right":"left";R[G]=y.foldState(R[G],he,de)}}else ue.value=he;return G}e.exit=h;function T(y,G,E,D,R,ue,be){return q.assertEqual(E[G],T),G}e.done=T;function k(y,G){switch(G){case t:if(y.onLeft)return a;case a:if(y.onOperator)return _;case _:if(y.onRight)return f;case f:return h;case h:return T;case T:return T;default:q.fail("Invalid state")}}e.nextState=k;function c(y,G,E,D,R){return y++,G[y]=t,E[y]=R,D[y]=void 0,y}function W(y,G,E){if(q.shouldAssert(2))for(;y>=0;)q.assert(G[y]!==E,"Circular traversal detected."),y--}})(Xd||(Xd={}));function $d(e,t){return typeof e=="object"?Vp(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function S6(e,t){return typeof e=="string"?e:w6(e,q.checkDefined(t))}function w6(e,t){return n1(e)?t(e).slice(1):Ua(e)?t(e):gi(e)?e.escapedText.slice(1):An(e)}function Vp(e,t,a,_,f){return t=$d(t,f),_=$d(_,f),a=S6(a,f),`${e?"#":""}${t}${a}${_}`}function _h(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(let t of x6(e)){let a=i_(t);if(a&&Gg(a)&&(a.transformFlags&65536||a.transformFlags&128&&_h(a)))return!0}return!1}function dn(e,t){return t?yi(e,t.pos,t.end):e}function Ol(e){let t=e.kind;return t===169||t===170||t===172||t===173||t===174||t===175||t===177||t===178||t===179||t===182||t===186||t===219||t===220||t===232||t===244||t===263||t===264||t===265||t===266||t===267||t===268||t===272||t===273||t===278||t===279}function Wf(e){let t=e.kind;return t===170||t===173||t===175||t===178||t===179||t===232||t===264}var Qd,Kd,Zd,em,tm,k6={createBaseSourceFileNode:e=>new(tm||(tm=Et.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(Zd||(Zd=Et.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(em||(em=Et.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(Kd||(Kd=Et.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(Qd||(Qd=Et.getNodeConstructor()))(e,-1,-1)},N3=wf(1,k6);function S(e,t){return t&&e(t)}function ie(e,t,a){if(a){if(t)return t(a);for(let _ of a){let f=e(_);if(f)return f}}}function E6(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function A6(e){return jn(e.statements,C6)||D6(e)}function C6(e){return Ol(e)&&P6(e,95)||Rf(e)&&Ff(e.moduleReference)||Uf(e)||Bf(e)||qf(e)?e:void 0}function D6(e){return e.flags&8388608?oh(e):void 0}function oh(e){return N6(e)?e:Xt(e,oh)}function P6(e,t){return Zt(e.modifiers,a=>a.kind===t)}function N6(e){return Zb(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}var I6={167:function(t,a,_){return S(a,t.left)||S(a,t.right)},169:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.name)||S(a,t.constraint)||S(a,t.default)||S(a,t.expression)},305:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.name)||S(a,t.questionToken)||S(a,t.exclamationToken)||S(a,t.equalsToken)||S(a,t.objectAssignmentInitializer)},306:function(t,a,_){return S(a,t.expression)},170:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.dotDotDotToken)||S(a,t.name)||S(a,t.questionToken)||S(a,t.type)||S(a,t.initializer)},173:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.name)||S(a,t.questionToken)||S(a,t.exclamationToken)||S(a,t.type)||S(a,t.initializer)},172:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.name)||S(a,t.questionToken)||S(a,t.type)||S(a,t.initializer)},304:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.name)||S(a,t.questionToken)||S(a,t.exclamationToken)||S(a,t.initializer)},261:function(t,a,_){return S(a,t.name)||S(a,t.exclamationToken)||S(a,t.type)||S(a,t.initializer)},209:function(t,a,_){return S(a,t.dotDotDotToken)||S(a,t.propertyName)||S(a,t.name)||S(a,t.initializer)},182:function(t,a,_){return ie(a,_,t.modifiers)||ie(a,_,t.typeParameters)||ie(a,_,t.parameters)||S(a,t.type)},186:function(t,a,_){return ie(a,_,t.modifiers)||ie(a,_,t.typeParameters)||ie(a,_,t.parameters)||S(a,t.type)},185:function(t,a,_){return ie(a,_,t.modifiers)||ie(a,_,t.typeParameters)||ie(a,_,t.parameters)||S(a,t.type)},180:nm,181:nm,175:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.asteriskToken)||S(a,t.name)||S(a,t.questionToken)||S(a,t.exclamationToken)||ie(a,_,t.typeParameters)||ie(a,_,t.parameters)||S(a,t.type)||S(a,t.body)},174:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.name)||S(a,t.questionToken)||ie(a,_,t.typeParameters)||ie(a,_,t.parameters)||S(a,t.type)},177:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.name)||ie(a,_,t.typeParameters)||ie(a,_,t.parameters)||S(a,t.type)||S(a,t.body)},178:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.name)||ie(a,_,t.typeParameters)||ie(a,_,t.parameters)||S(a,t.type)||S(a,t.body)},179:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.name)||ie(a,_,t.typeParameters)||ie(a,_,t.parameters)||S(a,t.type)||S(a,t.body)},263:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.asteriskToken)||S(a,t.name)||ie(a,_,t.typeParameters)||ie(a,_,t.parameters)||S(a,t.type)||S(a,t.body)},219:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.asteriskToken)||S(a,t.name)||ie(a,_,t.typeParameters)||ie(a,_,t.parameters)||S(a,t.type)||S(a,t.body)},220:function(t,a,_){return ie(a,_,t.modifiers)||ie(a,_,t.typeParameters)||ie(a,_,t.parameters)||S(a,t.type)||S(a,t.equalsGreaterThanToken)||S(a,t.body)},176:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.body)},184:function(t,a,_){return S(a,t.typeName)||ie(a,_,t.typeArguments)},183:function(t,a,_){return S(a,t.assertsModifier)||S(a,t.parameterName)||S(a,t.type)},187:function(t,a,_){return S(a,t.exprName)||ie(a,_,t.typeArguments)},188:function(t,a,_){return ie(a,_,t.members)},189:function(t,a,_){return S(a,t.elementType)},190:function(t,a,_){return ie(a,_,t.elements)},193:rm,194:rm,195:function(t,a,_){return S(a,t.checkType)||S(a,t.extendsType)||S(a,t.trueType)||S(a,t.falseType)},196:function(t,a,_){return S(a,t.typeParameter)},206:function(t,a,_){return S(a,t.argument)||S(a,t.attributes)||S(a,t.qualifier)||ie(a,_,t.typeArguments)},303:function(t,a,_){return S(a,t.assertClause)},197:im,199:im,200:function(t,a,_){return S(a,t.objectType)||S(a,t.indexType)},201:function(t,a,_){return S(a,t.readonlyToken)||S(a,t.typeParameter)||S(a,t.nameType)||S(a,t.questionToken)||S(a,t.type)||ie(a,_,t.members)},202:function(t,a,_){return S(a,t.literal)},203:function(t,a,_){return S(a,t.dotDotDotToken)||S(a,t.name)||S(a,t.questionToken)||S(a,t.type)},207:am,208:am,210:function(t,a,_){return ie(a,_,t.elements)},211:function(t,a,_){return ie(a,_,t.properties)},212:function(t,a,_){return S(a,t.expression)||S(a,t.questionDotToken)||S(a,t.name)},213:function(t,a,_){return S(a,t.expression)||S(a,t.questionDotToken)||S(a,t.argumentExpression)},214:sm,215:sm,216:function(t,a,_){return S(a,t.tag)||S(a,t.questionDotToken)||ie(a,_,t.typeArguments)||S(a,t.template)},217:function(t,a,_){return S(a,t.type)||S(a,t.expression)},218:function(t,a,_){return S(a,t.expression)},221:function(t,a,_){return S(a,t.expression)},222:function(t,a,_){return S(a,t.expression)},223:function(t,a,_){return S(a,t.expression)},225:function(t,a,_){return S(a,t.operand)},230:function(t,a,_){return S(a,t.asteriskToken)||S(a,t.expression)},224:function(t,a,_){return S(a,t.expression)},226:function(t,a,_){return S(a,t.operand)},227:function(t,a,_){return S(a,t.left)||S(a,t.operatorToken)||S(a,t.right)},235:function(t,a,_){return S(a,t.expression)||S(a,t.type)},236:function(t,a,_){return S(a,t.expression)},239:function(t,a,_){return S(a,t.expression)||S(a,t.type)},237:function(t,a,_){return S(a,t.name)},228:function(t,a,_){return S(a,t.condition)||S(a,t.questionToken)||S(a,t.whenTrue)||S(a,t.colonToken)||S(a,t.whenFalse)},231:function(t,a,_){return S(a,t.expression)},242:_m,269:_m,308:function(t,a,_){return ie(a,_,t.statements)||S(a,t.endOfFileToken)},244:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.declarationList)},262:function(t,a,_){return ie(a,_,t.declarations)},245:function(t,a,_){return S(a,t.expression)},246:function(t,a,_){return S(a,t.expression)||S(a,t.thenStatement)||S(a,t.elseStatement)},247:function(t,a,_){return S(a,t.statement)||S(a,t.expression)},248:function(t,a,_){return S(a,t.expression)||S(a,t.statement)},249:function(t,a,_){return S(a,t.initializer)||S(a,t.condition)||S(a,t.incrementor)||S(a,t.statement)},250:function(t,a,_){return S(a,t.initializer)||S(a,t.expression)||S(a,t.statement)},251:function(t,a,_){return S(a,t.awaitModifier)||S(a,t.initializer)||S(a,t.expression)||S(a,t.statement)},252:om,253:om,254:function(t,a,_){return S(a,t.expression)},255:function(t,a,_){return S(a,t.expression)||S(a,t.statement)},256:function(t,a,_){return S(a,t.expression)||S(a,t.caseBlock)},270:function(t,a,_){return ie(a,_,t.clauses)},297:function(t,a,_){return S(a,t.expression)||ie(a,_,t.statements)},298:function(t,a,_){return ie(a,_,t.statements)},257:function(t,a,_){return S(a,t.label)||S(a,t.statement)},258:function(t,a,_){return S(a,t.expression)},259:function(t,a,_){return S(a,t.tryBlock)||S(a,t.catchClause)||S(a,t.finallyBlock)},300:function(t,a,_){return S(a,t.variableDeclaration)||S(a,t.block)},171:function(t,a,_){return S(a,t.expression)},264:cm,232:cm,265:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.name)||ie(a,_,t.typeParameters)||ie(a,_,t.heritageClauses)||ie(a,_,t.members)},266:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.name)||ie(a,_,t.typeParameters)||S(a,t.type)},267:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.name)||ie(a,_,t.members)},307:function(t,a,_){return S(a,t.name)||S(a,t.initializer)},268:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.name)||S(a,t.body)},272:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.name)||S(a,t.moduleReference)},273:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.importClause)||S(a,t.moduleSpecifier)||S(a,t.attributes)},274:function(t,a,_){return S(a,t.name)||S(a,t.namedBindings)},301:function(t,a,_){return ie(a,_,t.elements)},302:function(t,a,_){return S(a,t.name)||S(a,t.value)},271:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.name)},275:function(t,a,_){return S(a,t.name)},281:function(t,a,_){return S(a,t.name)},276:lm,280:lm,279:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.exportClause)||S(a,t.moduleSpecifier)||S(a,t.attributes)},277:um,282:um,278:function(t,a,_){return ie(a,_,t.modifiers)||S(a,t.expression)},229:function(t,a,_){return S(a,t.head)||ie(a,_,t.templateSpans)},240:function(t,a,_){return S(a,t.expression)||S(a,t.literal)},204:function(t,a,_){return S(a,t.head)||ie(a,_,t.templateSpans)},205:function(t,a,_){return S(a,t.type)||S(a,t.literal)},168:function(t,a,_){return S(a,t.expression)},299:function(t,a,_){return ie(a,_,t.types)},234:function(t,a,_){return S(a,t.expression)||ie(a,_,t.typeArguments)},284:function(t,a,_){return S(a,t.expression)},283:function(t,a,_){return ie(a,_,t.modifiers)},357:function(t,a,_){return ie(a,_,t.elements)},285:function(t,a,_){return S(a,t.openingElement)||ie(a,_,t.children)||S(a,t.closingElement)},289:function(t,a,_){return S(a,t.openingFragment)||ie(a,_,t.children)||S(a,t.closingFragment)},286:pm,287:pm,293:function(t,a,_){return ie(a,_,t.properties)},292:function(t,a,_){return S(a,t.name)||S(a,t.initializer)},294:function(t,a,_){return S(a,t.expression)},295:function(t,a,_){return S(a,t.dotDotDotToken)||S(a,t.expression)},288:function(t,a,_){return S(a,t.tagName)},296:function(t,a,_){return S(a,t.namespace)||S(a,t.name)},191:Hi,192:Hi,310:Hi,316:Hi,315:Hi,317:Hi,319:Hi,318:function(t,a,_){return ie(a,_,t.parameters)||S(a,t.type)},321:function(t,a,_){return(typeof t.comment=="string"?void 0:ie(a,_,t.comment))||ie(a,_,t.tags)},348:function(t,a,_){return S(a,t.tagName)||S(a,t.name)||(typeof t.comment=="string"?void 0:ie(a,_,t.comment))},311:function(t,a,_){return S(a,t.name)},312:function(t,a,_){return S(a,t.left)||S(a,t.right)},342:fm,349:fm,331:function(t,a,_){return S(a,t.tagName)||(typeof t.comment=="string"?void 0:ie(a,_,t.comment))},330:function(t,a,_){return S(a,t.tagName)||S(a,t.class)||(typeof t.comment=="string"?void 0:ie(a,_,t.comment))},329:function(t,a,_){return S(a,t.tagName)||S(a,t.class)||(typeof t.comment=="string"?void 0:ie(a,_,t.comment))},346:function(t,a,_){return S(a,t.tagName)||S(a,t.constraint)||ie(a,_,t.typeParameters)||(typeof t.comment=="string"?void 0:ie(a,_,t.comment))},347:function(t,a,_){return S(a,t.tagName)||(t.typeExpression&&t.typeExpression.kind===310?S(a,t.typeExpression)||S(a,t.fullName)||(typeof t.comment=="string"?void 0:ie(a,_,t.comment)):S(a,t.fullName)||S(a,t.typeExpression)||(typeof t.comment=="string"?void 0:ie(a,_,t.comment)))},339:function(t,a,_){return S(a,t.tagName)||S(a,t.fullName)||S(a,t.typeExpression)||(typeof t.comment=="string"?void 0:ie(a,_,t.comment))},343:Xi,345:Xi,344:Xi,341:Xi,351:Xi,350:Xi,340:Xi,324:function(t,a,_){return jn(t.typeParameters,a)||jn(t.parameters,a)||S(a,t.type)},325:Cp,326:Cp,327:Cp,323:function(t,a,_){return jn(t.jsDocPropertyTags,a)},328:ui,333:ui,334:ui,335:ui,336:ui,337:ui,332:ui,338:ui,352:O6,356:M6};function nm(e,t,a){return ie(t,a,e.typeParameters)||ie(t,a,e.parameters)||S(t,e.type)}function rm(e,t,a){return ie(t,a,e.types)}function im(e,t,a){return S(t,e.type)}function am(e,t,a){return ie(t,a,e.elements)}function sm(e,t,a){return S(t,e.expression)||S(t,e.questionDotToken)||ie(t,a,e.typeArguments)||ie(t,a,e.arguments)}function _m(e,t,a){return ie(t,a,e.statements)}function om(e,t,a){return S(t,e.label)}function cm(e,t,a){return ie(t,a,e.modifiers)||S(t,e.name)||ie(t,a,e.typeParameters)||ie(t,a,e.heritageClauses)||ie(t,a,e.members)}function lm(e,t,a){return ie(t,a,e.elements)}function um(e,t,a){return S(t,e.propertyName)||S(t,e.name)}function pm(e,t,a){return S(t,e.tagName)||ie(t,a,e.typeArguments)||S(t,e.attributes)}function Hi(e,t,a){return S(t,e.type)}function fm(e,t,a){return S(t,e.tagName)||(e.isNameFirst?S(t,e.name)||S(t,e.typeExpression):S(t,e.typeExpression)||S(t,e.name))||(typeof e.comment=="string"?void 0:ie(t,a,e.comment))}function Xi(e,t,a){return S(t,e.tagName)||S(t,e.typeExpression)||(typeof e.comment=="string"?void 0:ie(t,a,e.comment))}function Cp(e,t,a){return S(t,e.name)}function ui(e,t,a){return S(t,e.tagName)||(typeof e.comment=="string"?void 0:ie(t,a,e.comment))}function O6(e,t,a){return S(t,e.tagName)||S(t,e.importClause)||S(t,e.moduleSpecifier)||S(t,e.attributes)||(typeof e.comment=="string"?void 0:ie(t,a,e.comment))}function M6(e,t,a){return S(t,e.expression)}function Xt(e,t,a){if(e===void 0||e.kind<=166)return;let _=I6[e.kind];return _===void 0?void 0:_(e,t,a)}function dm(e,t,a){let _=mm(e),f=[];for(;f.length<_.length;)f.push(e);for(;_.length!==0;){let h=_.pop(),T=f.pop();if($r(h)){if(a){let k=a(h,T);if(k){if(k==="skip")continue;return k}}for(let k=h.length-1;k>=0;--k)_.push(h[k]),f.push(T)}else{let k=t(h,T);if(k){if(k==="skip")continue;return k}if(h.kind>=167)for(let c of mm(h))_.push(c),f.push(h)}}}function mm(e){let t=[];return Xt(e,a,a),t;function a(_){t.unshift(_)}}function ch(e){e.externalModuleIndicator=A6(e)}function lh(e,t,a,_=!1,f){var h,T;(h=ll)==null||h.push(ll.Phase.Parse,"createSourceFile",{path:e},!0),bd("beforeParse");let k,{languageVersion:c,setExternalModuleIndicator:W,impliedNodeFormat:y,jsDocParsingMode:G}=typeof a=="object"?a:{languageVersion:a};if(c===100)k=ta.parseSourceFile(e,t,c,void 0,_,6,Va,G);else{let E=y===void 0?W:D=>(D.impliedNodeFormat=y,(W||ch)(D));k=ta.parseSourceFile(e,t,c,void 0,_,f,E,G)}return bd("afterParse"),Oy("Parse","beforeParse","afterParse"),(T=ll)==null||T.pop(),k}function uh(e){return e.externalModuleIndicator!==void 0}function L6(e,t,a,_=!1){let f=Sl.updateSourceFile(e,t,a,_);return f.flags|=e.flags&12582912,f}var ta;(e=>{var t=sf(99,!0),a=40960,_,f,h,T,k;function c(o){return ar++,o}var W={createBaseSourceFileNode:o=>c(new k(o,0,0)),createBaseIdentifierNode:o=>c(new h(o,0,0)),createBasePrivateIdentifierNode:o=>c(new T(o,0,0)),createBaseTokenNode:o=>c(new f(o,0,0)),createBaseNode:o=>c(new _(o,0,0))},y=wf(11,W),{createNodeArray:G,createNumericLiteral:E,createStringLiteral:D,createLiteralLikeNode:R,createIdentifier:ue,createPrivateIdentifier:be,createToken:he,createArrayLiteralExpression:de,createObjectLiteralExpression:O,createPropertyAccessExpression:ae,createPropertyAccessChain:Oe,createElementAccessExpression:V,createElementAccessChain:oe,createCallExpression:Y,createCallChain:ft,createNewExpression:nr,createParenthesizedExpression:mn,createBlock:rr,createVariableStatement:hn,createExpressionStatement:Dn,createIfStatement:We,createWhileStatement:ir,createForStatement:Ir,createForOfStatement:Ot,createVariableDeclaration:Bn,createVariableDeclarationList:Pn}=y,Mt,ht,$e,qn,$t,ot,at,Bt,Lt,ct,ar,dt,yn,yt,_n,tt,qt=!0,tn=!1;function sr(o,p,m,g,b=!1,N,Q,_e=0){var ee;if(N=mb(o,N),N===6){let ce=hr(o,p,m,g,b);return convertToJson(ce,(ee=ce.statements[0])==null?void 0:ee.expression,ce.parseDiagnostics,!1,void 0),ce.referencedFiles=vt,ce.typeReferenceDirectives=vt,ce.libReferenceDirectives=vt,ce.amdDependencies=vt,ce.hasNoDefaultLib=!1,ce.pragmas=ay,ce}Fn(o,p,m,g,N,_e);let te=Or(m,b,N,Q||ch,_e);return zn(),te}e.parseSourceFile=sr;function mr(o,p){Fn("",o,p,void 0,1,0),B();let m=Ur(!0),g=u()===1&&!at.length;return zn(),g?m:void 0}e.parseIsolatedEntityName=mr;function hr(o,p,m=2,g,b=!1){Fn(o,p,m,g,6,0),ht=tt,B();let N=M(),Q,_e;if(u()===1)Q=At([],N,N),_e=Wt();else{let ce;for(;u()!==1;){let De;switch(u()){case 23:De=_c();break;case 112:case 97:case 106:De=Wt();break;case 41:H(()=>B()===9&&B()!==59)?De=Wo():De=Is();break;case 9:case 11:if(H(()=>B()!==59)){De=Hn();break}default:De=Is();break}ce&&$r(ce)?ce.push(De):ce?ce=[ce,De]:(ce=De,u()!==1&&Ee(A.Unexpected_token))}let je=$r(ce)?P(de(ce),N):q.checkDefined(ce),Je=Dn(je);P(Je,N),Q=At([Je],N),_e=Yn(1,A.Unexpected_token)}let ee=se(o,2,6,!1,Q,_e,ht,Va);b&&L(ee),ee.nodeCount=ar,ee.identifierCount=yn,ee.identifiers=dt,ee.parseDiagnostics=Yi(at,ee),Bt&&(ee.jsDocDiagnostics=Yi(Bt,ee));let te=ee;return zn(),te}e.parseJsonText=hr;function Fn(o,p,m,g,b,N){switch(_=Et.getNodeConstructor(),f=Et.getTokenConstructor(),h=Et.getIdentifierConstructor(),T=Et.getPrivateIdentifierConstructor(),k=Et.getSourceFileConstructor(),Mt=zy(o),$e=p,qn=m,Lt=g,$t=b,ot=Ud(b),at=[],yt=0,dt=new Map,yn=0,ar=0,ht=0,qt=!0,$t){case 1:case 2:tt=524288;break;case 6:tt=134742016;break;default:tt=0;break}tn=!1,t.setText($e),t.setOnError(Zr),t.setScriptTarget(qn),t.setLanguageVariant(ot),t.setScriptKind($t),t.setJSDocParsingMode(N)}function zn(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),t.setScriptKind(0),t.setJSDocParsingMode(0),$e=void 0,qn=void 0,Lt=void 0,$t=void 0,ot=void 0,ht=0,at=void 0,Bt=void 0,yt=0,dt=void 0,_n=void 0,qt=!0}function Or(o,p,m,g,b){let N=R6(Mt);N&&(tt|=33554432),ht=tt,B();let Q=bn(0,Yt);q.assert(u()===1);let _e=Ue(),ee=Ce(Wt(),_e),te=se(Mt,o,m,N,Q,ee,ht,g);return q6(te,$e),F6(te,ce),te.commentDirectives=t.getCommentDirectives(),te.nodeCount=ar,te.identifierCount=yn,te.identifiers=dt,te.parseDiagnostics=Yi(at,te),te.jsDocParsingMode=b,Bt&&(te.jsDocDiagnostics=Yi(Bt,te)),p&&L(te),te;function ce(je,Je,De){at.push(Oa(Mt,$e,je,Je,De))}}let Vn=!1;function Ce(o,p){if(!p)return o;q.assert(!o.jsDoc);let m=cy(u2(o,$e),g=>el.parseJSDocComment(o,g.pos,g.end-g.pos));return m.length&&(o.jsDoc=m),Vn&&(Vn=!1,o.flags|=536870912),o}function yr(o){let p=Lt,m=Sl.createSyntaxCursor(o);Lt={currentNode:ce};let g=[],b=at;at=[];let N=0,Q=ee(o.statements,0);for(;Q!==-1;){let je=o.statements[N],Je=o.statements[Q];En(g,o.statements,N,Q),N=te(o.statements,Q);let De=gp(b,Nt=>Nt.start>=je.pos),Ht=De>=0?gp(b,Nt=>Nt.start>=Je.pos,De):-1;De>=0&&En(at,b,De,Ht>=0?Ht:void 0),cn(()=>{let Nt=tt;for(tt|=65536,t.resetTokenState(Je.pos),B();u()!==1;){let ur=t.getTokenFullStart(),pr=ns(0,Yt);if(g.push(pr),ur===t.getTokenFullStart()&&B(),N>=0){let Mn=o.statements[N];if(pr.end===Mn.pos)break;pr.end>Mn.pos&&(N=te(o.statements,N+1))}}tt=Nt},2),Q=N>=0?ee(o.statements,N):-1}if(N>=0){let je=o.statements[N];En(g,o.statements,N);let Je=gp(b,De=>De.start>=je.pos);Je>=0&&En(at,b,Je)}return Lt=p,y.updateSourceFile(o,dn(G(g),o.statements));function _e(je){return!(je.flags&65536)&&!!(je.transformFlags&67108864)}function ee(je,Je){for(let De=Je;De118}function ve(){return u()===80?!0:u()===127&&we()||u()===135&&Ye()?!1:u()>118}function J(o,p,m=!0){return u()===o?(m&&B(),!0):(p?Ee(p):Ee(A._0_expected,nt(o)),!1)}let mt=Object.keys(tf).filter(o=>o.length>2);function xt(o){if(F1(o)){rt(Cr($e,o.template.pos),o.template.end,A.Module_declaration_names_may_only_use_or_quoted_strings);return}let p=Ke(o)?An(o):void 0;if(!p||!cg(p,qn)){Ee(A._0_expected,nt(27));return}let m=Cr($e,o.pos);switch(p){case"const":case"let":case"var":rt(m,o.end,A.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":Jt(A.Interface_name_cannot_be_0,A.Interface_must_be_given_a_name,19);return;case"is":rt(m,t.getTokenStart(),A.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":Jt(A.Namespace_name_cannot_be_0,A.Namespace_must_be_given_a_name,19);return;case"type":Jt(A.Type_alias_name_cannot_be_0,A.Type_alias_must_be_given_a_name,64);return}let g=t_(p,mt,bt)??ln(p);if(g){rt(m,o.end,A.Unknown_keyword_or_identifier_Did_you_mean_0,g);return}u()!==0&&rt(m,o.end,A.Unexpected_keyword_or_identifier)}function Jt(o,p,m){u()===m?Ee(p):Ee(o,t.getTokenValue())}function ln(o){for(let p of mt)if(o.length>p.length+2&&ml(o,p))return`${p} ${o.slice(p.length)}`}function ql(o,p,m){if(u()===60&&!t.hasPrecedingLineBreak()){Ee(A.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(u()===21){Ee(A.Cannot_start_a_function_call_in_a_type_annotation),B();return}if(p&&!_r()){m?Ee(A._0_expected,nt(27)):Ee(A.Expected_for_property_initializer);return}if(!oa()){if(m){Ee(A._0_expected,nt(27));return}xt(o)}}function C_(o){return u()===o?(Be(),!0):(q.assert(xp(o)),Ee(A._0_expected,nt(o)),!1)}function Lr(o,p,m,g){if(u()===p){B();return}let b=Ee(A._0_expected,nt(p));m&&b&&sl(b,Oa(Mt,$e,g,1,A.The_parser_expected_to_find_a_1_to_match_the_0_token_here,nt(o),nt(p)))}function Le(o){return u()===o?(B(),!0):!1}function pt(o){if(u()===o)return Wt()}function Fl(o){if(u()===o)return Vl()}function Yn(o,p,m){return pt(o)||Gt(o,!1,p||A._0_expected,m||nt(o))}function zl(o){let p=Fl(o);return p||(q.assert(xp(o)),Gt(o,!1,A._0_expected,nt(o)))}function Wt(){let o=M(),p=u();return B(),P(he(p),o)}function Vl(){let o=M(),p=u();return Be(),P(he(p),o)}function _r(){return u()===27?!0:u()===20||u()===1||t.hasPrecedingLineBreak()}function oa(){return _r()?(u()===27&&B(),!0):!1}function Qt(){return oa()||J(27)}function At(o,p,m,g){let b=G(o,g);return yi(b,p,m??t.getTokenFullStart()),b}function P(o,p,m){return yi(o,p,m??t.getTokenFullStart()),tt&&(o.flags|=tt),tn&&(tn=!1,o.flags|=262144),o}function Gt(o,p,m,...g){p?gn(t.getTokenFullStart(),0,m,...g):m&&Ee(m,...g);let b=M(),N=o===80?ue("",void 0):Pd(o)?y.createTemplateLiteralLikeNode(o,"","",void 0):o===9?E("",void 0):o===11?D("",void 0):o===283?y.createMissingDeclaration():he(o);return P(N,b)}function Jr(o){let p=dt.get(o);return p===void 0&&dt.set(o,p=o),p}function or(o,p,m){if(o){yn++;let _e=t.hasPrecedingJSDocLeadingAsterisks()?t.getTokenStart():M(),ee=u(),te=Jr(t.getTokenValue()),ce=t.hasExtendedUnicodeEscape();return Ie(),P(ue(te,ee,ce),_e)}if(u()===81)return Ee(m||A.Private_identifiers_are_not_allowed_outside_class_bodies),or(!0);if(u()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return or(!0);yn++;let g=u()===1,b=t.isReservedWord(),N=t.getTokenText(),Q=b?A.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:A.Identifier_expected;return Gt(80,g,p||Q,N)}function Ka(o){return or(qe(),void 0,o)}function gt(o,p){return or(ve(),o,p)}function jt(o){return or(St(u()),o)}function ei(){return(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&Ee(A.Unicode_escape_sequence_cannot_appear_here),or(St(u()))}function br(){return St(u())||u()===11||u()===9||u()===10}function D_(){return St(u())||u()===11}function Wl(o){if(u()===11||u()===9||u()===10){let p=Hn();return p.text=Jr(p.text),p}return o&&u()===23?Gl():u()===81?ca():jt()}function jr(){return Wl(!0)}function Gl(){let o=M();J(23);let p=lt(kt);return J(24),P(y.createComputedPropertyName(p),o)}function ca(){let o=M(),p=be(Jr(t.getTokenValue()));return B(),P(p,o)}function ti(o){return u()===o&&le(P_)}function Za(){return B(),t.hasPrecedingLineBreak()?!1:cr()}function P_(){switch(u()){case 87:return B()===94;case 95:return B(),u()===90?H(Ai):u()===156?H(Yl):Ei();case 90:return Ai();case 126:return B(),cr();case 139:case 153:return B(),Hl();default:return Za()}}function Ei(){return u()===60||u()!==42&&u()!==130&&u()!==19&&cr()}function Yl(){return B(),Ei()}function N_(){return Yr(u())&&le(P_)}function cr(){return u()===23||u()===19||u()===42||u()===26||br()}function Hl(){return u()===23||br()}function Ai(){return B(),u()===86||u()===100||u()===120||u()===60||u()===128&&H(vc)||u()===134&&H(Tc)}function la(o,p){if(pa(o))return!0;switch(o){case 0:case 1:case 3:return!(u()===27&&p)&&xc();case 2:return u()===84||u()===90;case 4:return H(_o);case 5:return H(Jc)||u()===27&&!p;case 6:return u()===23||br();case 12:switch(u()){case 23:case 42:case 26:case 25:return!0;default:return br()}case 18:return br();case 9:return u()===23||u()===26||br();case 24:return D_();case 7:return u()===19?H(I_):p?ve()&&!es():xs()&&!es();case 8:return Rs();case 10:return u()===28||u()===26||Rs();case 19:return u()===103||u()===87||ve();case 15:switch(u()){case 28:case 25:return!0}case 11:return u()===26||Tr();case 16:return ha(!1);case 17:return ha(!0);case 20:case 21:return u()===28||ai();case 22:return Vs();case 23:return u()===161&&H(Cc)?!1:u()===11?!0:St(u());case 13:return St(u())||u()===19;case 14:return!0;case 25:return!0;case 26:return q.fail("ParsingContext.Count used as a context");default:q.assertNever(o,"Non-exhaustive case in 'isListElement'.")}}function I_(){if(q.assert(u()===19),B()===20){let o=B();return o===28||o===19||o===96||o===119}return!0}function Ci(){return B(),ve()}function Xl(){return B(),St(u())}function O_(){return B(),Vy(u())}function es(){return u()===119||u()===96?H(M_):!1}function M_(){return B(),Tr()}function Di(){return B(),ai()}function ua(o){if(u()===1)return!0;switch(o){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return u()===20;case 3:return u()===20||u()===84||u()===90;case 7:return u()===19||u()===96||u()===119;case 8:return ts();case 19:return u()===32||u()===21||u()===19||u()===96||u()===119;case 11:return u()===22||u()===27;case 15:case 21:case 10:return u()===24;case 17:case 16:case 18:return u()===22||u()===24;case 20:return u()!==28;case 22:return u()===19||u()===20;case 13:return u()===32||u()===44;case 14:return u()===30&&H(ap);default:return!1}}function ts(){return!!(_r()||qo(u())||u()===39)}function L_(){q.assert(yt,"Missing parsing context");for(let o=0;o<26;o++)if(yt&1<=0)}function ss(o){return o===6?A.An_enum_member_name_must_be_followed_by_a_or:void 0}function lr(){let o=At([],M());return o.isMissingList=!0,o}function V_(o){return!!o.isMissingList}function Rr(o,p,m,g){if(J(m)){let b=un(o,p);return J(g),b}return lr()}function Ur(o,p){let m=M(),g=o?jt(p):gt(p);for(;Le(25)&&u()!==30;)g=P(y.createQualifiedName(g,ni(o,!1,!0)),m);return g}function $l(o,p){return P(y.createQualifiedName(o,p),o.pos)}function ni(o,p,m){if(t.hasPrecedingLineBreak()&&St(u())&&H(Ms))return Gt(80,!0,A.Identifier_expected);if(u()===81){let g=ca();return p?g:Gt(80,!0,A.Identifier_expected)}return o?m?jt():ei():gt()}function Ql(o){let p=M(),m=[],g;do g=H_(o),m.push(g);while(g.literal.kind===17);return At(m,p)}function da(o){let p=M();return P(y.createTemplateExpression(Pi(o),Ql(o)),p)}function W_(){let o=M();return P(y.createTemplateLiteralType(Pi(!1),Kl()),o)}function Kl(){let o=M(),p=[],m;do m=G_(),p.push(m);while(m.literal.kind===17);return At(p,o)}function G_(){let o=M();return P(y.createTemplateLiteralTypeSpan(_t(),Y_(!1)),o)}function Y_(o){return u()===20?(Dt(o),X_()):Yn(18,A._0_expected,nt(20))}function H_(o){let p=M();return P(y.createTemplateSpan(lt(kt),Y_(o)),p)}function Hn(){return ri(u())}function Pi(o){!o&&t.getTokenFlags()&26656&&Dt(!1);let p=ri(u());return q.assert(p.kind===16,"Template head has wrong token kind"),p}function X_(){let o=ri(u());return q.assert(o.kind===17||o.kind===18,"Template fragment has wrong token kind"),o}function Zl(o){let p=o===15||o===18,m=t.getTokenText();return m.substring(1,m.length-(t.isUnterminated()?0:p?1:2))}function ri(o){let p=M(),m=Pd(o)?y.createTemplateLiteralLikeNode(o,t.getTokenValue(),Zl(o),t.getTokenFlags()&7176):o===9?E(t.getTokenValue(),t.getNumericLiteralFlags()):o===11?D(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):Jg(o)?R(o,t.getTokenValue()):q.fail();return t.hasExtendedUnicodeEscape()&&(m.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(m.isUnterminated=!0),B(),P(m,p)}function ii(){return Ur(!0,A.Type_expected)}function $_(){if(!t.hasPrecedingLineBreak()&&wt()===30)return Rr(20,_t,30,32)}function ma(){let o=M();return P(y.createTypeReferenceNode(ii(),$_()),o)}function _s(o){switch(o.kind){case 184:return Zi(o.typeName);case 185:case 186:{let{parameters:p,type:m}=o;return V_(p)||_s(m)}case 197:return _s(o.type);default:return!1}}function eu(o){return B(),P(y.createTypePredicateNode(void 0,o,_t()),o.pos)}function os(){let o=M();return B(),P(y.createThisTypeNode(),o)}function tu(){let o=M();return B(),P(y.createJSDocAllType(),o)}function Q_(){let o=M();return B(),P(y.createJSDocNonNullableType(bs(),!1),o)}function nu(){let o=M();return B(),u()===28||u()===20||u()===22||u()===32||u()===64||u()===52?P(y.createJSDocUnknownType(),o):P(y.createJSDocNullableType(_t(),!1),o)}function K_(){let o=M(),p=Ue();if(le(Gc)){let m=Xn(36),g=In(59,!1);return Ce(P(y.createJSDocFunctionType(m,g),o),p)}return P(y.createTypeReferenceNode(jt(),void 0),o)}function cs(){let o=M(),p;return(u()===110||u()===105)&&(p=jt(),J(59)),P(y.createParameterDeclaration(void 0,void 0,p,void 0,ls(),void 0),o)}function ls(){t.setSkipJsDocLeadingAsterisks(!0);let o=M();if(Le(144)){let g=y.createJSDocNamepathType(void 0);e:for(;;)switch(u()){case 20:case 1:case 28:case 5:break e;default:Be()}return t.setSkipJsDocLeadingAsterisks(!1),P(g,o)}let p=Le(26),m=ba();return t.setSkipJsDocLeadingAsterisks(!1),p&&(m=P(y.createJSDocVariadicType(m),o)),u()===64?(B(),P(y.createJSDocOptionalType(m),o)):m}function Z_(){let o=M();J(114);let p=Ur(!0),m=t.hasPrecedingLineBreak()?void 0:Ca();return P(y.createTypeQueryNode(p,m),o)}function eo(){let o=M(),p=On(!1,!0),m=gt(),g,b;Le(96)&&(ai()||!Tr()?g=_t():b=Xo());let N=Le(64)?_t():void 0,Q=y.createTypeParameterDeclaration(p,m,g,N);return Q.expression=b,P(Q,o)}function pn(){if(u()===30)return Rr(19,eo,30,32)}function ha(o){return u()===26||Rs()||Yr(u())||u()===60||ai(!o)}function to(o){let p=si(A.Private_identifiers_cannot_be_used_as_parameters);return s2(p)===0&&!Zt(o)&&Yr(u())&&B(),p}function no(){return qe()||u()===23||u()===19}function us(o){return ps(o)}function ro(o){return ps(o,!1)}function ps(o,p=!0){let m=M(),g=Ue(),b=o?U(()=>On(!0)):K(()=>On(!0));if(u()===110){let ee=y.createParameterDeclaration(b,void 0,or(!0),void 0,vr(),void 0),te=Hp(b);return te&&on(te,A.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Ce(P(ee,m),g)}let N=qt;qt=!1;let Q=pt(26);if(!p&&!no())return;let _e=Ce(P(y.createParameterDeclaration(b,Q,to(b),pt(58),vr(),xr()),m),g);return qt=N,_e}function In(o,p){if(io(o,p))return gr(ba)}function io(o,p){return o===39?(J(o),!0):Le(59)?!0:p&&u()===39?(Ee(A._0_expected,nt(59)),B(),!0):!1}function fs(o,p){let m=we(),g=Ye();He(!!(o&1)),st(!!(o&2));let b=o&32?un(17,cs):un(16,()=>p?us(g):ro(g));return He(m),st(g),b}function Xn(o){if(!J(21))return lr();let p=fs(o,!0);return J(22),p}function ya(){Le(28)||Qt()}function ao(o){let p=M(),m=Ue();o===181&&J(105);let g=pn(),b=Xn(4),N=In(59,!0);ya();let Q=o===180?y.createCallSignature(g,b,N):y.createConstructSignature(g,b,N);return Ce(P(Q,p),m)}function Br(){return u()===23&&H(ru)}function ru(){if(B(),u()===26||u()===24)return!0;if(Yr(u())){if(B(),ve())return!0}else if(ve())B();else return!1;return u()===59||u()===28?!0:u()!==58?!1:(B(),u()===59||u()===28||u()===24)}function ds(o,p,m){let g=Rr(16,()=>us(!1),23,24),b=vr();ya();let N=y.createIndexSignature(m,g,b);return Ce(P(N,o),p)}function so(o,p,m){let g=jr(),b=pt(58),N;if(u()===21||u()===30){let Q=pn(),_e=Xn(4),ee=In(59,!0);N=y.createMethodSignature(m,g,b,Q,_e,ee)}else{let Q=vr();N=y.createPropertySignature(m,g,b,Q),u()===64&&(N.initializer=xr())}return ya(),Ce(P(N,o),p)}function _o(){if(u()===21||u()===30||u()===139||u()===153)return!0;let o=!1;for(;Yr(u());)o=!0,B();return u()===23?!0:(br()&&(o=!0,B()),o?u()===21||u()===30||u()===58||u()===59||u()===28||_r():!1)}function Ni(){if(u()===21||u()===30)return ao(180);if(u()===105&&H(oo))return ao(181);let o=M(),p=Ue(),m=On(!1);return ti(139)?_i(o,p,m,178,4):ti(153)?_i(o,p,m,179,4):Br()?ds(o,p,m):so(o,p,m)}function oo(){return B(),u()===21||u()===30}function co(){return B()===25}function lo(){switch(B()){case 21:case 30:case 25:return!0}return!1}function uo(){let o=M();return P(y.createTypeLiteralNode(po()),o)}function po(){let o;return J(19)?(o=bn(4,Ni),J(20)):o=lr(),o}function fo(){return B(),u()===40||u()===41?B()===148:(u()===148&&B(),u()===23&&Ci()&&B()===103)}function iu(){let o=M(),p=jt();J(103);let m=_t();return P(y.createTypeParameterDeclaration(void 0,p,m,void 0),o)}function mo(){let o=M();J(19);let p;(u()===148||u()===40||u()===41)&&(p=Wt(),p.kind!==148&&J(148)),J(23);let m=iu(),g=Le(130)?_t():void 0;J(24);let b;(u()===58||u()===40||u()===41)&&(b=Wt(),b.kind!==58&&J(58));let N=vr();Qt();let Q=bn(4,Ni);return J(20),P(y.createMappedTypeNode(p,m,g,b,N,Q),o)}function ho(){let o=M();if(Le(26))return P(y.createRestTypeNode(_t()),o);let p=_t();if(th(p)&&p.pos===p.type.pos){let m=y.createOptionalTypeNode(p.type);return dn(m,p),m.flags=p.flags,m}return p}function ms(){return B()===59||u()===58&&B()===59}function au(){return u()===26?St(B())&&ms():St(u())&&ms()}function yo(){if(H(au)){let o=M(),p=Ue(),m=pt(26),g=jt(),b=pt(58);J(59);let N=ho(),Q=y.createNamedTupleMember(m,g,b,N);return Ce(P(Q,o),p)}return ho()}function su(){let o=M();return P(y.createTupleTypeNode(Rr(21,yo,23,24)),o)}function go(){let o=M();J(21);let p=_t();return J(22),P(y.createParenthesizedType(p),o)}function _u(){let o;if(u()===128){let p=M();B();let m=P(he(128),p);o=At([m],p)}return o}function hs(){let o=M(),p=Ue(),m=_u(),g=Le(105);q.assert(!m||g,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");let b=pn(),N=Xn(4),Q=In(39,!1),_e=g?y.createConstructorTypeNode(m,b,N,Q):y.createFunctionTypeNode(b,N,Q);return Ce(P(_e,o),p)}function bo(){let o=Wt();return u()===25?void 0:o}function ys(o){let p=M();o&&B();let m=u()===112||u()===97||u()===106?Wt():ri(u());return o&&(m=P(y.createPrefixUnaryExpression(41,m),p)),P(y.createLiteralTypeNode(m),p)}function ou(){return B(),u()===102}function gs(){ht|=4194304;let o=M(),p=Le(114);J(102),J(21);let m=_t(),g;if(Le(28)){let Q=t.getTokenStart();J(19);let _e=u();if(_e===118||_e===132?B():Ee(A._0_expected,nt(118)),J(59),g=Ys(_e,!0),Le(28),!J(20)){let ee=Ba(at);ee&&ee.code===A._0_expected.code&&sl(ee,Oa(Mt,$e,Q,1,A.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}J(22);let b=Le(25)?ii():void 0,N=$_();return P(y.createImportTypeNode(m,g,b,N,p),o)}function vo(){return B(),u()===9||u()===10}function bs(){switch(u()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return le(bo)||ma();case 67:t.reScanAsteriskEqualsToken();case 42:return tu();case 61:t.reScanQuestionToken();case 58:return nu();case 100:return K_();case 54:return Q_();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return ys();case 41:return H(vo)?ys(!0):ma();case 116:return Wt();case 110:{let o=os();return u()===142&&!t.hasPrecedingLineBreak()?eu(o):o}case 114:return H(ou)?gs():Z_();case 19:return H(fo)?mo():uo();case 23:return su();case 21:return go();case 102:return gs();case 131:return H(Ms)?Po():ma();case 16:return W_();default:return ma()}}function ai(o){switch(u()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!o;case 41:return!o&&H(vo);case 21:return!o&&H(To);default:return ve()}}function To(){return B(),u()===22||ha(!1)||ai()}function xo(){let o=M(),p=bs();for(;!t.hasPrecedingLineBreak();)switch(u()){case 54:B(),p=P(y.createJSDocNonNullableType(p,!0),o);break;case 58:if(H(Di))return p;B(),p=P(y.createJSDocNullableType(p,!0),o);break;case 23:if(J(23),ai()){let m=_t();J(24),p=P(y.createIndexedAccessTypeNode(p,m),o)}else J(24),p=P(y.createArrayTypeNode(p),o);break;default:return p}return p}function So(o){let p=M();return J(o),P(y.createTypeOperatorNode(o,ko()),p)}function cu(){if(Le(96)){let o=Nn(_t);if(Ve()||u()!==58)return o}}function wo(){let o=M(),p=gt(),m=le(cu),g=y.createTypeParameterDeclaration(void 0,p,m);return P(g,o)}function lu(){let o=M();return J(140),P(y.createInferTypeNode(wo()),o)}function ko(){let o=u();switch(o){case 143:case 158:case 148:return So(o);case 140:return lu()}return gr(xo)}function ga(o){if(Ts()){let p=hs(),m;return Pf(p)?m=o?A.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:A.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:m=o?A.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:A.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,on(p,m),p}}function Eo(o,p,m){let g=M(),b=o===52,N=Le(o),Q=N&&ga(b)||p();if(u()===o||N){let _e=[Q];for(;Le(o);)_e.push(ga(b)||p());Q=P(m(At(_e,g)),g)}return Q}function vs(){return Eo(51,ko,y.createIntersectionTypeNode)}function uu(){return Eo(52,vs,y.createUnionTypeNode)}function Ao(){return B(),u()===105}function Ts(){return u()===30||u()===21&&H(Co)?!0:u()===105||u()===128&&H(Ao)}function pu(){if(Yr(u())&&On(!1),ve()||u()===110)return B(),!0;if(u()===23||u()===19){let o=at.length;return si(),o===at.length}return!1}function Co(){return B(),!!(u()===22||u()===26||pu()&&(u()===59||u()===28||u()===58||u()===64||u()===22&&(B(),u()===39)))}function ba(){let o=M(),p=ve()&&le(Do),m=_t();return p?P(y.createTypePredicateNode(void 0,p,m),o):m}function Do(){let o=gt();if(u()===142&&!t.hasPrecedingLineBreak())return B(),o}function Po(){let o=M(),p=Yn(131),m=u()===110?os():gt(),g=Le(142)?_t():void 0;return P(y.createTypePredicateNode(p,m,g),o)}function _t(){if(tt&81920)return Ct(81920,_t);if(Ts())return hs();let o=M(),p=uu();if(!Ve()&&!t.hasPrecedingLineBreak()&&Le(96)){let m=Nn(_t);J(58);let g=gr(_t);J(59);let b=gr(_t);return P(y.createConditionalTypeNode(p,m,g,b),o)}return p}function vr(){return Le(59)?_t():void 0}function xs(){switch(u()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return H(lo);default:return ve()}}function Tr(){if(xs())return!0;switch(u()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return Fo()?!0:ve()}}function No(){return u()!==19&&u()!==100&&u()!==86&&u()!==60&&Tr()}function kt(){let o=Ze();o&&Qe(!1);let p=M(),m=zt(!0),g;for(;g=pt(28);)m=ks(m,g,zt(!0),p);return o&&Qe(!0),m}function xr(){return Le(64)?zt(!0):void 0}function zt(o){if(Io())return Oo();let p=du(o)||Ro(o);if(p)return p;let m=M(),g=Ue(),b=Ii(0);return b.kind===80&&u()===39?Mo(m,b,o,g,void 0):Fa(b)&&b1(ze())?ks(b,Wt(),zt(o),m):mu(b,m,o)}function Io(){return u()===127?we()?!0:H(Ls):!1}function fu(){return B(),!t.hasPrecedingLineBreak()&&ve()}function Oo(){let o=M();return B(),!t.hasPrecedingLineBreak()&&(u()===42||Tr())?P(y.createYieldExpression(pt(42),zt(!0)),o):P(y.createYieldExpression(void 0,void 0),o)}function Mo(o,p,m,g,b){q.assert(u()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");let N=y.createParameterDeclaration(void 0,void 0,p,void 0,void 0,void 0);P(N,p.pos);let Q=At([N],N.pos,N.end),_e=Yn(39),ee=Ss(!!b,m),te=y.createArrowFunction(b,void 0,Q,void 0,_e,ee);return Ce(P(te,o),g)}function du(o){let p=Lo();if(p!==0)return p===1?Bo(!0,!0):le(()=>jo(o))}function Lo(){return u()===21||u()===30||u()===134?H(Jo):u()===39?1:0}function Jo(){if(u()===134&&(B(),t.hasPrecedingLineBreak()||u()!==21&&u()!==30))return 0;let o=u(),p=B();if(o===21){if(p===22)switch(B()){case 39:case 59:case 19:return 1;default:return 0}if(p===23||p===19)return 2;if(p===26)return 1;if(Yr(p)&&p!==134&&H(Ci))return B()===130?0:1;if(!ve()&&p!==110)return 0;switch(B()){case 59:return 1;case 58:return B(),u()===59||u()===28||u()===64||u()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return q.assert(o===30),!ve()&&u()!==87?0:ot===1?H(()=>{Le(87);let g=B();if(g===96)switch(B()){case 64:case 32:case 44:return!1;default:return!0}else if(g===28||g===64)return!0;return!1})?1:0:2}function jo(o){let p=t.getTokenStart();if(_n?.has(p))return;let m=Bo(!1,o);return m||(_n||(_n=new Set)).add(p),m}function Ro(o){if(u()===134&&H(Uo)===1){let p=M(),m=Ue(),g=Uc(),b=Ii(0);return Mo(p,b,o,m,g)}}function Uo(){if(u()===134){if(B(),t.hasPrecedingLineBreak()||u()===39)return 0;let o=Ii(0);if(!t.hasPrecedingLineBreak()&&o.kind===80&&u()===39)return 1}return 0}function Bo(o,p){let m=M(),g=Ue(),b=Uc(),N=Zt(b,cl)?2:0,Q=pn(),_e;if(J(21)){if(o)_e=fs(N,o);else{let ur=fs(N,o);if(!ur)return;_e=ur}if(!J(22)&&!o)return}else{if(!o)return;_e=lr()}let ee=u()===59,te=In(59,!1);if(te&&!o&&_s(te))return;let ce=te;for(;ce?.kind===197;)ce=ce.type;let je=ce&&nh(ce);if(!o&&u()!==39&&(je||u()!==19))return;let Je=u(),De=Yn(39),Ht=Je===39||Je===19?Ss(Zt(b,cl),p):gt();if(!p&&ee&&u()!==59)return;let Nt=y.createArrowFunction(b,Q,_e,te,De,Ht);return Ce(P(Nt,m),g)}function Ss(o,p){if(u()===19)return wa(o?2:0);if(u()!==27&&u()!==100&&u()!==86&&xc()&&!No())return wa(16|(o?2:0));let m=we();He(!1);let g=qt;qt=!1;let b=o?U(()=>zt(p)):K(()=>zt(p));return qt=g,He(m),b}function mu(o,p,m){let g=pt(58);if(!g)return o;let b;return P(y.createConditionalExpression(o,g,Ct(a,()=>zt(!1)),b=Yn(59),Rp(b)?zt(m):Gt(80,!1,A._0_expected,nt(59))),p)}function Ii(o){let p=M(),m=Xo();return ws(o,m,p)}function qo(o){return o===103||o===165}function ws(o,p,m){for(;;){ze();let g=Sp(u());if(!(u()===43?g>=o:g>o)||u()===103&&me())break;if(u()===130||u()===152){if(t.hasPrecedingLineBreak())break;{let N=u();B(),p=N===152?zo(p,_t()):Vo(p,_t())}}else p=ks(p,Wt(),Ii(g),m)}return p}function Fo(){return me()&&u()===103?!1:Sp(u())>0}function zo(o,p){return P(y.createSatisfiesExpression(o,p),o.pos)}function ks(o,p,m,g){return P(y.createBinaryExpression(o,p,m),g)}function Vo(o,p){return P(y.createAsExpression(o,p),o.pos)}function Wo(){let o=M();return P(y.createPrefixUnaryExpression(u(),Me(Sr)),o)}function Go(){let o=M();return P(y.createDeleteExpression(Me(Sr)),o)}function hu(){let o=M();return P(y.createTypeOfExpression(Me(Sr)),o)}function Yo(){let o=M();return P(y.createVoidExpression(Me(Sr)),o)}function yu(){return u()===135?Ye()?!0:H(Ls):!1}function Ho(){let o=M();return P(y.createAwaitExpression(Me(Sr)),o)}function Xo(){if(gu()){let m=M(),g=va();return u()===43?ws(Sp(u()),g,m):g}let o=u(),p=Sr();if(u()===43){let m=Cr($e,p.pos),{end:g}=p;p.kind===217?rt(m,g,A.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(q.assert(xp(o)),rt(m,g,A.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,nt(o)))}return p}function Sr(){switch(u()){case 40:case 41:case 55:case 54:return Wo();case 91:return Go();case 114:return hu();case 116:return Yo();case 30:return ot===1?Mi(!0,void 0,void 0,!0):ec();case 135:if(yu())return Ho();default:return va()}}function gu(){switch(u()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(ot!==1)return!1;default:return!0}}function va(){if(u()===46||u()===47){let p=M();return P(y.createPrefixUnaryExpression(u(),Me(Oi)),p)}else if(ot===1&&u()===30&&H(O_))return Mi(!0);let o=Oi();if(q.assert(Fa(o)),(u()===46||u()===47)&&!t.hasPrecedingLineBreak()){let p=u();return B(),P(y.createPostfixUnaryExpression(o,p),o.pos)}return o}function Oi(){let o=M(),p;return u()===102?H(oo)?(ht|=4194304,p=Wt()):H(co)?(B(),B(),p=P(y.createMetaProperty(102,jt()),o),p.name.escapedText==="defer"?(u()===21||u()===30)&&(ht|=4194304):ht|=8388608):p=Ta():p=u()===108?$o():Ta(),Ps(o,p)}function Ta(){let o=M(),p=Ns();return rn(o,p,!0)}function $o(){let o=M(),p=Wt();if(u()===30){let m=M(),g=le(Sa);g!==void 0&&(rt(m,M(),A.super_may_not_use_type_arguments),vn()||(p=y.createExpressionWithTypeArguments(p,g)))}return u()===21||u()===25||u()===23?p:(Yn(25,A.super_must_be_followed_by_an_argument_list_or_member_access),P(ae(p,ni(!0,!0,!0)),o))}function Mi(o,p,m,g=!1){let b=M(),N=Tu(o),Q;if(N.kind===287){let _e=xa(N),ee,te=_e[_e.length-1];if(te?.kind===285&&!pi(te.openingElement.tagName,te.closingElement.tagName)&&pi(N.tagName,te.closingElement.tagName)){let ce=te.children.end,je=P(y.createJsxElement(te.openingElement,te.children,P(y.createJsxClosingElement(P(ue(""),ce,ce)),ce,ce)),te.openingElement.pos,ce);_e=At([..._e.slice(0,_e.length-1),je],_e.pos,ce),ee=te.closingElement}else ee=Zo(N,o),pi(N.tagName,ee.tagName)||(m&&Fp(m)&&pi(ee.tagName,m.tagName)?on(N.tagName,A.JSX_element_0_has_no_corresponding_closing_tag,r_($e,N.tagName)):on(ee.tagName,A.Expected_corresponding_JSX_closing_tag_for_0,r_($e,N.tagName)));Q=P(y.createJsxElement(N,_e,ee),b)}else N.kind===290?Q=P(y.createJsxFragment(N,xa(N),ku(o)),b):(q.assert(N.kind===286),Q=N);if(!g&&o&&u()===30){let _e=typeof p>"u"?Q.pos:p,ee=le(()=>Mi(!0,_e));if(ee){let te=Gt(28,!1);return qd(te,ee.pos,0),rt(Cr($e,_e),ee.end,A.JSX_expressions_must_have_one_parent_element),P(y.createBinaryExpression(Q,te,ee),b)}}return Q}function Es(){let o=M(),p=y.createJsxText(t.getTokenValue(),ct===13);return ct=t.scanJsxToken(),P(p,o)}function bu(o,p){switch(p){case 1:if(n6(o))on(o,A.JSX_fragment_has_no_corresponding_closing_tag);else{let m=o.tagName,g=Math.min(Cr($e,m.pos),m.end);rt(g,m.end,A.JSX_element_0_has_no_corresponding_closing_tag,r_($e,o.tagName))}return;case 31:case 7:return;case 12:case 13:return Es();case 19:return Qo(!1);case 30:return Mi(!1,void 0,o);default:return q.assertNever(p)}}function xa(o){let p=[],m=M(),g=yt;for(yt|=16384;;){let b=bu(o,ct=t.reScanJsxToken());if(!b||(p.push(b),Fp(o)&&b?.kind===285&&!pi(b.openingElement.tagName,b.closingElement.tagName)&&pi(o.tagName,b.closingElement.tagName)))break}return yt=g,At(p,m)}function vu(){let o=M();return P(y.createJsxAttributes(bn(13,Ko)),o)}function Tu(o){let p=M();if(J(30),u()===32)return Gn(),P(y.createJsxOpeningFragment(),p);let m=As(),g=(tt&524288)===0?Ca():void 0,b=vu(),N;return u()===32?(Gn(),N=y.createJsxOpeningElement(m,g,b)):(J(44),J(32,void 0,!1)&&(o?B():Gn()),N=y.createJsxSelfClosingElement(m,g,b)),P(N,p)}function As(){let o=M(),p=xu();if(Q1(p))return p;let m=p;for(;Le(25);)m=P(ae(m,ni(!0,!1,!1)),o);return m}function xu(){let o=M();Ft();let p=u()===110,m=ei();return Le(59)?(Ft(),P(y.createJsxNamespacedName(m,ei()),o)):p?P(y.createToken(110),o):m}function Qo(o){let p=M();if(!J(19))return;let m,g;return u()!==20&&(o||(m=pt(26)),g=kt()),o?J(20):J(20,void 0,!1)&&Gn(),P(y.createJsxExpression(m,g),p)}function Ko(){if(u()===19)return wu();let o=M();return P(y.createJsxAttribute(Su(),Cs()),o)}function Cs(){if(u()===64){if(ki()===11)return Hn();if(u()===19)return Qo(!0);if(u()===30)return Mi(!0);Ee(A.or_JSX_element_expected)}}function Su(){let o=M();Ft();let p=ei();return Le(59)?(Ft(),P(y.createJsxNamespacedName(p,ei()),o)):p}function wu(){let o=M();J(19),J(26);let p=kt();return J(20),P(y.createJsxSpreadAttribute(p),o)}function Zo(o,p){let m=M();J(31);let g=As();return J(32,void 0,!1)&&(p||!pi(o.tagName,g)?B():Gn()),P(y.createJsxClosingElement(g),m)}function ku(o){let p=M();return J(31),J(32,A.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(o?B():Gn()),P(y.createJsxJsxClosingFragment(),p)}function ec(){q.assert(ot!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");let o=M();J(30);let p=_t();J(32);let m=Sr();return P(y.createTypeAssertion(p,m),o)}function Eu(){return B(),St(u())||u()===23||vn()}function tc(){return u()===29&&H(Eu)}function Ds(o){if(o.flags&64)return!0;if(fl(o)){let p=o.expression;for(;fl(p)&&!(p.flags&64);)p=p.expression;if(p.flags&64){for(;fl(o);)o.flags|=64,o=o.expression;return!0}}return!1}function nc(o,p,m){let g=ni(!0,!0,!0),b=m||Ds(p),N=b?Oe(p,m,g):ae(p,g);if(b&&gi(N.name)&&on(N.name,A.An_optional_chain_cannot_contain_private_identifiers),G1(p)&&p.typeArguments){let Q=p.typeArguments.pos-1,_e=Cr($e,p.typeArguments.end)+1;rt(Q,_e,A.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return P(N,o)}function Au(o,p,m){let g;if(u()===24)g=Gt(80,!0,A.An_element_access_expression_should_take_an_argument);else{let N=lt(kt);Al(N)&&(N.text=Jr(N.text)),g=N}J(24);let b=m||Ds(p)?oe(p,m,g):V(p,g);return P(b,o)}function rn(o,p,m){for(;;){let g,b=!1;if(m&&tc()?(g=Yn(29),b=St(u())):b=Le(25),b){p=nc(o,p,g);continue}if((g||!Ze())&&Le(23)){p=Au(o,p,g);continue}if(vn()){p=!g&&p.kind===234?qr(o,p.expression,g,p.typeArguments):qr(o,p,g,void 0);continue}if(!g){if(u()===54&&!t.hasPrecedingLineBreak()){B(),p=P(y.createNonNullExpression(p),o);continue}let N=le(Sa);if(N){p=P(y.createExpressionWithTypeArguments(p,N),o);continue}}return p}}function vn(){return u()===15||u()===16}function qr(o,p,m,g){let b=y.createTaggedTemplateExpression(p,g,u()===15?(Dt(!0),Hn()):da(!0));return(m||p.flags&64)&&(b.flags|=64),b.questionDotToken=m,P(b,o)}function Ps(o,p){for(;;){p=rn(o,p,!0);let m,g=pt(29);if(g&&(m=le(Sa),vn())){p=qr(o,p,g,m);continue}if(m||u()===21){!g&&p.kind===234&&(m=p.typeArguments,p=p.expression);let b=rc(),N=g||Ds(p)?ft(p,g,m,b):Y(p,m,b);p=P(N,o);continue}if(g){let b=Gt(80,!1,A.Identifier_expected);p=P(Oe(p,g,b),o)}break}return p}function rc(){J(21);let o=un(11,sc);return J(22),o}function Sa(){if((tt&524288)!==0||wt()!==30)return;B();let o=un(20,_t);if(ze()===32)return B(),o&&Cu()?o:void 0}function Cu(){switch(u()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||Fo()||!Tr()}function Ns(){switch(u()){case 15:t.getTokenFlags()&26656&&Dt(!1);case 9:case 10:case 11:return Hn();case 110:case 108:case 106:case 112:case 97:return Wt();case 21:return Du();case 23:return _c();case 19:return Is();case 134:if(!H(Tc))break;return Os();case 60:return Xu();case 86:return $u();case 100:return Os();case 105:return cc();case 44:case 69:if(Xe()===14)return Hn();break;case 16:return da(!1);case 81:return ca()}return gt(A.Expression_expected)}function Du(){let o=M(),p=Ue();J(21);let m=lt(kt);return J(22),Ce(P(mn(m),o),p)}function ic(){let o=M();J(26);let p=zt(!0);return P(y.createSpreadElement(p),o)}function ac(){return u()===26?ic():u()===28?P(y.createOmittedExpression(),M()):zt(!0)}function sc(){return Ct(a,ac)}function _c(){let o=M(),p=t.getTokenStart(),m=J(23),g=t.hasPrecedingLineBreak(),b=un(15,ac);return Lr(23,24,m,p),P(de(b,g),o)}function oc(){let o=M(),p=Ue();if(pt(26)){let ce=zt(!0);return Ce(P(y.createSpreadAssignment(ce),o),p)}let m=On(!0);if(ti(139))return _i(o,p,m,178,0);if(ti(153))return _i(o,p,m,179,0);let g=pt(42),b=ve(),N=jr(),Q=pt(58),_e=pt(54);if(g||u()===21||u()===30)return Lc(o,p,m,g,N,Q,_e);let ee;if(b&&u()!==59){let ce=pt(64),je=ce?lt(()=>zt(!0)):void 0;ee=y.createShorthandPropertyAssignment(N,je),ee.equalsToken=ce}else{J(59);let ce=lt(()=>zt(!0));ee=y.createPropertyAssignment(N,ce)}return ee.modifiers=m,ee.questionToken=Q,ee.exclamationToken=_e,Ce(P(ee,o),p)}function Is(){let o=M(),p=t.getTokenStart(),m=J(19),g=t.hasPrecedingLineBreak(),b=un(12,oc,!0);return Lr(19,20,m,p),P(O(b,g),o)}function Os(){let o=Ze();Qe(!1);let p=M(),m=Ue(),g=On(!1);J(100);let b=pt(42),N=b?1:0,Q=Zt(g,cl)?2:0,_e=N&&Q?Z(Li):N?Wn(Li):Q?U(Li):Li(),ee=pn(),te=Xn(N|Q),ce=In(59,!1),je=wa(N|Q);Qe(o);let Je=y.createFunctionExpression(g,b,_e,ee,te,ce,je);return Ce(P(Je,p),m)}function Li(){return qe()?Ka():void 0}function cc(){let o=M();if(J(105),Le(25)){let N=jt();return P(y.createMetaProperty(105,N),o)}let p=M(),m=rn(p,Ns(),!1),g;m.kind===234&&(g=m.typeArguments,m=m.expression),u()===29&&Ee(A.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,r_($e,m));let b=u()===21?rc():void 0;return P(nr(m,g,b),o)}function Fr(o,p){let m=M(),g=Ue(),b=t.getTokenStart(),N=J(19,p);if(N||o){let Q=t.hasPrecedingLineBreak(),_e=bn(1,Yt);Lr(19,20,N,b);let ee=Ce(P(rr(_e,Q),m),g);return u()===64&&(Ee(A.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),B()),ee}else{let Q=lr();return Ce(P(rr(Q,void 0),m),g)}}function wa(o,p){let m=we();He(!!(o&1));let g=Ye();st(!!(o&2));let b=qt;qt=!1;let N=Ze();N&&Qe(!1);let Q=Fr(!!(o&16),p);return N&&Qe(!0),qt=b,He(m),st(g),Q}function lc(){let o=M(),p=Ue();return J(27),Ce(P(y.createEmptyStatement(),o),p)}function Pu(){let o=M(),p=Ue();J(101);let m=t.getTokenStart(),g=J(21),b=lt(kt);Lr(21,22,g,m);let N=Yt(),Q=Le(93)?Yt():void 0;return Ce(P(We(b,N,Q),o),p)}function uc(){let o=M(),p=Ue();J(92);let m=Yt();J(117);let g=t.getTokenStart(),b=J(21),N=lt(kt);return Lr(21,22,b,g),Le(27),Ce(P(y.createDoStatement(m,N),o),p)}function Nu(){let o=M(),p=Ue();J(117);let m=t.getTokenStart(),g=J(21),b=lt(kt);Lr(21,22,g,m);let N=Yt();return Ce(P(ir(b,N),o),p)}function pc(){let o=M(),p=Ue();J(99);let m=pt(135);J(21);let g;u()!==27&&(u()===115||u()===121||u()===87||u()===160&&H(wc)||u()===135&&H(Js)?g=Ic(!0):g=Mr(kt));let b;if(m?J(165):Le(165)){let N=lt(()=>zt(!0));J(22),b=Ot(m,g,N,Yt())}else if(Le(103)){let N=lt(kt);J(22),b=y.createForInStatement(g,N,Yt())}else{J(27);let N=u()!==27&&u()!==22?lt(kt):void 0;J(27);let Q=u()!==22?lt(kt):void 0;J(22),b=Ir(g,N,Q,Yt())}return Ce(P(b,o),p)}function fc(o){let p=M(),m=Ue();J(o===253?83:88);let g=_r()?void 0:gt();Qt();let b=o===253?y.createBreakStatement(g):y.createContinueStatement(g);return Ce(P(b,p),m)}function dc(){let o=M(),p=Ue();J(107);let m=_r()?void 0:lt(kt);return Qt(),Ce(P(y.createReturnStatement(m),o),p)}function Iu(){let o=M(),p=Ue();J(118);let m=t.getTokenStart(),g=J(21),b=lt(kt);Lr(21,22,g,m);let N=Tt(67108864,Yt);return Ce(P(y.createWithStatement(b,N),o),p)}function mc(){let o=M(),p=Ue();J(84);let m=lt(kt);J(59);let g=bn(3,Yt);return Ce(P(y.createCaseClause(m,g),o),p)}function Ou(){let o=M();J(90),J(59);let p=bn(3,Yt);return P(y.createDefaultClause(p),o)}function Mu(){return u()===84?mc():Ou()}function hc(){let o=M();J(19);let p=bn(2,Mu);return J(20),P(y.createCaseBlock(p),o)}function Lu(){let o=M(),p=Ue();J(109),J(21);let m=lt(kt);J(22);let g=hc();return Ce(P(y.createSwitchStatement(m,g),o),p)}function yc(){let o=M(),p=Ue();J(111);let m=t.hasPrecedingLineBreak()?void 0:lt(kt);return m===void 0&&(yn++,m=P(ue(""),M())),oa()||xt(m),Ce(P(y.createThrowStatement(m),o),p)}function Ju(){let o=M(),p=Ue();J(113);let m=Fr(!1),g=u()===85?gc():void 0,b;return(!g||u()===98)&&(J(98,A.catch_or_finally_expected),b=Fr(!1)),Ce(P(y.createTryStatement(m,g,b),o),p)}function gc(){let o=M();J(85);let p;Le(21)?(p=Ea(),J(22)):p=void 0;let m=Fr(!1);return P(y.createCatchClause(p,m),o)}function ju(){let o=M(),p=Ue();return J(89),Qt(),Ce(P(y.createDebuggerStatement(),o),p)}function bc(){let o=M(),p=Ue(),m,g=u()===21,b=lt(kt);return Ke(b)&&Le(59)?m=y.createLabeledStatement(b,Yt()):(oa()||xt(b),m=Dn(b),g&&(p=!1)),Ce(P(m,o),p)}function Ms(){return B(),St(u())&&!t.hasPrecedingLineBreak()}function vc(){return B(),u()===86&&!t.hasPrecedingLineBreak()}function Tc(){return B(),u()===100&&!t.hasPrecedingLineBreak()}function Ls(){return B(),(St(u())||u()===9||u()===10||u()===11)&&!t.hasPrecedingLineBreak()}function Ru(){for(;;)switch(u()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return kc();case 135:return js();case 120:case 156:case 166:return fu();case 144:case 145:return Fu();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:let o=u();if(B(),t.hasPrecedingLineBreak())return!1;if(o===138&&u()===156)return!0;continue;case 162:return B(),u()===19||u()===80||u()===95;case 102:return B(),u()===166||u()===11||u()===42||u()===19||St(u());case 95:let p=B();if(p===156&&(p=H(B)),p===64||p===42||p===19||p===90||p===130||p===60)return!0;continue;case 126:B();continue;default:return!1}}function Ji(){return H(Ru)}function xc(){switch(u()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return!0;case 102:return Ji()||H(lo);case 87:case 95:return Ji();case 134:case 138:case 120:case 144:case 145:case 156:case 162:case 166:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return Ji()||!H(Ms);default:return Tr()}}function Sc(){return B(),qe()||u()===19||u()===23}function Uu(){return H(Sc)}function wc(){return ka(!0)}function Bu(){return B(),u()===64||u()===27||u()===59}function ka(o){return B(),o&&u()===165?H(Bu):(qe()||u()===19)&&!t.hasPrecedingLineBreak()}function kc(){return H(ka)}function Js(o){return B()===160?ka(o):!1}function js(){return H(Js)}function Yt(){switch(u()){case 27:return lc();case 19:return Fr(!1);case 115:return Ui(M(),Ue(),void 0);case 121:if(Uu())return Ui(M(),Ue(),void 0);break;case 135:if(js())return Ui(M(),Ue(),void 0);break;case 160:if(kc())return Ui(M(),Ue(),void 0);break;case 100:return Us(M(),Ue(),void 0);case 86:return Fs(M(),Ue(),void 0);case 101:return Pu();case 92:return uc();case 117:return Nu();case 99:return pc();case 88:return fc(252);case 83:return fc(253);case 107:return dc();case 118:return Iu();case 109:return Lu();case 111:return yc();case 113:case 85:case 98:return Ju();case 89:return ju();case 60:return ji();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(Ji())return ji();break}return bc()}function Ec(o){return o.kind===138}function ji(){let o=M(),p=Ue(),m=On(!0);if(Zt(m,Ec)){let b=qu(o);if(b)return b;for(let N of m)N.flags|=33554432;return Tt(33554432,()=>Ac(o,p,m))}else return Ac(o,p,m)}function qu(o){return Tt(33554432,()=>{let p=pa(yt,o);if(p)return J_(p)})}function Ac(o,p,m){switch(u()){case 115:case 121:case 87:case 160:case 135:return Ui(o,p,m);case 100:return Us(o,p,m);case 86:return Fs(o,p,m);case 120:return ep(o,p,m);case 156:return tp(o,p,m);case 94:return np(o,p,m);case 162:case 144:case 145:return rp(o,p,m);case 102:return Bi(o,p,m);case 95:switch(B(),u()){case 90:case 64:return Kc(o,p,m);case 130:return sp(o,p,m);default:return Qc(o,p,m)}default:if(m){let g=Gt(283,!0,A.Declaration_expected);return Bp(g,o),g.modifiers=m,g}return}}function Cc(){return B()===11}function Dc(){return B(),u()===161||u()===64}function Fu(){return B(),!t.hasPrecedingLineBreak()&&(ve()||u()===11)}function Ri(o,p){if(u()!==19){if(o&4){ya();return}if(_r()){Qt();return}}return wa(o,p)}function zu(){let o=M();if(u()===28)return P(y.createOmittedExpression(),o);let p=pt(26),m=si(),g=xr();return P(y.createBindingElement(p,void 0,m,g),o)}function Pc(){let o=M(),p=pt(26),m=qe(),g=jr(),b;m&&u()!==59?(b=g,g=void 0):(J(59),b=si());let N=xr();return P(y.createBindingElement(p,g,b,N),o)}function Vu(){let o=M();J(19);let p=lt(()=>un(9,Pc));return J(20),P(y.createObjectBindingPattern(p),o)}function Nc(){let o=M();J(23);let p=lt(()=>un(10,zu));return J(24),P(y.createArrayBindingPattern(p),o)}function Rs(){return u()===19||u()===23||u()===81||qe()}function si(o){return u()===23?Nc():u()===19?Vu():Ka(o)}function Wu(){return Ea(!0)}function Ea(o){let p=M(),m=Ue(),g=si(A.Private_identifiers_are_not_allowed_in_variable_declarations),b;o&&g.kind===80&&u()===54&&!t.hasPrecedingLineBreak()&&(b=Wt());let N=vr(),Q=qo(u())?void 0:xr(),_e=Bn(g,b,N,Q);return Ce(P(_e,p),m)}function Ic(o){let p=M(),m=0;switch(u()){case 115:break;case 121:m|=1;break;case 87:m|=2;break;case 160:m|=4;break;case 135:q.assert(js()),m|=6,B();break;default:q.fail()}B();let g;if(u()===165&&H(Oc))g=lr();else{let b=me();Te(o),g=un(8,o?Ea:Wu),Te(b)}return P(Pn(g,m),p)}function Oc(){return Ci()&&B()===22}function Ui(o,p,m){let g=Ic(!1);Qt();let b=hn(m,g);return Ce(P(b,o),p)}function Us(o,p,m){let g=Ye(),b=Jn(m);J(100);let N=pt(42),Q=b&2048?Li():Ka(),_e=N?1:0,ee=b&1024?2:0,te=pn();b&32&&st(!0);let ce=Xn(_e|ee),je=In(59,!1),Je=Ri(_e|ee,A.or_expected);st(g);let De=y.createFunctionDeclaration(m,N,Q,te,ce,je,Je);return Ce(P(De,o),p)}function Gu(){if(u()===137)return J(137);if(u()===11&&H(B)===21)return le(()=>{let o=Hn();return o.text==="constructor"?o:void 0})}function Mc(o,p,m){return le(()=>{if(Gu()){let g=pn(),b=Xn(0),N=In(59,!1),Q=Ri(0,A.or_expected),_e=y.createConstructorDeclaration(m,b,Q);return _e.typeParameters=g,_e.type=N,Ce(P(_e,o),p)}})}function Lc(o,p,m,g,b,N,Q,_e){let ee=g?1:0,te=Zt(m,cl)?2:0,ce=pn(),je=Xn(ee|te),Je=In(59,!1),De=Ri(ee|te,_e),Ht=y.createMethodDeclaration(m,g,b,N,ce,je,Je,De);return Ht.exclamationToken=Q,Ce(P(Ht,o),p)}function Aa(o,p,m,g,b){let N=!b&&!t.hasPrecedingLineBreak()?pt(54):void 0,Q=vr(),_e=Ct(90112,xr);ql(g,Q,_e);let ee=y.createPropertyDeclaration(m,g,b||N,Q,_e);return Ce(P(ee,o),p)}function Bs(o,p,m){let g=pt(42),b=jr(),N=pt(58);return g||u()===21||u()===30?Lc(o,p,m,g,b,N,void 0,A.or_expected):Aa(o,p,m,b,N)}function _i(o,p,m,g,b){let N=jr(),Q=pn(),_e=Xn(0),ee=In(59,!1),te=Ri(b),ce=g===178?y.createGetAccessorDeclaration(m,N,_e,ee,te):y.createSetAccessorDeclaration(m,N,_e,te);return ce.typeParameters=Q,y_(ce)&&(ce.type=ee),Ce(P(ce,o),p)}function Jc(){let o;if(u()===60)return!0;for(;Yr(u());){if(o=u(),Ug(o))return!0;B()}if(u()===42||(br()&&(o=u(),B()),u()===23))return!0;if(o!==void 0){if(!di(o)||o===153||o===139)return!0;switch(u()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return _r()}}return!1}function Yu(o,p,m){Yn(126);let g=Hu(),b=Ce(P(y.createClassStaticBlockDeclaration(g),o),p);return b.modifiers=m,b}function Hu(){let o=we(),p=Ye();He(!1),st(!0);let m=Fr(!1);return He(o),st(p),m}function jc(){if(Ye()&&u()===135){let o=M(),p=gt(A.Expression_expected);B();let m=rn(o,p,!0);return Ps(o,m)}return Oi()}function Rc(){let o=M();if(!Le(60))return;let p=wi(jc);return P(y.createDecorator(p),o)}function qs(o,p,m){let g=M(),b=u();if(u()===87&&p){if(!le(Za))return}else{if(m&&u()===126&&H(Da))return;if(o&&u()===126)return;if(!N_())return}return P(he(b),g)}function On(o,p,m){let g=M(),b,N,Q,_e=!1,ee=!1,te=!1;if(o&&u()===60)for(;N=Rc();)b=wn(b,N);for(;Q=qs(_e,p,m);)Q.kind===126&&(_e=!0),b=wn(b,Q),ee=!0;if(ee&&o&&u()===60)for(;N=Rc();)b=wn(b,N),te=!0;if(te)for(;Q=qs(_e,p,m);)Q.kind===126&&(_e=!0),b=wn(b,Q);return b&&At(b,g)}function Uc(){let o;if(u()===134){let p=M();B();let m=P(he(134),p);o=At([m],p)}return o}function Bc(){let o=M(),p=Ue();if(u()===27)return B(),Ce(P(y.createSemicolonClassElement(),o),p);let m=On(!0,!0,!0);if(u()===126&&H(Da))return Yu(o,p,m);if(ti(139))return _i(o,p,m,178,0);if(ti(153))return _i(o,p,m,179,0);if(u()===137||u()===11){let g=Mc(o,p,m);if(g)return g}if(Br())return ds(o,p,m);if(St(u())||u()===11||u()===9||u()===10||u()===42||u()===23)if(Zt(m,Ec)){for(let b of m)b.flags|=33554432;return Tt(33554432,()=>Bs(o,p,m))}else return Bs(o,p,m);if(m){let g=Gt(80,!0,A.Declaration_expected);return Aa(o,p,m,g,void 0)}return q.fail("Should not have attempted to parse class member declaration.")}function Xu(){let o=M(),p=Ue(),m=On(!0);if(u()===86)return zs(o,p,m,232);let g=Gt(283,!0,A.Expression_expected);return Bp(g,o),g.modifiers=m,g}function $u(){return zs(M(),Ue(),void 0,232)}function Fs(o,p,m){return zs(o,p,m,264)}function zs(o,p,m,g){let b=Ye();J(86);let N=Qu(),Q=pn();Zt(m,Ub)&&st(!0);let _e=Fc(),ee;J(19)?(ee=zc(),J(20)):ee=lr(),st(b);let te=g===264?y.createClassDeclaration(m,N,Q,_e,ee):y.createClassExpression(m,N,Q,_e,ee);return Ce(P(te,o),p)}function Qu(){return qe()&&!qc()?or(qe()):void 0}function qc(){return u()===119&&H(Xl)}function Fc(){if(Vs())return bn(22,Ku)}function Ku(){let o=M(),p=u();q.assert(p===96||p===119),B();let m=un(7,Zu);return P(y.createHeritageClause(p,m),o)}function Zu(){let o=M(),p=Oi();if(p.kind===234)return p;let m=Ca();return P(y.createExpressionWithTypeArguments(p,m),o)}function Ca(){return u()===30?Rr(20,_t,30,32):void 0}function Vs(){return u()===96||u()===119}function zc(){return bn(5,Bc)}function ep(o,p,m){J(120);let g=gt(),b=pn(),N=Fc(),Q=po(),_e=y.createInterfaceDeclaration(m,g,b,N,Q);return Ce(P(_e,o),p)}function tp(o,p,m){J(156),t.hasPrecedingLineBreak()&&Ee(A.Line_break_not_permitted_here);let g=gt(),b=pn();J(64);let N=u()===141&&le(bo)||_t();Qt();let Q=y.createTypeAliasDeclaration(m,g,b,N);return Ce(P(Q,o),p)}function Ws(){let o=M(),p=Ue(),m=jr(),g=lt(xr);return Ce(P(y.createEnumMember(m,g),o),p)}function np(o,p,m){J(94);let g=gt(),b;J(19)?(b=xe(()=>un(6,Ws)),J(20)):b=lr();let N=y.createEnumDeclaration(m,g,b);return Ce(P(N,o),p)}function Gs(){let o=M(),p;return J(19)?(p=bn(1,Yt),J(20)):p=lr(),P(y.createModuleBlock(p),o)}function Vc(o,p,m,g){let b=g&32,N=g&8?jt():gt(),Q=Le(25)?Vc(M(),!1,void 0,8|b):Gs(),_e=y.createModuleDeclaration(m,N,Q,g);return Ce(P(_e,o),p)}function Wc(o,p,m){let g=0,b;u()===162?(b=gt(),g|=2048):(b=Hn(),b.text=Jr(b.text));let N;u()===19?N=Gs():Qt();let Q=y.createModuleDeclaration(m,b,N,g);return Ce(P(Q,o),p)}function rp(o,p,m){let g=0;if(u()===162)return Wc(o,p,m);if(Le(145))g|=32;else if(J(144),u()===11)return Wc(o,p,m);return Vc(o,p,m,g)}function ip(){return u()===149&&H(Gc)}function Gc(){return B()===21}function Da(){return B()===19}function ap(){return B()===44}function sp(o,p,m){J(130),J(145);let g=gt();Qt();let b=y.createNamespaceExportDeclaration(g);return b.modifiers=m,Ce(P(b,o),p)}function Bi(o,p,m){J(102);let g=t.getTokenFullStart(),b;ve()&&(b=gt());let N;if(b?.escapedText==="type"&&(u()!==161||ve()&&H(Dc))&&(ve()||zr())?(N=156,b=ve()?gt():void 0):b?.escapedText==="defer"&&(u()===161?!H(Cc):u()!==28&&u()!==64)&&(N=166,b=ve()?gt():void 0),b&&!op()&&N!==166)return cp(o,p,m,b,N===156);let Q=Yc(b,g,N,void 0),_e=Fi(),ee=Hc();Qt();let te=y.createImportDeclaration(m,Q,_e,ee);return Ce(P(te,o),p)}function Yc(o,p,m,g=!1){let b;return(o||u()===42||u()===19)&&(b=lp(o,p,m,g),J(161)),b}function Hc(){let o=u();if((o===118||o===132)&&!t.hasPrecedingLineBreak())return Ys(o)}function _p(){let o=M(),p=St(u())?jt():ri(11);J(59);let m=zt(!0);return P(y.createImportAttribute(p,m),o)}function Ys(o,p){let m=M();p||J(o);let g=t.getTokenStart();if(J(19)){let b=t.hasPrecedingLineBreak(),N=un(24,_p,!0);if(!J(20)){let Q=Ba(at);Q&&Q.code===A._0_expected.code&&sl(Q,Oa(Mt,$e,g,1,A.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return P(y.createImportAttributes(N,b,o),m)}else{let b=At([],M(),void 0,!1);return P(y.createImportAttributes(b,!1,o),m)}}function zr(){return u()===42||u()===19}function op(){return u()===28||u()===161}function cp(o,p,m,g,b){J(64);let N=qi();Qt();let Q=y.createImportEqualsDeclaration(m,b,g,N);return Ce(P(Q,o),p)}function lp(o,p,m,g){let b;return(!o||Le(28))&&(g&&t.setSkipJsDocLeadingAsterisks(!0),u()===42?b=pp():b=Xc(276),g&&t.setSkipJsDocLeadingAsterisks(!1)),P(y.createImportClause(m,o,b),p)}function qi(){return ip()?up():Ur(!1)}function up(){let o=M();J(149),J(21);let p=Fi();return J(22),P(y.createExternalModuleReference(p),o)}function Fi(){if(u()===11){let o=Hn();return o.text=Jr(o.text),o}else return kt()}function pp(){let o=M();J(42),J(130);let p=gt();return P(y.createNamespaceImport(p),o)}function Hs(){return St(u())||u()===11}function oi(o){return u()===11?Hn():o()}function Xc(o){let p=M(),m=o===276?y.createNamedImports(Rr(23,fp,19,20)):y.createNamedExports(Rr(23,ci,19,20));return P(m,p)}function ci(){let o=Ue();return Ce($c(282),o)}function fp(){return $c(277)}function $c(o){let p=M(),m=di(u())&&!ve(),g=t.getTokenStart(),b=t.getTokenEnd(),N=!1,Q,_e=!0,ee=oi(jt);if(ee.kind===80&&ee.escapedText==="type")if(u()===130){let je=jt();if(u()===130){let Je=jt();Hs()?(N=!0,Q=je,ee=oi(ce),_e=!1):(Q=ee,ee=Je,_e=!1)}else Hs()?(Q=ee,_e=!1,ee=oi(ce)):(N=!0,ee=je)}else Hs()&&(N=!0,ee=oi(ce));_e&&u()===130&&(Q=ee,J(130),ee=oi(ce)),o===277&&(ee.kind!==80?(rt(Cr($e,ee.pos),ee.end,A.Identifier_expected),ee=yi(Gt(80,!1),ee.pos,ee.pos)):m&&rt(g,b,A.Identifier_expected));let te=o===277?y.createImportSpecifier(N,Q,ee):y.createExportSpecifier(N,Q,ee);return P(te,p);function ce(){return m=di(u())&&!ve(),g=t.getTokenStart(),b=t.getTokenEnd(),jt()}}function dp(o){return P(y.createNamespaceExport(oi(jt)),o)}function Qc(o,p,m){let g=Ye();st(!0);let b,N,Q,_e=Le(156),ee=M();Le(42)?(Le(130)&&(b=dp(ee)),J(161),N=Fi()):(b=Xc(280),(u()===161||u()===11&&!t.hasPrecedingLineBreak())&&(J(161),N=Fi()));let te=u();N&&(te===118||te===132)&&!t.hasPrecedingLineBreak()&&(Q=Ys(te)),Qt(),st(g);let ce=y.createExportDeclaration(m,_e,b,N,Q);return Ce(P(ce,o),p)}function Kc(o,p,m){let g=Ye();st(!0);let b;Le(64)?b=!0:J(90);let N=zt(!0);Qt(),st(g);let Q=y.createExportAssignment(m,b,N);return Ce(P(Q,o),p)}let Xs;(o=>{o[o.SourceElements=0]="SourceElements",o[o.BlockStatements=1]="BlockStatements",o[o.SwitchClauses=2]="SwitchClauses",o[o.SwitchClauseStatements=3]="SwitchClauseStatements",o[o.TypeMembers=4]="TypeMembers",o[o.ClassMembers=5]="ClassMembers",o[o.EnumMembers=6]="EnumMembers",o[o.HeritageClauseElement=7]="HeritageClauseElement",o[o.VariableDeclarations=8]="VariableDeclarations",o[o.ObjectBindingElements=9]="ObjectBindingElements",o[o.ArrayBindingElements=10]="ArrayBindingElements",o[o.ArgumentExpressions=11]="ArgumentExpressions",o[o.ObjectLiteralMembers=12]="ObjectLiteralMembers",o[o.JsxAttributes=13]="JsxAttributes",o[o.JsxChildren=14]="JsxChildren",o[o.ArrayLiteralMembers=15]="ArrayLiteralMembers",o[o.Parameters=16]="Parameters",o[o.JSDocParameters=17]="JSDocParameters",o[o.RestProperties=18]="RestProperties",o[o.TypeParameters=19]="TypeParameters",o[o.TypeArguments=20]="TypeArguments",o[o.TupleElementTypes=21]="TupleElementTypes",o[o.HeritageClauses=22]="HeritageClauses",o[o.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",o[o.ImportAttributes=24]="ImportAttributes",o[o.JSDocComment=25]="JSDocComment",o[o.Count=26]="Count"})(Xs||(Xs={}));let Zc;(o=>{o[o.False=0]="False",o[o.True=1]="True",o[o.Unknown=2]="Unknown"})(Zc||(Zc={}));let el;(o=>{function p(te,ce,je){Fn("file.js",te,99,void 0,1,0),t.setText(te,ce,je),ct=t.scan();let Je=m(),De=se("file.js",99,1,!1,[],he(1),0,Va),Ht=Yi(at,De);return Bt&&(De.jsDocDiagnostics=Yi(Bt,De)),zn(),Je?{jsDocTypeExpression:Je,diagnostics:Ht}:void 0}o.parseJSDocTypeExpressionForTests=p;function m(te){let ce=M(),je=(te?Le:J)(19),Je=Tt(16777216,ls);(!te||je)&&C_(20);let De=y.createJSDocTypeExpression(Je);return L(De),P(De,ce)}o.parseJSDocTypeExpression=m;function g(){let te=M(),ce=Le(19),je=M(),Je=Ur(!1);for(;u()===81;)Pt(),Be(),Je=P(y.createJSDocMemberName(Je,gt()),je);ce&&C_(20);let De=y.createJSDocNameReference(Je);return L(De),P(De,te)}o.parseJSDocNameReference=g;function b(te,ce,je){Fn("",te,99,void 0,1,0);let Je=Tt(16777216,()=>ee(ce,je)),Ht=Yi(at,{languageVariant:0,text:te});return zn(),Je?{jsDoc:Je,diagnostics:Ht}:void 0}o.parseIsolatedJSDocComment=b;function N(te,ce,je){let Je=ct,De=at.length,Ht=tn,Nt=Tt(16777216,()=>ee(ce,je));return Sf(Nt,te),tt&524288&&(Bt||(Bt=[]),En(Bt,at,De)),ct=Je,at.length=De,tn=Ht,Nt}o.parseJSDocComment=N;let Q;(te=>{te[te.BeginningOfLine=0]="BeginningOfLine",te[te.SawAsterisk=1]="SawAsterisk",te[te.SavingComments=2]="SavingComments",te[te.SavingBackticks=3]="SavingBackticks"})(Q||(Q={}));let _e;(te=>{te[te.Property=1]="Property",te[te.Parameter=2]="Parameter",te[te.CallbackParameter=4]="CallbackParameter"})(_e||(_e={}));function ee(te=0,ce){let je=$e,Je=ce===void 0?je.length:te+ce;if(ce=Je-te,q.assert(te>=0),q.assert(te<=Je),q.assert(Je<=je.length),!E6(je,te))return;let De,Ht,Nt,ur,pr,Mn=[],Vr=[],Pe=yt;yt|=1<<25;let et=t.scanRange(te+3,ce-5,wr);return yt=Pe,et;function wr(){let I=1,X,$=te-(je.lastIndexOf(` +`,te)+1)+4;function ne(Re){X||(X=$),Mn.push(Re),$+=Re.length}for(Be();Gi(5););Gi(4)&&(I=0,$=0);e:for(;;){switch(u()){case 60:mp(Mn),pr||(pr=M()),Fe(n($)),I=0,X=void 0;break;case 4:Mn.push(t.getTokenText()),I=0,$=0;break;case 42:let Re=t.getTokenText();I===1?(I=2,ne(Re)):(q.assert(I===0),I=1,$+=Re.length);break;case 5:q.assert(I!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");let ut=t.getTokenText();X!==void 0&&$+ut.length>X&&Mn.push(ut.slice(X-$)),$+=ut.length;break;case 1:break e;case 82:I=2,ne(t.getTokenValue());break;case 19:I=2;let fn=t.getTokenFullStart(),an=t.getTokenEnd()-1,Kt=l(an);if(Kt){ur||zi(Mn),Vr.push(P(y.createJSDocText(Mn.join("")),ur??te,fn)),Vr.push(Kt),Mn=[],ur=t.getTokenEnd();break}default:I=2,ne(t.getTokenText());break}I===2?nn(!1):Be()}let re=Mn.join("").trimEnd();Vr.length&&re.length&&Vr.push(P(y.createJSDocText(re),ur??te,pr)),Vr.length&&De&&q.assertIsDefined(pr,"having parsed tags implies that the end of the comment span should be set");let Ne=De&&At(De,Ht,Nt);return P(y.createJSDocComment(Vr.length?At(Vr,te,pr):re.length?re:void 0,Ne),te,Je)}function zi(I){for(;I.length&&(I[0]===` +`||I[0]==="\r");)I.shift()}function mp(I){for(;I.length;){let X=I[I.length-1].trimEnd();if(X==="")I.pop();else if(X.lengthut&&(ne.push(Qn.slice(ut-I)),Re=2),I+=Qn.length;break;case 19:Re=2;let tl=t.getTokenFullStart(),Pa=t.getTokenEnd()-1,nl=l(Pa);nl?(re.push(P(y.createJSDocText(ne.join("")),Ne??$,tl)),re.push(nl),ne=[],Ne=t.getTokenEnd()):fn(t.getTokenText());break;case 62:Re===3?Re=2:Re=3,fn(t.getTokenText());break;case 82:Re!==3&&(Re=2),fn(t.getTokenValue());break;case 42:if(Re===0){Re=1,I+=1;break}default:Re!==3&&(Re=2),fn(t.getTokenText());break}Re===2||Re===3?an=nn(Re===3):an=Be()}zi(ne);let Kt=ne.join("").trimEnd();if(re.length)return Kt.length&&re.push(P(y.createJSDocText(Kt),Ne??$)),At(re,$,t.getTokenEnd());if(Kt.length)return Kt}function l(I){let X=le(v);if(!X)return;Be(),Tn();let $=d(),ne=[];for(;u()!==20&&u()!==4&&u()!==1;)ne.push(t.getTokenText()),Be();let re=X==="link"?y.createJSDocLink:X==="linkcode"?y.createJSDocLinkCode:y.createJSDocLinkPlain;return P(re($,ne.join("")),I,t.getTokenEnd())}function d(){if(St(u())){let I=M(),X=jt();for(;Le(25);)X=P(y.createQualifiedName(X,u()===81?Gt(80,!1):jt()),I);for(;u()===81;)Pt(),Be(),X=P(y.createJSDocMemberName(X,gt()),I);return X}}function v(){if(j(),u()===19&&Be()===60&&St(Be())){let I=t.getTokenValue();if(F(I))return I}}function F(I){return I==="link"||I==="linkcode"||I==="linkplain"}function pe(I,X,$,ne){return P(y.createJSDocUnknownTag(X,i(I,M(),$,ne)),I)}function Fe(I){I&&(De?De.push(I):(De=[I],Ht=I.pos),Nt=I.end)}function It(){return j(),u()===19?m():void 0}function fr(){let I=Gi(23);I&&Tn();let X=Gi(62),$=ey();return X&&zl(62),I&&(Tn(),pt(64)&&kt(),J(24)),{name:$,isBracketed:I}}function xn(I){switch(I.kind){case 151:return!0;case 189:return xn(I.elementType);default:return Df(I)&&Ke(I.typeName)&&I.typeName.escapedText==="Object"&&!I.typeArguments}}function Vi(I,X,$,ne){let re=It(),Ne=!re;j();let{name:Re,isBracketed:ut}=fr(),fn=j();Ne&&!H(v)&&(re=It());let an=i(I,M(),ne,fn),Kt=O0(re,Re,$,ne);Kt&&(re=Kt,Ne=!0);let Qn=$===1?y.createJSDocPropertyTag(X,Re,ut,re,Ne,an):y.createJSDocParameterTag(X,Re,ut,re,Ne,an);return P(Qn,I)}function O0(I,X,$,ne){if(I&&xn(I.type)){let re=M(),Ne,Re;for(;Ne=le(()=>yp($,ne,X));)Ne.kind===342||Ne.kind===349?Re=wn(Re,Ne):Ne.kind===346&&on(Ne.tagName,A.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(Re){let ut=P(y.createJSDocTypeLiteral(Re,I.type.kind===189),re);return P(y.createJSDocTypeExpression(ut),re)}}}function M0(I,X,$,ne){Zt(De,f6)&&rt(X.pos,t.getTokenStart(),A._0_tag_already_specified,l_(X.escapedText));let re=It();return P(y.createJSDocReturnTag(X,re,i(I,M(),$,ne)),I)}function ud(I,X,$,ne){Zt(De,zf)&&rt(X.pos,t.getTokenStart(),A._0_tag_already_specified,l_(X.escapedText));let re=m(!0),Ne=$!==void 0&&ne!==void 0?i(I,M(),$,ne):void 0;return P(y.createJSDocTypeTag(X,re,Ne),I)}function L0(I,X,$,ne){let Ne=u()===23||H(()=>Be()===60&&St(Be())&&F(t.getTokenValue()))?void 0:g(),Re=$!==void 0&&ne!==void 0?i(I,M(),$,ne):void 0;return P(y.createJSDocSeeTag(X,Ne,Re),I)}function J0(I,X,$,ne){let re=It(),Ne=i(I,M(),$,ne);return P(y.createJSDocThrowsTag(X,re,Ne),I)}function j0(I,X,$,ne){let re=M(),Ne=R0(),Re=t.getTokenFullStart(),ut=i(I,Re,$,ne);ut||(Re=t.getTokenFullStart());let fn=typeof ut!="string"?At(Yp([P(Ne,re,Re)],ut),re):Ne.text+ut;return P(y.createJSDocAuthorTag(X,fn),I)}function R0(){let I=[],X=!1,$=t.getToken();for(;$!==1&&$!==4;){if($===30)X=!0;else{if($===60&&!X)break;if($===32&&X){I.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}I.push(t.getTokenText()),$=Be()}return y.createJSDocText(I.join(""))}function U0(I,X,$,ne){let re=pd();return P(y.createJSDocImplementsTag(X,re,i(I,M(),$,ne)),I)}function B0(I,X,$,ne){let re=pd();return P(y.createJSDocAugmentsTag(X,re,i(I,M(),$,ne)),I)}function q0(I,X,$,ne){let re=m(!1),Ne=$!==void 0&&ne!==void 0?i(I,M(),$,ne):void 0;return P(y.createJSDocSatisfiesTag(X,re,Ne),I)}function F0(I,X,$,ne){let re=t.getTokenFullStart(),Ne;ve()&&(Ne=gt());let Re=Yc(Ne,re,156,!0),ut=Fi(),fn=Hc(),an=$!==void 0&&ne!==void 0?i(I,M(),$,ne):void 0;return P(y.createJSDocImportTag(X,Re,ut,fn,an),I)}function pd(){let I=Le(19),X=M(),$=z0();t.setSkipJsDocLeadingAsterisks(!0);let ne=Ca();t.setSkipJsDocLeadingAsterisks(!1);let re=y.createExpressionWithTypeArguments($,ne),Ne=P(re,X);return I&&(Tn(),J(20)),Ne}function z0(){let I=M(),X=li();for(;Le(25);){let $=li();X=P(ae(X,$),I)}return X}function Wi(I,X,$,ne,re){return P(X($,i(I,M(),ne,re)),I)}function fd(I,X,$,ne){let re=m(!0);return Tn(),P(y.createJSDocThisTag(X,re,i(I,M(),$,ne)),I)}function V0(I,X,$,ne){let re=m(!0);return Tn(),P(y.createJSDocEnumTag(X,re,i(I,M(),$,ne)),I)}function W0(I,X,$,ne){let re=It();j();let Ne=hp();Tn();let Re=s($),ut;if(!re||xn(re.type)){let an,Kt,Qn,tl=!1;for(;(an=le(()=>$0($)))&&an.kind!==346;)if(tl=!0,an.kind===345)if(Kt){let Pa=Ee(A.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);Pa&&sl(Pa,Oa(Mt,$e,0,0,A.The_tag_was_first_specified_here));break}else Kt=an;else Qn=wn(Qn,an);if(tl){let Pa=re&&re.type.kind===189,nl=y.createJSDocTypeLiteral(Qn,Pa);re=Kt&&Kt.typeExpression&&!xn(Kt.typeExpression.type)?Kt.typeExpression:P(nl,I),ut=re.end}}ut=ut||Re!==void 0?M():(Ne??re??X).end,Re||(Re=i(I,ut,$,ne));let fn=y.createJSDocTypedefTag(X,re,Ne,Re);return P(fn,I,ut)}function hp(I){let X=t.getTokenStart();if(!St(u()))return;let $=li();if(Le(25)){let ne=hp(!0),re=y.createModuleDeclaration(void 0,$,ne,I?8:void 0);return P(re,X)}return I&&($.flags|=4096),$}function G0(I){let X=M(),$,ne;for(;$=le(()=>yp(4,I));){if($.kind===346){on($.tagName,A.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}ne=wn(ne,$)}return At(ne||[],X)}function dd(I,X){let $=G0(X),ne=le(()=>{if(Gi(60)){let re=n(X);if(re&&re.kind===343)return re}});return P(y.createJSDocSignature(void 0,$,ne),I)}function Y0(I,X,$,ne){let re=hp();Tn();let Ne=s($),Re=dd(I,$);Ne||(Ne=i(I,M(),$,ne));let ut=Ne!==void 0?M():Re.end;return P(y.createJSDocCallbackTag(X,Re,re,Ne),I,ut)}function H0(I,X,$,ne){Tn();let re=s($),Ne=dd(I,$);re||(re=i(I,M(),$,ne));let Re=re!==void 0?M():Ne.end;return P(y.createJSDocOverloadTag(X,Ne,re),I,Re)}function X0(I,X){for(;!Ke(I)||!Ke(X);)if(!Ke(I)&&!Ke(X)&&I.right.escapedText===X.right.escapedText)I=I.left,X=X.left;else return!1;return I.escapedText===X.escapedText}function $0(I){return yp(1,I)}function yp(I,X,$){let ne=!0,re=!1;for(;;)switch(Be()){case 60:if(ne){let Ne=Q0(I,X);return Ne&&(Ne.kind===342||Ne.kind===349)&&$&&(Ke(Ne.name)||!X0($,Ne.name.left))?!1:Ne}re=!1;break;case 4:ne=!0,re=!1;break;case 42:re&&(ne=!1),re=!0;break;case 80:ne=!1;break;case 1:return!1}}function Q0(I,X){q.assert(u()===60);let $=t.getTokenFullStart();Be();let ne=li(),re=j(),Ne;switch(ne.escapedText){case"type":return I===1&&ud($,ne);case"prop":case"property":Ne=1;break;case"arg":case"argument":case"param":Ne=6;break;case"template":return md($,ne,X,re);case"this":return fd($,ne,X,re);default:return!1}return I&Ne?Vi($,ne,I,X):!1}function K0(){let I=M(),X=Gi(23);X&&Tn();let $=On(!1,!0),ne=li(A.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),re;if(X&&(Tn(),J(64),re=Tt(16777216,ls),J(24)),!Zi(ne))return P(y.createTypeParameterDeclaration($,ne,void 0,re),I)}function Z0(){let I=M(),X=[];do{Tn();let $=K0();$!==void 0&&X.push($),j()}while(Gi(28));return At(X,I)}function md(I,X,$,ne){let re=u()===19?m():void 0,Ne=Z0();return P(y.createJSDocTemplateTag(X,re,Ne,i(I,M(),$,ne)),I)}function Gi(I){return u()===I?(Be(),!0):!1}function ey(){let I=li();for(Le(23)&&J(24);Le(25);){let X=li();Le(23)&&J(24),I=$l(I,X)}return I}function li(I){if(!St(u()))return Gt(80,!I,I||A.Identifier_expected);yn++;let X=t.getTokenStart(),$=t.getTokenEnd(),ne=u(),re=Jr(t.getTokenValue()),Ne=P(ue(re,ne),X,$);return Be(),Ne}}})(el=e.JSDocParser||(e.JSDocParser={}))})(ta||(ta={}));var hm=new WeakSet;function J6(e){hm.has(e)&&q.fail("Source file has already been incrementally parsed"),hm.add(e)}var ph=new WeakSet;function j6(e){return ph.has(e)}function Wp(e){ph.add(e)}var Sl;(e=>{function t(D,R,ue,be){if(be=be||q.shouldAssert(2),y(D,R,ue,be),dg(ue))return D;if(D.statements.length===0)return ta.parseSourceFile(D.fileName,R,D.languageVersion,void 0,!0,D.scriptKind,D.setExternalModuleIndicator,D.jsDocParsingMode);J6(D),ta.fixupParentReferences(D);let he=D.text,de=G(D),O=c(D,ue);y(D,R,O,be),q.assert(O.span.start<=ue.span.start),q.assert(kr(O.span)===kr(ue.span)),q.assert(kr(Qs(O))===kr(Qs(ue)));let ae=Qs(O).length-O.span.length;k(D,O.span.start,kr(O.span),kr(Qs(O)),ae,he,R,be);let Oe=ta.parseSourceFile(D.fileName,R,D.languageVersion,de,!0,D.scriptKind,D.setExternalModuleIndicator,D.jsDocParsingMode);return Oe.commentDirectives=a(D.commentDirectives,Oe.commentDirectives,O.span.start,kr(O.span),ae,he,R,be),Oe.impliedNodeFormat=D.impliedNodeFormat,y6(D,Oe),Oe}e.updateSourceFile=t;function a(D,R,ue,be,he,de,O,ae){if(!D)return R;let Oe,V=!1;for(let Y of D){let{range:ft,type:nr}=Y;if(ft.endbe){oe();let mn={range:{pos:ft.pos+he,end:ft.end+he},type:nr};Oe=wn(Oe,mn),ae&&q.assert(de.substring(ft.pos,ft.end)===O.substring(mn.range.pos,mn.range.end))}}return oe(),Oe;function oe(){V||(V=!0,Oe?R&&Oe.push(...R):Oe=R)}}function _(D,R,ue,be,he,de,O){ue?Oe(D):ae(D);return;function ae(V){let oe="";if(O&&f(V)&&(oe=he.substring(V.pos,V.end)),Gd(V,R),yi(V,V.pos+be,V.end+be),O&&f(V)&&q.assert(oe===de.substring(V.pos,V.end)),Xt(V,ae,Oe),Ki(V))for(let Y of V.jsDoc)ae(Y);T(V,O)}function Oe(V){yi(V,V.pos+be,V.end+be);for(let oe of V)ae(oe)}}function f(D){switch(D.kind){case 11:case 9:case 80:return!0}return!1}function h(D,R,ue,be,he){q.assert(D.end>=R,"Adjusting an element that was entirely before the change range"),q.assert(D.pos<=ue,"Adjusting an element that was entirely after the change range"),q.assert(D.pos<=D.end);let de=Math.min(D.pos,be),O=D.end>=ue?D.end+he:Math.min(D.end,be);if(q.assert(de<=O),D.parent){let ae=D.parent;q.assertGreaterThanOrEqual(de,ae.pos),q.assertLessThanOrEqual(O,ae.end)}yi(D,de,O)}function T(D,R){if(R){let ue=D.pos,be=he=>{q.assert(he.pos>=ue),ue=he.end};if(Ki(D))for(let he of D.jsDoc)be(he);Xt(D,be),q.assert(ue<=D.end)}}function k(D,R,ue,be,he,de,O,ae){Oe(D);return;function Oe(oe){if(q.assert(oe.pos<=oe.end),oe.pos>ue){_(oe,D,!1,he,de,O,ae);return}let Y=oe.end;if(Y>=R){if(Wp(oe),Gd(oe,D),h(oe,R,ue,be,he),Xt(oe,Oe,V),Ki(oe))for(let ft of oe.jsDoc)Oe(ft);T(oe,ae);return}q.assert(Yue){_(oe,D,!0,he,de,O,ae);return}let Y=oe.end;if(Y>=R){Wp(oe),h(oe,R,ue,be,he);for(let ft of oe)Oe(ft);return}q.assert(Y0&&O<=1;O++){let ae=W(D,be);q.assert(ae.pos<=be);let Oe=ae.pos;be=Math.max(0,Oe-1)}let he=fg(be,kr(R.span)),de=R.newLength+(R.span.start-be);return Ym(he,de)}function W(D,R){let ue=D,be;if(Xt(D,de),be){let O=he(be);O.pos>ue.pos&&(ue=O)}return ue;function he(O){for(;;){let ae=K2(O);if(ae)O=ae;else return O}}function de(O){if(!Zi(O))if(O.pos<=R){if(O.pos>=ue.pos&&(ue=O),RR),!0}}function y(D,R,ue,be){let he=D.text;if(ue&&(q.assert(he.length-ue.span.length+ue.newLength===R.length),be||q.shouldAssert(3))){let de=he.substr(0,ue.span.start),O=R.substr(0,ue.span.start);q.assert(de===O);let ae=he.substring(kr(ue.span),he.length),Oe=R.substring(kr(Qs(ue)),R.length);q.assert(ae===Oe)}}function G(D){let R=D.statements,ue=0;q.assert(ue=V.pos&&O=V.pos&&O{D[D.Value=-1]="Value"})(E||(E={}))})(Sl||(Sl={}));function R6(e){return U6(e)!==void 0}function U6(e){let t=Im(e,bb,!1);if(t)return t;if(jy(e,".ts")){let a=Nm(e),_=a.lastIndexOf(".d.");if(_>=0)return a.substring(_)}}function B6(e,t,a,_){if(e){if(e==="import")return 99;if(e==="require")return 1;_(t,a-t,A.resolution_mode_should_be_either_require_or_import)}}function q6(e,t){let a=[];for(let _ of Lp(t,0)||vt){let f=t.substring(_.pos,_.end);G6(a,_,f)}e.pragmas=new Map;for(let _ of a){if(e.pragmas.has(_.name)){let f=e.pragmas.get(_.name);f instanceof Array?f.push(_.args):e.pragmas.set(_.name,[f,_.args]);continue}e.pragmas.set(_.name,_.args)}}function F6(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((a,_)=>{switch(_){case"reference":{let f=e.referencedFiles,h=e.typeReferenceDirectives,T=e.libReferenceDirectives;jn(bp(a),k=>{let{types:c,lib:W,path:y,["resolution-mode"]:G,preserve:E}=k.arguments,D=E==="true"?!0:void 0;if(k.arguments["no-default-lib"]==="true")e.hasNoDefaultLib=!0;else if(c){let R=B6(G,c.pos,c.end,t);h.push({pos:c.pos,end:c.end,fileName:c.value,...R?{resolutionMode:R}:{},...D?{preserve:D}:{}})}else W?T.push({pos:W.pos,end:W.end,fileName:W.value,...D?{preserve:D}:{}}):y?f.push({pos:y.pos,end:y.end,fileName:y.value,...D?{preserve:D}:{}}):t(k.range.pos,k.range.end-k.range.pos,A.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=Pp(bp(a),f=>({name:f.arguments.name,path:f.arguments.path}));break}case"amd-module":{if(a instanceof Array)for(let f of a)e.moduleName&&t(f.range.pos,f.range.end-f.range.pos,A.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=f.arguments.name;else e.moduleName=a.arguments.name;break}case"ts-nocheck":case"ts-check":{jn(bp(a),f=>{(!e.checkJsDirective||f.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:_==="ts-check",end:f.range.end,pos:f.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:q.fail("Unhandled pragma kind")}})}var Dp=new Map;function z6(e){if(Dp.has(e))return Dp.get(e);let t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return Dp.set(e,t),t}var V6=/^\/\/\/\s*<(\S+)\s.*?\/>/m,W6=/^\/\/\/?\s*@([^\s:]+)((?:[^\S\r\n]|:).*)?$/m;function G6(e,t,a){let _=t.kind===2&&V6.exec(a);if(_){let h=_[1].toLowerCase(),T=Pm[h];if(!T||!(T.kind&1))return;if(T.args){let k={};for(let c of T.args){let y=z6(c.name).exec(a);if(!y&&!c.optional)return;if(y){let G=y[2]||y[3];if(c.captureSpan){let E=t.pos+y.index+y[1].length+1;k[c.name]={value:G,pos:E,end:E+G.length}}else k[c.name]=G}}e.push({name:h,args:{arguments:k,range:t}})}else e.push({name:h,args:{arguments:{},range:t}});return}let f=t.kind===2&&W6.exec(a);if(f)return ym(e,t,2,f);if(t.kind===3){let h=/@(\S+)(\s+(?:\S.*)?)?$/gm,T;for(;T=h.exec(a);)ym(e,t,4,T)}}function ym(e,t,a,_){if(!_)return;let f=_[1].toLowerCase(),h=Pm[f];if(!h||!(h.kind&a))return;let T=_[2],k=Y6(h,T);k!=="fail"&&e.push({name:f,args:{arguments:k,range:t}})}function Y6(e,t){if(!t)return{};if(!e.args)return{};let a=t.trim().split(/\s+/),_={};for(let f=0;f_.kind<310||_.kind>352);return a.kind<167?a:a.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();let t=this.getChildren(e),a=Ba(t);if(a)return a.kind<167?a:a.getLastToken(e)}forEachChild(e,t){return Xt(this,e,t)}};function H6(e,t){let a=[];if(e2(e))return e.forEachChild(T=>{a.push(T)}),a;s_.setText((t||e.getSourceFile()).text);let _=e.pos,f=T=>{__(a,_,T.pos,e),a.push(T),_=T.end},h=T=>{__(a,_,T.pos,e),a.push(X6(T,e)),_=T.end};return jn(e.jsDoc,f),_=e.pos,e.forEachChild(f,h),__(a,_,e.end,e),s_.setText(void 0),a}function __(e,t,a,_){for(s_.resetTokenState(t);tt.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function dl(e,t){if(!e)return vt;let a=ts_JsDoc_exports.getJsDocTagsFromDeclarations(e,t);if(t&&(a.length===0||e.some(yh))){let _=new Set;for(let f of e){let h=gh(t,f,T=>{var k;if(!_.has(T))return _.add(T),f.kind===178||f.kind===179?T.getContextualJsDocTags(f,t):((k=T.declarations)==null?void 0:k.length)===1?T.getJsDocTags(t):void 0});h&&(a=[...h,...a])}}return a}function a_(e,t){if(!e)return vt;let a=ts_JsDoc_exports.getJsDocCommentsFromDeclarations(e,t);if(t&&(a.length===0||e.some(yh))){let _=new Set;for(let f of e){let h=gh(t,f,T=>{if(!_.has(T))return _.add(T),f.kind===178||f.kind===179?T.getContextualDocumentationComment(f,t):T.getDocumentationComment(t)});h&&(a=a.length===0?h.slice():h.concat(lineBreakPart(),a))}}return a}function gh(e,t,a){var _;let f=((_=t.parent)==null?void 0:_.kind)===177?t.parent.parent:t.parent;if(!f)return;let h=q2(t);return sy(I2(f),T=>{let k=e.getTypeAtLocation(T),c=h&&k.symbol?e.getTypeOfSymbol(k.symbol):k,W=e.getPropertyOfType(c,t.symbol.name);return W?a(W):void 0})}var Z6=class extends Gf{constructor(e,t,a){super(e,t,a)}update(e,t){return L6(this,e,t)}getLineAndCharacterOfPosition(e){return Bm(this,e)}getLineStarts(){return Mp(this)}getPositionOfLineAndCharacter(e,t,a){return rg(Mp(this),e,t,this.text,a)}getLineEndOfPosition(e){let{line:t}=this.getLineAndCharacterOfPosition(e),a=this.getLineStarts(),_;t+1>=a.length&&(_=this.getEnd()),_||(_=a[t+1]-1);let f=this.getFullText();return f[_]===` +`&&f[_-1]==="\r"?_-1:_}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){let e=vy();return this.forEachChild(f),e;function t(h){let T=_(h);T&&e.add(T,h)}function a(h){let T=e.get(h);return T||e.set(h,T=[]),T}function _(h){let T=lf(h);return T&&(kf(T)&&dr(T.expression)?T.expression.name.text:r1(T)?getNameFromPropertyName(T):void 0)}function f(h){switch(h.kind){case 263:case 219:case 175:case 174:let T=h,k=_(T);if(k){let y=a(k),G=Ba(y);G&&T.parent===G.parent&&T.symbol===G.symbol?T.body&&!G.body&&(y[y.length-1]=T):y.push(T)}Xt(h,f);break;case 264:case 232:case 265:case 266:case 267:case 268:case 272:case 282:case 277:case 274:case 275:case 178:case 179:case 188:t(h),Xt(h,f);break;case 170:if(!v_(h,31))break;case 261:case 209:{let y=h;if(Wg(y.name)){Xt(y.name,f);break}y.initializer&&f(y.initializer)}case 307:case 173:case 172:t(h);break;case 279:let c=h;c.exportClause&&($1(c.exportClause)?jn(c.exportClause.elements,f):f(c.exportClause.name));break;case 273:let W=h.importClause;W&&(W.name&&t(W.name),W.namedBindings&&(W.namedBindings.kind===275?t(W.namedBindings):jn(W.namedBindings.elements,f)));break;case 227:yf(h)!==0&&t(h);default:Xt(h,f)}}}},ev=class{constructor(e,t,a){this.fileName=e,this.text=t,this.skipTrivia=a||(_=>_)}getLineAndCharacterOfPosition(e){return Bm(this,e)}};function tv(){return{getNodeConstructor:()=>Gf,getTokenConstructor:()=>dh,getIdentifierConstructor:()=>mh,getPrivateIdentifierConstructor:()=>hh,getSourceFileConstructor:()=>Z6,getSymbolConstructor:()=>$6,getTypeConstructor:()=>Q6,getSignatureConstructor:()=>K6,getSourceMapSourceConstructor:()=>ev}}var nv=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes","getPasteEdits"],I3=[...nv,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors","preparePasteEditsForFile"];_b(tv());var Ml=new Proxy({},{get:()=>!0});var vh=Ml["4.8"];function Rn(e,t=!1){if(e!=null){if(vh){if(t||Ol(e)){let a=$m(e);return a?[...a]:void 0}return}return e.modifiers?.filter(a=>!Cl(a))}}function xi(e,t=!1){if(e!=null){if(vh){if(t||Wf(e)){let a=uf(e);return a?[...a]:void 0}return}return e.decorators?.filter(Cl)}}var Th={};var Ll=new Proxy({},{get:(e,t)=>t});var xh=Ll,Sh=Ll;var C=xh,Rt=Sh;var av=Ml["5.0"],ye=Ae,sv=new Set([ye.AmpersandAmpersandToken,ye.BarBarToken,ye.QuestionQuestionToken]),_v=new Set([Ae.AmpersandAmpersandEqualsToken,Ae.AmpersandEqualsToken,Ae.AsteriskAsteriskEqualsToken,Ae.AsteriskEqualsToken,Ae.BarBarEqualsToken,Ae.BarEqualsToken,Ae.CaretEqualsToken,Ae.EqualsToken,Ae.GreaterThanGreaterThanEqualsToken,Ae.GreaterThanGreaterThanGreaterThanEqualsToken,Ae.LessThanLessThanEqualsToken,Ae.MinusEqualsToken,Ae.PercentEqualsToken,Ae.PlusEqualsToken,Ae.QuestionQuestionEqualsToken,Ae.SlashEqualsToken]),ov=new Set([ye.AmpersandAmpersandToken,ye.AmpersandToken,ye.AsteriskAsteriskToken,ye.AsteriskToken,ye.BarBarToken,ye.BarToken,ye.CaretToken,ye.EqualsEqualsEqualsToken,ye.EqualsEqualsToken,ye.ExclamationEqualsEqualsToken,ye.ExclamationEqualsToken,ye.GreaterThanEqualsToken,ye.GreaterThanGreaterThanGreaterThanToken,ye.GreaterThanGreaterThanToken,ye.GreaterThanToken,ye.InKeyword,ye.InstanceOfKeyword,ye.LessThanEqualsToken,ye.LessThanLessThanToken,ye.LessThanToken,ye.MinusToken,ye.PercentToken,ye.PlusToken,ye.SlashToken]);function cv(e){return _v.has(e.kind)}function lv(e){return sv.has(e.kind)}function uv(e){return ov.has(e.kind)}function Qr(e){return nt(e)}function wh(e){return e.kind!==ye.SemicolonClassElement}function Ge(e,t){return Rn(t)?.some(_=>_.kind===e)===!0}function kh(e){let t=Rn(e);return t==null?null:t[t.length-1]??null}function Eh(e){return e.kind===ye.CommaToken}function pv(e){return e.kind===ye.SingleLineCommentTrivia||e.kind===ye.MultiLineCommentTrivia}function fv(e){return e.kind===ye.JSDocComment}function Ah(e){if(cv(e))return{type:C.AssignmentExpression,operator:Qr(e.kind)};if(lv(e))return{type:C.LogicalExpression,operator:Qr(e.kind)};if(uv(e))return{type:C.BinaryExpression,operator:Qr(e.kind)};throw new Error(`Unexpected binary operator ${nt(e.kind)}`)}function x_(e,t){let a=t.getLineAndCharacterOfPosition(e);return{column:a.character,line:a.line+1}}function Kr(e,t){let[a,_]=e.map(f=>x_(f,t));return{end:_,start:a}}function Ch(e){if(e.kind===Ae.Block)switch(e.parent.kind){case Ae.Constructor:case Ae.GetAccessor:case Ae.SetAccessor:case Ae.ArrowFunction:case Ae.FunctionExpression:case Ae.FunctionDeclaration:case Ae.MethodDeclaration:return!0;default:return!1}return!0}function sa(e,t){return[e.getStart(t),e.getEnd()]}function dv(e){return e.kind>=ye.FirstToken&&e.kind<=ye.LastToken}function Dh(e){return e.kind>=ye.JsxElement&&e.kind<=ye.JsxAttribute}function S_(e){return e.flags&sn.Let?"let":(e.flags&sn.AwaitUsing)===sn.AwaitUsing?"await using":e.flags&sn.Const?"const":e.flags&sn.Using?"using":"var"}function Si(e){let t=Rn(e);if(t!=null)for(let a of t)switch(a.kind){case ye.PublicKeyword:return"public";case ye.ProtectedKeyword:return"protected";case ye.PrivateKeyword:return"private";default:break}}function er(e,t,a){return _(t);function _(f){return t1(f)&&f.pos===e.end?f:vv(f.getChildren(a),h=>(h.pos<=e.pos&&h.end>e.end||h.pos===e.end)&&bv(h,a)?_(h):void 0)}}function mv(e,t){let a=e;for(;a;){if(t(a))return a;a=a.parent}}function hv(e){return!!mv(e,Dh)}function Kf(e){return Wr(0,e,/&(?:#\d+|#x[\da-fA-F]+|[0-9a-zA-Z]+);/g,t=>{let a=t.slice(1,-1);if(a[0]==="#"){let _=a[1]==="x"?parseInt(a.slice(2),16):parseInt(a.slice(1),10);return _>1114111?t:String.fromCodePoint(_)}return Th[a]||t})}function _a(e){return e.kind===ye.ComputedPropertyName}function Zf(e){return!!e.questionToken}function ed(e){return e.type===C.ChainExpression}function Ph(e,t){return ed(t)&&e.expression.kind!==Ae.ParenthesizedExpression}function yv(e){if(e.kind===ye.NullKeyword)return Rt.Null;if(e.kind>=ye.FirstKeyword&&e.kind<=ye.LastFutureReservedWord)return e.kind===ye.FalseKeyword||e.kind===ye.TrueKeyword?Rt.Boolean:Rt.Keyword;if(e.kind>=ye.FirstPunctuation&&e.kind<=ye.LastPunctuation)return Rt.Punctuator;if(e.kind>=ye.NoSubstitutionTemplateLiteral&&e.kind<=ye.TemplateTail)return Rt.Template;switch(e.kind){case ye.NumericLiteral:case ye.BigIntLiteral:return Rt.Numeric;case ye.PrivateIdentifier:return Rt.PrivateIdentifier;case ye.JsxText:return Rt.JSXText;case ye.StringLiteral:return e.parent.kind===ye.JsxAttribute||e.parent.kind===ye.JsxElement?Rt.JSXText:Rt.String;case ye.RegularExpressionLiteral:return Rt.RegularExpression;case ye.Identifier:case ye.ConstructorKeyword:case ye.GetKeyword:case ye.SetKeyword:default:}if(e.kind===ye.Identifier){if(Dh(e.parent))return Rt.JSXIdentifier;if(e.parent.kind===ye.PropertyAccessExpression&&hv(e))return Rt.JSXIdentifier}return Rt.Identifier}function gv(e,t){let a=e.kind===ye.JsxText?e.getFullStart():e.getStart(t),_=e.getEnd(),f=t.text.slice(a,_),h=yv(e),T=[a,_],k=Kr(T,t);return h===Rt.RegularExpression?{type:h,loc:k,range:T,regex:{flags:f.slice(f.lastIndexOf("/")+1),pattern:f.slice(1,f.lastIndexOf("/"))},value:f}:h===Rt.PrivateIdentifier?{type:h,loc:k,range:T,value:f.slice(1)}:{type:h,loc:k,range:T,value:f}}function Nh(e){let t=[];function a(_){pv(_)||fv(_)||(dv(_)&&_.kind!==ye.EndOfFileToken?t.push(gv(_,e)):_.getChildren(e).forEach(a))}return a(e),t}var Qf=class extends Error{fileName;location;constructor(t,a,_){super(t),this.fileName=a,this.location=_,Object.defineProperty(this,"name",{configurable:!0,enumerable:!1,value:new.target.name})}get index(){return this.location.start.offset}get lineNumber(){return this.location.start.line}get column(){return this.location.start.column}};function w_(e,t,a,_=a){let[f,h]=[a,_].map(T=>{let{character:k,line:c}=t.getLineAndCharacterOfPosition(T);return{column:k,line:c+1,offset:T}});return new Qf(e,t.fileName,{end:h,start:f})}function bv(e,t){return e.kind===ye.EndOfFileToken?!!e.jsDoc:e.getWidth(t)!==0}function vv(e,t){if(e!==void 0)for(let a=0;a=0&&e.kind!==ge.EndOfFileToken}function Lh(e){return!xv(e)}function Sv(e){return Ge(ge.AbstractKeyword,e)}function wv(e){if(e.parameters.length&&!Il(e)){let t=e.parameters[0];if(kv(t))return t}return null}function kv(e){return td(e.name)}function Ev(e){return of(e.parent,mf)}function Av(e){switch(e.kind){case ge.ClassDeclaration:return!0;case ge.ClassExpression:return!0;case ge.PropertyDeclaration:{let{parent:t}=e;return!!(Ga(t)||ra(t)&&!Sv(e))}case ge.GetAccessor:case ge.SetAccessor:case ge.MethodDeclaration:{let{parent:t}=e;return!!e.body&&(Ga(t)||ra(t))}case ge.Parameter:{let{parent:t}=e,a=t.parent;return!!t&&"body"in t&&!!t.body&&(t.kind===ge.Constructor||t.kind===ge.MethodDeclaration||t.kind===ge.SetAccessor)&&wv(t)!==e&&!!a&&a.kind===ge.ClassDeclaration}}return!1}function Cv(e){return!!("illegalDecorators"in e&&e.illegalDecorators?.length)}function Ut(e,t){let a=e.getSourceFile(),_=e.getStart(a),f=e.getEnd();throw w_(t,a,_,f)}function Jh(e){Cv(e)&&Ut(e.illegalDecorators[0],"Decorators are not valid here.");for(let t of xi(e,!0)??[])Av(e)||(h_(e)&&!Lh(e.body)?Ut(t,"A decorator can only decorate a method implementation, not an overload."):Ut(t,"Decorators are not valid here."));for(let t of Rn(e,!0)??[]){if(t.kind!==ge.ReadonlyKeyword&&((e.kind===ge.PropertySignature||e.kind===ge.MethodSignature)&&Ut(t,`'${nt(t.kind)}' modifier cannot appear on a type member`),e.kind===ge.IndexSignature&&(t.kind!==ge.StaticKeyword||!ra(e.parent))&&Ut(t,`'${nt(t.kind)}' modifier cannot appear on an index signature`)),t.kind!==ge.InKeyword&&t.kind!==ge.OutKeyword&&t.kind!==ge.ConstKeyword&&e.kind===ge.TypeParameter&&Ut(t,`'${nt(t.kind)}' modifier cannot appear on a type parameter`),(t.kind===ge.InKeyword||t.kind===ge.OutKeyword)&&(e.kind!==ge.TypeParameter||!(T_(e.parent)||ra(e.parent)||Nl(e.parent)))&&Ut(t,`'${nt(t.kind)}' modifier can only appear on a type parameter of a class, interface or type alias`),t.kind===ge.ReadonlyKeyword&&e.kind!==ge.PropertyDeclaration&&e.kind!==ge.PropertySignature&&e.kind!==ge.IndexSignature&&e.kind!==ge.Parameter&&Ut(t,"'readonly' modifier can only appear on a property declaration or index signature."),t.kind===ge.DeclareKeyword&&ra(e.parent)&&!Wa(e)&&Ut(t,`'${nt(t.kind)}' modifier cannot appear on class elements of this kind.`),t.kind===ge.DeclareKeyword&&Xa(e)){let a=S_(e.declarationList);(a==="using"||a==="await using")&&Ut(t,`'declare' modifier cannot appear on a '${a}' declaration.`)}if(t.kind===ge.AbstractKeyword&&e.kind!==ge.ClassDeclaration&&e.kind!==ge.ConstructorType&&e.kind!==ge.MethodDeclaration&&e.kind!==ge.PropertyDeclaration&&e.kind!==ge.GetAccessor&&e.kind!==ge.SetAccessor&&Ut(t,`'${nt(t.kind)}' modifier can only appear on a class, method, or property declaration.`),(t.kind===ge.StaticKeyword||t.kind===ge.PublicKeyword||t.kind===ge.ProtectedKeyword||t.kind===ge.PrivateKeyword)&&(e.parent.kind===ge.ModuleBlock||e.parent.kind===ge.SourceFile)&&Ut(t,`'${nt(t.kind)}' modifier cannot appear on a module or namespace element.`),t.kind===ge.AccessorKeyword&&e.kind!==ge.PropertyDeclaration&&Ut(t,"'accessor' modifier can only appear on a property declaration."),t.kind===ge.AsyncKeyword&&e.kind!==ge.MethodDeclaration&&e.kind!==ge.FunctionDeclaration&&e.kind!==ge.FunctionExpression&&e.kind!==ge.ArrowFunction&&Ut(t,"'async' modifier cannot be used here."),e.kind===ge.Parameter&&(t.kind===ge.StaticKeyword||t.kind===ge.ExportKeyword||t.kind===ge.DeclareKeyword||t.kind===ge.AsyncKeyword)&&Ut(t,`'${nt(t.kind)}' modifier cannot appear on a parameter.`),t.kind===ge.PublicKeyword||t.kind===ge.ProtectedKeyword||t.kind===ge.PrivateKeyword)for(let a of Rn(e)??[])a!==t&&(a.kind===ge.PublicKeyword||a.kind===ge.ProtectedKeyword||a.kind===ge.PrivateKeyword)&&Ut(a,"Accessibility modifier already seen.");if(e.kind===ge.Parameter&&(t.kind===ge.PublicKeyword||t.kind===ge.PrivateKeyword||t.kind===ge.ProtectedKeyword||t.kind===ge.ReadonlyKeyword||t.kind===ge.OverrideKeyword)){let a=Ev(e);a?.kind===ge.Constructor&&Lh(a.body)||Ut(t,"A parameter property is only allowed in a constructor implementation.");let _=e;_.dotDotDotToken&&Ut(t,"A parameter property cannot be a rest parameter."),(_.name.kind===ge.ArrayBindingPattern||_.name.kind===ge.ObjectBindingPattern)&&Ut(t,"A parameter property may not be declared using a binding pattern.")}t.kind!==ge.AsyncKeyword&&e.kind===ge.MethodDeclaration&&e.parent.kind===ge.ObjectLiteralExpression&&Ut(t,`'${nt(t.kind)}' modifier cannot be used here.`)}}var x=Ae;function nd(e){return w_("message"in e&&e.message||e.messageText,e.file,e.start)}function Pv(e){return dr(e)&&Ke(e.name)&&jh(e.expression)}function jh(e){return e.kind===x.Identifier||Pv(e)}var Rl=class{allowPattern=!1;ast;esTreeNodeToTSNodeMap=new WeakMap;options;tsNodeToESTreeNodeMap=new WeakMap;constructor(t,a){this.ast=t,this.options={...a}}#r(t,a){let _=a===Ae.ForInStatement?"for...in":"for...of";if(H1(t)){t.declarations.length!==1&&this.#e(t,`Only a single variable declaration is allowed in a '${_}' statement.`);let f=t.declarations[0];f.initializer?this.#e(f,`The variable declaration of a '${_}' statement cannot have an initializer.`):f.type&&this.#e(f,`The variable declaration of a '${_}' statement cannot have a type annotation.`),a===Ae.ForInStatement&&t.flags&sn.Using&&this.#e(t,"The left-hand side of a 'for...in' statement cannot be a 'using' declaration.")}else!Jl(t)&&t.kind!==Ae.ObjectLiteralExpression&&t.kind!==Ae.ArrayLiteralExpression&&this.#e(t,`The left-hand side of a '${_}' statement must be a variable or a property access.`)}#i(t){this.options.allowInvalidAST||Jh(t)}#e(t,a){if(this.options.allowInvalidAST)return;let _,f;throw Array.isArray(t)?[_,f]=t:typeof t=="number"?_=f=t:(_=t.getStart(this.ast),f=t.getEnd()),w_(a,this.ast,_,f)}#t(t,a,_,f=!1){let h=f;return Object.defineProperty(t,a,{configurable:!0,get:this.options.suppressDeprecatedPropertyWarnings?()=>t[_]:()=>(h||((void 0)(`The '${a}' property is deprecated on ${t.type} nodes. Use '${_}' instead. See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.`,"DeprecationWarning"),h=!0),t[_]),set(T){Object.defineProperty(t,a,{enumerable:!0,value:T,writable:!0})}}),t}#n(t,a,_,f){let h=!1;return Object.defineProperty(t,a,{configurable:!0,get:this.options.suppressDeprecatedPropertyWarnings?()=>f:()=>{if(!h){let T=`The '${a}' property is deprecated on ${t.type} nodes.`;_&&(T+=` Use ${_} instead.`),T+=" See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.",(void 0)(T,"DeprecationWarning"),h=!0}return f},set(T){Object.defineProperty(t,a,{enumerable:!0,value:T,writable:!0})}}),t}assertModuleSpecifier(t,a){!a&&t.moduleSpecifier==null&&this.#e(t,"Module specifier must be a string literal."),t.moduleSpecifier&&t.moduleSpecifier?.kind!==x.StringLiteral&&this.#e(t.moduleSpecifier,"Module specifier must be a string literal.")}convertBindingNameWithTypeAnnotation(t,a,_){let f=this.convertPattern(t);return a&&(f.typeAnnotation=this.convertTypeAnnotation(a,_),this.fixParentLocation(f,f.typeAnnotation.range)),f}convertBodyExpressions(t,a){let _=Ch(a);return t.map(f=>{let h=this.convertChild(f);if(_){if(h?.expression&&Pl(f)&&vi(f.expression)){let T=h.expression.raw;return h.directive=T.slice(1,-1),h}_=!1}return h}).filter(f=>f)}convertChainExpression(t,a){let{child:_,isOptional:f}=t.type===C.MemberExpression?{child:t.object,isOptional:t.optional}:t.type===C.CallExpression?{child:t.callee,isOptional:t.optional}:{child:t.expression,isOptional:!1},h=Ph(a,_);if(!h&&!f)return t;if(h&&ed(_)){let T=_.expression;t.type===C.MemberExpression?t.object=T:t.type===C.CallExpression?t.callee=T:t.expression=T}return this.createNode(a,{type:C.ChainExpression,expression:t})}convertChild(t,a){return this.converter(t,a,!1)}convertChildren(t,a){return t.map(_=>this.converter(_,a,!1))}convertPattern(t,a){return this.converter(t,a,!0)}convertTypeAnnotation(t,a){let _=a?.kind===x.FunctionType||a?.kind===x.ConstructorType?2:1,h=[t.getFullStart()-_,t.end],T=Kr(h,this.ast);return{type:C.TSTypeAnnotation,loc:T,range:h,typeAnnotation:this.convertChild(t)}}convertTypeArgumentsToTypeParameterInstantiation(t,a){let _=er(t,this.ast,this.ast),f=[t.pos-1,_.end];return t.length===0&&this.#e(f,"Type argument list cannot be empty."),this.createNode(a,{type:C.TSTypeParameterInstantiation,range:f,params:this.convertChildren(t)})}convertTSTypeParametersToTypeParametersDeclaration(t){let a=er(t,this.ast,this.ast),_=[t.pos-1,a.end];return t.length===0&&this.#e(_,"Type parameter list cannot be empty."),{type:C.TSTypeParameterDeclaration,loc:Kr(_,this.ast),range:_,params:this.convertChildren(t)}}convertParameters(t){return t?.length?t.map(a=>{let _=this.convertChild(a);return _.decorators=this.convertChildren(xi(a)??[]),_}):[]}converter(t,a,_){if(!t)return null;this.#i(t);let f=this.allowPattern;_!=null&&(this.allowPattern=_);let h=this.convertNode(t,a??t.parent);return this.registerTSNodeInNodeMap(t,h),this.allowPattern=f,h}convertImportAttributes(t){let a=t.attributes??t.assertClause;return this.convertChildren(a?.elements??[])}convertJSXIdentifier(t){let a=this.createNode(t,{type:C.JSXIdentifier,name:t.getText()});return this.registerTSNodeInNodeMap(t,a),a}convertJSXNamespaceOrIdentifier(t){if(t.kind===Ae.JsxNamespacedName){let f=this.createNode(t,{type:C.JSXNamespacedName,name:this.createNode(t.name,{type:C.JSXIdentifier,name:t.name.text}),namespace:this.createNode(t.namespace,{type:C.JSXIdentifier,name:t.namespace.text})});return this.registerTSNodeInNodeMap(t,f),f}let a=t.getText(),_=a.indexOf(":");if(_>0){let f=sa(t,this.ast),h=this.createNode(t,{type:C.JSXNamespacedName,range:f,name:this.createNode(t,{type:C.JSXIdentifier,range:[f[0]+_+1,f[1]],name:a.slice(_+1)}),namespace:this.createNode(t,{type:C.JSXIdentifier,range:[f[0],f[0]+_],name:a.slice(0,_)})});return this.registerTSNodeInNodeMap(t,h),h}return this.convertJSXIdentifier(t)}convertJSXTagName(t,a){let _;switch(t.kind){case x.PropertyAccessExpression:t.name.kind===x.PrivateIdentifier&&this.#e(t.name,"Non-private identifier expected."),_=this.createNode(t,{type:C.JSXMemberExpression,object:this.convertJSXTagName(t.expression,a),property:this.convertJSXIdentifier(t.name)});break;case x.ThisKeyword:case x.Identifier:default:return this.convertJSXNamespaceOrIdentifier(t)}return this.registerTSNodeInNodeMap(t,_),_}convertMethodSignature(t){return this.createNode(t,{type:C.TSMethodSignature,accessibility:Si(t),computed:_a(t.name),key:this.convertChild(t.name),kind:(()=>{switch(t.kind){case x.GetAccessor:return"get";case x.SetAccessor:return"set";case x.MethodSignature:return"method"}})(),optional:Zf(t),params:this.convertParameters(t.parameters),readonly:Ge(x.ReadonlyKeyword,t),returnType:t.type&&this.convertTypeAnnotation(t.type,t),static:Ge(x.StaticKeyword,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)})}fixParentLocation(t,a){a[0]t.range[1]&&(t.range[1]=a[1],t.loc.end=x_(t.range[1],this.ast))}convertNode(t,a){switch(t.kind){case x.SourceFile:return this.createNode(t,{type:C.Program,range:[t.getStart(this.ast),t.endOfFileToken.end],body:this.convertBodyExpressions(t.statements,t),comments:void 0,sourceType:t.externalModuleIndicator?"module":"script",tokens:void 0});case x.Block:return this.createNode(t,{type:C.BlockStatement,body:this.convertBodyExpressions(t.statements,t)});case x.Identifier:return Ih(t)?this.createNode(t,{type:C.ThisExpression}):this.createNode(t,{type:C.Identifier,decorators:[],name:t.text,optional:!1,typeAnnotation:void 0});case x.PrivateIdentifier:return this.createNode(t,{type:C.PrivateIdentifier,name:t.text.slice(1)});case x.WithStatement:return this.createNode(t,{type:C.WithStatement,body:this.convertChild(t.statement),object:this.convertChild(t.expression)});case x.ReturnStatement:return this.createNode(t,{type:C.ReturnStatement,argument:this.convertChild(t.expression)});case x.LabeledStatement:return this.createNode(t,{type:C.LabeledStatement,body:this.convertChild(t.statement),label:this.convertChild(t.label)});case x.ContinueStatement:return this.createNode(t,{type:C.ContinueStatement,label:this.convertChild(t.label)});case x.BreakStatement:return this.createNode(t,{type:C.BreakStatement,label:this.convertChild(t.label)});case x.IfStatement:return this.createNode(t,{type:C.IfStatement,alternate:this.convertChild(t.elseStatement),consequent:this.convertChild(t.thenStatement),test:this.convertChild(t.expression)});case x.SwitchStatement:return t.caseBlock.clauses.filter(_=>_.kind===x.DefaultClause).length>1&&this.#e(t,"A 'default' clause cannot appear more than once in a 'switch' statement."),this.createNode(t,{type:C.SwitchStatement,cases:this.convertChildren(t.caseBlock.clauses),discriminant:this.convertChild(t.expression)});case x.CaseClause:case x.DefaultClause:return this.createNode(t,{type:C.SwitchCase,consequent:this.convertChildren(t.statements),test:t.kind===x.CaseClause?this.convertChild(t.expression):null});case x.ThrowStatement:return t.expression.end===t.expression.pos&&this.#e(t,"A throw statement must throw an expression."),this.createNode(t,{type:C.ThrowStatement,argument:this.convertChild(t.expression)});case x.TryStatement:return this.createNode(t,{type:C.TryStatement,block:this.convertChild(t.tryBlock),finalizer:this.convertChild(t.finallyBlock),handler:this.convertChild(t.catchClause)});case x.CatchClause:return t.variableDeclaration?.initializer&&this.#e(t.variableDeclaration.initializer,"Catch clause variable cannot have an initializer."),this.createNode(t,{type:C.CatchClause,body:this.convertChild(t.block),param:t.variableDeclaration?this.convertBindingNameWithTypeAnnotation(t.variableDeclaration.name,t.variableDeclaration.type):null});case x.WhileStatement:return this.createNode(t,{type:C.WhileStatement,body:this.convertChild(t.statement),test:this.convertChild(t.expression)});case x.DoStatement:return this.createNode(t,{type:C.DoWhileStatement,body:this.convertChild(t.statement),test:this.convertChild(t.expression)});case x.ForStatement:return this.createNode(t,{type:C.ForStatement,body:this.convertChild(t.statement),init:this.convertChild(t.initializer),test:this.convertChild(t.condition),update:this.convertChild(t.incrementor)});case x.ForInStatement:return this.#r(t.initializer,t.kind),this.createNode(t,{type:C.ForInStatement,body:this.convertChild(t.statement),left:this.convertPattern(t.initializer),right:this.convertChild(t.expression)});case x.ForOfStatement:return this.#r(t.initializer,t.kind),this.createNode(t,{type:C.ForOfStatement,await:!!(t.awaitModifier&&t.awaitModifier.kind===x.AwaitKeyword),body:this.convertChild(t.statement),left:this.convertPattern(t.initializer),right:this.convertChild(t.expression)});case x.FunctionDeclaration:{let _=Ge(x.DeclareKeyword,t),f=Ge(x.AsyncKeyword,t),h=!!t.asteriskToken;_?t.body?this.#e(t,"An implementation cannot be declared in ambient contexts."):f?this.#e(t,"'async' modifier cannot be used in an ambient context."):h&&this.#e(t,"Generators are not allowed in an ambient context."):!t.body&&h&&this.#e(t,"A function signature cannot be declared as a generator.");let T=this.createNode(t,{type:t.body?C.FunctionDeclaration:C.TSDeclareFunction,async:f,body:this.convertChild(t.body)||void 0,declare:_,expression:!1,generator:h,id:this.convertChild(t.name),params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return this.fixExports(t,T)}case x.VariableDeclaration:{let _=!!t.exclamationToken,f=this.convertChild(t.initializer),h=this.convertBindingNameWithTypeAnnotation(t.name,t.type,t);return _&&(f?this.#e(t,"Declarations with initializers cannot also have definite assignment assertions."):(h.type!==C.Identifier||!h.typeAnnotation)&&this.#e(t,"Declarations with definite assignment assertions must also have type annotations.")),this.createNode(t,{type:C.VariableDeclarator,definite:_,id:h,init:f})}case x.VariableStatement:{let _=this.createNode(t,{type:C.VariableDeclaration,declarations:this.convertChildren(t.declarationList.declarations),declare:Ge(x.DeclareKeyword,t),kind:S_(t.declarationList)});return _.declarations.length||this.#e(t,"A variable declaration list must have at least one variable declarator."),(_.kind==="using"||_.kind==="await using")&&t.declarationList.declarations.forEach((f,h)=>{_.declarations[h].init==null&&this.#e(f,`'${_.kind}' declarations must be initialized.`),_.declarations[h].id.type!==C.Identifier&&this.#e(f.name,`'${_.kind}' declarations may not have binding patterns.`)}),(_.declare||["await using","const","using"].includes(_.kind))&&t.declarationList.declarations.forEach((f,h)=>{_.declarations[h].definite&&this.#e(f,"A definite assignment assertion '!' is not permitted in this context.")}),_.declare&&t.declarationList.declarations.forEach((f,h)=>{_.declarations[h].init&&(["let","var"].includes(_.kind)||_.declarations[h].id.typeAnnotation)&&this.#e(f,"Initializers are not permitted in ambient contexts.")}),this.fixExports(t,_)}case x.VariableDeclarationList:{let _=this.createNode(t,{type:C.VariableDeclaration,declarations:this.convertChildren(t.declarations),declare:!1,kind:S_(t)});return(_.kind==="using"||_.kind==="await using")&&t.declarations.forEach((f,h)=>{_.declarations[h].init!=null&&this.#e(f,`'${_.kind}' declarations may not be initialized in for statement.`),_.declarations[h].id.type!==C.Identifier&&this.#e(f.name,`'${_.kind}' declarations may not have binding patterns.`)}),_}case x.ExpressionStatement:return this.createNode(t,{type:C.ExpressionStatement,directive:void 0,expression:this.convertChild(t.expression)});case x.ThisKeyword:return this.createNode(t,{type:C.ThisExpression});case x.ArrayLiteralExpression:return this.allowPattern?this.createNode(t,{type:C.ArrayPattern,decorators:[],elements:t.elements.map(_=>this.convertPattern(_)),optional:!1,typeAnnotation:void 0}):this.createNode(t,{type:C.ArrayExpression,elements:this.convertChildren(t.elements)});case x.ObjectLiteralExpression:{if(this.allowPattern)return this.createNode(t,{type:C.ObjectPattern,decorators:[],optional:!1,properties:t.properties.map(f=>this.convertPattern(f)),typeAnnotation:void 0});let _=[];for(let f of t.properties)(f.kind===x.GetAccessor||f.kind===x.SetAccessor||f.kind===x.MethodDeclaration)&&!f.body&&this.#e(f.end-1,"'{' expected."),_.push(this.convertChild(f));return this.createNode(t,{type:C.ObjectExpression,properties:_})}case x.PropertyAssignment:{let{exclamationToken:_,questionToken:f}=t;return f&&this.#e(f,"A property assignment cannot have a question token."),_&&this.#e(_,"A property assignment cannot have an exclamation token."),this.createNode(t,{type:C.Property,computed:_a(t.name),key:this.convertChild(t.name),kind:"init",method:!1,optional:!1,shorthand:!1,value:this.converter(t.initializer,t,this.allowPattern)})}case x.ShorthandPropertyAssignment:{let{exclamationToken:_,modifiers:f,questionToken:h}=t;return f&&this.#e(f[0],"A shorthand property assignment cannot have modifiers."),h&&this.#e(h,"A shorthand property assignment cannot have a question token."),_&&this.#e(_,"A shorthand property assignment cannot have an exclamation token."),t.objectAssignmentInitializer?this.createNode(t,{type:C.Property,computed:!1,key:this.convertChild(t.name),kind:"init",method:!1,optional:!1,shorthand:!0,value:this.createNode(t,{type:C.AssignmentPattern,decorators:[],left:this.convertPattern(t.name),optional:!1,right:this.convertChild(t.objectAssignmentInitializer),typeAnnotation:void 0})}):this.createNode(t,{type:C.Property,computed:!1,key:this.convertChild(t.name),kind:"init",method:!1,optional:!1,shorthand:!0,value:this.convertChild(t.name)})}case x.ComputedPropertyName:return this.convertChild(t.expression);case x.PropertyDeclaration:{let _=Ge(x.AbstractKeyword,t);_&&t.initializer&&this.#e(t.initializer,"Abstract property cannot have an initializer."),t.name.kind===x.StringLiteral&&t.name.text==="constructor"&&this.#e(t.name,"Classes may not have a field named 'constructor'.");let f=Ge(x.AccessorKeyword,t),h=f?_?C.TSAbstractAccessorProperty:C.AccessorProperty:_?C.TSAbstractPropertyDefinition:C.PropertyDefinition,T=this.convertChild(t.name);return this.createNode(t,{type:h,accessibility:Si(t),computed:_a(t.name),declare:Ge(x.DeclareKeyword,t),decorators:this.convertChildren(xi(t)??[]),definite:!!t.exclamationToken,key:T,optional:(T.type===C.Literal||t.name.kind===x.Identifier||t.name.kind===x.ComputedPropertyName||t.name.kind===x.PrivateIdentifier)&&!!t.questionToken,override:Ge(x.OverrideKeyword,t),readonly:Ge(x.ReadonlyKeyword,t),static:Ge(x.StaticKeyword,t),typeAnnotation:t.type&&this.convertTypeAnnotation(t.type,t),value:_?null:this.convertChild(t.initializer)})}case x.GetAccessor:case x.SetAccessor:if(t.parent.kind===x.InterfaceDeclaration||t.parent.kind===x.TypeLiteral)return this.convertMethodSignature(t);case x.MethodDeclaration:{let _=Ge(x.AbstractKeyword,t);_&&t.body&&this.#e(t.name,t.kind===x.GetAccessor||t.kind===x.SetAccessor?"An abstract accessor cannot have an implementation.":`Method '${Mh(t.name,this.ast)}' cannot have an implementation because it is marked abstract.`);let f=this.createNode(t,{type:t.body?C.FunctionExpression:C.TSEmptyBodyFunctionExpression,range:[t.parameters.pos-1,t.end],async:Ge(x.AsyncKeyword,t),body:this.convertChild(t.body),declare:!1,expression:!1,generator:!!t.asteriskToken,id:null,params:[],returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});f.typeParameters&&this.fixParentLocation(f,f.typeParameters.range);let h;if(a.kind===x.ObjectLiteralExpression)f.params=this.convertChildren(t.parameters),h=this.createNode(t,{type:C.Property,computed:_a(t.name),key:this.convertChild(t.name),kind:"init",method:t.kind===x.MethodDeclaration,optional:!!t.questionToken,shorthand:!1,value:f});else{f.params=this.convertParameters(t.parameters);let T=_?C.TSAbstractMethodDefinition:C.MethodDefinition;h=this.createNode(t,{type:T,accessibility:Si(t),computed:_a(t.name),decorators:this.convertChildren(xi(t)??[]),key:this.convertChild(t.name),kind:"method",optional:!!t.questionToken,override:Ge(x.OverrideKeyword,t),static:Ge(x.StaticKeyword,t),value:f})}return t.kind===x.GetAccessor?h.kind="get":t.kind===x.SetAccessor?h.kind="set":!h.static&&t.name.kind===x.StringLiteral&&t.name.text==="constructor"&&h.type!==C.Property&&(h.kind="constructor"),h}case x.Constructor:{let _=kh(t),f=(_&&er(_,t,this.ast))??t.getFirstToken(),h=this.createNode(t,{type:t.body?C.FunctionExpression:C.TSEmptyBodyFunctionExpression,range:[t.parameters.pos-1,t.end],async:!1,body:this.convertChild(t.body),declare:!1,expression:!1,generator:!1,id:null,params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});h.typeParameters&&this.fixParentLocation(h,h.typeParameters.range);let T=f.kind===x.StringLiteral?this.createNode(f,{type:C.Literal,raw:f.getText(),value:"constructor"}):this.createNode(t,{type:C.Identifier,range:[f.getStart(this.ast),f.end],decorators:[],name:"constructor",optional:!1,typeAnnotation:void 0}),k=Ge(x.StaticKeyword,t);return this.createNode(t,{type:Ge(x.AbstractKeyword,t)?C.TSAbstractMethodDefinition:C.MethodDefinition,accessibility:Si(t),computed:!1,decorators:[],key:T,kind:k?"method":"constructor",optional:!1,override:!1,static:k,value:h})}case x.FunctionExpression:return this.createNode(t,{type:C.FunctionExpression,async:Ge(x.AsyncKeyword,t),body:this.convertChild(t.body),declare:!1,expression:!1,generator:!!t.asteriskToken,id:this.convertChild(t.name),params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});case x.SuperKeyword:return this.createNode(t,{type:C.Super});case x.ArrayBindingPattern:return this.createNode(t,{type:C.ArrayPattern,decorators:[],elements:t.elements.map(_=>this.convertPattern(_)),optional:!1,typeAnnotation:void 0});case x.OmittedExpression:return null;case x.ObjectBindingPattern:return this.createNode(t,{type:C.ObjectPattern,decorators:[],optional:!1,properties:t.elements.map(_=>this.convertPattern(_)),typeAnnotation:void 0});case x.BindingElement:{if(a.kind===x.ArrayBindingPattern){let f=this.convertChild(t.name,a);return t.initializer?this.createNode(t,{type:C.AssignmentPattern,decorators:[],left:f,optional:!1,right:this.convertChild(t.initializer),typeAnnotation:void 0}):t.dotDotDotToken?this.createNode(t,{type:C.RestElement,argument:f,decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):f}let _;return t.dotDotDotToken?_=this.createNode(t,{type:C.RestElement,argument:this.convertChild(t.propertyName??t.name),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):_=this.createNode(t,{type:C.Property,computed:!!(t.propertyName&&t.propertyName.kind===x.ComputedPropertyName),key:this.convertChild(t.propertyName??t.name),kind:"init",method:!1,optional:!1,shorthand:!t.propertyName,value:this.convertChild(t.name)}),t.initializer&&(_.value=this.createNode(t,{type:C.AssignmentPattern,range:[t.name.getStart(this.ast),t.initializer.end],decorators:[],left:this.convertChild(t.name),optional:!1,right:this.convertChild(t.initializer),typeAnnotation:void 0})),_}case x.ArrowFunction:return this.createNode(t,{type:C.ArrowFunctionExpression,async:Ge(x.AsyncKeyword,t),body:this.convertChild(t.body),expression:t.body.kind!==x.Block,generator:!1,id:null,params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});case x.YieldExpression:return this.createNode(t,{type:C.YieldExpression,argument:this.convertChild(t.expression),delegate:!!t.asteriskToken});case x.AwaitExpression:return this.createNode(t,{type:C.AwaitExpression,argument:this.convertChild(t.expression)});case x.NoSubstitutionTemplateLiteral:return this.createNode(t,{type:C.TemplateLiteral,expressions:[],quasis:[this.createNode(t,{type:C.TemplateElement,tail:!0,value:{cooked:t.text,raw:this.ast.text.slice(t.getStart(this.ast)+1,t.end-1)}})]});case x.TemplateExpression:{let _=this.createNode(t,{type:C.TemplateLiteral,expressions:[],quasis:[this.convertChild(t.head)]});return t.templateSpans.forEach(f=>{_.expressions.push(this.convertChild(f.expression)),_.quasis.push(this.convertChild(f.literal))}),_}case x.TaggedTemplateExpression:return t.tag.flags&sn.OptionalChain&&this.#e(t,"Tagged template expressions are not permitted in an optional chain."),this.createNode(t,{type:C.TaggedTemplateExpression,quasi:this.convertChild(t.template),tag:this.convertChild(t.tag),typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)});case x.TemplateHead:case x.TemplateMiddle:case x.TemplateTail:{let _=t.kind===x.TemplateTail;return this.createNode(t,{type:C.TemplateElement,tail:_,value:{cooked:t.text,raw:this.ast.text.slice(t.getStart(this.ast)+1,t.end-(_?1:2))}})}case x.SpreadAssignment:case x.SpreadElement:return this.allowPattern?this.createNode(t,{type:C.RestElement,argument:this.convertPattern(t.expression),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):this.createNode(t,{type:C.SpreadElement,argument:this.convertChild(t.expression)});case x.Parameter:{let _,f;return t.dotDotDotToken?_=f=this.createNode(t,{type:C.RestElement,argument:this.convertChild(t.name),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):t.initializer?(_=this.convertChild(t.name),f=this.createNode(t,{type:C.AssignmentPattern,range:[t.name.getStart(this.ast),t.initializer.end],decorators:[],left:_,optional:!1,right:this.convertChild(t.initializer),typeAnnotation:void 0}),Rn(t)&&(f.range[0]=_.range[0],f.loc=Kr(f.range,this.ast))):_=f=this.convertChild(t.name,a),t.type&&(_.typeAnnotation=this.convertTypeAnnotation(t.type,t),this.fixParentLocation(_,_.typeAnnotation.range)),t.questionToken&&(t.questionToken.end>_.range[1]&&(_.range[1]=t.questionToken.end,_.loc.end=x_(_.range[1],this.ast)),_.optional=!0),Rn(t)?this.createNode(t,{type:C.TSParameterProperty,accessibility:Si(t),decorators:[],override:Ge(x.OverrideKeyword,t),parameter:f,readonly:Ge(x.ReadonlyKeyword,t),static:Ge(x.StaticKeyword,t)}):f}case x.ClassDeclaration:!t.name&&(!Ge(Ae.ExportKeyword,t)||!Ge(Ae.DefaultKeyword,t))&&this.#e(t,"A class declaration without the 'default' modifier must have a name.");case x.ClassExpression:{let _=t.heritageClauses??[],f=t.kind===x.ClassDeclaration?C.ClassDeclaration:C.ClassExpression,h,T;for(let c of _){let{token:W,types:y}=c;y.length===0&&this.#e(c,`'${nt(W)}' list cannot be empty.`),W===x.ExtendsKeyword?(h&&this.#e(c,"'extends' clause already seen."),T&&this.#e(c,"'extends' clause must precede 'implements' clause."),y.length>1&&this.#e(y[1],"Classes can only extend a single class."),h??(h=c)):W===x.ImplementsKeyword&&(T&&this.#e(c,"'implements' clause already seen."),T??(T=c))}let k=this.createNode(t,{type:f,abstract:Ge(x.AbstractKeyword,t),body:this.createNode(t,{type:C.ClassBody,range:[t.members.pos-1,t.end],body:this.convertChildren(t.members.filter(wh))}),declare:Ge(x.DeclareKeyword,t),decorators:this.convertChildren(xi(t)??[]),id:this.convertChild(t.name),implements:this.convertChildren(T?.types??[]),superClass:h?.types[0]?this.convertChild(h.types[0].expression):null,superTypeArguments:void 0,typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return h?.types[0]?.typeArguments&&(k.superTypeArguments=this.convertTypeArgumentsToTypeParameterInstantiation(h.types[0].typeArguments,h.types[0])),this.fixExports(t,k)}case x.ModuleBlock:return this.createNode(t,{type:C.TSModuleBlock,body:this.convertBodyExpressions(t.statements,t)});case x.ImportDeclaration:{this.assertModuleSpecifier(t,!1);let _=this.createNode(t,this.#t({type:C.ImportDeclaration,attributes:this.convertImportAttributes(t),importKind:"value",source:this.convertChild(t.moduleSpecifier),specifiers:[]},"assertions","attributes",!0));if(t.importClause&&(t.importClause.isTypeOnly&&(_.importKind="type"),t.importClause.name&&_.specifiers.push(this.convertChild(t.importClause)),t.importClause.namedBindings))switch(t.importClause.namedBindings.kind){case x.NamespaceImport:_.specifiers.push(this.convertChild(t.importClause.namedBindings));break;case x.NamedImports:_.specifiers.push(...this.convertChildren(t.importClause.namedBindings.elements));break}return _}case x.NamespaceImport:return this.createNode(t,{type:C.ImportNamespaceSpecifier,local:this.convertChild(t.name)});case x.ImportSpecifier:return this.createNode(t,{type:C.ImportSpecifier,imported:this.convertChild(t.propertyName??t.name),importKind:t.isTypeOnly?"type":"value",local:this.convertChild(t.name)});case x.ImportClause:{let _=this.convertChild(t.name);return this.createNode(t,{type:C.ImportDefaultSpecifier,range:_.range,local:_})}case x.ExportDeclaration:return t.exportClause?.kind===x.NamedExports?(this.assertModuleSpecifier(t,!0),this.createNode(t,this.#t({type:C.ExportNamedDeclaration,attributes:this.convertImportAttributes(t),declaration:null,exportKind:t.isTypeOnly?"type":"value",source:this.convertChild(t.moduleSpecifier),specifiers:this.convertChildren(t.exportClause.elements,t)},"assertions","attributes",!0))):(this.assertModuleSpecifier(t,!1),this.createNode(t,this.#t({type:C.ExportAllDeclaration,attributes:this.convertImportAttributes(t),exported:t.exportClause?.kind===x.NamespaceExport?this.convertChild(t.exportClause.name):null,exportKind:t.isTypeOnly?"type":"value",source:this.convertChild(t.moduleSpecifier)},"assertions","attributes",!0)));case x.ExportSpecifier:{let _=t.propertyName??t.name;return _.kind===x.StringLiteral&&a.kind===x.ExportDeclaration&&a.moduleSpecifier?.kind!==x.StringLiteral&&this.#e(_,"A string literal cannot be used as a local exported binding without `from`."),this.createNode(t,{type:C.ExportSpecifier,exported:this.convertChild(t.name),exportKind:t.isTypeOnly?"type":"value",local:this.convertChild(_)})}case x.ExportAssignment:return t.isExportEquals?this.createNode(t,{type:C.TSExportAssignment,expression:this.convertChild(t.expression)}):this.createNode(t,{type:C.ExportDefaultDeclaration,declaration:this.convertChild(t.expression),exportKind:"value"});case x.PrefixUnaryExpression:case x.PostfixUnaryExpression:{let _=Qr(t.operator);return _==="++"||_==="--"?(Jl(t.operand)||this.#e(t.operand,"Invalid left-hand side expression in unary operation"),this.createNode(t,{type:C.UpdateExpression,argument:this.convertChild(t.operand),operator:_,prefix:t.kind===x.PrefixUnaryExpression})):this.createNode(t,{type:C.UnaryExpression,argument:this.convertChild(t.operand),operator:_,prefix:t.kind===x.PrefixUnaryExpression})}case x.DeleteExpression:return this.createNode(t,{type:C.UnaryExpression,argument:this.convertChild(t.expression),operator:"delete",prefix:!0});case x.VoidExpression:return this.createNode(t,{type:C.UnaryExpression,argument:this.convertChild(t.expression),operator:"void",prefix:!0});case x.TypeOfExpression:return this.createNode(t,{type:C.UnaryExpression,argument:this.convertChild(t.expression),operator:"typeof",prefix:!0});case x.TypeOperator:return this.createNode(t,{type:C.TSTypeOperator,operator:Qr(t.operator),typeAnnotation:this.convertChild(t.type)});case x.BinaryExpression:{if(t.operatorToken.kind!==x.InKeyword&&t.left.kind===x.PrivateIdentifier?this.#e(t.left,"Private identifiers cannot appear on the right-hand-side of an 'in' expression."):t.right.kind===x.PrivateIdentifier&&this.#e(t.right,"Private identifiers are only allowed on the left-hand-side of an 'in' expression."),Eh(t.operatorToken)){let f=this.createNode(t,{type:C.SequenceExpression,expressions:[]}),h=this.convertChild(t.left);return h.type===C.SequenceExpression&&t.left.kind!==x.ParenthesizedExpression?f.expressions.push(...h.expressions):f.expressions.push(h),f.expressions.push(this.convertChild(t.right)),f}let _=Ah(t.operatorToken);return this.allowPattern&&_.type===C.AssignmentExpression?this.createNode(t,{type:C.AssignmentPattern,decorators:[],left:this.convertPattern(t.left,t),optional:!1,right:this.convertChild(t.right),typeAnnotation:void 0}):this.createNode(t,{..._,left:this.converter(t.left,t,_.type===C.AssignmentExpression),right:this.convertChild(t.right)})}case x.PropertyAccessExpression:{let _=this.convertChild(t.expression),f=this.convertChild(t.name),T=this.createNode(t,{type:C.MemberExpression,computed:!1,object:_,optional:t.questionDotToken!=null,property:f});return this.convertChainExpression(T,t)}case x.ElementAccessExpression:{let _=this.convertChild(t.expression),f=this.convertChild(t.argumentExpression),T=this.createNode(t,{type:C.MemberExpression,computed:!0,object:_,optional:t.questionDotToken!=null,property:f});return this.convertChainExpression(T,t)}case x.CallExpression:{if(t.expression.kind===x.ImportKeyword)return t.arguments.length!==1&&t.arguments.length!==2&&this.#e(t.arguments[2]??t,"Dynamic import requires exactly one or two arguments."),this.createNode(t,this.#t({type:C.ImportExpression,options:t.arguments[1]?this.convertChild(t.arguments[1]):null,source:this.convertChild(t.arguments[0])},"attributes","options",!0));let _=this.convertChild(t.expression),f=this.convertChildren(t.arguments),h=t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t),T=this.createNode(t,{type:C.CallExpression,arguments:f,callee:_,optional:t.questionDotToken!=null,typeArguments:h});return this.convertChainExpression(T,t)}case x.NewExpression:{let _=t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t);return this.createNode(t,{type:C.NewExpression,arguments:this.convertChildren(t.arguments??[]),callee:this.convertChild(t.expression),typeArguments:_})}case x.ConditionalExpression:return this.createNode(t,{type:C.ConditionalExpression,alternate:this.convertChild(t.whenFalse),consequent:this.convertChild(t.whenTrue),test:this.convertChild(t.condition)});case x.MetaProperty:return this.createNode(t,{type:C.MetaProperty,meta:this.createNode(t.getFirstToken(),{type:C.Identifier,decorators:[],name:Qr(t.keywordToken),optional:!1,typeAnnotation:void 0}),property:this.convertChild(t.name)});case x.Decorator:return this.createNode(t,{type:C.Decorator,expression:this.convertChild(t.expression)});case x.StringLiteral:return this.createNode(t,{type:C.Literal,raw:t.getText(),value:a.kind===x.JsxAttribute?Kf(t.text):t.text});case x.NumericLiteral:return this.createNode(t,{type:C.Literal,raw:t.getText(),value:Number(t.text)});case x.BigIntLiteral:{let _=sa(t,this.ast),f=this.ast.text.slice(_[0],_[1]),h=Wr(0,f.slice(0,-1),"_",""),T=typeof BigInt<"u"?BigInt(h):null;return this.createNode(t,{type:C.Literal,range:_,bigint:T==null?h:String(T),raw:f,value:T})}case x.RegularExpressionLiteral:{let _=t.text.slice(1,t.text.lastIndexOf("/")),f=t.text.slice(t.text.lastIndexOf("/")+1),h=null;try{h=new RegExp(_,f)}catch{}return this.createNode(t,{type:C.Literal,raw:t.text,regex:{flags:f,pattern:_},value:h})}case x.TrueKeyword:return this.createNode(t,{type:C.Literal,raw:"true",value:!0});case x.FalseKeyword:return this.createNode(t,{type:C.Literal,raw:"false",value:!1});case x.NullKeyword:return this.createNode(t,{type:C.Literal,raw:"null",value:null});case x.EmptyStatement:return this.createNode(t,{type:C.EmptyStatement});case x.DebuggerStatement:return this.createNode(t,{type:C.DebuggerStatement});case x.JsxElement:return this.createNode(t,{type:C.JSXElement,children:this.convertChildren(t.children),closingElement:this.convertChild(t.closingElement),openingElement:this.convertChild(t.openingElement)});case x.JsxFragment:return this.createNode(t,{type:C.JSXFragment,children:this.convertChildren(t.children),closingFragment:this.convertChild(t.closingFragment),openingFragment:this.convertChild(t.openingFragment)});case x.JsxSelfClosingElement:return this.createNode(t,{type:C.JSXElement,children:[],closingElement:null,openingElement:this.createNode(t,{type:C.JSXOpeningElement,range:sa(t,this.ast),attributes:this.convertChildren(t.attributes.properties),name:this.convertJSXTagName(t.tagName,t),selfClosing:!0,typeArguments:t.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t):void 0})});case x.JsxOpeningElement:return this.createNode(t,{type:C.JSXOpeningElement,attributes:this.convertChildren(t.attributes.properties),name:this.convertJSXTagName(t.tagName,t),selfClosing:!1,typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)});case x.JsxClosingElement:return this.createNode(t,{type:C.JSXClosingElement,name:this.convertJSXTagName(t.tagName,t)});case x.JsxOpeningFragment:return this.createNode(t,{type:C.JSXOpeningFragment});case x.JsxClosingFragment:return this.createNode(t,{type:C.JSXClosingFragment});case x.JsxExpression:{let _=t.expression?this.convertChild(t.expression):this.createNode(t,{type:C.JSXEmptyExpression,range:[t.getStart(this.ast)+1,t.getEnd()-1]});return t.dotDotDotToken?this.createNode(t,{type:C.JSXSpreadChild,expression:_}):this.createNode(t,{type:C.JSXExpressionContainer,expression:_})}case x.JsxAttribute:return this.createNode(t,{type:C.JSXAttribute,name:this.convertJSXNamespaceOrIdentifier(t.name),value:this.convertChild(t.initializer)});case x.JsxText:{let _=t.getFullStart(),f=t.getEnd(),h=this.ast.text.slice(_,f);return this.createNode(t,{type:C.JSXText,range:[_,f],raw:h,value:Kf(h)})}case x.JsxSpreadAttribute:return this.createNode(t,{type:C.JSXSpreadAttribute,argument:this.convertChild(t.expression)});case x.QualifiedName:return this.createNode(t,{type:C.TSQualifiedName,left:this.convertChild(t.left),right:this.convertChild(t.right)});case x.TypeReference:return this.createNode(t,{type:C.TSTypeReference,typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t),typeName:this.convertChild(t.typeName)});case x.TypeParameter:return this.createNode(t,{type:C.TSTypeParameter,const:Ge(x.ConstKeyword,t),constraint:t.constraint&&this.convertChild(t.constraint),default:t.default?this.convertChild(t.default):void 0,in:Ge(x.InKeyword,t),name:this.convertChild(t.name),out:Ge(x.OutKeyword,t)});case x.ThisType:return this.createNode(t,{type:C.TSThisType});case x.AnyKeyword:case x.BigIntKeyword:case x.BooleanKeyword:case x.NeverKeyword:case x.NumberKeyword:case x.ObjectKeyword:case x.StringKeyword:case x.SymbolKeyword:case x.UnknownKeyword:case x.VoidKeyword:case x.UndefinedKeyword:case x.IntrinsicKeyword:return this.createNode(t,{type:C[`TS${x[t.kind]}`]});case x.NonNullExpression:{let _=this.createNode(t,{type:C.TSNonNullExpression,expression:this.convertChild(t.expression)});return this.convertChainExpression(_,t)}case x.TypeLiteral:return this.createNode(t,{type:C.TSTypeLiteral,members:this.convertChildren(t.members)});case x.ArrayType:return this.createNode(t,{type:C.TSArrayType,elementType:this.convertChild(t.elementType)});case x.IndexedAccessType:return this.createNode(t,{type:C.TSIndexedAccessType,indexType:this.convertChild(t.indexType),objectType:this.convertChild(t.objectType)});case x.ConditionalType:return this.createNode(t,{type:C.TSConditionalType,checkType:this.convertChild(t.checkType),extendsType:this.convertChild(t.extendsType),falseType:this.convertChild(t.falseType),trueType:this.convertChild(t.trueType)});case x.TypeQuery:return this.createNode(t,{type:C.TSTypeQuery,exprName:this.convertChild(t.exprName),typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)});case x.MappedType:return t.members&&t.members.length>0&&this.#e(t.members[0],"A mapped type may not declare properties or methods."),this.createNode(t,this.#n({type:C.TSMappedType,constraint:this.convertChild(t.typeParameter.constraint),key:this.convertChild(t.typeParameter.name),nameType:this.convertChild(t.nameType)??null,optional:t.questionToken?t.questionToken.kind===x.QuestionToken||Qr(t.questionToken.kind):!1,readonly:t.readonlyToken?t.readonlyToken.kind===x.ReadonlyKeyword||Qr(t.readonlyToken.kind):void 0,typeAnnotation:t.type&&this.convertChild(t.type)},"typeParameter","'constraint' and 'key'",this.convertChild(t.typeParameter)));case x.ParenthesizedExpression:return this.convertChild(t.expression,a);case x.TypeAliasDeclaration:{let _=this.createNode(t,{type:C.TSTypeAliasDeclaration,declare:Ge(x.DeclareKeyword,t),id:this.convertChild(t.name),typeAnnotation:this.convertChild(t.type),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return this.fixExports(t,_)}case x.MethodSignature:return this.convertMethodSignature(t);case x.PropertySignature:{let{initializer:_}=t;return _&&this.#e(_,"A property signature cannot have an initializer."),this.createNode(t,{type:C.TSPropertySignature,accessibility:Si(t),computed:_a(t.name),key:this.convertChild(t.name),optional:Zf(t),readonly:Ge(x.ReadonlyKeyword,t),static:Ge(x.StaticKeyword,t),typeAnnotation:t.type&&this.convertTypeAnnotation(t.type,t)})}case x.IndexSignature:return this.createNode(t,{type:C.TSIndexSignature,accessibility:Si(t),parameters:this.convertChildren(t.parameters),readonly:Ge(x.ReadonlyKeyword,t),static:Ge(x.StaticKeyword,t),typeAnnotation:t.type&&this.convertTypeAnnotation(t.type,t)});case x.ConstructorType:return this.createNode(t,{type:C.TSConstructorType,abstract:Ge(x.AbstractKeyword,t),params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});case x.FunctionType:{let{modifiers:_}=t;_&&this.#e(_[0],"A function type cannot have modifiers.")}case x.ConstructSignature:case x.CallSignature:{let _=t.kind===x.ConstructSignature?C.TSConstructSignatureDeclaration:t.kind===x.CallSignature?C.TSCallSignatureDeclaration:C.TSFunctionType;return this.createNode(t,{type:_,params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)})}case x.ExpressionWithTypeArguments:{let _=a.kind,f=_===x.InterfaceDeclaration?C.TSInterfaceHeritage:_===x.HeritageClause?C.TSClassImplements:C.TSInstantiationExpression;return this.createNode(t,{type:f,expression:this.convertChild(t.expression),typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)})}case x.InterfaceDeclaration:{let _=t.heritageClauses??[],f=[],h=!1;for(let k of _){k.token!==x.ExtendsKeyword&&this.#e(k,k.token===x.ImplementsKeyword?"Interface declaration cannot have 'implements' clause.":"Unexpected token."),h&&this.#e(k,"'extends' clause already seen."),h=!0;for(let c of k.types)(!jh(c.expression)||e1(c.expression))&&this.#e(c,"Interface declaration can only extend an identifier/qualified name with optional type arguments."),f.push(this.convertChild(c,t))}let T=this.createNode(t,{type:C.TSInterfaceDeclaration,body:this.createNode(t,{type:C.TSInterfaceBody,range:[t.members.pos-1,t.end],body:this.convertChildren(t.members)}),declare:Ge(x.DeclareKeyword,t),extends:f,id:this.convertChild(t.name),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return this.fixExports(t,T)}case x.TypePredicate:{let _=this.createNode(t,{type:C.TSTypePredicate,asserts:t.assertsModifier!=null,parameterName:this.convertChild(t.parameterName),typeAnnotation:null});return t.type&&(_.typeAnnotation=this.convertTypeAnnotation(t.type,t),_.typeAnnotation.loc=_.typeAnnotation.typeAnnotation.loc,_.typeAnnotation.range=_.typeAnnotation.typeAnnotation.range),_}case x.ImportType:{let _=sa(t,this.ast);if(t.isTypeOf){let c=er(t.getFirstToken(),t,this.ast);_[0]=c.getStart(this.ast)}let f=null;if(t.attributes){let c=this.createNode(t.attributes,{type:C.ObjectExpression,properties:t.attributes.elements.map(be=>this.createNode(be,{type:C.Property,computed:!1,key:this.convertChild(be.name),kind:"init",method:!1,optional:!1,shorthand:!1,value:this.convertChild(be.value)}))}),W=er(t.argument,t,this.ast),y=er(W,t,this.ast),G=er(t.attributes,t,this.ast),E=G.kind===Ae.CommaToken?er(G,t,this.ast):G,D=er(y,t,this.ast),R=sa(D,this.ast),ue=D.kind===Ae.AssertKeyword?"assert":"with";f=this.createNode(t,{type:C.ObjectExpression,range:[y.getStart(this.ast),E.end],properties:[this.createNode(t,{type:C.Property,range:[R[0],t.attributes.end],computed:!1,key:this.createNode(t,{type:C.Identifier,range:R,decorators:[],name:ue,optional:!1,typeAnnotation:void 0}),kind:"init",method:!1,optional:!1,shorthand:!1,value:c})]})}let h=this.convertChild(t.argument),T=h.literal,k=this.createNode(t,this.#n({type:C.TSImportType,range:_,options:f,qualifier:this.convertChild(t.qualifier),source:T,typeArguments:t.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t):null},"argument","source",h));return t.isTypeOf?this.createNode(t,{type:C.TSTypeQuery,exprName:k,typeArguments:void 0}):k}case x.EnumDeclaration:{let _=this.convertChildren(t.members),f=this.createNode(t,this.#n({type:C.TSEnumDeclaration,body:this.createNode(t,{type:C.TSEnumBody,range:[t.members.pos-1,t.end],members:_}),const:Ge(x.ConstKeyword,t),declare:Ge(x.DeclareKeyword,t),id:this.convertChild(t.name)},"members","'body.members'",this.convertChildren(t.members)));return this.fixExports(t,f)}case x.EnumMember:{let _=t.name.kind===Ae.ComputedPropertyName;return _&&this.#e(t.name,"Computed property names are not allowed in enums."),(t.name.kind===x.NumericLiteral||t.name.kind===x.BigIntLiteral)&&this.#e(t.name,"An enum member cannot have a numeric name."),this.createNode(t,this.#n({type:C.TSEnumMember,id:this.convertChild(t.name),initializer:t.initializer&&this.convertChild(t.initializer)},"computed",void 0,_))}case x.ModuleDeclaration:{let _=Ge(x.DeclareKeyword,t),f=this.createNode(t,{type:C.TSModuleDeclaration,...(()=>{if(t.flags&sn.GlobalAugmentation){let T=this.convertChild(t.name),k=this.convertChild(t.body);return(k==null||k.type===C.TSModuleDeclaration)&&this.#e(t.body??t,"Expected a valid module body"),T.type!==C.Identifier&&this.#e(t.name,"global module augmentation must have an Identifier id"),{body:k,declare:!1,global:!1,id:T,kind:"global"}}if(vi(t.name)){let T=this.convertChild(t.body);return{kind:"module",...T!=null?{body:T}:{},declare:!1,global:!1,id:this.convertChild(t.name)}}t.body==null&&this.#e(t,"Expected a module body"),t.name.kind!==Ae.Identifier&&this.#e(t.name,"`namespace`s must have an Identifier id");let h=this.createNode(t.name,{type:C.Identifier,range:[t.name.getStart(this.ast),t.name.getEnd()],decorators:[],name:t.name.text,optional:!1,typeAnnotation:void 0});for(;t.body&&Ti(t.body)&&t.body.name;){t=t.body,_||(_=Ge(x.DeclareKeyword,t));let T=t.name,k=this.createNode(T,{type:C.Identifier,range:[T.getStart(this.ast),T.getEnd()],decorators:[],name:T.text,optional:!1,typeAnnotation:void 0});h=this.createNode(T,{type:C.TSQualifiedName,range:[h.range[0],k.range[1]],left:h,right:k})}return{body:this.convertChild(t.body),declare:!1,global:!1,id:h,kind:t.flags&sn.Namespace?"namespace":"module"}})()});return f.declare=_,t.flags&sn.GlobalAugmentation&&(f.global=!0),this.fixExports(t,f)}case x.ParenthesizedType:return this.convertChild(t.type);case x.UnionType:return this.createNode(t,{type:C.TSUnionType,types:this.convertChildren(t.types)});case x.IntersectionType:return this.createNode(t,{type:C.TSIntersectionType,types:this.convertChildren(t.types)});case x.AsExpression:return this.createNode(t,{type:C.TSAsExpression,expression:this.convertChild(t.expression),typeAnnotation:this.convertChild(t.type)});case x.InferType:return this.createNode(t,{type:C.TSInferType,typeParameter:this.convertChild(t.typeParameter)});case x.LiteralType:return t.literal.kind===x.NullKeyword?this.createNode(t.literal,{type:C.TSNullKeyword}):this.createNode(t,{type:C.TSLiteralType,literal:this.convertChild(t.literal)});case x.TypeAssertionExpression:return this.createNode(t,{type:C.TSTypeAssertion,expression:this.convertChild(t.expression),typeAnnotation:this.convertChild(t.type)});case x.ImportEqualsDeclaration:return this.fixExports(t,this.createNode(t,{type:C.TSImportEqualsDeclaration,id:this.convertChild(t.name),importKind:t.isTypeOnly?"type":"value",moduleReference:this.convertChild(t.moduleReference)}));case x.ExternalModuleReference:return t.expression.kind!==x.StringLiteral&&this.#e(t.expression,"String literal expected."),this.createNode(t,{type:C.TSExternalModuleReference,expression:this.convertChild(t.expression)});case x.NamespaceExportDeclaration:return this.createNode(t,{type:C.TSNamespaceExportDeclaration,id:this.convertChild(t.name)});case x.AbstractKeyword:return this.createNode(t,{type:C.TSAbstractKeyword});case x.TupleType:{let _=this.convertChildren(t.elements);return this.createNode(t,{type:C.TSTupleType,elementTypes:_})}case x.NamedTupleMember:{let _=this.createNode(t,{type:C.TSNamedTupleMember,elementType:this.convertChild(t.type,t),label:this.convertChild(t.name,t),optional:t.questionToken!=null});return t.dotDotDotToken?(_.range[0]=_.label.range[0],_.loc.start=_.label.loc.start,this.createNode(t,{type:C.TSRestType,typeAnnotation:_})):_}case x.OptionalType:return this.createNode(t,{type:C.TSOptionalType,typeAnnotation:this.convertChild(t.type)});case x.RestType:return this.createNode(t,{type:C.TSRestType,typeAnnotation:this.convertChild(t.type)});case x.TemplateLiteralType:{let _=this.createNode(t,{type:C.TSTemplateLiteralType,quasis:[this.convertChild(t.head)],types:[]});return t.templateSpans.forEach(f=>{_.types.push(this.convertChild(f.type)),_.quasis.push(this.convertChild(f.literal))}),_}case x.ClassStaticBlockDeclaration:return this.createNode(t,{type:C.StaticBlock,body:this.convertBodyExpressions(t.body.statements,t)});case x.AssertEntry:case x.ImportAttribute:return this.createNode(t,{type:C.ImportAttribute,key:this.convertChild(t.name),value:this.convertChild(t.value)});case x.SatisfiesExpression:return this.createNode(t,{type:C.TSSatisfiesExpression,expression:this.convertChild(t.expression),typeAnnotation:this.convertChild(t.type)});default:return this.deeplyCopy(t)}}createNode(t,a){let _=a;return _.range??(_.range=sa(t,this.ast)),_.loc??(_.loc=Kr(_.range,this.ast)),_&&this.options.shouldPreserveNodeMaps&&this.esTreeNodeToTSNodeMap.set(_,t),_}convertProgram(){return this.converter(this.ast)}deeplyCopy(t){t.kind===Ae.JSDocFunctionType&&this.#e(t,"JSDoc types can only be used inside documentation comments.");let a=`TS${x[t.kind]}`;if(this.options.errorOnUnknownASTType&&!C[a])throw new Error(`Unknown AST_NODE_TYPE: "${a}"`);let _=this.createNode(t,{type:a});"type"in t&&(_.typeAnnotation=t.type&&"kind"in t.type&&i1(t.type)?this.convertTypeAnnotation(t.type,t):null),"typeArguments"in t&&(_.typeArguments=t.typeArguments&&"pos"in t.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t):null),"typeParameters"in t&&(_.typeParameters=t.typeParameters&&"pos"in t.typeParameters?this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters):null);let f=xi(t);f?.length&&(_.decorators=this.convertChildren(f));let h=new Set(["_children","decorators","end","flags","heritageClauses","illegalDecorators","jsDoc","kind","locals","localSymbol","modifierFlagsCache","modifiers","nextContainer","parent","pos","symbol","transformFlags","type","typeArguments","typeParameters"]);return Object.entries(t).filter(([T])=>!h.has(T)).forEach(([T,k])=>{Array.isArray(k)?_[T]=this.convertChildren(k):k&&typeof k=="object"&&k.kind?_[T]=this.convertChild(k):_[T]=k}),_}fixExports(t,a){let f=Ti(t)&&!vi(t.name)?Oh(t):Rn(t);if(f?.[0].kind===x.ExportKeyword){this.registerTSNodeInNodeMap(t,a);let h=f[0],T=f[1],k=T?.kind===x.DefaultKeyword,c=k?er(T,this.ast,this.ast):er(h,this.ast,this.ast);if(a.range[0]=c.getStart(this.ast),a.loc=Kr(a.range,this.ast),k)return this.createNode(t,{type:C.ExportDefaultDeclaration,range:[h.getStart(this.ast),a.range[1]],declaration:a,exportKind:"value"});let W=a.type===C.TSInterfaceDeclaration||a.type===C.TSTypeAliasDeclaration,y="declare"in a&&a.declare;return this.createNode(t,this.#t({type:C.ExportNamedDeclaration,range:[h.getStart(this.ast),a.range[1]],attributes:[],declaration:a,exportKind:W||y?"type":"value",source:null,specifiers:[]},"assertions","attributes",!0))}return a}getASTMaps(){return{esTreeNodeToTSNodeMap:this.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:this.tsNodeToESTreeNodeMap}}registerTSNodeInNodeMap(t,a){a&&this.options.shouldPreserveNodeMaps&&!this.tsNodeToESTreeNodeMap.has(t)&&this.tsNodeToESTreeNodeMap.set(t,a)}};function Nv(e,t,a=e.getSourceFile()){let _=[];for(;;){if(df(e.kind))t(e);else{let f=e.getChildren(a);if(f.length===1){e=f[0];continue}for(let h=f.length-1;h>=0;--h)_.push(f[h])}if(_.length===0)break;e=_.pop()}}function Uh(e,t,a=e.getSourceFile()){let _=a.text,f=a.languageVariant!==wl.JSX;return Nv(e,T=>{if(T.pos!==T.end&&(T.kind!==Ae.JsxText&&Vm(_,T.pos===0?(af(_)??"").length:T.pos,h),f||Iv(T)))return Wm(_,T.end,h)},a);function h(T,k,c){t(_,{end:k,kind:c,pos:T})}}function Iv(e){switch(e.kind){case Ae.CloseBraceToken:return e.parent.kind!==Ae.JsxExpression||!rd(e.parent.parent);case Ae.GreaterThanToken:switch(e.parent.kind){case Ae.JsxClosingElement:case Ae.JsxClosingFragment:return!rd(e.parent.parent.parent);case Ae.JsxOpeningElement:return e.end!==e.parent.end;case Ae.JsxOpeningFragment:return!1;case Ae.JsxSelfClosingElement:return e.end!==e.parent.end||!rd(e.parent.parent)}}return!0}function rd(e){return e.kind===Ae.JsxElement||e.kind===Ae.JsxFragment}var[rx,ix]=gm.split(".").map(e=>Number.parseInt(e,10));var ax=en.Intrinsic??en.Any|en.Unknown|en.String|en.Number|en.BigInt|en.Boolean|en.BooleanLiteral|en.ESSymbol|en.Void|en.Undefined|en.Null|en.Never|en.NonPrimitive;function Bh(e,t){let a=[];return Uh(e,(_,f)=>{let h=f.kind===Ae.SingleLineCommentTrivia?Rt.Line:Rt.Block,T=[f.pos,f.end],k=Kr(T,e),c=T[0]+2,W=f.kind===Ae.SingleLineCommentTrivia?T[1]:T[1]-2;a.push({type:h,loc:k,range:T,value:t.slice(c,W)})},e),a}var qh=()=>{};function Fh(e,t,a){let{parseDiagnostics:_}=e;if(_.length)throw nd(_[0]);let f=new Rl(e,{allowInvalidAST:t.allowInvalidAST,errorOnUnknownASTType:t.errorOnUnknownASTType,shouldPreserveNodeMaps:a,suppressDeprecatedPropertyWarnings:t.suppressDeprecatedPropertyWarnings}),h=f.convertProgram();return(!t.range||!t.loc)&&qh(h,{enter:k=>{t.range||delete k.range,t.loc||delete k.loc}}),t.tokens&&(h.tokens=Nh(e)),t.comment&&(h.comments=Bh(e,t.codeFullText)),{astMaps:f.getASTMaps(),estree:h}}function Ul(e){if(typeof e!="object"||e==null)return!1;let t=e;return t.kind===Ae.SourceFile&&typeof t.getFullText=="function"}var Uv=function(e){return e&&e.__esModule?e:{default:e}};var Bv=Uv({extname:e=>"."+e.split(".").pop()});function Vh(e,t){switch(Bv.default.extname(e).toLowerCase()){case Cn.Cjs:case Cn.Js:case Cn.Mjs:return Pr.JS;case Cn.Cts:case Cn.Mts:case Cn.Ts:return Pr.TS;case Cn.Json:return Pr.JSON;case Cn.Jsx:return Pr.JSX;case Cn.Tsx:return Pr.TSX;default:return t?Pr.TSX:Pr.TS}}var Fv={default:Na},zv=(0,Fv.default)("typescript-eslint:typescript-estree:create-program:createSourceFile");function Wh(e){return zv("Getting AST without type information in %s mode for: %s",e.jsx?"TSX":"TS",e.filePath),Ul(e.code)?e.code:lh(e.filePath,e.codeFullText,{jsDocParsingMode:e.jsDocParsingMode,languageVersion:g_.Latest,setExternalModuleIndicator:e.setExternalModuleIndicator},!0,Vh(e.filePath,e.jsx))}var Gh=e=>e;var Yh=()=>{};var Hh=class{};var $h=()=>!1;var Qh=()=>{};var n4=function(e){return e&&e.__esModule?e:{default:e}};var r4={},id={default:Na},i4=n4({extname:e=>"."+e.split(".").pop()}),a4=(0,id.default)("typescript-eslint:typescript-estree:parseSettings:createParseSettings"),s4,Kh=null,k_={ParseAll:Ya?.ParseAll,ParseForTypeErrors:Ya?.ParseForTypeErrors,ParseForTypeInfo:Ya?.ParseForTypeInfo,ParseNone:Ya?.ParseNone};function Zh(e,t={}){let a=_4(e),_=$h(t),f=void 0,h=typeof t.loggerFn=="function",T=Gh(typeof t.filePath=="string"&&t.filePath!==""?t.filePath:o4(t.jsx),f),k=i4.default.extname(T).toLowerCase(),c=(()=>{switch(t.jsDocParsingMode){case"all":return k_.ParseAll;case"none":return k_.ParseNone;case"type-info":return k_.ParseForTypeInfo;default:return k_.ParseAll}})(),W={loc:t.loc===!0,range:t.range===!0,allowInvalidAST:t.allowInvalidAST===!0,code:e,codeFullText:a,comment:t.comment===!0,comments:[],debugLevel:t.debugLevel===!0?new Set(["typescript-eslint"]):Array.isArray(t.debugLevel)?new Set(t.debugLevel):new Set,errorOnTypeScriptSyntacticAndSemanticIssues:!1,errorOnUnknownASTType:t.errorOnUnknownASTType===!0,extraFileExtensions:Array.isArray(t.extraFileExtensions)&&t.extraFileExtensions.every(y=>typeof y=="string")?t.extraFileExtensions:[],filePath:T,jsDocParsingMode:c,jsx:t.jsx===!0,log:typeof t.loggerFn=="function"?t.loggerFn:t.loggerFn===!1?()=>{}:console.log,preserveNodeMaps:t.preserveNodeMaps!==!1,programs:Array.isArray(t.programs)?t.programs:null,projects:new Map,projectService:t.projectService||t.project&&t.projectService!==!1&&(void 0).env.TYPESCRIPT_ESLINT_PROJECT_SERVICE==="true"?c4(t.projectService,{jsDocParsingMode:c,tsconfigRootDir:f}):void 0,setExternalModuleIndicator:t.sourceType==="module"||t.sourceType==null&&k===Cn.Mjs||t.sourceType==null&&k===Cn.Mts?y=>{y.externalModuleIndicator=!0}:void 0,singleRun:_,suppressDeprecatedPropertyWarnings:t.suppressDeprecatedPropertyWarnings??!0,tokens:t.tokens===!0?[]:null,tsconfigMatchCache:s4??(s4=new Hh(_?"Infinity":t.cacheLifetime?.glob??void 0)),tsconfigRootDir:f};if(W.projectService&&t.project&&(void 0).env.TYPESCRIPT_ESLINT_IGNORE_PROJECT_AND_PROJECT_SERVICE_ERROR!=="true")throw new Error('Enabling "project" does nothing when "projectService" is enabled. You can remove the "project" setting.');if(W.debugLevel.size>0){let y=[];W.debugLevel.has("typescript-eslint")&&y.push("typescript-eslint:*"),(W.debugLevel.has("eslint")||id.default.enabled("eslint:*,-eslint:code-path"))&&y.push("eslint:*,-eslint:code-path"),id.default.enable(y.join(","))}if(Array.isArray(t.programs)){if(!t.programs.length)throw new Error("You have set parserOptions.programs to an empty array. This will cause all files to not be found in existing programs. Either provide one or more existing TypeScript Program instances in the array, or remove the parserOptions.programs setting.");a4("parserOptions.programs was provided, so parserOptions.project will be ignored.")}return!W.programs&&!W.projectService&&(W.projects=new Map),t.jsDocParsingMode==null&&W.projects.size===0&&W.programs==null&&W.projectService==null&&(W.jsDocParsingMode=k_.ParseNone),Qh(W,h),W}function _4(e){return Ul(e)?e.getFullText(e):typeof e=="string"?e:String(e)}function o4(e){return e?"estree.tsx":"estree.ts"}function c4(e,t){let a=typeof e=="object"?e:{};return Yh(a.allowDefaultProject),Kh??(Kh=(0,r4.createProjectService)({options:a,...t})),Kh}var f4={default:Na},Tx=(0,f4.default)("typescript-eslint:typescript-estree:parser");function e0(e,t){let{ast:a}=d4(e,t,!1);return a}function d4(e,t,a){let _=Zh(e,t);if(t?.errorOnTypeScriptSyntacticAndSemanticIssues)throw new Error('"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()');let f=Wh(_),{astMaps:h,estree:T}=Fh(f,_,a);return{ast:T,esTreeNodeToTSNodeMap:h.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:h.tsNodeToESTreeNodeMap}}function m4(e,t){let a=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(a,t)}var t0=m4;function n0(e){let t=[];for(let a of e)try{return a()}catch(_){t.push(_)}throw Object.assign(new Error("All combinations failed"),{errors:t})}var h4=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let a=this[t];if(e(a,t,this))return a}},y4=Ia("findLast",function(){if(Array.isArray(this))return h4}),r0=y4;function g4(e){return this[e<0?this.length+e:e]}var b4=Ia("at",function(){if(Array.isArray(this)||typeof this=="string")return g4}),i0=b4;function tr(e){let t=e.range?.[0]??e.start,a=(e.declaration?.decorators??e.decorators)?.[0];return a?Math.min(tr(a),t):t}function Un(e){return e.range?.[1]??e.end}function v4(e){let t=new Set(e);return a=>t.has(a?.type)}var $a=v4;var T4=$a(["Block","CommentBlock","MultiLine"]),Qa=T4;var x4=$a(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),a0=x4;var ad=new WeakMap;function S4(e){return ad.has(e)||ad.set(e,Qa(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)),ad.get(e)}var s0=S4;function w4(e){if(!Qa(e))return!1;let t=`*${e.value}*`.split(` +`);return t.length>1&&t.every(a=>a.trimStart()[0]==="*")}var sd=new WeakMap;function k4(e){return sd.has(e)||sd.set(e,w4(e)),sd.get(e)}var _d=k4;function E4(e){if(e.length<2)return;let t;for(let a=e.length-1;a>=0;a--){let _=e[a];if(t&&Un(_)===tr(t)&&_d(_)&&_d(t)&&(e.splice(a+1,1),_.value+="*//*"+t.value,_.range=[tr(_),Un(t)]),!a0(_)&&!Qa(_))throw new TypeError(`Unknown comment type: "${_.type}".`);t=_}}var _0=E4;function A4(e){return e!==null&&typeof e=="object"}var o0=A4;var E_=null;function A_(e){if(E_!==null&&typeof E_.property){let t=E_;return E_=A_.prototype=null,t}return E_=A_.prototype=e??Object.create(null),new A_}var C4=10;for(let e=0;e<=C4;e++)A_();function od(e){return A_(e)}function D4(e,t="type"){od(e);function a(_){let f=_[t],h=e[f];if(!Array.isArray(h))throw Object.assign(new Error(`Missing visitor keys for '${f}'.`),{node:_});return h}return a}var c0=D4;var w=[["decorators","key","typeAnnotation","value"],[],["elementType"],["expression"],["expression","typeAnnotation"],["left","right"],["argument"],["directives","body"],["label"],["callee","typeArguments","arguments"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body","superTypeParameters"],["id","typeParameters"],["decorators","key","typeParameters","params","returnType","body"],["decorators","variance","key","typeAnnotation","value"],["name","typeAnnotation"],["test","consequent","alternate"],["checkType","extendsType","trueType","falseType"],["value"],["id","body"],["declaration","specifiers","source","attributes"],["id"],["id","typeParameters","extends","body"],["typeAnnotation"],["id","typeParameters","right"],["body","test"],["members"],["id","init"],["exported"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["id","params","body","typeParameters","returnType"],["key","value"],["local"],["objectType","indexType"],["typeParameter"],["types"],["node"],["object","property"],["argument","cases"],["pattern","body","guard"],["literal"],["decorators","key","value"],["expressions"],["qualification","id"],["decorators","key","typeAnnotation"],["typeParameters","params","returnType"],["expression","typeArguments"],["params"],["parameterName","typeAnnotation"]],l0={AccessorProperty:w[0],AnyTypeAnnotation:w[1],ArgumentPlaceholder:w[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:w[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:w[3],AsExpression:w[4],AssignmentExpression:w[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:w[6],BigIntLiteral:w[1],BigIntLiteralTypeAnnotation:w[1],BigIntTypeAnnotation:w[1],BinaryExpression:w[5],BindExpression:["object","callee"],BlockStatement:w[7],BooleanLiteral:w[1],BooleanLiteralTypeAnnotation:w[1],BooleanTypeAnnotation:w[1],BreakStatement:w[8],CallExpression:w[9],CatchClause:["param","body"],ChainExpression:w[3],ClassAccessorProperty:w[0],ClassBody:w[10],ClassDeclaration:w[11],ClassExpression:w[11],ClassImplements:w[12],ClassMethod:w[13],ClassPrivateMethod:w[13],ClassPrivateProperty:w[14],ClassProperty:w[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:w[15],ConditionalExpression:w[16],ConditionalTypeAnnotation:w[17],ContinueStatement:w[8],DebuggerStatement:w[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:w[18],DeclareEnum:w[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:w[20],DeclareFunction:["id","predicate"],DeclareHook:w[21],DeclareInterface:w[22],DeclareModule:w[19],DeclareModuleExports:w[23],DeclareNamespace:w[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:w[24],DeclareVariable:w[21],Decorator:w[3],Directive:w[18],DirectiveLiteral:w[1],DoExpression:w[10],DoWhileStatement:w[25],EmptyStatement:w[1],EmptyTypeAnnotation:w[1],EnumBigIntBody:w[26],EnumBigIntMember:w[27],EnumBooleanBody:w[26],EnumBooleanMember:w[27],EnumDeclaration:w[19],EnumDefaultedMember:w[21],EnumNumberBody:w[26],EnumNumberMember:w[27],EnumStringBody:w[26],EnumStringMember:w[27],EnumSymbolBody:w[26],ExistsTypeAnnotation:w[1],ExperimentalRestProperty:w[6],ExperimentalSpreadProperty:w[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:w[28],ExportNamedDeclaration:w[20],ExportNamespaceSpecifier:w[28],ExportSpecifier:["local","exported"],ExpressionStatement:w[3],File:["program"],ForInStatement:w[29],ForOfStatement:w[29],ForStatement:["init","test","update","body"],FunctionDeclaration:w[30],FunctionExpression:w[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:w[15],GenericTypeAnnotation:w[12],HookDeclaration:w[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:w[16],ImportAttribute:w[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:w[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:w[33],ImportSpecifier:["imported","local"],IndexedAccessType:w[34],InferredPredicate:w[1],InferTypeAnnotation:w[35],InterfaceDeclaration:w[22],InterfaceExtends:w[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:w[1],IntersectionTypeAnnotation:w[36],JsExpressionRoot:w[37],JsonRoot:w[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:w[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:w[1],JSXExpressionContainer:w[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:w[1],JSXMemberExpression:w[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:w[1],JSXSpreadAttribute:w[6],JSXSpreadChild:w[3],JSXText:w[1],KeyofTypeAnnotation:w[6],LabeledStatement:["label","body"],Literal:w[1],LogicalExpression:w[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:w[21],MatchExpression:w[39],MatchExpressionCase:w[40],MatchIdentifierPattern:w[21],MatchLiteralPattern:w[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:w[6],MatchStatement:w[39],MatchStatementCase:w[40],MatchUnaryPattern:w[6],MatchWildcardPattern:w[1],MemberExpression:w[38],MetaProperty:["meta","property"],MethodDefinition:w[42],MixedTypeAnnotation:w[1],ModuleExpression:w[10],NeverTypeAnnotation:w[1],NewExpression:w[9],NGChainedExpression:w[43],NGEmptyExpression:w[1],NGMicrosyntax:w[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:w[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:w[32],NGPipeExpression:["left","right","arguments"],NGRoot:w[37],NullableTypeAnnotation:w[23],NullLiteral:w[1],NullLiteralTypeAnnotation:w[1],NumberLiteralTypeAnnotation:w[1],NumberTypeAnnotation:w[1],NumericLiteral:w[1],ObjectExpression:["properties"],ObjectMethod:w[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:w[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:w[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:w[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:w[9],OptionalIndexedAccessType:w[34],OptionalMemberExpression:w[38],ParenthesizedExpression:w[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:w[1],PipelineTopicExpression:w[3],Placeholder:w[1],PrivateIdentifier:w[1],PrivateName:w[21],Program:w[7],Property:w[32],PropertyDefinition:w[14],QualifiedTypeIdentifier:w[44],QualifiedTypeofIdentifier:w[44],RegExpLiteral:w[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:w[6],SatisfiesExpression:w[4],SequenceExpression:w[43],SpreadElement:w[6],StaticBlock:w[10],StringLiteral:w[1],StringLiteralTypeAnnotation:w[1],StringTypeAnnotation:w[1],Super:w[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:w[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:w[1],TemplateLiteral:["quasis","expressions"],ThisExpression:w[1],ThisTypeAnnotation:w[1],ThrowStatement:w[6],TopicReference:w[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:w[45],TSAbstractKeyword:w[1],TSAbstractMethodDefinition:w[32],TSAbstractPropertyDefinition:w[45],TSAnyKeyword:w[1],TSArrayType:w[2],TSAsExpression:w[4],TSAsyncKeyword:w[1],TSBigIntKeyword:w[1],TSBooleanKeyword:w[1],TSCallSignatureDeclaration:w[46],TSClassImplements:w[47],TSConditionalType:w[17],TSConstructorType:w[46],TSConstructSignatureDeclaration:w[46],TSDeclareFunction:w[31],TSDeclareKeyword:w[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:w[26],TSEnumDeclaration:w[19],TSEnumMember:["id","initializer"],TSExportAssignment:w[3],TSExportKeyword:w[1],TSExternalModuleReference:w[3],TSFunctionType:w[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:w[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:w[35],TSInstantiationExpression:w[47],TSInterfaceBody:w[10],TSInterfaceDeclaration:w[22],TSInterfaceHeritage:w[47],TSIntersectionType:w[36],TSIntrinsicKeyword:w[1],TSJSDocAllType:w[1],TSJSDocNonNullableType:w[23],TSJSDocNullableType:w[23],TSJSDocUnknownType:w[1],TSLiteralType:w[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:w[10],TSModuleDeclaration:w[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:w[21],TSNeverKeyword:w[1],TSNonNullExpression:w[3],TSNullKeyword:w[1],TSNumberKeyword:w[1],TSObjectKeyword:w[1],TSOptionalType:w[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:w[23],TSPrivateKeyword:w[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:w[1],TSPublicKeyword:w[1],TSQualifiedName:w[5],TSReadonlyKeyword:w[1],TSRestType:w[23],TSSatisfiesExpression:w[4],TSStaticKeyword:w[1],TSStringKeyword:w[1],TSSymbolKeyword:w[1],TSTemplateLiteralType:["quasis","types"],TSThisType:w[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:w[23],TSTypeAssertion:w[4],TSTypeLiteral:w[26],TSTypeOperator:w[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:w[48],TSTypeParameterInstantiation:w[48],TSTypePredicate:w[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:w[1],TSUnionType:w[36],TSUnknownKeyword:w[1],TSVoidKeyword:w[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:w[24],TypeAnnotation:w[23],TypeCastExpression:w[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:w[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:w[48],TypeParameterInstantiation:w[48],TypePredicate:w[49],UnaryExpression:w[6],UndefinedTypeAnnotation:w[1],UnionTypeAnnotation:w[36],UnknownTypeAnnotation:w[1],UpdateExpression:w[6],V8IntrinsicIdentifier:w[1],VariableDeclaration:["declarations"],VariableDeclarator:w[27],Variance:w[1],VoidPattern:w[1],VoidTypeAnnotation:w[1],WhileStatement:w[25],WithStatement:["object","body"],YieldExpression:w[6]};var P4=c0(l0),u0=P4;function Bl(e,t){if(!o0(e))return e;if(Array.isArray(e)){for(let _=0;_D<=y);G=E&&_.slice(E,y).trim().length===0}return G?void 0:(W.extra={...W.extra,parenthesized:!0},W)}case"TemplateLiteral":if(c.expressions.length!==c.quasis.length-1)throw new Error("Malformed template literal.");break;case"TemplateElement":if(a==="flow"||a==="hermes"||a==="espree"||a==="typescript"||h){let W=tr(c)+1,y=Un(c)-(c.tail?1:2);c.range=[W,y]}break;case"VariableDeclaration":{let W=i0(0,c.declarations,-1);W?.init&&_[Un(W)]!==";"&&(c.range=[tr(c),Un(W)]);break}case"TSParenthesizedType":return c.typeAnnotation;case"TopicReference":e.extra={...e.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(c.types.length===1)return c.types[0];break;case"ImportExpression":a==="hermes"&&c.attributes&&!c.options&&(c.options=c.attributes);break}},onLeave(c){switch(c.type){case"LogicalExpression":if(f0(c))return cd(c);break;case"TSImportType":!c.source&&c.argument.type==="TSLiteralType"&&(c.source=c.argument.literal,delete c.argument);break}}}),e}function f0(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function cd(e){return f0(e)?cd({type:"LogicalExpression",operator:e.operator,left:cd({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[tr(e.left),Un(e.right.left)]}),right:e.right.right,range:[tr(e),Un(e)]}):e}var d0=N4;var I4=/\*\/$/,O4=/^\/\*\*?/,M4=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,L4=/(^|\s+)\/\/([^\n\r]*)/g,m0=/^(\r?\n)+/,J4=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,h0=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,j4=/(\r?\n|^) *\* ?/g,R4=[];function y0(e){let t=e.match(M4);return t?t[0].trimStart():""}function g0(e){e=Wr(0,e.replace(O4,"").replace(I4,""),j4,"$1");let a="";for(;a!==e;)a=e,e=Wr(0,e,J4,` +$1 $2 +`);e=e.replace(m0,"").trimEnd();let _=Object.create(null),f=Wr(0,e,h0,"").replace(m0,"").trimEnd(),h;for(;h=h0.exec(e);){let T=Wr(0,h[2],L4,"");if(typeof _[h[1]]=="string"||Array.isArray(_[h[1]])){let k=_[h[1]];_[h[1]]=[...R4,...Array.isArray(k)?k:[k],T]}else _[h[1]]=T}return{comments:f,pragmas:_}}var b0=["noformat","noprettier"],v0=["format","prettier"];function U4(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` +`);return t===-1?e:e.slice(0,t)}var T0=U4;function x0(e){let t=T0(e);t&&(e=e.slice(t.length+1));let a=y0(e),{pragmas:_,comments:f}=g0(a);return{shebang:t,text:e,pragmas:_,comments:f}}function S0(e){let{pragmas:t}=x0(e);return v0.some(a=>Object.prototype.hasOwnProperty.call(t,a))}function w0(e){let{pragmas:t}=x0(e);return b0.some(a=>Object.prototype.hasOwnProperty.call(t,a))}function B4(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:S0,hasIgnorePragma:w0,locStart:tr,locEnd:Un,...e}}var k0=B4;var E0=/^[^"'`]*<\/|^[^/]{2}.*\/>/mu;function q4(e){return e.charAt(0)==="#"&&e.charAt(1)==="!"?"//"+e.slice(2):e}var A0=q4;var C0="module";var D0="commonjs",P0=[C0,D0];function N0(e){if(typeof e=="string"){if(e=e.toLowerCase(),/\.(?:mjs|mts)$/iu.test(e))return C0;if(/\.(?:cjs|cts)$/iu.test(e))return D0}}var F4={loc:!0,range:!0,comment:!0,tokens:!1,loggerFn:!1,project:!1,jsDocParsingMode:"none",suppressDeprecatedPropertyWarnings:!0};function z4(e){let{message:t,location:a}=e;if(!a)return e;let{start:_,end:f}=a;return t0(t,{loc:{start:{line:_.line,column:_.column+1},end:{line:f.line,column:f.column+1}},cause:e})}var V4=e=>e&&/\.(?:js|mjs|cjs|jsx|ts|mts|cts|tsx)$/iu.test(e);function W4(e,t){let a=[{...F4,filePath:t}],_=N0(t);if(_?a=a.map(h=>({...h,sourceType:_})):a=P0.flatMap(h=>a.map(T=>({...T,sourceType:h}))),V4(t))return a;let f=E0.test(e);return[f,!f].flatMap(h=>a.map(T=>({...T,jsx:h})))}function G4(e,t){let a=t?.filepath;typeof a!="string"&&(a=void 0);let _=A0(e),f=W4(e,a),h;try{h=n0(f.map(T=>()=>e0(_,T)))}catch({errors:[T]}){throw z4(T)}return d0(h,{parser:"typescript",text:e})}var Y4=k0(G4);export{I0 as default,ld as parsers}; diff --git a/node_modules/prettier/plugins/yaml.d.ts b/node_modules/prettier/plugins/yaml.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..23df2a84036713c1f9ec31c96fca9b1abdc1beb9 --- /dev/null +++ b/node_modules/prettier/plugins/yaml.d.ts @@ -0,0 +1,9 @@ +import { Parser, Printer } from "../index.js"; + +export declare const parsers: { + yaml: Parser; +}; + +export declare const printers: { + yaml: Printer; +}; diff --git a/node_modules/prettier/plugins/yaml.js b/node_modules/prettier/plugins/yaml.js new file mode 100644 index 0000000000000000000000000000000000000000..0920da95f62f0ba7c204f22d0fb31d8aca6954e9 --- /dev/null +++ b/node_modules/prettier/plugins/yaml.js @@ -0,0 +1,159 @@ +(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.yaml=e()}})(function(){"use strict";var Mi=Object.create;var mt=Object.defineProperty;var ki=Object.getOwnPropertyDescriptor;var Pi=Object.getOwnPropertyNames;var vi=Object.getPrototypeOf,Ii=Object.prototype.hasOwnProperty;var ne=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),sr=(t,e)=>{for(var n in e)mt(t,n,{get:e[n],enumerable:!0})},ir=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Pi(e))!Ii.call(t,s)&&s!==n&&mt(t,s,{get:()=>e[s],enumerable:!(r=ki(e,s))||r.enumerable});return t};var or=(t,e,n)=>(n=t!=null?Mi(vi(t)):{},ir(e||!t||!t.__esModule?mt(n,"default",{value:t,enumerable:!0}):n,t)),_i=t=>ir(mt({},"__esModule",{value:!0}),t);var ce=ne(B=>{"use strict";var ie={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},st={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"},po="tag:yaml.org,2002:",mo={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};function Wr(t){let e=[0],n=t.indexOf(` +`);for(;n!==-1;)n+=1,e.push(n),n=t.indexOf(` +`,n);return e}function Kr(t){let e,n;return typeof t=="string"?(e=Wr(t),n=t):(Array.isArray(t)&&(t=t[0]),t&&t.context&&(t.lineStarts||(t.lineStarts=Wr(t.context.src)),e=t.lineStarts,n=t.context.src)),{lineStarts:e,src:n}}function Sn(t,e){if(typeof t!="number"||t<0)return null;let{lineStarts:n,src:r}=Kr(e);if(!n||!r||t>r.length)return null;for(let i=0;i=1)||t>n.length)return null;let s=n[t-1],i=n[t];for(;i&&i>s&&r[i-1]===` +`;)--i;return r.slice(s,i)}function go({start:t,end:e},n,r=80){let s=ho(t.line,n);if(!s)return null;let{col:i}=t;if(s.length>r)if(i<=r-10)s=s.substr(0,r-1)+"\u2026";else{let f=Math.round(r/2);s.length>i+f&&(s=s.substr(0,i+f-1)+"\u2026"),i-=s.length-r,s="\u2026"+s.substr(1-r)}let o=1,a="";e&&(e.line===t.line&&i+(e.col-t.col)<=r+1?o=e.col-t.col:(o=Math.min(s.length+1,r)-i,a="\u2026"));let c=i>1?" ".repeat(i-1):"",l="^".repeat(o);return`${s} +${c}${l}${a}`}var xe=class t{static copy(e){return new t(e.start,e.end)}constructor(e,n){this.start=e,this.end=n||e}isEmpty(){return typeof this.start!="number"||!this.end||this.end<=this.start}setOrigRange(e,n){let{start:r,end:s}=this;if(e.length===0||s<=e[0])return this.origStart=r,this.origEnd=s,n;let i=n;for(;ir);)++i;this.origStart=r+i;let o=i;for(;i=s);)++i;return this.origEnd=s+i,o}},oe=class t{static addStringTerminator(e,n,r){if(r[r.length-1]===` +`)return r;let s=t.endOfWhiteSpace(e,n);return s>=e.length||e[s]===` +`?r+` +`:r}static atDocumentBoundary(e,n,r){let s=e[n];if(!s)return!0;let i=e[n-1];if(i&&i!==` +`)return!1;if(r){if(s!==r)return!1}else if(s!==ie.DIRECTIVES_END&&s!==ie.DOCUMENT_END)return!1;let o=e[n+1],a=e[n+2];if(o!==s||a!==s)return!1;let c=e[n+3];return!c||c===` +`||c===" "||c===" "}static endOfIdentifier(e,n){let r=e[n],s=r==="<",i=s?[` +`," "," ",">"]:[` +`," "," ","[","]","{","}",","];for(;r&&i.indexOf(r)===-1;)r=e[n+=1];return s&&r===">"&&(n+=1),n}static endOfIndent(e,n){let r=e[n];for(;r===" ";)r=e[n+=1];return n}static endOfLine(e,n){let r=e[n];for(;r&&r!==` +`;)r=e[n+=1];return n}static endOfWhiteSpace(e,n){let r=e[n];for(;r===" "||r===" ";)r=e[n+=1];return n}static startOfLine(e,n){let r=e[n-1];if(r===` +`)return n;for(;r&&r!==` +`;)r=e[n-=1];return n+1}static endOfBlockIndent(e,n,r){let s=t.endOfIndent(e,r);if(s>r+n)return s;{let i=t.endOfWhiteSpace(e,s),o=e[i];if(!o||o===` +`)return i}return null}static atBlank(e,n,r){let s=e[n];return s===` +`||s===" "||s===" "||r&&!s}static nextNodeIsIndented(e,n,r){return!e||n<0?!1:n>0?!0:r&&e==="-"}static normalizeOffset(e,n){let r=e[n];return r?r!==` +`&&e[n-1]===` +`?n-1:t.endOfWhiteSpace(e,n):n}static foldNewline(e,n,r){let s=0,i=!1,o="",a=e[n+1];for(;a===" "||a===" "||a===` +`;){switch(a){case` +`:s=0,n+=1,o+=` +`;break;case" ":s<=r&&(i=!0),n=t.endOfWhiteSpace(e,n+2)-1;break;case" ":s+=1,n+=1;break}a=e[n+1]}return o||(o=" "),a&&s<=r&&(i=!0),{fold:o,offset:n,error:i}}constructor(e,n,r){Object.defineProperty(this,"context",{value:r||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=n||[],this.type=e,this.value=null}getPropValue(e,n,r){if(!this.context)return null;let{src:s}=this.context,i=this.props[e];return i&&s[i.start]===n?s.slice(i.start+(r?1:0),i.end):null}get anchor(){for(let e=0;e0?e.join(` +`):null}commentHasRequiredWhitespace(e){let{src:n}=this.context;if(this.header&&e===this.header.end||!this.valueRange)return!1;let{end:r}=this.valueRange;return e!==r||t.atBlank(n,r-1)}get hasComment(){if(this.context){let{src:e}=this.context;for(let n=0;nr.setOrigRange(e,n)),n}toString(){let{context:{src:e},range:n,value:r}=this;if(r!=null)return r;let s=e.slice(n.start,n.end);return t.addStringTerminator(e,n.end,s)}},ge=class extends Error{constructor(e,n,r){if(!r||!(n instanceof oe))throw new Error(`Invalid arguments for new ${e}`);super(),this.name=e,this.message=r,this.source=n}makePretty(){if(!this.source)return;this.nodeType=this.source.type;let e=this.source.context&&this.source.context.root;if(typeof this.offset=="number"){this.range=new xe(this.offset,this.offset+1);let n=e&&Sn(this.offset,e);if(n){let r={line:n.line,col:n.col+1};this.linePos={start:n,end:r}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){let{line:n,col:r}=this.linePos.start;this.message+=` at line ${n}, column ${r}`;let s=e&&go(this.linePos,e);s&&(this.message+=`: + +${s} +`)}delete this.source}},wn=class extends ge{constructor(e,n){super("YAMLReferenceError",e,n)}},it=class extends ge{constructor(e,n){super("YAMLSemanticError",e,n)}},bn=class extends ge{constructor(e,n){super("YAMLSyntaxError",e,n)}},Nn=class extends ge{constructor(e,n){super("YAMLWarning",e,n)}};function yo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var On=class t extends oe{static endOfLine(e,n,r){let s=e[n],i=n;for(;s&&s!==` +`&&!(r&&(s==="["||s==="]"||s==="{"||s==="}"||s===","));){let o=e[i+1];if(s===":"&&(!o||o===` +`||o===" "||o===" "||r&&o===",")||(s===" "||s===" ")&&o==="#")break;i+=1,s=o}return i}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:n}=this.valueRange,{src:r}=this.context,s=r[n-1];for(;el?r.slice(l,a+1):c)}else i+=c}let o=r[e];switch(o){case" ":{let a="Plain value cannot start with a tab character";return{errors:[new it(this,a)],str:i}}case"@":case"`":{let a=`Plain value cannot start with reserved character ${o}`;return{errors:[new it(this,a)],str:i}}default:return i}}parseBlockValue(e){let{indent:n,inFlow:r,src:s}=this.context,i=e,o=e;for(let a=s[i];a===` +`&&!oe.atDocumentBoundary(s,i+1);a=s[i]){let c=oe.endOfBlockIndent(s,n,i+1);if(c===null||s[c]==="#")break;s[c]===` +`?i=c:(o=t.endOfLine(s,c,r),i=o)}return this.valueRange.isEmpty()&&(this.valueRange.start=e),this.valueRange.end=o,o}parse(e,n){this.context=e;let{inFlow:r,src:s}=e,i=n,o=s[i];return o&&o!=="#"&&o!==` +`&&(i=t.endOfLine(s,n,r)),this.valueRange=new xe(n,i),i=oe.endOfWhiteSpace(s,i),i=this.parseComment(i),(!this.hasComment||this.valueRange.isEmpty())&&(i=this.parseBlockValue(i)),i}};B.Char=ie;B.Node=oe;B.PlainValue=On;B.Range=xe;B.Type=st;B.YAMLError=ge;B.YAMLReferenceError=wn;B.YAMLSemanticError=it;B.YAMLSyntaxError=bn;B.YAMLWarning=Nn;B._defineProperty=yo;B.defaultTagPrefix=po;B.defaultTags=mo});var Qr=ne(jr=>{"use strict";var u=ce(),Ee=class extends u.Node{constructor(){super(u.Type.BLANK_LINE)}get includesTrailingLines(){return!0}parse(e,n){return this.context=e,this.range=new u.Range(n,n+1),n+1}},ot=class extends u.Node{constructor(e,n){super(e,n),this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(e,n){this.context=e;let{parseNode:r,src:s}=e,{atLineStart:i,lineStart:o}=e;!i&&this.type===u.Type.SEQ_ITEM&&(this.error=new u.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));let a=i?n-o:e.indent,c=u.Node.endOfWhiteSpace(s,n+1),l=s[c],f=l==="#",m=[],g=null;for(;l===` +`||l==="#";){if(l==="#"){let h=u.Node.endOfLine(s,c+1);m.push(new u.Range(c,h)),c=h}else{i=!0,o=c+1;let h=u.Node.endOfWhiteSpace(s,o);s[h]===` +`&&m.length===0&&(g=new Ee,o=g.parse({src:s},o)),c=u.Node.endOfIndent(s,o)}l=s[c]}if(u.Node.nextNodeIsIndented(l,c-(o+a),this.type!==u.Type.SEQ_ITEM)?this.node=r({atLineStart:i,inCollection:!1,indent:a,lineStart:o,parent:this},c):l&&o>n+1&&(c=o-1),this.node){if(g){let h=e.parent.items||e.parent.contents;h&&h.push(g)}m.length&&Array.prototype.push.apply(this.props,m),c=this.node.range.end}else if(f){let h=m[0];this.props.push(h),c=h.end}else c=u.Node.endOfLine(s,n+1);let y=this.node?this.node.valueRange.end:c;return this.valueRange=new u.Range(n,y),c}setOrigRanges(e,n){return n=super.setOrigRanges(e,n),this.node?this.node.setOrigRanges(e,n):n}toString(){let{context:{src:e},node:n,range:r,value:s}=this;if(s!=null)return s;let i=n?e.slice(r.start,n.range.start)+String(n):e.slice(r.start,r.end);return u.Node.addStringTerminator(e,r.end,i)}},ye=class extends u.Node{constructor(){super(u.Type.COMMENT)}parse(e,n){this.context=e;let r=this.parseComment(n);return this.range=new u.Range(n,r),r}};function An(t){let e=t;for(;e instanceof ot;)e=e.node;if(!(e instanceof _t))return null;let n=e.items.length,r=-1;for(let o=n-1;o>=0;--o){let a=e.items[o];if(a.type===u.Type.COMMENT){let{indent:c,lineStart:l}=a.context;if(c>0&&a.range.start>=l+c)break;r=o}else if(a.type===u.Type.BLANK_LINE)r=o;else break}if(r===-1)return null;let s=e.items.splice(r,n-r),i=s[0].range.start;for(;e.range.end=i,e.valueRange&&e.valueRange.end>i&&(e.valueRange.end=i),e!==t;)e=e.context.parent;return s}var _t=class t extends u.Node{static nextContentHasIndent(e,n,r){let s=u.Node.endOfLine(e,n)+1;n=u.Node.endOfWhiteSpace(e,s);let i=e[n];return i?n>=s+r?!0:i!=="#"&&i!==` +`?!1:t.nextContentHasIndent(e,n,r):!1}constructor(e){super(e.type===u.Type.SEQ_ITEM?u.Type.SEQ:u.Type.MAP);for(let r=e.props.length-1;r>=0;--r)if(e.props[r].start0}parse(e,n){this.context=e;let{parseNode:r,src:s}=e,i=u.Node.startOfLine(s,n),o=this.items[0];o.context.parent=this,this.valueRange=u.Range.copy(o.valueRange);let a=o.range.start-o.context.lineStart,c=n;c=u.Node.normalizeOffset(s,c);let l=s[c],f=u.Node.endOfWhiteSpace(s,i)===c,m=!1;for(;l;){for(;l===` +`||l==="#";){if(f&&l===` +`&&!m){let h=new Ee;if(c=h.parse({src:s},c),this.valueRange.end=c,c>=s.length){l=null;break}this.items.push(h),c-=1}else if(l==="#"){if(c=s.length){l=null;break}}if(i=c+1,c=u.Node.endOfIndent(s,i),u.Node.atBlank(s,c)){let h=u.Node.endOfWhiteSpace(s,c),d=s[h];(!d||d===` +`||d==="#")&&(c=h)}l=s[c],f=!0}if(!l)break;if(c!==i+a&&(f||l!==":")){if(cn&&(c=i);break}else if(!this.error){let h="All collection items must start at the same column";this.error=new u.YAMLSyntaxError(this,h)}}if(o.type===u.Type.SEQ_ITEM){if(l!=="-"){i>n&&(c=i);break}}else if(l==="-"&&!this.error){let h=s[c+1];if(!h||h===` +`||h===" "||h===" "){let d="A collection cannot be both a mapping and a sequence";this.error=new u.YAMLSyntaxError(this,d)}}let g=r({atLineStart:f,inCollection:!0,indent:a,lineStart:i,parent:this},c);if(!g)return c;if(this.items.push(g),this.valueRange.end=g.valueRange.end,c=u.Node.normalizeOffset(s,g.range.end),l=s[c],f=!1,m=g.includesTrailingLines,l){let h=c-1,d=s[h];for(;d===" "||d===" ";)d=s[--h];d===` +`&&(i=h+1,f=!0)}let y=An(g);y&&Array.prototype.push.apply(this.items,y)}return c}setOrigRanges(e,n){return n=super.setOrigRanges(e,n),this.items.forEach(r=>{n=r.setOrigRanges(e,n)}),n}toString(){let{context:{src:e},items:n,range:r,value:s}=this;if(s!=null)return s;let i=e.slice(r.start,n[0].range.start)+String(n[0]);for(let o=1;o0&&(this.contents=this.directives,this.directives=[]),i}return n[i]?(this.directivesEndMarker=new u.Range(i,i+3),i+3):(s?this.error=new u.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),i)}parseContents(e){let{parseNode:n,src:r}=this.context;this.contents||(this.contents=[]);let s=e;for(;r[s-1]==="-";)s-=1;let i=u.Node.endOfWhiteSpace(r,e),o=s===e;for(this.valueRange=new u.Range(i);!u.Node.atDocumentBoundary(r,i,u.Char.DOCUMENT_END);){switch(r[i]){case` +`:if(o){let a=new Ee;i=a.parse({src:r},i),i{n=r.setOrigRanges(e,n)}),this.directivesEndMarker&&(n=this.directivesEndMarker.setOrigRange(e,n)),this.contents.forEach(r=>{n=r.setOrigRanges(e,n)}),this.documentEndMarker&&(n=this.documentEndMarker.setOrigRange(e,n)),n}toString(){let{contents:e,directives:n,value:r}=this;if(r!=null)return r;let s=n.join("");return e.length>0&&((n.length>0||e[0].type===u.Type.COMMENT)&&(s+=`--- +`),s+=e.join("")),s[s.length-1]!==` +`&&(s+=` +`),s}},Cn=class extends u.Node{parse(e,n){this.context=e;let{src:r}=e,s=u.Node.endOfIdentifier(r,n+1);return this.valueRange=new u.Range(n+1,s),s=u.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s}},le={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"},Mn=class extends u.Node{constructor(e,n){super(e,n),this.blockIndent=null,this.chomping=le.CLIP,this.header=null}get includesTrailingLines(){return this.chomping===le.KEEP}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:n}=this.valueRange,{indent:r,src:s}=this.context;if(this.valueRange.isEmpty())return"";let i=null,o=s[n-1];for(;o===` +`||o===" "||o===" ";){if(n-=1,n<=e){if(this.chomping===le.KEEP)break;return""}o===` +`&&(i=n),o=s[n-1]}let a=n+1;i&&(this.chomping===le.KEEP?(a=i,n=this.valueRange.end):n=i);let c=r+this.blockIndent,l=this.type===u.Type.BLOCK_FOLDED,f=!0,m="",g="",y=!1;for(let h=e;ha&&(a=m);r[l]===` +`?i=l:i=o=u.Node.endOfLine(r,l)}return this.chomping!==le.KEEP&&(i=r[o]?o+1:o),this.valueRange=new u.Range(e+1,i),i}parse(e,n){this.context=e;let{src:r}=e,s=this.parseBlockHeader(n);return s=u.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s=this.parseBlockValue(s),s}setOrigRanges(e,n){return n=super.setOrigRanges(e,n),this.header?this.header.setOrigRange(e,n):n}},kn=class extends u.Node{constructor(e,n){super(e,n),this.items=null}prevNodeIsJsonLike(e=this.items.length){let n=this.items[e-1];return!!n&&(n.jsonLike||n.type===u.Type.COMMENT&&this.prevNodeIsJsonLike(e-1))}parse(e,n){this.context=e;let{parseNode:r,src:s}=e,{indent:i,lineStart:o}=e,a=s[n];this.items=[{char:a,offset:n}];let c=u.Node.endOfWhiteSpace(s,n+1);for(a=s[c];a&&a!=="]"&&a!=="}";){switch(a){case` +`:{o=c+1;let l=u.Node.endOfWhiteSpace(s,o);if(s[l]===` +`){let f=new Ee;o=f.parse({src:s},o),this.items.push(f)}if(c=u.Node.endOfIndent(s,o),c<=o+i&&(a=s[c],c{if(r instanceof u.Node)n=r.setOrigRanges(e,n);else if(e.length===0)r.origOffset=r.offset;else{let s=n;for(;sr.offset);)++s;r.origOffset=r.offset+s,n=s}}),n}toString(){let{context:{src:e},items:n,range:r,value:s}=this;if(s!=null)return s;let i=n.filter(c=>c instanceof u.Node),o="",a=r.start;return i.forEach(c=>{let l=e.slice(a,c.range.start);a=c.range.end,o+=l+String(c),o[o.length-1]===` +`&&e[a-1]!==` +`&&e[a]===` +`&&(a+=1)}),o+=e.slice(a,r.end),u.Node.addStringTerminator(e,r.end,o)}},Pn=class t extends u.Node{static endOfQuote(e,n){let r=e[n];for(;r&&r!=='"';)n+=r==="\\"?2:1,r=e[n];return n+1}get strValue(){if(!this.valueRange||!this.context)return null;let e=[],{start:n,end:r}=this.valueRange,{indent:s,src:i}=this.context;i[r-1]!=='"'&&e.push(new u.YAMLSyntaxError(this,'Missing closing "quote'));let o="";for(let a=n+1;al?i.slice(l,a+1):c)}else o+=c}return e.length>0?{errors:e,str:o}:o}parseCharCode(e,n,r){let{src:s}=this.context,i=s.substr(e,n),a=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;return isNaN(a)?(r.push(new u.YAMLSyntaxError(this,`Invalid escape sequence ${s.substr(e-2,n+2)}`)),s.substr(e-2,n+2)):String.fromCodePoint(a)}parse(e,n){this.context=e;let{src:r}=e,s=t.endOfQuote(r,n+1);return this.valueRange=new u.Range(n,s),s=u.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s}},vn=class t extends u.Node{static endOfQuote(e,n){let r=e[n];for(;r;)if(r==="'"){if(e[n+1]!=="'")break;r=e[n+=2]}else r=e[n+=1];return n+1}get strValue(){if(!this.valueRange||!this.context)return null;let e=[],{start:n,end:r}=this.valueRange,{indent:s,src:i}=this.context;i[r-1]!=="'"&&e.push(new u.YAMLSyntaxError(this,"Missing closing 'quote"));let o="";for(let a=n+1;al?i.slice(l,a+1):c)}else o+=c}return e.length>0?{errors:e,str:o}:o}parse(e,n){this.context=e;let{src:r}=e,s=t.endOfQuote(r,n+1);return this.valueRange=new u.Range(n,s),s=u.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s}};function Eo(t,e){switch(t){case u.Type.ALIAS:return new Cn(t,e);case u.Type.BLOCK_FOLDED:case u.Type.BLOCK_LITERAL:return new Mn(t,e);case u.Type.FLOW_MAP:case u.Type.FLOW_SEQ:return new kn(t,e);case u.Type.MAP_KEY:case u.Type.MAP_VALUE:case u.Type.SEQ_ITEM:return new ot(t,e);case u.Type.COMMENT:case u.Type.PLAIN:return new u.PlainValue(t,e);case u.Type.QUOTE_DOUBLE:return new Pn(t,e);case u.Type.QUOTE_SINGLE:return new vn(t,e);default:return null}}var In=class t{static parseType(e,n,r){switch(e[n]){case"*":return u.Type.ALIAS;case">":return u.Type.BLOCK_FOLDED;case"|":return u.Type.BLOCK_LITERAL;case"{":return u.Type.FLOW_MAP;case"[":return u.Type.FLOW_SEQ;case"?":return!r&&u.Node.atBlank(e,n+1,!0)?u.Type.MAP_KEY:u.Type.PLAIN;case":":return!r&&u.Node.atBlank(e,n+1,!0)?u.Type.MAP_VALUE:u.Type.PLAIN;case"-":return!r&&u.Node.atBlank(e,n+1,!0)?u.Type.SEQ_ITEM:u.Type.PLAIN;case'"':return u.Type.QUOTE_DOUBLE;case"'":return u.Type.QUOTE_SINGLE;default:return u.Type.PLAIN}}constructor(e={},{atLineStart:n,inCollection:r,inFlow:s,indent:i,lineStart:o,parent:a}={}){u._defineProperty(this,"parseNode",(c,l)=>{if(u.Node.atDocumentBoundary(this.src,l))return null;let f=new t(this,c),{props:m,type:g,valueStart:y}=f.parseProps(l),h=Eo(g,m),d=h.parse(f,y);if(h.range=new u.Range(l,d),d<=l&&(h.error=new Error("Node#parse consumed no characters"),h.error.parseEnd=d,h.error.source=h,h.range.end=l+1),f.nodeStartsCollection(h)){!h.error&&!f.atLineStart&&f.parent.type===u.Type.DOCUMENT&&(h.error=new u.YAMLSyntaxError(h,"Block collection must not have preceding content here (e.g. directives-end indicator)"));let w=new _t(h);return d=w.parse(new t(f),d),w.range=new u.Range(l,d),w}return h}),this.atLineStart=n??(e.atLineStart||!1),this.inCollection=r??(e.inCollection||!1),this.inFlow=s??(e.inFlow||!1),this.indent=i??e.indent,this.lineStart=o??e.lineStart,this.parent=a??(e.parent||{}),this.root=e.root,this.src=e.src}nodeStartsCollection(e){let{inCollection:n,inFlow:r,src:s}=this;if(n||r)return!1;if(e instanceof ot)return!0;let i=e.range.end;return s[i]===` +`||s[i-1]===` +`?!1:(i=u.Node.endOfWhiteSpace(s,i),s[i]===":")}parseProps(e){let{inFlow:n,parent:r,src:s}=this,i=[],o=!1;e=this.atLineStart?u.Node.endOfIndent(s,e):u.Node.endOfWhiteSpace(s,e);let a=s[e];for(;a===u.Char.ANCHOR||a===u.Char.COMMENT||a===u.Char.TAG||a===` +`;){if(a===` +`){let l=e,f;do f=l+1,l=u.Node.endOfIndent(s,f);while(s[l]===` +`);let m=l-(f+this.indent),g=r.type===u.Type.SEQ_ITEM&&r.context.atLineStart;if(s[l]!=="#"&&!u.Node.nextNodeIsIndented(s[l],m,!g))break;this.atLineStart=!0,this.lineStart=f,o=!1,e=l}else if(a===u.Char.COMMENT){let l=u.Node.endOfLine(s,e+1);i.push(new u.Range(e,l)),e=l}else{let l=u.Node.endOfIdentifier(s,e+1);a===u.Char.TAG&&s[l]===","&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(s.slice(e+1,l+13))&&(l=u.Node.endOfIdentifier(s,l+5)),i.push(new u.Range(e,l)),o=!0,e=u.Node.endOfWhiteSpace(s,l)}a=s[e]}o&&a===":"&&u.Node.atBlank(s,e+1,!0)&&(e-=1);let c=t.parseType(s,e,n);return{props:i,type:c,valueStart:e}}};function So(t){let e=[];t.indexOf("\r")!==-1&&(t=t.replace(/\r\n?/g,(s,i)=>(s.length>1&&e.push(i),` +`)));let n=[],r=0;do{let s=new Tn,i=new In({src:t});r=s.parse(i,r),n.push(s)}while(r{if(e.length===0)return!1;for(let i=1;in.join(`... +`),n}jr.parse=So});var De=ne(M=>{"use strict";var p=ce();function wo(t,e,n){return n?`#${n.replace(/[\s\S]^/gm,`$&${e}#`)} +${e}${t}`:t}function Re(t,e,n){return n?n.indexOf(` +`)===-1?`${t} #${n}`:`${t} +`+n.replace(/^/gm,`${e||""}#`):t}var j=class{};function fe(t,e,n){if(Array.isArray(t))return t.map((r,s)=>fe(r,String(s),n));if(t&&typeof t.toJSON=="function"){let r=n&&n.anchors&&n.anchors.get(t);r&&(n.onCreate=i=>{r.res=i,delete n.onCreate});let s=t.toJSON(e,n);return r&&n.onCreate&&n.onCreate(s),s}return(!n||!n.keep)&&typeof t=="bigint"?Number(t):t}var x=class extends j{constructor(e){super(),this.value=e}toJSON(e,n){return n&&n.keep?this.value:fe(this.value,e,n)}toString(){return String(this.value)}};function Gr(t,e,n){let r=n;for(let s=e.length-1;s>=0;--s){let i=e[s];if(Number.isInteger(i)&&i>=0){let o=[];o[i]=r,r=o}else{let o={};Object.defineProperty(o,i,{value:r,writable:!0,enumerable:!0,configurable:!0}),r=o}}return t.createNode(r,!1)}var Xr=t=>t==null||typeof t=="object"&&t[Symbol.iterator]().next().done,Q=class t extends j{constructor(e){super(),p._defineProperty(this,"items",[]),this.schema=e}addIn(e,n){if(Xr(e))this.add(n);else{let[r,...s]=e,i=this.get(r,!0);if(i instanceof t)i.addIn(s,n);else if(i===void 0&&this.schema)this.set(r,Gr(this.schema,s,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${s}`)}}deleteIn([e,...n]){if(n.length===0)return this.delete(e);let r=this.get(e,!0);if(r instanceof t)return r.deleteIn(n);throw new Error(`Expected YAML collection at ${e}. Remaining path: ${n}`)}getIn([e,...n],r){let s=this.get(e,!0);return n.length===0?!r&&s instanceof x?s.value:s:s instanceof t?s.getIn(n,r):void 0}hasAllNullValues(){return this.items.every(e=>{if(!e||e.type!=="PAIR")return!1;let n=e.value;return n==null||n instanceof x&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn([e,...n]){if(n.length===0)return this.has(e);let r=this.get(e,!0);return r instanceof t?r.hasIn(n):!1}setIn([e,...n],r){if(n.length===0)this.set(e,r);else{let s=this.get(e,!0);if(s instanceof t)s.setIn(n,r);else if(s===void 0&&this.schema)this.set(e,Gr(this.schema,n,r));else throw new Error(`Expected YAML collection at ${e}. Remaining path: ${n}`)}}toJSON(){return null}toString(e,{blockItem:n,flowChars:r,isMap:s,itemIndent:i},o,a){let{indent:c,indentStep:l,stringify:f}=e,m=this.type===p.Type.FLOW_MAP||this.type===p.Type.FLOW_SEQ||e.inFlow;m&&(i+=l);let g=s&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:g,indent:i,inFlow:m,type:null});let y=!1,h=!1,d=this.items.reduce((P,A,C)=>{let L;A&&(!y&&A.spaceBefore&&P.push({type:"comment",str:""}),A.commentBefore&&A.commentBefore.match(/^.*$/gm).forEach(Ci=>{P.push({type:"comment",str:`#${Ci}`})}),A.comment&&(L=A.comment),m&&(!y&&A.spaceBefore||A.commentBefore||A.comment||A.key&&(A.key.commentBefore||A.key.comment)||A.value&&(A.value.commentBefore||A.value.comment))&&(h=!0)),y=!1;let R=f(A,e,()=>L=null,()=>y=!0);return m&&!h&&R.includes(` +`)&&(h=!0),m&&CL.str);if(h||C.reduce((L,R)=>L+R.length+2,2)>t.maxFlowStringSingleLineLength){w=P;for(let L of C)w+=L?` +${l}${c}${L}`:` +`;w+=` +${c}${A}`}else w=`${P} ${C.join(" ")} ${A}`}else{let P=d.map(n);w=P.shift();for(let A of P)w+=A?` +${c}${A}`:` +`}return this.comment?(w+=` +`+this.comment.replace(/^/gm,`${c}#`),o&&o()):y&&a&&a(),w}};p._defineProperty(Q,"maxFlowStringSingleLineLength",60);function xt(t){let e=t instanceof x?t.value:t;return e&&typeof e=="string"&&(e=Number(e)),Number.isInteger(e)&&e>=0?e:null}var ue=class extends Q{add(e){this.items.push(e)}delete(e){let n=xt(e);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(e,n){let r=xt(e);if(typeof r!="number")return;let s=this.items[r];return!n&&s instanceof x?s.value:s}has(e){let n=xt(e);return typeof n=="number"&&ns.type==="comment"?s.str:`- ${s.str}`,flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(e.indent||"")+" "},n,r):JSON.stringify(this)}},bo=(t,e,n)=>e===null?"":typeof e!="object"?String(e):t instanceof j&&n&&n.doc?t.toString({anchors:Object.create(null),doc:n.doc,indent:"",indentStep:n.indentStep,inFlow:!0,inStringifyKey:!0,stringify:n.stringify}):JSON.stringify(e),T=class t extends j{constructor(e,n=null){super(),this.key=e,this.value=n,this.type=t.Type.PAIR}get commentBefore(){return this.key instanceof j?this.key.commentBefore:void 0}set commentBefore(e){if(this.key==null&&(this.key=new x(null)),this.key instanceof j)this.key.commentBefore=e;else{let n="Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.";throw new Error(n)}}addToJSMap(e,n){let r=fe(this.key,"",e);if(n instanceof Map){let s=fe(this.value,r,e);n.set(r,s)}else if(n instanceof Set)n.add(r);else{let s=bo(this.key,r,e),i=fe(this.value,s,e);s in n?Object.defineProperty(n,s,{value:i,writable:!0,enumerable:!0,configurable:!0}):n[s]=i}return n}toJSON(e,n){let r=n&&n.mapAsMap?new Map:{};return this.addToJSMap(n,r)}toString(e,n,r){if(!e||!e.doc)return JSON.stringify(this);let{indent:s,indentSeq:i,simpleKeys:o}=e.doc.options,{key:a,value:c}=this,l=a instanceof j&&a.comment;if(o){if(l)throw new Error("With simple keys, key nodes cannot have comments");if(a instanceof Q){let R="With simple keys, collection cannot be used as a key value";throw new Error(R)}}let f=!o&&(!a||l||(a instanceof j?a instanceof Q||a.type===p.Type.BLOCK_FOLDED||a.type===p.Type.BLOCK_LITERAL:typeof a=="object")),{doc:m,indent:g,indentStep:y,stringify:h}=e;e=Object.assign({},e,{implicitKey:!f,indent:g+y});let d=!1,w=h(a,e,()=>l=null,()=>d=!0);if(w=Re(w,e.indent,l),!f&&w.length>1024){if(o)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");f=!0}if(e.allNullValues&&!o)return this.comment?(w=Re(w,e.indent,this.comment),n&&n()):d&&!l&&r&&r(),e.inFlow&&!f?w:`? ${w}`;w=f?`? ${w} +${g}:`:`${w}:`,this.comment&&(w=Re(w,e.indent,this.comment),n&&n());let P="",A=null;if(c instanceof j){if(c.spaceBefore&&(P=` +`),c.commentBefore){let R=c.commentBefore.replace(/^/gm,`${e.indent}#`);P+=` +${R}`}A=c.comment}else c&&typeof c=="object"&&(c=m.schema.createNode(c,!0));e.implicitKey=!1,!f&&!this.comment&&c instanceof x&&(e.indentAtStart=w.length+1),d=!1,!i&&s>=2&&!e.inFlow&&!f&&c instanceof ue&&c.type!==p.Type.FLOW_SEQ&&!c.tag&&!m.anchors.getName(c)&&(e.indent=e.indent.substr(2));let C=h(c,e,()=>A=null,()=>d=!0),L=" ";return P||this.comment?L=`${P} +${e.indent}`:!f&&c instanceof Q?(!(C[0]==="["||C[0]==="{")||C.includes(` +`))&&(L=` +${e.indent}`):C[0]===` +`&&(L=""),d&&!A&&r&&r(),Re(w+L+C,e.indent,A)}};p._defineProperty(T,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});var Rt=(t,e)=>{if(t instanceof we){let n=e.get(t.source);return n.count*n.aliasCount}else if(t instanceof Q){let n=0;for(let r of t.items){let s=Rt(r,e);s>n&&(n=s)}return n}else if(t instanceof T){let n=Rt(t.key,e),r=Rt(t.value,e);return Math.max(n,r)}return 1},we=class t extends j{static stringify({range:e,source:n},{anchors:r,doc:s,implicitKey:i,inStringifyKey:o}){let a=Object.keys(r).find(l=>r[l]===n);if(!a&&o&&(a=s.anchors.getName(n)||s.anchors.newName()),a)return`*${a}${i?" ":""}`;let c=s.anchors.getName(n)?"Alias node must be after source node":"Source node not found for alias node";throw new Error(`${c} [${e}]`)}constructor(e){super(),this.source=e,this.type=p.Type.ALIAS}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(e,n){if(!n)return fe(this.source,e,n);let{anchors:r,maxAliasCount:s}=n,i=r.get(this.source);if(!i||i.res===void 0){let o="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new p.YAMLReferenceError(this.cstNode,o):new ReferenceError(o)}if(s>=0&&(i.count+=1,i.aliasCount===0&&(i.aliasCount=Rt(this.source,r)),i.count*i.aliasCount>s)){let o="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new p.YAMLReferenceError(this.cstNode,o):new ReferenceError(o)}return i.res}toString(e){return t.stringify(this,e)}};p._defineProperty(we,"default",!0);function at(t,e){let n=e instanceof x?e.value:e;for(let r of t)if(r instanceof T&&(r.key===e||r.key===n||r.key&&r.key.value===n))return r}var ct=class extends Q{add(e,n){e?e instanceof T||(e=new T(e.key||e,e.value)):e=new T(e);let r=at(this.items,e.key),s=this.schema&&this.schema.sortMapEntries;if(r)if(n)r.value=e.value;else throw new Error(`Key ${e.key} already set`);else if(s){let i=this.items.findIndex(o=>s(e,o)<0);i===-1?this.items.push(e):this.items.splice(i,0,e)}else this.items.push(e)}delete(e){let n=at(this.items,e);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(e,n){let r=at(this.items,e),s=r&&r.value;return!n&&s instanceof x?s.value:s}has(e){return!!at(this.items,e)}set(e,n){this.add(new T(e,n),!0)}toJSON(e,n,r){let s=r?new r:n&&n.mapAsMap?new Map:{};n&&n.onCreate&&n.onCreate(s);for(let i of this.items)i.addToJSMap(n,s);return s}toString(e,n,r){if(!e)return JSON.stringify(this);for(let s of this.items)if(!(s instanceof T))throw new Error(`Map items must all be pairs; found ${JSON.stringify(s)} instead`);return super.toString(e,{blockItem:s=>s.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},n,r)}},zr="<<",Yt=class extends T{constructor(e){if(e instanceof T){let n=e.value;n instanceof ue||(n=new ue,n.items.push(e.value),n.range=e.value.range),super(e.key,n),this.range=e.range}else super(new x(zr),new ue);this.type=T.Type.MERGE_PAIR}addToJSMap(e,n){for(let{source:r}of this.value.items){if(!(r instanceof ct))throw new Error("Merge sources must be maps");let s=r.toJSON(null,e,Map);for(let[i,o]of s)n instanceof Map?n.has(i)||n.set(i,o):n instanceof Set?n.add(i):Object.prototype.hasOwnProperty.call(n,i)||Object.defineProperty(n,i,{value:o,writable:!0,enumerable:!0,configurable:!0})}return n}toString(e,n){let r=this.value;if(r.items.length>1)return super.toString(e,n);this.value=r.items[0];let s=super.toString(e,n);return this.value=r,s}},No={defaultType:p.Type.BLOCK_LITERAL,lineWidth:76},Oo={trueStr:"true",falseStr:"false"},Ao={asBigInt:!1},Lo={nullStr:"null"},be={defaultType:p.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function xn(t,e,n){for(let{format:r,test:s,resolve:i}of e)if(s){let o=t.match(s);if(o){let a=i.apply(null,o);return a instanceof x||(a=new x(a)),r&&(a.format=r),a}}return n&&(t=n(t)),new x(t)}var Zr="flow",_n="block",Dt="quoted",Hr=(t,e)=>{let n=t[e+1];for(;n===" "||n===" ";){do n=t[e+=1];while(n&&n!==` +`);n=t[e+1]}return e};function Bt(t,e,n,{indentAtStart:r,lineWidth:s=80,minContentWidth:i=20,onFold:o,onOverflow:a}){if(!s||s<0)return t;let c=Math.max(1+i,1+s-e.length);if(t.length<=c)return t;let l=[],f={},m=s-e.length;typeof r=="number"&&(r>s-Math.max(2,i)?l.push(0):m=s-r);let g,y,h=!1,d=-1,w=-1,P=-1;n===_n&&(d=Hr(t,d),d!==-1&&(m=d+c));for(let C;C=t[d+=1];){if(n===Dt&&C==="\\"){switch(w=d,t[d+1]){case"x":d+=3;break;case"u":d+=5;break;case"U":d+=9;break;default:d+=1}P=d}if(C===` +`)n===_n&&(d=Hr(t,d)),m=d+c,g=void 0;else{if(C===" "&&y&&y!==" "&&y!==` +`&&y!==" "){let L=t[d+1];L&&L!==" "&&L!==` +`&&L!==" "&&(g=d)}if(d>=m)if(g)l.push(g),m=g+c,g=void 0;else if(n===Dt){for(;y===" "||y===" ";)y=C,C=t[d+=1],h=!0;let L=d>P+1?d-2:w-1;if(f[L])return t;l.push(L),f[L]=!0,m=L+c,g=void 0}else h=!0}y=C}if(h&&a&&a(),l.length===0)return t;o&&o();let A=t.slice(0,l[0]);for(let C=0;Ct?Object.assign({indentAtStart:t},be.fold):be.fold,Ft=t=>/^(%|---|\.\.\.)/m.test(t);function To(t,e,n){if(!e||e<0)return!1;let r=e-n,s=t.length;if(s<=r)return!1;for(let i=0,o=0;ir)return!0;if(o=i+1,s-o<=r)return!1}return!0}function Se(t,e){let{implicitKey:n}=e,{jsonEncoding:r,minMultiLineLength:s}=be.doubleQuoted,i=JSON.stringify(t);if(r)return i;let o=e.indent||(Ft(t)?" ":""),a="",c=0;for(let l=0,f=i[l];f;f=i[++l])if(f===" "&&i[l+1]==="\\"&&i[l+2]==="n"&&(a+=i.slice(c,l)+"\\ ",l+=1,c=l,f="\\"),f==="\\")switch(i[l+1]){case"u":{a+=i.slice(c,l);let m=i.substr(l+2,4);switch(m){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:m.substr(0,2)==="00"?a+="\\x"+m.substr(2):a+=i.substr(l,6)}l+=5,c=l+1}break;case"n":if(n||i[l+2]==='"'||i.length";if(!n)return l+` +`;let f="",m="";if(n=n.replace(/[\n\t ]*$/,y=>{let h=y.indexOf(` +`);return h===-1?l+="-":(n===y||h!==y.length-1)&&(l+="+",i&&i()),m=y.replace(/\n$/,""),""}).replace(/^[\n ]*/,y=>{y.indexOf(" ")!==-1&&(l+=a);let h=y.match(/ +$/);return h?(f=y.slice(0,-h[0].length),h[0]):(f=y,"")}),m&&(m=m.replace(/\n+(?!\n|$)/g,`$&${o}`)),f&&(f=f.replace(/\n+/g,`$&${o}`)),t&&(l+=" #"+t.replace(/ ?[\r\n]+/g," "),s&&s()),!n)return`${l}${a} +${o}${m}`;if(c)return n=n.replace(/\n+/g,`$&${o}`),`${l} +${o}${f}${n}${m}`;n=n.replace(/\n+/g,` +$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${o}`);let g=Bt(`${f}${n}${m}`,o,_n,be.fold);return`${l} +${o}${g}`}function Co(t,e,n,r){let{comment:s,type:i,value:o}=t,{actualString:a,implicitKey:c,indent:l,inFlow:f}=e;if(c&&/[\n[\]{},]/.test(o)||f&&/[[\]{},]/.test(o))return Se(o,e);if(!o||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o))return c||f||o.indexOf(` +`)===-1?o.indexOf('"')!==-1&&o.indexOf("'")===-1?es(o,e):Se(o,e):$t(t,e,n,r);if(!c&&!f&&i!==p.Type.PLAIN&&o.indexOf(` +`)!==-1)return $t(t,e,n,r);if(l===""&&Ft(o))return e.forceBlockIndent=!0,$t(t,e,n,r);let m=o.replace(/\n+/g,`$& +${l}`);if(a){let{tags:y}=e.doc.schema;if(typeof xn(m,y,y.scalarFallback).value!="string")return Se(o,e)}let g=c?m:Bt(m,l,Zr,Rn(e));return s&&!f&&(g.indexOf(` +`)!==-1||s.indexOf(` +`)!==-1)?(n&&n(),wo(g,l,s)):g}function Mo(t,e,n,r){let{defaultType:s}=be,{implicitKey:i,inFlow:o}=e,{type:a,value:c}=t;typeof c!="string"&&(c=String(c),t=Object.assign({},t,{value:c}));let l=m=>{switch(m){case p.Type.BLOCK_FOLDED:case p.Type.BLOCK_LITERAL:return $t(t,e,n,r);case p.Type.QUOTE_DOUBLE:return Se(c,e);case p.Type.QUOTE_SINGLE:return es(c,e);case p.Type.PLAIN:return Co(t,e,n,r);default:return null}};(a!==p.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(c)||(i||o)&&(a===p.Type.BLOCK_FOLDED||a===p.Type.BLOCK_LITERAL))&&(a=p.Type.QUOTE_DOUBLE);let f=l(a);if(f===null&&(f=l(s),f===null))throw new Error(`Unsupported default string type ${s}`);return f}function ko({format:t,minFractionDigits:e,tag:n,value:r}){if(typeof r=="bigint")return String(r);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let s=JSON.stringify(r);if(!t&&e&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(s)){let i=s.indexOf(".");i<0&&(i=s.length,s+=".");let o=e-(s.length-i-1);for(;o-- >0;)s+="0"}return s}function ts(t,e){let n,r;switch(e.type){case p.Type.FLOW_MAP:n="}",r="flow map";break;case p.Type.FLOW_SEQ:n="]",r="flow sequence";break;default:t.push(new p.YAMLSemanticError(e,"Not a flow collection!?"));return}let s;for(let i=e.items.length-1;i>=0;--i){let o=e.items[i];if(!o||o.type!==p.Type.COMMENT){s=o;break}}if(s&&s.char!==n){let i=`Expected ${r} to end with ${n}`,o;typeof s.offset=="number"?(o=new p.YAMLSemanticError(e,i),o.offset=s.offset+1):(o=new p.YAMLSemanticError(s,i),s.range&&s.range.end&&(o.offset=s.range.end-s.range.start)),t.push(o)}}function ns(t,e){let n=e.context.src[e.range.start-1];if(n!==` +`&&n!==" "&&n!==" "){let r="Comments must be separated from other tokens by white space characters";t.push(new p.YAMLSemanticError(e,r))}}function rs(t,e){let n=String(e),r=n.substr(0,8)+"..."+n.substr(-8);return new p.YAMLSemanticError(t,`The "${r}" key is too long`)}function ss(t,e){for(let{afterKey:n,before:r,comment:s}of e){let i=t.items[r];i?(n&&i.value&&(i=i.value),s===void 0?(n||!i.commentBefore)&&(i.spaceBefore=!0):i.commentBefore?i.commentBefore+=` +`+s:i.commentBefore=s):s!==void 0&&(t.comment?t.comment+=` +`+s:t.comment=s)}}function Dn(t,e){let n=e.strValue;return n?typeof n=="string"?n:(n.errors.forEach(r=>{r.source||(r.source=e),t.errors.push(r)}),n.str):""}function Po(t,e){let{handle:n,suffix:r}=e.tag,s=t.tagPrefixes.find(i=>i.handle===n);if(!s){let i=t.getDefaults().tagPrefixes;if(i&&(s=i.find(o=>o.handle===n)),!s)throw new p.YAMLSemanticError(e,`The ${n} tag handle is non-default and was not declared.`)}if(!r)throw new p.YAMLSemanticError(e,`The ${n} tag has no suffix.`);if(n==="!"&&(t.version||t.options.version)==="1.0"){if(r[0]==="^")return t.warnings.push(new p.YAMLWarning(e,"YAML 1.0 ^ tag expansion is not supported")),r;if(/[:/]/.test(r)){let i=r.match(/^([a-z0-9-]+)\/(.*)/i);return i?`tag:${i[1]}.yaml.org,2002:${i[2]}`:`tag:${r}`}}return s.prefix+decodeURIComponent(r)}function vo(t,e){let{tag:n,type:r}=e,s=!1;if(n){let{handle:i,suffix:o,verbatim:a}=n;if(a){if(a!=="!"&&a!=="!!")return a;let c=`Verbatim tags aren't resolved, so ${a} is invalid.`;t.errors.push(new p.YAMLSemanticError(e,c))}else if(i==="!"&&!o)s=!0;else try{return Po(t,e)}catch(c){t.errors.push(c)}}switch(r){case p.Type.BLOCK_FOLDED:case p.Type.BLOCK_LITERAL:case p.Type.QUOTE_DOUBLE:case p.Type.QUOTE_SINGLE:return p.defaultTags.STR;case p.Type.FLOW_MAP:case p.Type.MAP:return p.defaultTags.MAP;case p.Type.FLOW_SEQ:case p.Type.SEQ:return p.defaultTags.SEQ;case p.Type.PLAIN:return s?p.defaultTags.STR:null;default:return null}}function Jr(t,e,n){let{tags:r}=t.schema,s=[];for(let o of r)if(o.tag===n)if(o.test)s.push(o);else{let a=o.resolve(t,e);return a instanceof Q?a:new x(a)}let i=Dn(t,e);return typeof i=="string"&&s.length>0?xn(i,s,r.scalarFallback):null}function Io({type:t}){switch(t){case p.Type.FLOW_MAP:case p.Type.MAP:return p.defaultTags.MAP;case p.Type.FLOW_SEQ:case p.Type.SEQ:return p.defaultTags.SEQ;default:return p.defaultTags.STR}}function _o(t,e,n){try{let r=Jr(t,e,n);if(r)return n&&e.tag&&(r.tag=n),r}catch(r){return r.source||(r.source=e),t.errors.push(r),null}try{let r=Io(e);if(!r)throw new Error(`The tag ${n} is unavailable`);let s=`The tag ${n} is unavailable, falling back to ${r}`;t.warnings.push(new p.YAMLWarning(e,s));let i=Jr(t,e,r);return i.tag=n,i}catch(r){let s=new p.YAMLReferenceError(e,r.message);return s.stack=r.stack,t.errors.push(s),null}}var xo=t=>{if(!t)return!1;let{type:e}=t;return e===p.Type.MAP_KEY||e===p.Type.MAP_VALUE||e===p.Type.SEQ_ITEM};function Ro(t,e){let n={before:[],after:[]},r=!1,s=!1,i=xo(e.context.parent)?e.context.parent.props.concat(e.props):e.props;for(let{start:o,end:a}of i)switch(e.context.src[o]){case p.Char.COMMENT:{if(!e.commentHasRequiredWhitespace(o)){let m="Comments must be separated from other tokens by white space characters";t.push(new p.YAMLSemanticError(e,m))}let{header:c,valueRange:l}=e;(l&&(o>l.start||c&&o>c.start)?n.after:n.before).push(e.context.src.slice(o+1,a));break}case p.Char.ANCHOR:if(r){let c="A node can have at most one anchor";t.push(new p.YAMLSemanticError(e,c))}r=!0;break;case p.Char.TAG:if(s){let c="A node can have at most one tag";t.push(new p.YAMLSemanticError(e,c))}s=!0;break}return{comments:n,hasAnchor:r,hasTag:s}}function Do(t,e){let{anchors:n,errors:r,schema:s}=t;if(e.type===p.Type.ALIAS){let o=e.rawValue,a=n.getNode(o);if(!a){let l=`Aliased anchor not found: ${o}`;return r.push(new p.YAMLReferenceError(e,l)),null}let c=new we(a);return n._cstAliases.push(c),c}let i=vo(t,e);if(i)return _o(t,e,i);if(e.type!==p.Type.PLAIN){let o=`Failed to resolve ${e.type} node here`;return r.push(new p.YAMLSyntaxError(e,o)),null}try{let o=Dn(t,e);return xn(o,s.tags,s.tags.scalarFallback)}catch(o){return o.source||(o.source=e),r.push(o),null}}function pe(t,e){if(!e)return null;e.error&&t.errors.push(e.error);let{comments:n,hasAnchor:r,hasTag:s}=Ro(t.errors,e);if(r){let{anchors:o}=t,a=e.anchor,c=o.getNode(a);c&&(o.map[o.newName(a)]=c),o.map[a]=e}if(e.type===p.Type.ALIAS&&(r||s)){let o="An alias node must not specify any properties";t.errors.push(new p.YAMLSemanticError(e,o))}let i=Do(t,e);if(i){i.range=[e.range.start,e.range.end],t.options.keepCstNodes&&(i.cstNode=e),t.options.keepNodeTypes&&(i.type=e.type);let o=n.before.join(` +`);o&&(i.commentBefore=i.commentBefore?`${i.commentBefore} +${o}`:o);let a=n.after.join(` +`);a&&(i.comment=i.comment?`${i.comment} +${a}`:a)}return e.resolved=i}function $o(t,e){if(e.type!==p.Type.MAP&&e.type!==p.Type.FLOW_MAP){let o=`A ${e.type} node cannot be resolved as a mapping`;return t.errors.push(new p.YAMLSyntaxError(e,o)),null}let{comments:n,items:r}=e.type===p.Type.FLOW_MAP?qo(t,e):Fo(t,e),s=new ct;s.items=r,ss(s,n);let i=!1;for(let o=0;o{if(f instanceof we){let{type:m}=f.source;return m===p.Type.MAP||m===p.Type.FLOW_MAP?!1:l="Merge nodes aliases can only point to maps"}return l="Merge nodes can only have Alias nodes as values"}),l&&t.errors.push(new p.YAMLSemanticError(e,l))}else for(let c=o+1;c{if(r.length===0)return!1;let{start:s}=r[0];if(e&&s>e.valueRange.start||n[s]!==p.Char.COMMENT)return!1;for(let i=t;i0){c=new p.PlainValue(p.Type.PLAIN,[]),c.context={parent:a,src:a.context.src};let f=a.range.start+1;if(c.range={start:f,end:f},c.valueRange={start:f,end:f},typeof a.range.origStart=="number"){let m=a.range.origStart+1;c.range.origStart=c.range.origEnd=m,c.valueRange.origStart=c.valueRange.origEnd=m}}let l=new T(s,pe(t,c));Bo(a,l),r.push(l),s&&typeof i=="number"&&a.range.start>i+1024&&t.errors.push(rs(e,s)),s=void 0,i=null}break;default:s!==void 0&&r.push(new T(s)),s=pe(t,a),i=a.range.start,a.error&&t.errors.push(a.error);e:for(let c=o+1;;++c){let l=e.items[c];switch(l&&l.type){case p.Type.BLANK_LINE:case p.Type.COMMENT:continue e;case p.Type.MAP_VALUE:break e;default:{let f="Implicit map keys need to be followed by map values";t.errors.push(new p.YAMLSemanticError(a,f));break e}}}if(a.valueRangeContainsNewline){let c="Implicit map keys need to be on a single line";t.errors.push(new p.YAMLSemanticError(a,c))}}}return s!==void 0&&r.push(new T(s)),{comments:n,items:r}}function qo(t,e){let n=[],r=[],s,i=!1,o="{";for(let a=0;ai instanceof T&&i.key instanceof Q)){let i="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";t.warnings.push(new p.YAMLWarning(e,i))}return e.resolved=s,s}function Vo(t,e){let n=[],r=[];for(let s=0;so+1024&&t.errors.push(rs(e,i));let{src:h}=c.context;for(let d=o;d{"use strict";var G=ce(),O=De(),Ko={identify:t=>t instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(t,e)=>{let n=O.resolveString(t,e);if(typeof Buffer=="function")return Buffer.from(n,"base64");if(typeof atob=="function"){let r=atob(n.replace(/[\n\r]/g,"")),s=new Uint8Array(r.length);for(let i=0;i{let o;if(typeof Buffer=="function")o=n instanceof Buffer?n.toString("base64"):Buffer.from(n.buffer).toString("base64");else if(typeof btoa=="function"){let a="";for(let c=0;c1){let o="Each pair must have its own sequence indicator";throw new G.YAMLSemanticError(e,o)}let i=s.items[0]||new O.Pair;s.commentBefore&&(i.commentBefore=i.commentBefore?`${s.commentBefore} +${i.commentBefore}`:s.commentBefore),s.comment&&(i.comment=i.comment?`${s.comment} +${i.comment}`:s.comment),s=i}n.items[r]=s instanceof O.Pair?s:new O.Pair(s)}}return n}function as(t,e,n){let r=new O.YAMLSeq(t);r.tag="tag:yaml.org,2002:pairs";for(let s of e){let i,o;if(Array.isArray(s))if(s.length===2)i=s[0],o=s[1];else throw new TypeError(`Expected [key, value] tuple: ${s}`);else if(s&&s instanceof Object){let c=Object.keys(s);if(c.length===1)i=c[0],o=s[i];else throw new TypeError(`Expected { key: value } tuple: ${s}`)}else i=s;let a=t.createPair(i,o,n);r.items.push(a)}return r}var jo={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:os,createNode:as},$e=class t extends O.YAMLSeq{constructor(){super(),G._defineProperty(this,"add",O.YAMLMap.prototype.add.bind(this)),G._defineProperty(this,"delete",O.YAMLMap.prototype.delete.bind(this)),G._defineProperty(this,"get",O.YAMLMap.prototype.get.bind(this)),G._defineProperty(this,"has",O.YAMLMap.prototype.has.bind(this)),G._defineProperty(this,"set",O.YAMLMap.prototype.set.bind(this)),this.tag=t.tag}toJSON(e,n){let r=new Map;n&&n.onCreate&&n.onCreate(r);for(let s of this.items){let i,o;if(s instanceof O.Pair?(i=O.toJSON(s.key,"",n),o=O.toJSON(s.value,i,n)):i=O.toJSON(s,"",n),r.has(i))throw new Error("Ordered maps must not include duplicate keys");r.set(i,o)}return r}};G._defineProperty($e,"tag","tag:yaml.org,2002:omap");function Qo(t,e){let n=os(t,e),r=[];for(let{key:s}of n.items)if(s instanceof O.Scalar)if(r.includes(s.value)){let i="Ordered maps must not include duplicate keys";throw new G.YAMLSemanticError(e,i)}else r.push(s.value);return Object.assign(new $e,n)}function Go(t,e,n){let r=as(t,e,n),s=new $e;return s.items=r.items,s}var Ho={identify:t=>t instanceof Map,nodeClass:$e,default:!1,tag:"tag:yaml.org,2002:omap",resolve:Qo,createNode:Go},Ye=class t extends O.YAMLMap{constructor(){super(),this.tag=t.tag}add(e){let n=e instanceof O.Pair?e:new O.Pair(e);O.findPair(this.items,n.key)||this.items.push(n)}get(e,n){let r=O.findPair(this.items,e);return!n&&r instanceof O.Pair?r.key instanceof O.Scalar?r.key.value:r.key:r}set(e,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);let r=O.findPair(this.items,e);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new O.Pair(e))}toJSON(e,n){return super.toJSON(e,n,Set)}toString(e,n,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,n,r);throw new Error("Set items must all have null values")}};G._defineProperty(Ye,"tag","tag:yaml.org,2002:set");function Jo(t,e){let n=O.resolveMap(t,e);if(!n.hasAllNullValues())throw new G.YAMLSemanticError(e,"Set items must all have null values");return Object.assign(new Ye,n)}function Xo(t,e,n){let r=new Ye;for(let s of e)r.items.push(t.createPair(s,null,n));return r}var zo={identify:t=>t instanceof Set,nodeClass:Ye,default:!1,tag:"tag:yaml.org,2002:set",resolve:Jo,createNode:Xo},$n=(t,e)=>{let n=e.split(":").reduce((r,s)=>r*60+Number(s),0);return t==="-"?-n:n},cs=({value:t})=>{if(isNaN(t)||!isFinite(t))return O.stringifyNumber(t);let e="";t<0&&(e="-",t=Math.abs(t));let n=[t%60];return t<60?n.unshift(0):(t=Math.round((t-n[0])/60),n.unshift(t%60),t>=60&&(t=Math.round((t-n[0])/60),n.unshift(t))),e+n.map(r=>r<10?"0"+String(r):String(r)).join(":").replace(/000000\d*$/,"")},Zo={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(t,e,n)=>$n(e,n.replace(/_/g,"")),stringify:cs},ea={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(t,e,n)=>$n(e,n.replace(/_/g,"")),stringify:cs},ta={identify:t=>t instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:(t,e,n,r,s,i,o,a,c)=>{a&&(a=(a+"00").substr(1,3));let l=Date.UTC(e,n-1,r,s||0,i||0,o||0,a||0);if(c&&c!=="Z"){let f=$n(c[0],c.slice(1));Math.abs(f)<30&&(f*=60),l-=6e4*f}return new Date(l)},stringify:({value:t})=>t.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};function Yn(t){let e={};return t?typeof YAML_SILENCE_DEPRECATION_WARNINGS<"u"?!YAML_SILENCE_DEPRECATION_WARNINGS:!e.YAML_SILENCE_DEPRECATION_WARNINGS:typeof YAML_SILENCE_WARNINGS<"u"?!YAML_SILENCE_WARNINGS:!e.YAML_SILENCE_WARNINGS}function Bn(t,e){Yn(!1)&&console.warn(e?`${e}: ${t}`:t)}function na(t){if(Yn(!0)){let e=t.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/");Bn(`The endpoint 'yaml/${e}' will be removed in a future release.`,"DeprecationWarning")}}var is={};function ra(t,e){if(!is[t]&&Yn(!0)){is[t]=!0;let n=`The option '${t}' will be removed in a future release`;n+=e?`, use '${e}' instead.`:".",Bn(n,"DeprecationWarning")}}ee.binary=Ko;ee.floatTime=ea;ee.intTime=Zo;ee.omap=Ho;ee.pairs=jo;ee.set=zo;ee.timestamp=ta;ee.warn=Bn;ee.warnFileDeprecation=na;ee.warnOptionDeprecation=ra});var Wn=ne(bs=>{"use strict";var Vt=ce(),E=De(),$=Fn();function sa(t,e,n){let r=new E.YAMLMap(t);if(e instanceof Map)for(let[s,i]of e)r.items.push(t.createPair(s,i,n));else if(e&&typeof e=="object")for(let s of Object.keys(e))r.items.push(t.createPair(s,e[s],n));return typeof t.sortMapEntries=="function"&&r.items.sort(t.sortMapEntries),r}var ft={createNode:sa,default:!0,nodeClass:E.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:E.resolveMap};function ia(t,e,n){let r=new E.YAMLSeq(t);if(e&&e[Symbol.iterator])for(let s of e){let i=t.createNode(s,n.wrapScalars,null,n);r.items.push(i)}return r}var Wt={createNode:ia,default:!0,nodeClass:E.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:E.resolveSeq},oa={identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:E.resolveString,stringify(t,e,n,r){return e=Object.assign({actualString:!0},e),E.stringifyString(t,e,n,r)},options:E.strOptions},Un=[ft,Wt,oa],Kt=t=>typeof t=="bigint"||Number.isInteger(t),Vn=(t,e,n)=>E.intOptions.asBigInt?BigInt(t):parseInt(e,n);function us(t,e,n){let{value:r}=t;return Kt(r)&&r>=0?n+r.toString(e):E.stringifyNumber(t)}var ps={identify:t=>t==null,createNode:(t,e,n)=>n.wrapScalars?new E.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:E.nullOptions,stringify:()=>E.nullOptions.nullStr},ms={identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:t=>t[0]==="t"||t[0]==="T",options:E.boolOptions,stringify:({value:t})=>t?E.boolOptions.trueStr:E.boolOptions.falseStr},hs={identify:t=>Kt(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(t,e)=>Vn(t,e,8),options:E.intOptions,stringify:t=>us(t,8,"0o")},ds={identify:Kt,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:t=>Vn(t,t,10),options:E.intOptions,stringify:E.stringifyNumber},gs={identify:t=>Kt(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(t,e)=>Vn(t,e,16),options:E.intOptions,stringify:t=>us(t,16,"0x")},ys={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(t,e)=>e?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:E.stringifyNumber},Es={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t),stringify:({value:t})=>Number(t).toExponential()},Ss={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(t,e,n){let r=e||n,s=new E.Scalar(parseFloat(t));return r&&r[r.length-1]==="0"&&(s.minFractionDigits=r.length),s},stringify:E.stringifyNumber},aa=Un.concat([ps,ms,hs,ds,gs,ys,Es,Ss]),ls=t=>typeof t=="bigint"||Number.isInteger(t),qt=({value:t})=>JSON.stringify(t),ws=[ft,Wt,{identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:E.resolveString,stringify:qt},{identify:t=>t==null,createNode:(t,e,n)=>n.wrapScalars?new E.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:qt},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:t=>t==="true",stringify:qt},{identify:ls,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:t=>E.intOptions.asBigInt?BigInt(t):parseInt(t,10),stringify:({value:t})=>ls(t)?t.toString():JSON.stringify(t)},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:t=>parseFloat(t),stringify:qt}];ws.scalarFallback=t=>{throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(t)}`)};var fs=({value:t})=>t?E.boolOptions.trueStr:E.boolOptions.falseStr,lt=t=>typeof t=="bigint"||Number.isInteger(t);function Ut(t,e,n){let r=e.replace(/_/g,"");if(E.intOptions.asBigInt){switch(n){case 2:r=`0b${r}`;break;case 8:r=`0o${r}`;break;case 16:r=`0x${r}`;break}let i=BigInt(r);return t==="-"?BigInt(-1)*i:i}let s=parseInt(r,n);return t==="-"?-1*s:s}function qn(t,e,n){let{value:r}=t;if(lt(r)){let s=r.toString(e);return r<0?"-"+n+s.substr(1):n+s}return E.stringifyNumber(t)}var ca=Un.concat([{identify:t=>t==null,createNode:(t,e,n)=>n.wrapScalars?new E.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:E.nullOptions,stringify:()=>E.nullOptions.nullStr},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>!0,options:E.boolOptions,stringify:fs},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>!1,options:E.boolOptions,stringify:fs},{identify:lt,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(t,e,n)=>Ut(e,n,2),stringify:t=>qn(t,2,"0b")},{identify:lt,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(t,e,n)=>Ut(e,n,8),stringify:t=>qn(t,8,"0")},{identify:lt,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(t,e,n)=>Ut(e,n,10),stringify:E.stringifyNumber},{identify:lt,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(t,e,n)=>Ut(e,n,16),stringify:t=>qn(t,16,"0x")},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(t,e)=>e?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:E.stringifyNumber},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t.replace(/_/g,"")),stringify:({value:t})=>Number(t).toExponential()},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(t,e){let n=new E.Scalar(parseFloat(t.replace(/_/g,"")));if(e){let r=e.replace(/_/g,"");r[r.length-1]==="0"&&(n.minFractionDigits=r.length)}return n},stringify:E.stringifyNumber}],$.binary,$.omap,$.pairs,$.set,$.intTime,$.floatTime,$.timestamp),la={core:aa,failsafe:Un,json:ws,yaml11:ca},fa={binary:$.binary,bool:ms,float:Ss,floatExp:Es,floatNaN:ys,floatTime:$.floatTime,int:ds,intHex:gs,intOct:hs,intTime:$.intTime,map:ft,null:ps,omap:$.omap,pairs:$.pairs,seq:Wt,set:$.set,timestamp:$.timestamp};function ua(t,e,n){if(e){let r=n.filter(i=>i.tag===e),s=r.find(i=>!i.format)||r[0];if(!s)throw new Error(`Tag ${e} not found`);return s}return n.find(r=>(r.identify&&r.identify(t)||r.class&&t instanceof r.class)&&!r.format)}function pa(t,e,n){if(t instanceof E.Node)return t;let{defaultPrefix:r,onTagObj:s,prevObjects:i,schema:o,wrapScalars:a}=n;e&&e.startsWith("!!")&&(e=r+e.slice(2));let c=ua(t,e,o.tags);if(!c){if(typeof t.toJSON=="function"&&(t=t.toJSON()),!t||typeof t!="object")return a?new E.Scalar(t):t;c=t instanceof Map?ft:t[Symbol.iterator]?Wt:ft}s&&(s(c),delete n.onTagObj);let l={value:void 0,node:void 0};if(t&&typeof t=="object"&&i){let f=i.get(t);if(f){let m=new E.Alias(f);return n.aliasNodes.push(m),m}l.value=t,i.set(t,l)}return l.node=c.createNode?c.createNode(n.schema,t,n):a?new E.Scalar(t):t,e&&l.node instanceof E.Node&&(l.node.tag=e),l.node}function ma(t,e,n,r){let s=t[r.replace(/\W/g,"")];if(!s){let i=Object.keys(t).map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown schema "${r}"; use one of ${i}`)}if(Array.isArray(n))for(let i of n)s=s.concat(i);else typeof n=="function"&&(s=n(s.slice()));for(let i=0;iJSON.stringify(l)).join(", ");throw new Error(`Unknown custom tag "${o}"; use one of ${c}`)}s[i]=a}}return s}var ha=(t,e)=>t.keye.key?1:0,ut=class t{constructor({customTags:e,merge:n,schema:r,sortMapEntries:s,tags:i}){this.merge=!!n,this.name=r,this.sortMapEntries=s===!0?ha:s||null,!e&&i&&$.warnOptionDeprecation("tags","customTags"),this.tags=ma(la,fa,e||i,r)}createNode(e,n,r,s){let i={defaultPrefix:t.defaultPrefix,schema:this,wrapScalars:n},o=s?Object.assign(s,i):i;return pa(e,r,o)}createPair(e,n,r){r||(r={wrapScalars:!0});let s=this.createNode(e,r.wrapScalars,null,r),i=this.createNode(n,r.wrapScalars,null,r);return new E.Pair(s,i)}};Vt._defineProperty(ut,"defaultPrefix",Vt.defaultTagPrefix);Vt._defineProperty(ut,"defaultTags",Vt.defaultTags);bs.Schema=ut});var Ls=ne(Ht=>{"use strict";var Y=ce(),S=De(),Ns=Wn(),da={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},ga={get binary(){return S.binaryOptions},set binary(t){Object.assign(S.binaryOptions,t)},get bool(){return S.boolOptions},set bool(t){Object.assign(S.boolOptions,t)},get int(){return S.intOptions},set int(t){Object.assign(S.intOptions,t)},get null(){return S.nullOptions},set null(t){Object.assign(S.nullOptions,t)},get str(){return S.strOptions},set str(t){Object.assign(S.strOptions,t)}},As={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:Y.defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:Y.defaultTagPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:Y.defaultTagPrefix}]}};function Os(t,e){if((t.version||t.options.version)==="1.0"){let s=e.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(s)return"!"+s[1];let i=e.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return i?`!${i[1]}/${i[2]}`:`!${e.replace(/^tag:/,"")}`}let n=t.tagPrefixes.find(s=>e.indexOf(s.prefix)===0);if(!n){let s=t.getDefaults().tagPrefixes;n=s&&s.find(i=>e.indexOf(i.prefix)===0)}if(!n)return e[0]==="!"?e:`!<${e}>`;let r=e.substr(n.prefix.length).replace(/[!,[\]{}]/g,s=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"})[s]);return n.handle+r}function ya(t,e){if(e instanceof S.Alias)return S.Alias;if(e.tag){let s=t.filter(i=>i.tag===e.tag);if(s.length>0)return s.find(i=>i.format===e.format)||s[0]}let n,r;if(e instanceof S.Scalar){r=e.value;let s=t.filter(i=>i.identify&&i.identify(r)||i.class&&r instanceof i.class);n=s.find(i=>i.format===e.format)||s.find(i=>!i.format)}else r=e,n=t.find(s=>s.nodeClass&&r instanceof s.nodeClass);if(!n){let s=r&&r.constructor?r.constructor.name:typeof r;throw new Error(`Tag not resolved for ${s} value`)}return n}function Ea(t,e,{anchors:n,doc:r}){let s=[],i=r.anchors.getName(t);return i&&(n[i]=t,s.push(`&${i}`)),t.tag?s.push(Os(r,t.tag)):e.default||s.push(Os(r,e.tag)),s.join(" ")}function jt(t,e,n,r){let{anchors:s,schema:i}=e.doc,o;if(!(t instanceof S.Node)){let l={aliasNodes:[],onTagObj:f=>o=f,prevObjects:new Map};t=i.createNode(t,!0,null,l);for(let f of l.aliasNodes){f.source=f.source.node;let m=s.getName(f.source);m||(m=s.newName(),s.map[m]=f.source)}}if(t instanceof S.Pair)return t.toString(e,n,r);o||(o=ya(i.tags,t));let a=Ea(t,o,e);a.length>0&&(e.indentAtStart=(e.indentAtStart||0)+a.length+1);let c=typeof o.stringify=="function"?o.stringify(t,e,n,r):t instanceof S.Scalar?S.stringifyString(t,e,n,r):t.toString(e,n,r);return a?t instanceof S.Scalar||c[0]==="{"||c[0]==="["?`${a} ${c}`:`${a} +${e.indent}${c}`:c}var Kn=class t{static validAnchorNode(e){return e instanceof S.Scalar||e instanceof S.YAMLSeq||e instanceof S.YAMLMap}constructor(e){Y._defineProperty(this,"map",Object.create(null)),this.prefix=e}createAlias(e,n){return this.setAnchor(e,n),new S.Alias(e)}createMergePair(...e){let n=new S.Merge;return n.value.items=e.map(r=>{if(r instanceof S.Alias){if(r.source instanceof S.YAMLMap)return r}else if(r instanceof S.YAMLMap)return this.createAlias(r);throw new Error("Merge sources must be Map nodes or their Aliases")}),n}getName(e){let{map:n}=this;return Object.keys(n).find(r=>n[r]===e)}getNames(){return Object.keys(this.map)}getNode(e){return this.map[e]}newName(e){e||(e=this.prefix);let n=Object.keys(this.map);for(let r=1;;++r){let s=`${e}${r}`;if(!n.includes(s))return s}}resolveNodes(){let{map:e,_cstAliases:n}=this;Object.keys(e).forEach(r=>{e[r]=e[r].resolved}),n.forEach(r=>{r.source=r.source.resolved}),delete this._cstAliases}setAnchor(e,n){if(e!=null&&!t.validAnchorNode(e))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(n&&/[\x00-\x19\s,[\]{}]/.test(n))throw new Error("Anchor names must not contain whitespace or control characters");let{map:r}=this,s=e&&Object.keys(r).find(i=>r[i]===e);if(s)if(n)s!==n&&(delete r[s],r[n]=e);else return s;else{if(!n){if(!e)return null;n=this.newName()}r[n]=e}return n}},Qt=(t,e)=>{if(t&&typeof t=="object"){let{tag:n}=t;t instanceof S.Collection?(n&&(e[n]=!0),t.items.forEach(r=>Qt(r,e))):t instanceof S.Pair?(Qt(t.key,e),Qt(t.value,e)):t instanceof S.Scalar&&n&&(e[n]=!0)}return e},Sa=t=>Object.keys(Qt(t,{}));function wa(t,e){let n={before:[],after:[]},r,s=!1;for(let i of e)if(i.valueRange){if(r!==void 0){let a="Document contains trailing content not separated by a ... or --- line";t.errors.push(new Y.YAMLSyntaxError(i,a));break}let o=S.resolveNode(t,i);s&&(o.spaceBefore=!0,s=!1),r=o}else i.comment!==null?(r===void 0?n.before:n.after).push(i.comment):i.type===Y.Type.BLANK_LINE&&(s=!0,r===void 0&&n.before.length>0&&!t.commentBefore&&(t.commentBefore=n.before.join(` +`),n.before=[]));if(t.contents=r||null,!r)t.comment=n.before.concat(n.after).join(` +`)||null;else{let i=n.before.join(` +`);if(i){let o=r instanceof S.Collection&&r.items[0]?r.items[0]:r;o.commentBefore=o.commentBefore?`${i} +${o.commentBefore}`:i}t.comment=n.after.join(` +`)||null}}function ba({tagPrefixes:t},e){let[n,r]=e.parameters;if(!n||!r){let s="Insufficient parameters given for %TAG directive";throw new Y.YAMLSemanticError(e,s)}if(t.some(s=>s.handle===n)){let s="The %TAG directive must only be given at most once per handle in the same document.";throw new Y.YAMLSemanticError(e,s)}return{handle:n,prefix:r}}function Na(t,e){let[n]=e.parameters;if(e.name==="YAML:1.0"&&(n="1.0"),!n){let r="Insufficient parameters given for %YAML directive";throw new Y.YAMLSemanticError(e,r)}if(!As[n]){let s=`Document will be parsed as YAML ${t.version||t.options.version} rather than YAML ${n}`;t.warnings.push(new Y.YAMLWarning(e,s))}return n}function Oa(t,e,n){let r=[],s=!1;for(let i of e){let{comment:o,name:a}=i;switch(a){case"TAG":try{t.tagPrefixes.push(ba(t,i))}catch(c){t.errors.push(c)}s=!0;break;case"YAML":case"YAML:1.0":if(t.version){let c="The %YAML directive must only be given at most once per document.";t.errors.push(new Y.YAMLSemanticError(i,c))}try{t.version=Na(t,i)}catch(c){t.errors.push(c)}s=!0;break;default:if(a){let c=`YAML only supports %TAG and %YAML directives, and not %${a}`;t.warnings.push(new Y.YAMLWarning(i,c))}}o&&r.push(o)}if(n&&!s&&(t.version||n.version||t.options.version)==="1.1"){let i=({handle:o,prefix:a})=>({handle:o,prefix:a});t.tagPrefixes=n.tagPrefixes.map(i),t.version=n.version}t.commentBefore=r.join(` +`)||null}function Be(t){if(t instanceof S.Collection)return!0;throw new Error("Expected a YAML collection as document contents")}var Gt=class t{constructor(e){this.anchors=new Kn(e.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=e,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}add(e){return Be(this.contents),this.contents.add(e)}addIn(e,n){Be(this.contents),this.contents.addIn(e,n)}delete(e){return Be(this.contents),this.contents.delete(e)}deleteIn(e){return S.isEmptyPath(e)?this.contents==null?!1:(this.contents=null,!0):(Be(this.contents),this.contents.deleteIn(e))}getDefaults(){return t.defaults[this.version]||t.defaults[this.options.version]||{}}get(e,n){return this.contents instanceof S.Collection?this.contents.get(e,n):void 0}getIn(e,n){return S.isEmptyPath(e)?!n&&this.contents instanceof S.Scalar?this.contents.value:this.contents:this.contents instanceof S.Collection?this.contents.getIn(e,n):void 0}has(e){return this.contents instanceof S.Collection?this.contents.has(e):!1}hasIn(e){return S.isEmptyPath(e)?this.contents!==void 0:this.contents instanceof S.Collection?this.contents.hasIn(e):!1}set(e,n){Be(this.contents),this.contents.set(e,n)}setIn(e,n){S.isEmptyPath(e)?this.contents=n:(Be(this.contents),this.contents.setIn(e,n))}setSchema(e,n){if(!e&&!n&&this.schema)return;typeof e=="number"&&(e=e.toFixed(1)),e==="1.0"||e==="1.1"||e==="1.2"?(this.version?this.version=e:this.options.version=e,delete this.options.schema):e&&typeof e=="string"&&(this.options.schema=e),Array.isArray(n)&&(this.options.customTags=n);let r=Object.assign({},this.getDefaults(),this.options);this.schema=new Ns.Schema(r)}parse(e,n){this.options.keepCstNodes&&(this.cstNode=e),this.options.keepNodeTypes&&(this.type="DOCUMENT");let{directives:r=[],contents:s=[],directivesEndMarker:i,error:o,valueRange:a}=e;if(o&&(o.source||(o.source=this),this.errors.push(o)),Oa(this,r,n),i&&(this.directivesEndMarker=!0),this.range=a?[a.start,a.end]:null,this.setSchema(),this.anchors._cstAliases=[],wa(this,s),this.anchors.resolveNodes(),this.options.prettyErrors){for(let c of this.errors)c instanceof Y.YAMLError&&c.makePretty();for(let c of this.warnings)c instanceof Y.YAMLError&&c.makePretty()}return this}listNonDefaultTags(){return Sa(this.contents).filter(e=>e.indexOf(Ns.Schema.defaultPrefix)!==0)}setTagPrefix(e,n){if(e[0]!=="!"||e[e.length-1]!=="!")throw new Error("Handle must start and end with !");if(n){let r=this.tagPrefixes.find(s=>s.handle===e);r?r.prefix=n:this.tagPrefixes.push({handle:e,prefix:n})}else this.tagPrefixes=this.tagPrefixes.filter(r=>r.handle!==e)}toJSON(e,n){let{keepBlobsInJSON:r,mapAsMap:s,maxAliasCount:i}=this.options,o=r&&(typeof e!="string"||!(this.contents instanceof S.Scalar)),a={doc:this,indentStep:" ",keep:o,mapAsMap:o&&!!s,maxAliasCount:i,stringify:jt},c=Object.keys(this.anchors.map);c.length>0&&(a.anchors=new Map(c.map(f=>[this.anchors.map[f],{alias:[],aliasCount:0,count:1}])));let l=S.toJSON(this.contents,e,a);if(typeof n=="function"&&a.anchors)for(let{count:f,res:m}of a.anchors.values())n(m,f);return l}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");let e=this.options.indent;if(!Number.isInteger(e)||e<=0){let c=JSON.stringify(e);throw new Error(`"indent" option must be a positive integer, not ${c}`)}this.setSchema();let n=[],r=!1;if(this.version){let c="%YAML 1.2";this.schema.name==="yaml-1.1"&&(this.version==="1.0"?c="%YAML:1.0":this.version==="1.1"&&(c="%YAML 1.1")),n.push(c),r=!0}let s=this.listNonDefaultTags();this.tagPrefixes.forEach(({handle:c,prefix:l})=>{s.some(f=>f.indexOf(l)===0)&&(n.push(`%TAG ${c} ${l}`),r=!0)}),(r||this.directivesEndMarker)&&n.push("---"),this.commentBefore&&((r||!this.directivesEndMarker)&&n.unshift(""),n.unshift(this.commentBefore.replace(/^/gm,"#")));let i={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(e),stringify:jt},o=!1,a=null;if(this.contents){this.contents instanceof S.Node&&(this.contents.spaceBefore&&(r||this.directivesEndMarker)&&n.push(""),this.contents.commentBefore&&n.push(this.contents.commentBefore.replace(/^/gm,"#")),i.forceBlockIndent=!!this.comment,a=this.contents.comment);let c=a?null:()=>o=!0,l=jt(this.contents,i,()=>a=null,c);n.push(S.addComment(l,"",a))}else this.contents!==void 0&&n.push(jt(this.contents,i));return this.comment&&((!o||a)&&n[n.length-1]!==""&&n.push(""),n.push(this.comment.replace(/^/gm,"#"))),n.join(` +`)+` +`}};Y._defineProperty(Gt,"defaults",As);Ht.Document=Gt;Ht.defaultOptions=da;Ht.scalarOptions=ga});var Ms=ne(Cs=>{"use strict";var jn=Qr(),Ne=Ls(),Aa=Wn(),La=ce(),Ta=Fn();De();function Ca(t,e=!0,n){n===void 0&&typeof e=="string"&&(n=e,e=!0);let r=Object.assign({},Ne.Document.defaults[Ne.defaultOptions.version],Ne.defaultOptions);return new Aa.Schema(r).createNode(t,e,n)}var Fe=class extends Ne.Document{constructor(e){super(Object.assign({},Ne.defaultOptions,e))}};function Ma(t,e){let n=[],r;for(let s of jn.parse(t)){let i=new Fe(e);i.parse(s,r),n.push(i),r=i}return n}function Ts(t,e){let n=jn.parse(t),r=new Fe(e).parse(n[0]);if(n.length>1){let s="Source contains multiple documents; please use YAML.parseAllDocuments()";r.errors.unshift(new La.YAMLSemanticError(n[1],s))}return r}function ka(t,e){let n=Ts(t,e);if(n.warnings.forEach(r=>Ta.warn(r)),n.errors.length>0)throw n.errors[0];return n.toJSON()}function Pa(t,e){let n=new Fe(e);return n.contents=t,String(n)}var va={createNode:Ca,defaultOptions:Ne.defaultOptions,Document:Fe,parse:ka,parseAllDocuments:Ma,parseCST:jn.parse,parseDocument:Ts,scalarOptions:Ne.scalarOptions,stringify:Pa};Cs.YAML=va});var Ps=ne((Af,ks)=>{ks.exports=Ms().YAML});var vs=ne(H=>{"use strict";var qe=De(),Ue=ce();H.findPair=qe.findPair;H.parseMap=qe.resolveMap;H.parseSeq=qe.resolveSeq;H.stringifyNumber=qe.stringifyNumber;H.stringifyString=qe.stringifyString;H.toJSON=qe.toJSON;H.Type=Ue.Type;H.YAMLError=Ue.YAMLError;H.YAMLReferenceError=Ue.YAMLReferenceError;H.YAMLSemanticError=Ue.YAMLSemanticError;H.YAMLSyntaxError=Ue.YAMLSyntaxError;H.YAMLWarning=Ue.YAMLWarning});var Ja={};sr(Ja,{languages:()=>Ur,options:()=>Vr,parsers:()=>rr,printers:()=>Ha});var ht=(t,e)=>(n,r,...s)=>n|1&&r==null?void 0:(e.call(r)??r[t]).apply(r,s);function xi(t){return this[t<0?this.length+t:t]}var Ri=ht("at",function(){if(Array.isArray(this)||typeof this=="string")return xi}),D=Ri;var Di=String.prototype.replaceAll??function(t,e){return t.global?this.replace(t,e):this.split(t).join(e)},$i=ht("replaceAll",function(){if(typeof this=="string")return Di}),dt=$i;var Yi=()=>{},je=Yi;var Qe="string",Ge="array",gt="cursor",yt="indent",Ae="align",Et="trim",Le="group",Te="fill",Ce="if-break",St="indent-if-break",Me="line-suffix",wt="line-suffix-boundary",re="line",bt="label",ke="break-parent",Nt=new Set([gt,yt,Ae,Et,Le,Te,Ce,St,Me,wt,re,bt,ke]);function Bi(t){if(typeof t=="string")return Qe;if(Array.isArray(t))return Ge;if(!t)return;let{type:e}=t;if(Nt.has(e))return e}var Ot=Bi;var Fi=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function qi(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}', +Expected it to be 'string' or 'object'.`;if(Ot(t))throw new Error("doc is valid.");let n=Object.prototype.toString.call(t);if(n!=="[object Object]")return`Unexpected doc '${n}'.`;let r=Fi([...Nt].map(s=>`'${s}'`));return`Unexpected doc.type '${t.type}'. +Expected it to be ${r}.`}var on=class extends Error{name="InvalidDocError";constructor(e){super(qi(e)),this.doc=e}},ar=on;function Ui(t,e){if(typeof t=="string")return e(t);let n=new Map;return r(t);function r(i){if(n.has(i))return n.get(i);let o=s(i);return n.set(i,o),o}function s(i){switch(Ot(i)){case Ge:return e(i.map(r));case Te:return e({...i,parts:i.parts.map(r)});case Ce:return e({...i,breakContents:r(i.breakContents),flatContents:r(i.flatContents)});case Le:{let{expandedStates:o,contents:a}=i;return o?(o=o.map(r),a=o[0]):a=r(a),e({...i,contents:a,expandedStates:o})}case Ae:case yt:case St:case bt:case Me:return e({...i,contents:r(i.contents)});case Qe:case gt:case Et:case wt:case re:case ke:return e(i);default:throw new ar(i)}}}function cr(t,e=He){return Ui(t,n=>typeof n=="string"?v(e,n.split(` +`)):n)}var Z=je,At=je,lr=je,fr=je;function Je(t,e){return fr(t),Z(e),{type:Ae,contents:e,n:t}}function an(t){return Je(Number.NEGATIVE_INFINITY,t)}function ur(t){return Je({type:"root"},t)}function pr(t){return Je(-1,t)}var Xe={type:ke};function Lt(t){return lr(t),{type:Te,parts:t}}function Pe(t,e={}){return Z(t),At(e.expandedStates,!0),{type:Le,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function cn(t,e){return Pe(t[0],{...e,expandedStates:t})}function ze(t,e="",n={}){return Z(t),e!==""&&Z(e),{type:Ce,breakContents:t,flatContents:e,groupId:n.groupId}}function v(t,e){Z(t),At(e);let n=[];for(let r=0;r{let s=!!r?.backwards;if(n===!1)return!1;let{length:i}=e,o=n;for(;o>=0&&ot===` +`||t==="\r"||t==="\u2028"||t==="\u2029";function Ki(t,e,n){let r=!!n?.backwards;if(e===!1)return!1;let s=t.charAt(e);if(r){if(t.charAt(e-1)==="\r"&&s===` +`)return e-2;if(hr(s))return e-1}else{if(s==="\r"&&t.charAt(e+1)===` +`)return e+2;if(hr(s))return e+1}return e}var fn=Ki;function ji(t,e){let n=e-1;n=ln(t,n,{backwards:!0}),n=fn(t,n,{backwards:!0}),n=ln(t,n,{backwards:!0});let r=fn(t,n,{backwards:!0});return n!==r}var un=ji;var pn=class extends Error{name="UnexpectedNodeError";constructor(e,n,r="type"){super(`Unexpected ${n} node ${r}: ${JSON.stringify(e[r])}.`),this.node=e}},dr=pn;var gr="format";var yr=/^\s*#[^\S\n]*@(?:noformat|noprettier)\s*?(?:\n|$)/u,Er=/^\s*#[^\S\n]*@(?:format|prettier)\s*?(?:\n|$)/u,Sr=/^\s*@(?:format|prettier)\s*$/u;var wr=t=>Sr.test(t),br=t=>Er.test(t),Nr=t=>yr.test(t),Or=t=>`# @${gr} + +${t}`;function Ar(t,e){switch(t.type){case"comment":if(wr(t.value))return null;break;case"quoteDouble":case"quoteSingle":e.type="quote";break;case"document":e.directivesEndMarker||delete e.directivesEndMarker,e.documentEndMarker||delete e.documentEndMarker;break}}Ar.ignoredProperties=new Set(["position"]);var Lr=Ar;function Tr(t,e){let{node:n}=t;if(n.type==="root"&&e.filepath&&/(?:[/\\]|^)\.(?:prettier|stylelint|lintstaged)rc$/u.test(e.filepath))return async r=>{let s=await r(e.originalText,{parser:"json"});return s?[s,N]:void 0}}Tr.getVisitorKeys=()=>[];var Cr=Tr;var Ze=null;function et(t){if(Ze!==null&&typeof Ze.property){let e=Ze;return Ze=et.prototype=null,e}return Ze=et.prototype=t??Object.create(null),new et}var Qi=10;for(let t=0;t<=Qi;t++)et();function mn(t){return et(t)}function Gi(t,e="type"){mn(t);function n(r){let s=r[e],i=t[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:r});return i}return n}var Mr=Gi;var k=[["children","anchor","tag","indicatorComment","leadingComments","middleComments","trailingComment","endComments"],["anchor","tag","indicatorComment","leadingComments","middleComments","trailingComment","endComments"],["key","value","children","anchor","tag","indicatorComment","leadingComments","middleComments","trailingComment","endComments"],["content","children","anchor","tag","indicatorComment","leadingComments","middleComments","trailingComment","endComments"],["indicatorComment","leadingComments","middleComments","trailingComment","endComments"]],kr={root:k[0],document:["head","body","children","anchor","tag","indicatorComment","leadingComments","middleComments","trailingComment","endComments"],documentHead:k[0],documentBody:k[0],directive:k[1],alias:k[1],blockLiteral:k[1],blockFolded:k[0],plain:k[0],quoteSingle:k[1],quoteDouble:k[1],mapping:k[0],mappingItem:k[2],mappingKey:k[3],mappingValue:k[3],sequence:k[0],sequenceItem:k[3],flowMapping:k[0],flowMappingItem:k[2],flowSequence:k[0],flowSequenceItem:k[3],comment:k[1],tag:k[4],anchor:k[4]};var Hi=Mr(kr),Pr=Hi;var tt=t=>t.position.start.offset,vr=t=>t.position.end.offset;function Ji(t){return Array.isArray(t)&&t.length>0}var ve=Ji;function W(t,e){return typeof t?.type=="string"&&e.includes(t.type)}function hn(t,e,n){return e("children"in t?{...t,children:t.children.map(r=>hn(r,e,t))}:t,n)}function Ie(t,e,n){Object.defineProperty(t,e,{get:n,enumerable:!1})}function _r(t,e){let n=0,r=e.length;for(let s=t.position.end.offset-1;so===0&&o===a.length-1?i:o!==0&&o!==a.length-1?i.trim():o===0?i.trimEnd():i.trimStart());if(n.proseWrap==="preserve")return r.map(i=>i?[i]:[]);let s=[];for(let[i,o]of r.entries()){let a=Rr(o);i>0&&r[i-1].length>0&&a.length>0&&!(t==="quoteDouble"&&D(0,D(0,s,-1),-1).endsWith("\\"))?s[s.length-1]=[...D(0,s,-1),...a]:s.push(a)}return n.proseWrap==="never"?s.map(i=>[i.join(" ")]):s}function $r(t,{parentIndent:e,isLastDescendant:n,options:r}){let s=t.position.start.line===t.position.end.line?"":r.originalText.slice(t.position.start.offset,t.position.end.offset).match(/^[^\n]*\n(.*)$/su)[1],i;if(t.indent===null){let l=s.match(/^(? *)[^\n\r ]/mu);i=l?l.groups.leadingSpace.length:Number.POSITIVE_INFINITY}else i=t.indent-1+e;let o=s.split(` +`).map(l=>l.slice(i));if(r.proseWrap==="preserve"||t.type==="blockLiteral")return c(o.map(l=>l?[l]:[]));let a=[];for(let[l,f]of o.entries()){let m=Rr(f);l>0&&m.length>0&&o[l-1].length>0&&!/^\s/u.test(m[0])&&!/^\s|\s$/u.test(D(0,a,-1))?a[a.length-1]=[...D(0,a,-1),...m]:a.push(m)}return a=a.map(l=>{let f=[];for(let m of l)f.length>0&&/\s$/u.test(D(0,f,-1))?f[f.length-1]+=" "+m:f.push(m);return f}),r.proseWrap==="never"&&(a=a.map(l=>[l.join(" ")])),c(a);function c(l){if(t.chomping==="keep")return D(0,l,-1).length===0?l.slice(0,-1):l;let f=0;for(let m=l.length-1;m>=0&&l[m].length===0;m--)f++;return f===0?l:f>=2&&!n?l.slice(0,-(f-1)):l.slice(0,-f)}}function nt(t){if(!t)return!0;switch(t.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}var gn=new WeakMap;function Pt(t,e){let{node:n,root:r}=t,s;return gn.has(r)?s=gn.get(r):(s=new Set,gn.set(r,s)),!s.has(n.position.end.line)&&(s.add(n.position.end.line),_r(n,e)&&!yn(t.parent))?Tt:""}function yn(t){return I(t)&&!W(t,["documentHead","documentBody","flowMapping","flowSequence"])}function _(t,e){return Je(" ".repeat(t),e)}function zi(t,e,n){let{node:r}=t,s=t.ancestors.filter(l=>l.type==="sequence"||l.type==="mapping").length,i=Mt(t),o=[r.type==="blockFolded"?">":"|"];r.indent!==null&&o.push(r.indent.toString()),r.chomping!=="clip"&&o.push(r.chomping==="keep"?"+":"-"),dn(r)&&o.push(" ",n("indicatorComment"));let a=$r(r,{parentIndent:s,isLastDescendant:i,options:e}),c=[];for(let[l,f]of a.entries())l===0&&c.push(N),c.push(Lt(v(se,f))),l!==a.length-1?c.push(f.length===0?N:ur(He)):r.chomping==="keep"&&i&&c.push(an(f.length===0?N:He));return r.indent===null?o.push(pr(_(e.tabWidth,c))):o.push(an(_(r.indent-1+s,c))),o}var Yr=zi;function vt(t,e,n){let{node:r}=t,s=r.type==="flowMapping",i=s?"{":"[",o=s?"}":"]",a=Tt;s&&r.children.length>0&&e.bracketSpacing&&(a=se);let c=D(0,r.children,-1),l=c?.type==="flowMappingItem"&&_e(c.key)&&_e(c.value);return[i,_(e.tabWidth,[a,Zi(t,e,n),e.trailingComma==="none"?"":ze(","),I(r)?[N,v(N,t.map(n,"endComments"))]:""]),l?"":a,o]}function Zi(t,e,n){return t.map(({isLast:r,node:s,next:i})=>[n(),r?"":[",",se,s.position.start.line!==i.position.start.line?Pt(t,e.originalText):""]],"children")}function eo(t,e,n){let{node:r,parent:s}=t,{key:i,value:o}=r,a=_e(i),c=_e(o);if(a&&c)return": ";let l=n("key"),f=to(r)?" ":"";if(c)return r.type==="flowMappingItem"&&s.type==="flowMapping"?l:r.type==="mappingItem"&&En(i.content,e)&&!K(i.content)&&s.tag?.value!=="tag:yaml.org,2002:set"?[l,f,":"]:["? ",_(2,l)];let m=n("value");if(a)return[": ",_(2,m)];if(te(o)||!nt(i.content))return["? ",_(2,l),N,...t.map(()=>[n(),N],"value","leadingComments"),": ",_(2,m)];if(no(i.content)&&!te(i.content)&&!ae(i.content)&&!K(i.content)&&!I(i)&&!te(o.content)&&!ae(o.content)&&!I(o)&&En(o.content,e))return[l,f,": ",m];let g=Symbol("mappingKey"),y=Pe([ze("? "),Pe(_(2,l),{id:g})]),h=[N,": ",_(2,m)],d=[f,":"];I(o)&&o.content&&W(o.content,["flowMapping","flowSequence"])&&o.content.children.length===0?d.push(" "):te(o.content)||I(o)&&o.content&&!W(o.content,["mapping","sequence"])||s.type==="mapping"&&K(i.content)&&nt(o.content)||W(o.content,["mapping","sequence"])&&o.content.tag===null&&o.content.anchor===null?d.push(N):o.content?d.push(se):K(o)&&d.push(" "),d.push(m);let w=_(e.tabWidth,d);return En(i.content,e)&&!te(i.content)&&!ae(i.content)&&!K(i.content)&&!I(i)?cn([[l,w]]):cn([[y,ze(h,w,{groupId:g})]])}function En(t,e){if(!t)return!0;switch(t.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if(e.proseWrap==="preserve")return t.position.start.line===t.position.end.line;if(/\\$/mu.test(e.originalText.slice(t.position.start.offset,t.position.end.offset)))return!1;switch(e.proseWrap){case"never":return!t.value.includes(` +`);case"always":return!/[\n ]/u.test(t.value);default:return!1}}function to(t){return t.key.content?.type==="alias"}function no(t){if(!t)return!0;switch(t.type){case"plain":case"quoteDouble":case"quoteSingle":return t.position.start.line===t.position.end.line;case"alias":return!0;default:return!1}}var Br=eo;function ro(t){return hn(t,so)}function so(t){switch(t.type){case"document":Ie(t,"head",()=>t.children[0]),Ie(t,"body",()=>t.children[1]);break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":Ie(t,"content",()=>t.children[0]);break;case"mappingItem":case"flowMappingItem":Ie(t,"key",()=>t.children[0]),Ie(t,"value",()=>t.children[1]);break}return t}var Fr=ro;function io(t,e,n){let{node:r}=t,s=[];r.type!=="mappingValue"&&te(r)&&s.push([v(N,t.map(n,"leadingComments")),N]);let{tag:i,anchor:o}=r;i&&s.push(n("tag")),i&&o&&s.push(" "),o&&s.push(n("anchor"));let a="";return W(r,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!Mt(t)&&(a=Pt(t,e.originalText)),(i||o)&&(W(r,["sequence","mapping"])&&!ae(r)?s.push(N):s.push(" ")),ae(r)&&s.push([r.middleComments.length===1?"":N,v(N,t.map(n,"middleComments")),N]),xr(t)?s.push(cr(e.originalText.slice(r.position.start.offset,r.position.end.offset).trimEnd())):s.push(Pe(oo(t,e,n))),K(r)&&!W(r,["document","documentHead"])&&s.push(mr([r.type==="mappingValue"&&!r.content?"":" ",t.parent.type==="mappingKey"&&t.getParentNode(2).type==="mapping"&&nt(r)?"":Xe,n("trailingComment")])),yn(r)&&s.push(_(r.type==="sequenceItem"?2:0,[N,v(N,t.map(({node:c})=>[un(e.originalText,tt(c))?N:"",n()],"endComments"))])),s.push(a),s}function oo(t,e,n){let{node:r}=t;switch(r.type){case"root":{let s=kt(r),i=!(W(s,["blockLiteral","blockFolded"])&&s.chomping==="keep"),o=[];return t.each(({node:a,isFirst:c})=>{c||o.push(N),o.push(n()),co(t)&&(i&&o.push(N),o.push("..."),K(a)&&o.push(" ",n("trailingComment")))},"children"),i&&o.push(N),o}case"document":{let s=[];return lo(t)&&((r.head.children.length>0||r.head.endComments.length>0)&&s.push(n("head")),K(r.head)?s.push(["---"," ",n(["head","trailingComment"])]):s.push("---")),ao(r)&&s.push(n("body")),v(N,s)}case"documentHead":return v(N,[...t.map(n,"children"),...t.map(n,"endComments")]);case"documentBody":{let{children:s,endComments:i}=r,o="";if(s.length>0&&i.length>0){let a=kt(r);if(W(a,["blockFolded","blockLiteral"]))a.chomping!=="keep"&&(o=[N,N]);else{let c=D(0,s,-1);o=W(c,["mapping"])&&un(e.originalText,tt(i[0]))?[N,N]:N}}return[v(N,t.map(n,"children")),o,v(N,t.map(n,"endComments"))]}case"directive":return["%",v(" ",[r.name,...r.parameters])];case"comment":return["#",r.value];case"alias":return["*",r.value];case"tag":return e.originalText.slice(r.position.start.offset,r.position.end.offset);case"anchor":return["&",r.value];case"plain":return rt(r.type,e.originalText.slice(r.position.start.offset,r.position.end.offset),e);case"quoteDouble":case"quoteSingle":{let o=e.originalText.slice(r.position.start.offset+1,r.position.end.offset-1);if(r.type==="quoteSingle"&&o.includes("\\")||r.type==="quoteDouble"&&/\\[^"]/u.test(o)){let c=r.type==="quoteDouble"?'"':"'";return[c,rt(r.type,o,e),c]}if(o.includes('"'))return["'",rt(r.type,r.type==="quoteDouble"?dt(0,dt(0,o,'\\"','"'),"'","'".repeat(2)):o,e),"'"];if(o.includes("'"))return['"',rt(r.type,r.type==="quoteSingle"?dt(0,o,"''","'"):o,e),'"'];let a=e.singleQuote?"'":'"';return[a,rt(r.type,o,e),a]}case"blockFolded":case"blockLiteral":return Yr(t,e,n);case"mapping":case"sequence":return v(N,t.map(n,"children"));case"sequenceItem":return["- ",_(2,r.content?n("content"):"")];case"mappingKey":case"mappingValue":return r.content?n("content"):"";case"mappingItem":case"flowMappingItem":return Br(t,e,n);case"flowMapping":return vt(t,e,n);case"flowSequence":return vt(t,e,n);case"flowSequenceItem":return n("content");default:throw new dr(r,"YAML")}}function ao(t){return t.body.children.length>0||I(t.body)}function co(t){let e=t.node;if(e.documentEndMarker||K(e))return!0;if(t.isLast)return!1;let n=t.next;return n.head.children.length>0||I(n.head)}function lo(t){let e=t.node;return e.directivesEndMarker||e.head.children.length>0||I(e.head)||K(e.head)}function rt(t,e,n){let r=Dr(t,e,n);return v(N,r.map(s=>Lt(v(se,s))))}var fo={preprocess:Fr,embed:Cr,print:io,massageAstNode:Lr,insertPragma:Or,getVisitorKeys:Pr},qr=fo;var Ur=[{name:"YAML",type:"data",aceMode:"yaml",extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".clangd",".gemrc","CITATION.cff","glide.lock","pixi.lock",".prettierrc",".stylelintrc",".lintstagedrc"],tmScope:"source.yaml",aliases:["yml"],codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","dockercompose","github-actions-workflow","home-assistant"],linguistLanguageId:407}];var It={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var uo={bracketSpacing:It.bracketSpacing,singleQuote:It.singleQuote,proseWrap:It.proseWrap},Vr=uo;var rr={};sr(rr,{yaml:()=>Ga});var nr=or(Ps(),1);var J=or(vs(),1),Tf=J.default.findPair,Cf=J.default.toJSON,Mf=J.default.parseMap,kf=J.default.parseSeq,Pf=J.default.stringifyNumber,vf=J.default.stringifyString,If=J.default.Type,_f=J.default.YAMLError,xf=J.default.YAMLReferenceError,Is=J.default.YAMLSemanticError,Rf=J.default.YAMLSyntaxError,Df=J.default.YAMLWarning;function F(t,e=null){"children"in t&&t.children.forEach(n=>F(n,t)),"anchor"in t&&t.anchor&&F(t.anchor,t),"tag"in t&&t.tag&&F(t.tag,t),"leadingComments"in t&&t.leadingComments.forEach(n=>F(n,t)),"middleComments"in t&&t.middleComments.forEach(n=>F(n,t)),"indicatorComment"in t&&t.indicatorComment&&F(t.indicatorComment,t),"trailingComment"in t&&t.trailingComment&&F(t.trailingComment,t),"endComments"in t&&t.endComments.forEach(n=>F(n,t)),Object.defineProperty(t,"_parent",{value:e,enumerable:!1})}function Oe(t){return`${t.line}:${t.column}`}function _s(t){F(t);let e=Ia(t),n=t.children.slice();t.comments.sort((r,s)=>r.position.start.offset-s.position.end.offset).filter(r=>!r._parent).forEach(r=>{for(;n.length>1&&r.position.start.line>n[0].position.end.line;)n.shift();_a(r,e,n[0])})}function Ia(t){let e=Array.from(new Array(t.position.end.line),()=>({}));for(let n of t.comments)e[n.position.start.line-1].comment=n;return xs(e,t),e}function xs(t,e){if(e.position.start.offset!==e.position.end.offset){if("leadingComments"in e){let{start:n}=e.position,{leadingAttachableNode:r}=t[n.line-1];(!r||n.column1&&e.type!=="document"&&e.type!=="documentHead"){let{end:n}=e.position,{trailingAttachableNode:r}=t[n.line-1];(!r||n.column>=r.position.end.column)&&(t[n.line-1].trailingAttachableNode=e)}if(e.type!=="root"&&e.type!=="document"&&e.type!=="documentHead"&&e.type!=="documentBody"){let{start:n,end:r}=e.position,s=[r.line].concat(n.line===r.line?[]:n.line);for(let i of s){let o=t[i-1].trailingNode;(!o||r.column>=o.position.end.column)&&(t[i-1].trailingNode=e)}}"children"in e&&e.children.forEach(n=>{xs(t,n)})}}function _a(t,e,n){let r=t.position.start.line,{trailingAttachableNode:s}=e[r-1];if(s){if(s.trailingComment)throw new Error(`Unexpected multiple trailing comment at ${Oe(t.position.start)}`);F(t,s),s.trailingComment=t;return}for(let o=r;o>=n.position.start.line;o--){let{trailingNode:a}=e[o-1],c;if(a)c=a;else if(o!==r&&e[o-1].comment)c=e[o-1].comment._parent;else continue;if((c.type==="sequence"||c.type==="mapping")&&(c=c.children[0]),c.type==="mappingItem"){let[l,f]=c.children;c=Rs(l)?l:f}for(;;){if(xa(c,t)){F(t,c),c.endComments.push(t);return}if(!c._parent)break;c=c._parent}break}for(let o=r+1;o<=n.position.end.line;o++){let{leadingAttachableNode:a}=e[o-1];if(a){F(t,a),a.leadingComments.push(t);return}}let i=n.children[1];F(t,i),i.endComments.push(t)}function xa(t,e){if(t.position.start.offsete.position.end.offset)switch(t.type){case"flowMapping":case"flowSequence":return t.children.length===0||e.position.start.line>t.children[t.children.length-1].position.end.line}if(e.position.end.offsett.position.start.column;case"mappingKey":case"mappingValue":return e.position.start.column>t._parent.position.start.column&&(t.children.length===0||t.children.length===1&&t.children[0].type!=="blockFolded"&&t.children[0].type!=="blockLiteral")&&(t.type==="mappingValue"||Rs(t));default:return!1}}function Rs(t){return t.position.start!==t.position.end&&(t.children.length===0||t.position.start.offset!==t.children[0].position.start.offset)}function b(t,e){return{type:t,position:e}}function Ds(t,e,n){return{...b("root",t),children:e,comments:n}}function pt(t){switch(t.type){case"DOCUMENT":for(let e=t.contents.length-1;e>=0;e--)t.contents[e].type==="BLANK_LINE"?t.contents.splice(e,1):pt(t.contents[e]);for(let e=t.directives.length-1;e>=0;e--)t.directives[e].type==="BLANK_LINE"&&t.directives.splice(e,1);break;case"FLOW_MAP":case"FLOW_SEQ":case"MAP":case"SEQ":for(let e=t.items.length-1;e>=0;e--){let n=t.items[e];"char"in n||(n.type==="BLANK_LINE"?t.items.splice(e,1):pt(n))}break;case"MAP_KEY":case"MAP_VALUE":case"SEQ_ITEM":t.node&&pt(t.node);break;case"ALIAS":case"BLANK_LINE":case"BLOCK_FOLDED":case"BLOCK_LITERAL":case"COMMENT":case"DIRECTIVE":case"PLAIN":case"QUOTE_DOUBLE":case"QUOTE_SINGLE":break;default:throw new Error(`Unexpected node type ${JSON.stringify(t.type)}`)}}function X(t,e){return{start:t,end:e}}function Qn(t){return{start:t,end:t}}var me;(function(t){t.Tag="!",t.Anchor="&",t.Comment="#"})(me||(me={}));function $s(t,e){return{...b("anchor",t),value:e}}function Ve(t,e){return{...b("comment",t),value:e}}function Ys(t,e,n){return{anchor:e,tag:t,middleComments:n}}function Bs(t,e){return{...b("tag",t),value:e}}function Jt(t,e,n=()=>!1){let r=t.cstNode,s=[],i=null,o=null,a=null;for(let c of r.props){let l=e.text[c.origStart];switch(l){case me.Tag:i=i||c,o=Bs(e.transformRange(c),t.tag);break;case me.Anchor:i=i||c,a=$s(e.transformRange(c),r.anchor);break;case me.Comment:{let f=Ve(e.transformRange(c),e.text.slice(c.origStart+1,c.origEnd));e.comments.push(f),!n(f)&&i&&i.origEnd<=c.origStart&&c.origEnd<=r.valueRange.origStart&&s.push(f);break}default:throw new Error(`Unexpected leading character ${JSON.stringify(l)}`)}}return Ys(o,a,s)}function z(){return{leadingComments:[]}}function he(t=null){return{trailingComment:t}}function q(){return{...z(),...he()}}function Fs(t,e,n){return{...b("alias",t),...q(),...e,value:n}}function qs(t,e){let n=t.cstNode;return Fs(e.transformRange({origStart:n.valueRange.origStart-1,origEnd:n.valueRange.origEnd}),e.transformContent(t),n.rawValue)}function Us(t){return{...t,type:"blockFolded"}}function Vs(t,e,n,r,s,i){return{...b("blockValue",t),...z(),...e,chomping:n,indent:r,value:s,indicatorComment:i}}var Gn;(function(t){t.CLIP="clip",t.STRIP="strip",t.KEEP="keep"})(Gn||(Gn={}));function Xt(t,e){let n=t.cstNode,r=1,s=n.chomping==="CLIP"?0:1,o=n.header.origEnd-n.header.origStart-r-s!==0,a=e.transformRange({origStart:n.header.origStart,origEnd:n.valueRange.origEnd}),c=null,l=Jt(t,e,f=>{if(!(a.start.offset=0;c--){let l=t.contents[c];if(l.type==="COMMENT"){let f=e.transformNode(l);n&&n.line===f.position.start.line?o.unshift(f):a?r.unshift(f):f.position.start.offset>=t.valueRange.origEnd?i.unshift(f):r.unshift(f)}else a=!0}if(i.length>1)throw new Error(`Unexpected multiple document trailing comments at ${Oe(i[1].position.start)}`);if(o.length>1)throw new Error(`Unexpected multiple documentHead trailing comments at ${Oe(o[1].position.start)}`);return{comments:r,endComments:s,documentTrailingComment:V(i)||null,documentHeadTrailingComment:V(o)||null}}function Da(t,e,n){let r=zt(n.text.slice(t.valueRange.origEnd),/^\.\.\./),s=r===-1?t.valueRange.origEnd:Math.max(0,t.valueRange.origEnd-1);n.text[s-1]==="\r"&&s--;let i=n.transformRange({origStart:e!==null?e.position.start.offset:s,origEnd:s}),o=r===-1?i.end:n.transformOffset(t.valueRange.origEnd+3);return{position:i,documentEndPoint:o}}function Zs(t,e,n,r){return{...b("documentHead",t),...U(n),...he(r),children:e}}function ei(t,e){let n=t.cstNode,{directives:r,comments:s,endComments:i}=$a(n,e),{position:o,documentEndMarkererPoint:a}=Ya(n,r,e);return e.comments.push(...s,...i),{createDocumentHeadWithTrailingComment:l=>(l&&e.comments.push(l),Zs(o,r,i,l)),documentHeadEndMarkerPoint:a}}function $a(t,e){let n=[],r=[],s=[],i=!1;for(let o=t.directives.length-1;o>=0;o--){let a=e.transformNode(t.directives[o]);a.type==="comment"?i?r.unshift(a):s.unshift(a):(i=!0,n.unshift(a))}return{directives:n,comments:r,endComments:s}}function Ya(t,e,n){let r=zt(n.text.slice(0,t.valueRange.origStart),/---\s*$/);r>0&&!/[\r\n]/.test(n.text[r-1])&&(r=-1);let s=r===-1?{origStart:t.valueRange.origStart,origEnd:t.valueRange.origStart}:{origStart:r,origEnd:r+3};return e.length!==0&&(s.origStart=e[0].position.start.offset),{position:n.transformRange(s),documentEndMarkererPoint:r===-1?null:n.transformOffset(r)}}function ti(t,e){let{createDocumentHeadWithTrailingComment:n,documentHeadEndMarkerPoint:r}=ei(t,e),{documentBody:s,documentEndPoint:i,documentTrailingComment:o,documentHeadTrailingComment:a}=zs(t,e,r),c=n(a);o&&e.comments.push(o);let l=t.cstNode;return Js(X(c.position.start,i),!!l.directivesEndMarker,!!l.documentEndMarker,c,s,o)}function Zt(t,e,n){return{...b("flowCollection",t),...q(),...U(),...e,children:n}}function ni(t,e,n){return{...Zt(t,e,n),type:"flowMapping"}}function en(t,e,n){return{...b("flowMappingItem",t),...z(),children:[e,n]}}function de(t,e){let n=[];for(let r of t)r&&"type"in r&&r.type==="COMMENT"?e.comments.push(e.transformNode(r)):n.push(r);return n}function tn(t){let[e,n]=["?",":"].map(r=>{let s=t.find(i=>"char"in i&&i.char===r);return s?{origStart:s.origOffset,origEnd:s.origOffset+1}:null});return{additionalKeyRange:e,additionalValueRange:n}}function nn(t,e){let n=e;return r=>t.slice(n,n=r)}function rn(t){let e=[],n=nn(t,1),r=!1;for(let s=1;s{let l=r[c],{additionalKeyRange:f,additionalValueRange:m}=tn(l);return Ke(a,e,en,f,m)}),i=n[0],o=V(n);return ni(e.transformRange({origStart:i.origOffset,origEnd:o.origOffset+1}),e.transformContent(t),s)}function si(t,e,n){return{...Zt(t,e,n),type:"flowSequence"}}function ii(t,e){return{...b("flowSequenceItem",t),children:[e]}}function oi(t,e){let n=de(t.cstNode.items,e),r=rn(n),s=t.items.map((a,c)=>{if(a.type!=="PAIR"){let l=e.transformNode(a);return ii(X(l.position.start,l.position.end),l)}else{let l=r[c],{additionalKeyRange:f,additionalValueRange:m}=tn(l);return Ke(a,e,en,f,m)}}),i=n[0],o=V(n);return si(e.transformRange({origStart:i.origOffset,origEnd:o.origOffset+1}),e.transformContent(t),s)}function ai(t,e,n){return{...b("mapping",t),...z(),...e,children:n}}function ci(t,e,n){return{...b("mappingItem",t),...z(),children:[e,n]}}function li(t,e){let n=t.cstNode;n.items.filter(o=>o.type==="MAP_KEY"||o.type==="MAP_VALUE").forEach(o=>We(o,e));let r=de(n.items,e),s=Ba(r),i=t.items.map((o,a)=>{let c=s[a],[l,f]=c[0].type==="MAP_VALUE"?[null,c[0].range]:[c[0].range,c.length===1?null:c[1].range];return Ke(o,e,ci,l,f)});return ai(X(i[0].position.start,V(i).position.end),e.transformContent(t),i)}function Ba(t){let e=[],n=nn(t,0),r=!1;for(let s=0;s=0;r--)if(n.test(t[r]))return r;return-1}function pi(t,e){let n=t.cstNode;return fi(e.transformRange({origStart:n.valueRange.origStart,origEnd:ui(e.text,n.valueRange.origEnd-1,/\S/)+1}),e.transformContent(t),n.strValue)}function mi(t){return{...t,type:"quoteDouble"}}function hi(t,e,n){return{...b("quoteValue",t),...e,...q(),value:n}}function sn(t,e){let n=t.cstNode;return hi(e.transformRange(n.valueRange),e.transformContent(t),n.strValue)}function di(t,e){return mi(sn(t,e))}function gi(t){return{...t,type:"quoteSingle"}}function yi(t,e){return gi(sn(t,e))}function Ei(t,e,n){return{...b("sequence",t),...z(),...U(),...e,children:n}}function Si(t,e){return{...b("sequenceItem",t),...q(),...U(),children:e?[e]:[]}}function wi(t,e){let r=de(t.cstNode.items,e).map((s,i)=>{We(s,e);let o=e.transformNode(t.items[i]);return Si(X(e.transformOffset(s.valueRange.origStart),o===null?e.transformOffset(s.valueRange.origStart+1):o.position.end),o)});return Ei(X(r[0].position.start,V(r).position.end),e.transformContent(t),r)}function bi(t,e){if(t===null||t.type===void 0&&t.value===null)return null;switch(t.type){case"ALIAS":return qs(t,e);case"BLOCK_FOLDED":return Ws(t,e);case"BLOCK_LITERAL":return js(t,e);case"COMMENT":return Qs(t,e);case"DIRECTIVE":return Hs(t,e);case"DOCUMENT":return ti(t,e);case"FLOW_MAP":return ri(t,e);case"FLOW_SEQ":return oi(t,e);case"MAP":return li(t,e);case"PLAIN":return pi(t,e);case"QUOTE_DOUBLE":return di(t,e);case"QUOTE_SINGLE":return yi(t,e);case"SEQ":return wi(t,e);default:throw new Error(`Unexpected node type ${t.type}`)}}var Xn,zn=class{text;comments=[];#e;#t;constructor(e,n){this.text=n,this.#e=e}setOrigRanges(){if(!this.#e.setOrigRanges())for(let e of this.#e)e.setOrigRanges([],0)}#n(e){if(!Xn){let[o]=this.#e,a=Object.getPrototypeOf(Object.getPrototypeOf(o));Xn=Object.getOwnPropertyDescriptor(a,"rangeAsLinePos").get}if(this.#t??(this.#t={root:{context:{src:this.text}}}),this.text===""&&e.origStart===0&&e.origEnd===0)return{start:{offset:0,line:1,column:1},end:{offset:0,line:1,column:1}};let{start:{line:n,col:r},end:{line:s,col:i}}=Xn.call({range:{start:this.#r(e.origStart),end:this.#r(e.origEnd)},context:this.#t});return{start:{offset:e.origStart,line:n,column:r},end:{offset:e.origEnd,line:s,column:i}}}#r(e){return e<0?0:e>this.text.length?this.text.length:e}transformOffset(e){return this.#n({origStart:e,origEnd:e}).start}transformRange(e){let{start:n,end:r}=this.#n(e);return X(n,r)}transformNode(e){return bi(e,this)}transformContent(e){return Jt(e,this)}},Ni=zn;function Oi(t,e,n){let r=new SyntaxError(t);return r.name="YAMLSyntaxError",r.source=e,r.position=n,r}function Ai(t,e){let n=t.source.range||t.source.valueRange;return Oi(t.message,e.text,e.transformRange(n))}function Zn(t){if("children"in t){if(t.children.length===1){let e=t.children[0];if(e.type==="plain"&&e.tag===null&&e.anchor===null&&e.value==="")return t.children.splice(0,1),t}t.children.forEach(Zn)}return t}function er(t,e,n,r){let s=e(t);return i=>{r(s,i)&&n(t,s=i)}}function tr(t){if(t===null||!("children"in t))return;let e=t.children;if(e.forEach(tr),t.type==="document"){let[i,o]=t.children;i.position.start.offset===i.position.end.offset?i.position.start=i.position.end=o.position.start:o.position.start.offset===o.position.end.offset&&(o.position.start=o.position.end=i.position.end)}let n=er(t.position,Fa,qa,Wa),r=er(t.position,Ua,Va,Ka);"endComments"in t&&t.endComments.length!==0&&(n(t.endComments[0].position.start),r(V(t.endComments).position.end));let s=e.filter(i=>i!==null);if(s.length!==0){let i=s[0],o=V(s);n(i.position.start),r(o.position.end),"leadingComments"in i&&i.leadingComments.length!==0&&n(i.leadingComments[0].position.start),"tag"in i&&i.tag&&n(i.tag.position.start),"anchor"in i&&i.anchor&&n(i.anchor.position.start),"trailingComment"in o&&o.trailingComment&&r(o.trailingComment.position.end)}}function Fa(t){return t.start}function qa(t,e){t.start=e}function Ua(t){return t.end}function Va(t,e){t.end=e}function Wa(t,e){return e.offsett.offset}function Li(t){let e=nr.default.parseCST(t),n=new Ni(e,t);n.setOrigRanges();let r=e.map(i=>new nr.default.Document({merge:!1,keepCstNodes:!0}).parse(i));for(let i of r)for(let o of i.errors)if(!(o instanceof Is&&o.message==='Map keys must be unique; "<<" is repeated'))throw Ai(o,n);r.forEach(i=>pt(i.cstNode));let s=Ds(n.transformRange({origStart:0,origEnd:t.length}),r.map(i=>n.transformNode(i)),n.comments);return _s(s),tr(s),Zn(s),s}function ja(t,e){let n=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(n,e)}var Ti=ja;function Qa(t){try{let e=Li(t);return delete e.comments,e}catch(e){throw e?.position?Ti(e.message,{loc:e.position,cause:e}):e}}var Ga={astFormat:"yaml",parse:Qa,hasPragma:br,hasIgnorePragma:Nr,locStart:tt,locEnd:vr};var Ha={yaml:qr};return _i(Ja);}); \ No newline at end of file diff --git a/node_modules/prettier/plugins/yaml.mjs b/node_modules/prettier/plugins/yaml.mjs new file mode 100644 index 0000000000000000000000000000000000000000..86145fe5431f8d0da9ecd7eaa124104c70157e84 --- /dev/null +++ b/node_modules/prettier/plugins/yaml.mjs @@ -0,0 +1,159 @@ +var ki=Object.create;var sn=Object.defineProperty;var Pi=Object.getOwnPropertyDescriptor;var vi=Object.getOwnPropertyNames;var Ii=Object.getPrototypeOf,_i=Object.prototype.hasOwnProperty;var ne=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),or=(t,e)=>{for(var n in e)sn(t,n,{get:e[n],enumerable:!0})},xi=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of vi(e))!_i.call(t,s)&&s!==n&&sn(t,s,{get:()=>e[s],enumerable:!(r=Pi(e,s))||r.enumerable});return t};var on=(t,e,n)=>(n=t!=null?ki(Ii(t)):{},xi(e||!t||!t.__esModule?sn(n,"default",{value:t,enumerable:!0}):n,t));var ce=ne(B=>{"use strict";var ie={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},st={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"},mo="tag:yaml.org,2002:",ho={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};function Wr(t){let e=[0],n=t.indexOf(` +`);for(;n!==-1;)n+=1,e.push(n),n=t.indexOf(` +`,n);return e}function Kr(t){let e,n;return typeof t=="string"?(e=Wr(t),n=t):(Array.isArray(t)&&(t=t[0]),t&&t.context&&(t.lineStarts||(t.lineStarts=Wr(t.context.src)),e=t.lineStarts,n=t.context.src)),{lineStarts:e,src:n}}function wn(t,e){if(typeof t!="number"||t<0)return null;let{lineStarts:n,src:r}=Kr(e);if(!n||!r||t>r.length)return null;for(let i=0;i=1)||t>n.length)return null;let s=n[t-1],i=n[t];for(;i&&i>s&&r[i-1]===` +`;)--i;return r.slice(s,i)}function yo({start:t,end:e},n,r=80){let s=go(t.line,n);if(!s)return null;let{col:i}=t;if(s.length>r)if(i<=r-10)s=s.substr(0,r-1)+"\u2026";else{let f=Math.round(r/2);s.length>i+f&&(s=s.substr(0,i+f-1)+"\u2026"),i-=s.length-r,s="\u2026"+s.substr(1-r)}let o=1,a="";e&&(e.line===t.line&&i+(e.col-t.col)<=r+1?o=e.col-t.col:(o=Math.min(s.length+1,r)-i,a="\u2026"));let c=i>1?" ".repeat(i-1):"",l="^".repeat(o);return`${s} +${c}${l}${a}`}var xe=class t{static copy(e){return new t(e.start,e.end)}constructor(e,n){this.start=e,this.end=n||e}isEmpty(){return typeof this.start!="number"||!this.end||this.end<=this.start}setOrigRange(e,n){let{start:r,end:s}=this;if(e.length===0||s<=e[0])return this.origStart=r,this.origEnd=s,n;let i=n;for(;ir);)++i;this.origStart=r+i;let o=i;for(;i=s);)++i;return this.origEnd=s+i,o}},oe=class t{static addStringTerminator(e,n,r){if(r[r.length-1]===` +`)return r;let s=t.endOfWhiteSpace(e,n);return s>=e.length||e[s]===` +`?r+` +`:r}static atDocumentBoundary(e,n,r){let s=e[n];if(!s)return!0;let i=e[n-1];if(i&&i!==` +`)return!1;if(r){if(s!==r)return!1}else if(s!==ie.DIRECTIVES_END&&s!==ie.DOCUMENT_END)return!1;let o=e[n+1],a=e[n+2];if(o!==s||a!==s)return!1;let c=e[n+3];return!c||c===` +`||c===" "||c===" "}static endOfIdentifier(e,n){let r=e[n],s=r==="<",i=s?[` +`," "," ",">"]:[` +`," "," ","[","]","{","}",","];for(;r&&i.indexOf(r)===-1;)r=e[n+=1];return s&&r===">"&&(n+=1),n}static endOfIndent(e,n){let r=e[n];for(;r===" ";)r=e[n+=1];return n}static endOfLine(e,n){let r=e[n];for(;r&&r!==` +`;)r=e[n+=1];return n}static endOfWhiteSpace(e,n){let r=e[n];for(;r===" "||r===" ";)r=e[n+=1];return n}static startOfLine(e,n){let r=e[n-1];if(r===` +`)return n;for(;r&&r!==` +`;)r=e[n-=1];return n+1}static endOfBlockIndent(e,n,r){let s=t.endOfIndent(e,r);if(s>r+n)return s;{let i=t.endOfWhiteSpace(e,s),o=e[i];if(!o||o===` +`)return i}return null}static atBlank(e,n,r){let s=e[n];return s===` +`||s===" "||s===" "||r&&!s}static nextNodeIsIndented(e,n,r){return!e||n<0?!1:n>0?!0:r&&e==="-"}static normalizeOffset(e,n){let r=e[n];return r?r!==` +`&&e[n-1]===` +`?n-1:t.endOfWhiteSpace(e,n):n}static foldNewline(e,n,r){let s=0,i=!1,o="",a=e[n+1];for(;a===" "||a===" "||a===` +`;){switch(a){case` +`:s=0,n+=1,o+=` +`;break;case" ":s<=r&&(i=!0),n=t.endOfWhiteSpace(e,n+2)-1;break;case" ":s+=1,n+=1;break}a=e[n+1]}return o||(o=" "),a&&s<=r&&(i=!0),{fold:o,offset:n,error:i}}constructor(e,n,r){Object.defineProperty(this,"context",{value:r||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=n||[],this.type=e,this.value=null}getPropValue(e,n,r){if(!this.context)return null;let{src:s}=this.context,i=this.props[e];return i&&s[i.start]===n?s.slice(i.start+(r?1:0),i.end):null}get anchor(){for(let e=0;e0?e.join(` +`):null}commentHasRequiredWhitespace(e){let{src:n}=this.context;if(this.header&&e===this.header.end||!this.valueRange)return!1;let{end:r}=this.valueRange;return e!==r||t.atBlank(n,r-1)}get hasComment(){if(this.context){let{src:e}=this.context;for(let n=0;nr.setOrigRange(e,n)),n}toString(){let{context:{src:e},range:n,value:r}=this;if(r!=null)return r;let s=e.slice(n.start,n.end);return t.addStringTerminator(e,n.end,s)}},ge=class extends Error{constructor(e,n,r){if(!r||!(n instanceof oe))throw new Error(`Invalid arguments for new ${e}`);super(),this.name=e,this.message=r,this.source=n}makePretty(){if(!this.source)return;this.nodeType=this.source.type;let e=this.source.context&&this.source.context.root;if(typeof this.offset=="number"){this.range=new xe(this.offset,this.offset+1);let n=e&&wn(this.offset,e);if(n){let r={line:n.line,col:n.col+1};this.linePos={start:n,end:r}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){let{line:n,col:r}=this.linePos.start;this.message+=` at line ${n}, column ${r}`;let s=e&&yo(this.linePos,e);s&&(this.message+=`: + +${s} +`)}delete this.source}},bn=class extends ge{constructor(e,n){super("YAMLReferenceError",e,n)}},it=class extends ge{constructor(e,n){super("YAMLSemanticError",e,n)}},Nn=class extends ge{constructor(e,n){super("YAMLSyntaxError",e,n)}},On=class extends ge{constructor(e,n){super("YAMLWarning",e,n)}};function Eo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var An=class t extends oe{static endOfLine(e,n,r){let s=e[n],i=n;for(;s&&s!==` +`&&!(r&&(s==="["||s==="]"||s==="{"||s==="}"||s===","));){let o=e[i+1];if(s===":"&&(!o||o===` +`||o===" "||o===" "||r&&o===",")||(s===" "||s===" ")&&o==="#")break;i+=1,s=o}return i}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:n}=this.valueRange,{src:r}=this.context,s=r[n-1];for(;el?r.slice(l,a+1):c)}else i+=c}let o=r[e];switch(o){case" ":{let a="Plain value cannot start with a tab character";return{errors:[new it(this,a)],str:i}}case"@":case"`":{let a=`Plain value cannot start with reserved character ${o}`;return{errors:[new it(this,a)],str:i}}default:return i}}parseBlockValue(e){let{indent:n,inFlow:r,src:s}=this.context,i=e,o=e;for(let a=s[i];a===` +`&&!oe.atDocumentBoundary(s,i+1);a=s[i]){let c=oe.endOfBlockIndent(s,n,i+1);if(c===null||s[c]==="#")break;s[c]===` +`?i=c:(o=t.endOfLine(s,c,r),i=o)}return this.valueRange.isEmpty()&&(this.valueRange.start=e),this.valueRange.end=o,o}parse(e,n){this.context=e;let{inFlow:r,src:s}=e,i=n,o=s[i];return o&&o!=="#"&&o!==` +`&&(i=t.endOfLine(s,n,r)),this.valueRange=new xe(n,i),i=oe.endOfWhiteSpace(s,i),i=this.parseComment(i),(!this.hasComment||this.valueRange.isEmpty())&&(i=this.parseBlockValue(i)),i}};B.Char=ie;B.Node=oe;B.PlainValue=An;B.Range=xe;B.Type=st;B.YAMLError=ge;B.YAMLReferenceError=bn;B.YAMLSemanticError=it;B.YAMLSyntaxError=Nn;B.YAMLWarning=On;B._defineProperty=Eo;B.defaultTagPrefix=mo;B.defaultTags=ho});var Qr=ne(jr=>{"use strict";var u=ce(),Ee=class extends u.Node{constructor(){super(u.Type.BLANK_LINE)}get includesTrailingLines(){return!0}parse(e,n){return this.context=e,this.range=new u.Range(n,n+1),n+1}},ot=class extends u.Node{constructor(e,n){super(e,n),this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(e,n){this.context=e;let{parseNode:r,src:s}=e,{atLineStart:i,lineStart:o}=e;!i&&this.type===u.Type.SEQ_ITEM&&(this.error=new u.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));let a=i?n-o:e.indent,c=u.Node.endOfWhiteSpace(s,n+1),l=s[c],f=l==="#",m=[],g=null;for(;l===` +`||l==="#";){if(l==="#"){let h=u.Node.endOfLine(s,c+1);m.push(new u.Range(c,h)),c=h}else{i=!0,o=c+1;let h=u.Node.endOfWhiteSpace(s,o);s[h]===` +`&&m.length===0&&(g=new Ee,o=g.parse({src:s},o)),c=u.Node.endOfIndent(s,o)}l=s[c]}if(u.Node.nextNodeIsIndented(l,c-(o+a),this.type!==u.Type.SEQ_ITEM)?this.node=r({atLineStart:i,inCollection:!1,indent:a,lineStart:o,parent:this},c):l&&o>n+1&&(c=o-1),this.node){if(g){let h=e.parent.items||e.parent.contents;h&&h.push(g)}m.length&&Array.prototype.push.apply(this.props,m),c=this.node.range.end}else if(f){let h=m[0];this.props.push(h),c=h.end}else c=u.Node.endOfLine(s,n+1);let y=this.node?this.node.valueRange.end:c;return this.valueRange=new u.Range(n,y),c}setOrigRanges(e,n){return n=super.setOrigRanges(e,n),this.node?this.node.setOrigRanges(e,n):n}toString(){let{context:{src:e},node:n,range:r,value:s}=this;if(s!=null)return s;let i=n?e.slice(r.start,n.range.start)+String(n):e.slice(r.start,r.end);return u.Node.addStringTerminator(e,r.end,i)}},ye=class extends u.Node{constructor(){super(u.Type.COMMENT)}parse(e,n){this.context=e;let r=this.parseComment(n);return this.range=new u.Range(n,r),r}};function Ln(t){let e=t;for(;e instanceof ot;)e=e.node;if(!(e instanceof It))return null;let n=e.items.length,r=-1;for(let o=n-1;o>=0;--o){let a=e.items[o];if(a.type===u.Type.COMMENT){let{indent:c,lineStart:l}=a.context;if(c>0&&a.range.start>=l+c)break;r=o}else if(a.type===u.Type.BLANK_LINE)r=o;else break}if(r===-1)return null;let s=e.items.splice(r,n-r),i=s[0].range.start;for(;e.range.end=i,e.valueRange&&e.valueRange.end>i&&(e.valueRange.end=i),e!==t;)e=e.context.parent;return s}var It=class t extends u.Node{static nextContentHasIndent(e,n,r){let s=u.Node.endOfLine(e,n)+1;n=u.Node.endOfWhiteSpace(e,s);let i=e[n];return i?n>=s+r?!0:i!=="#"&&i!==` +`?!1:t.nextContentHasIndent(e,n,r):!1}constructor(e){super(e.type===u.Type.SEQ_ITEM?u.Type.SEQ:u.Type.MAP);for(let r=e.props.length-1;r>=0;--r)if(e.props[r].start0}parse(e,n){this.context=e;let{parseNode:r,src:s}=e,i=u.Node.startOfLine(s,n),o=this.items[0];o.context.parent=this,this.valueRange=u.Range.copy(o.valueRange);let a=o.range.start-o.context.lineStart,c=n;c=u.Node.normalizeOffset(s,c);let l=s[c],f=u.Node.endOfWhiteSpace(s,i)===c,m=!1;for(;l;){for(;l===` +`||l==="#";){if(f&&l===` +`&&!m){let h=new Ee;if(c=h.parse({src:s},c),this.valueRange.end=c,c>=s.length){l=null;break}this.items.push(h),c-=1}else if(l==="#"){if(c=s.length){l=null;break}}if(i=c+1,c=u.Node.endOfIndent(s,i),u.Node.atBlank(s,c)){let h=u.Node.endOfWhiteSpace(s,c),d=s[h];(!d||d===` +`||d==="#")&&(c=h)}l=s[c],f=!0}if(!l)break;if(c!==i+a&&(f||l!==":")){if(cn&&(c=i);break}else if(!this.error){let h="All collection items must start at the same column";this.error=new u.YAMLSyntaxError(this,h)}}if(o.type===u.Type.SEQ_ITEM){if(l!=="-"){i>n&&(c=i);break}}else if(l==="-"&&!this.error){let h=s[c+1];if(!h||h===` +`||h===" "||h===" "){let d="A collection cannot be both a mapping and a sequence";this.error=new u.YAMLSyntaxError(this,d)}}let g=r({atLineStart:f,inCollection:!0,indent:a,lineStart:i,parent:this},c);if(!g)return c;if(this.items.push(g),this.valueRange.end=g.valueRange.end,c=u.Node.normalizeOffset(s,g.range.end),l=s[c],f=!1,m=g.includesTrailingLines,l){let h=c-1,d=s[h];for(;d===" "||d===" ";)d=s[--h];d===` +`&&(i=h+1,f=!0)}let y=Ln(g);y&&Array.prototype.push.apply(this.items,y)}return c}setOrigRanges(e,n){return n=super.setOrigRanges(e,n),this.items.forEach(r=>{n=r.setOrigRanges(e,n)}),n}toString(){let{context:{src:e},items:n,range:r,value:s}=this;if(s!=null)return s;let i=e.slice(r.start,n[0].range.start)+String(n[0]);for(let o=1;o0&&(this.contents=this.directives,this.directives=[]),i}return n[i]?(this.directivesEndMarker=new u.Range(i,i+3),i+3):(s?this.error=new u.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),i)}parseContents(e){let{parseNode:n,src:r}=this.context;this.contents||(this.contents=[]);let s=e;for(;r[s-1]==="-";)s-=1;let i=u.Node.endOfWhiteSpace(r,e),o=s===e;for(this.valueRange=new u.Range(i);!u.Node.atDocumentBoundary(r,i,u.Char.DOCUMENT_END);){switch(r[i]){case` +`:if(o){let a=new Ee;i=a.parse({src:r},i),i{n=r.setOrigRanges(e,n)}),this.directivesEndMarker&&(n=this.directivesEndMarker.setOrigRange(e,n)),this.contents.forEach(r=>{n=r.setOrigRanges(e,n)}),this.documentEndMarker&&(n=this.documentEndMarker.setOrigRange(e,n)),n}toString(){let{contents:e,directives:n,value:r}=this;if(r!=null)return r;let s=n.join("");return e.length>0&&((n.length>0||e[0].type===u.Type.COMMENT)&&(s+=`--- +`),s+=e.join("")),s[s.length-1]!==` +`&&(s+=` +`),s}},Mn=class extends u.Node{parse(e,n){this.context=e;let{src:r}=e,s=u.Node.endOfIdentifier(r,n+1);return this.valueRange=new u.Range(n+1,s),s=u.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s}},le={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"},kn=class extends u.Node{constructor(e,n){super(e,n),this.blockIndent=null,this.chomping=le.CLIP,this.header=null}get includesTrailingLines(){return this.chomping===le.KEEP}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:n}=this.valueRange,{indent:r,src:s}=this.context;if(this.valueRange.isEmpty())return"";let i=null,o=s[n-1];for(;o===` +`||o===" "||o===" ";){if(n-=1,n<=e){if(this.chomping===le.KEEP)break;return""}o===` +`&&(i=n),o=s[n-1]}let a=n+1;i&&(this.chomping===le.KEEP?(a=i,n=this.valueRange.end):n=i);let c=r+this.blockIndent,l=this.type===u.Type.BLOCK_FOLDED,f=!0,m="",g="",y=!1;for(let h=e;ha&&(a=m);r[l]===` +`?i=l:i=o=u.Node.endOfLine(r,l)}return this.chomping!==le.KEEP&&(i=r[o]?o+1:o),this.valueRange=new u.Range(e+1,i),i}parse(e,n){this.context=e;let{src:r}=e,s=this.parseBlockHeader(n);return s=u.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s=this.parseBlockValue(s),s}setOrigRanges(e,n){return n=super.setOrigRanges(e,n),this.header?this.header.setOrigRange(e,n):n}},Pn=class extends u.Node{constructor(e,n){super(e,n),this.items=null}prevNodeIsJsonLike(e=this.items.length){let n=this.items[e-1];return!!n&&(n.jsonLike||n.type===u.Type.COMMENT&&this.prevNodeIsJsonLike(e-1))}parse(e,n){this.context=e;let{parseNode:r,src:s}=e,{indent:i,lineStart:o}=e,a=s[n];this.items=[{char:a,offset:n}];let c=u.Node.endOfWhiteSpace(s,n+1);for(a=s[c];a&&a!=="]"&&a!=="}";){switch(a){case` +`:{o=c+1;let l=u.Node.endOfWhiteSpace(s,o);if(s[l]===` +`){let f=new Ee;o=f.parse({src:s},o),this.items.push(f)}if(c=u.Node.endOfIndent(s,o),c<=o+i&&(a=s[c],c{if(r instanceof u.Node)n=r.setOrigRanges(e,n);else if(e.length===0)r.origOffset=r.offset;else{let s=n;for(;sr.offset);)++s;r.origOffset=r.offset+s,n=s}}),n}toString(){let{context:{src:e},items:n,range:r,value:s}=this;if(s!=null)return s;let i=n.filter(c=>c instanceof u.Node),o="",a=r.start;return i.forEach(c=>{let l=e.slice(a,c.range.start);a=c.range.end,o+=l+String(c),o[o.length-1]===` +`&&e[a-1]!==` +`&&e[a]===` +`&&(a+=1)}),o+=e.slice(a,r.end),u.Node.addStringTerminator(e,r.end,o)}},vn=class t extends u.Node{static endOfQuote(e,n){let r=e[n];for(;r&&r!=='"';)n+=r==="\\"?2:1,r=e[n];return n+1}get strValue(){if(!this.valueRange||!this.context)return null;let e=[],{start:n,end:r}=this.valueRange,{indent:s,src:i}=this.context;i[r-1]!=='"'&&e.push(new u.YAMLSyntaxError(this,'Missing closing "quote'));let o="";for(let a=n+1;al?i.slice(l,a+1):c)}else o+=c}return e.length>0?{errors:e,str:o}:o}parseCharCode(e,n,r){let{src:s}=this.context,i=s.substr(e,n),a=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;return isNaN(a)?(r.push(new u.YAMLSyntaxError(this,`Invalid escape sequence ${s.substr(e-2,n+2)}`)),s.substr(e-2,n+2)):String.fromCodePoint(a)}parse(e,n){this.context=e;let{src:r}=e,s=t.endOfQuote(r,n+1);return this.valueRange=new u.Range(n,s),s=u.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s}},In=class t extends u.Node{static endOfQuote(e,n){let r=e[n];for(;r;)if(r==="'"){if(e[n+1]!=="'")break;r=e[n+=2]}else r=e[n+=1];return n+1}get strValue(){if(!this.valueRange||!this.context)return null;let e=[],{start:n,end:r}=this.valueRange,{indent:s,src:i}=this.context;i[r-1]!=="'"&&e.push(new u.YAMLSyntaxError(this,"Missing closing 'quote"));let o="";for(let a=n+1;al?i.slice(l,a+1):c)}else o+=c}return e.length>0?{errors:e,str:o}:o}parse(e,n){this.context=e;let{src:r}=e,s=t.endOfQuote(r,n+1);return this.valueRange=new u.Range(n,s),s=u.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s}};function So(t,e){switch(t){case u.Type.ALIAS:return new Mn(t,e);case u.Type.BLOCK_FOLDED:case u.Type.BLOCK_LITERAL:return new kn(t,e);case u.Type.FLOW_MAP:case u.Type.FLOW_SEQ:return new Pn(t,e);case u.Type.MAP_KEY:case u.Type.MAP_VALUE:case u.Type.SEQ_ITEM:return new ot(t,e);case u.Type.COMMENT:case u.Type.PLAIN:return new u.PlainValue(t,e);case u.Type.QUOTE_DOUBLE:return new vn(t,e);case u.Type.QUOTE_SINGLE:return new In(t,e);default:return null}}var _n=class t{static parseType(e,n,r){switch(e[n]){case"*":return u.Type.ALIAS;case">":return u.Type.BLOCK_FOLDED;case"|":return u.Type.BLOCK_LITERAL;case"{":return u.Type.FLOW_MAP;case"[":return u.Type.FLOW_SEQ;case"?":return!r&&u.Node.atBlank(e,n+1,!0)?u.Type.MAP_KEY:u.Type.PLAIN;case":":return!r&&u.Node.atBlank(e,n+1,!0)?u.Type.MAP_VALUE:u.Type.PLAIN;case"-":return!r&&u.Node.atBlank(e,n+1,!0)?u.Type.SEQ_ITEM:u.Type.PLAIN;case'"':return u.Type.QUOTE_DOUBLE;case"'":return u.Type.QUOTE_SINGLE;default:return u.Type.PLAIN}}constructor(e={},{atLineStart:n,inCollection:r,inFlow:s,indent:i,lineStart:o,parent:a}={}){u._defineProperty(this,"parseNode",(c,l)=>{if(u.Node.atDocumentBoundary(this.src,l))return null;let f=new t(this,c),{props:m,type:g,valueStart:y}=f.parseProps(l),h=So(g,m),d=h.parse(f,y);if(h.range=new u.Range(l,d),d<=l&&(h.error=new Error("Node#parse consumed no characters"),h.error.parseEnd=d,h.error.source=h,h.range.end=l+1),f.nodeStartsCollection(h)){!h.error&&!f.atLineStart&&f.parent.type===u.Type.DOCUMENT&&(h.error=new u.YAMLSyntaxError(h,"Block collection must not have preceding content here (e.g. directives-end indicator)"));let w=new It(h);return d=w.parse(new t(f),d),w.range=new u.Range(l,d),w}return h}),this.atLineStart=n??(e.atLineStart||!1),this.inCollection=r??(e.inCollection||!1),this.inFlow=s??(e.inFlow||!1),this.indent=i??e.indent,this.lineStart=o??e.lineStart,this.parent=a??(e.parent||{}),this.root=e.root,this.src=e.src}nodeStartsCollection(e){let{inCollection:n,inFlow:r,src:s}=this;if(n||r)return!1;if(e instanceof ot)return!0;let i=e.range.end;return s[i]===` +`||s[i-1]===` +`?!1:(i=u.Node.endOfWhiteSpace(s,i),s[i]===":")}parseProps(e){let{inFlow:n,parent:r,src:s}=this,i=[],o=!1;e=this.atLineStart?u.Node.endOfIndent(s,e):u.Node.endOfWhiteSpace(s,e);let a=s[e];for(;a===u.Char.ANCHOR||a===u.Char.COMMENT||a===u.Char.TAG||a===` +`;){if(a===` +`){let l=e,f;do f=l+1,l=u.Node.endOfIndent(s,f);while(s[l]===` +`);let m=l-(f+this.indent),g=r.type===u.Type.SEQ_ITEM&&r.context.atLineStart;if(s[l]!=="#"&&!u.Node.nextNodeIsIndented(s[l],m,!g))break;this.atLineStart=!0,this.lineStart=f,o=!1,e=l}else if(a===u.Char.COMMENT){let l=u.Node.endOfLine(s,e+1);i.push(new u.Range(e,l)),e=l}else{let l=u.Node.endOfIdentifier(s,e+1);a===u.Char.TAG&&s[l]===","&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(s.slice(e+1,l+13))&&(l=u.Node.endOfIdentifier(s,l+5)),i.push(new u.Range(e,l)),o=!0,e=u.Node.endOfWhiteSpace(s,l)}a=s[e]}o&&a===":"&&u.Node.atBlank(s,e+1,!0)&&(e-=1);let c=t.parseType(s,e,n);return{props:i,type:c,valueStart:e}}};function wo(t){let e=[];t.indexOf("\r")!==-1&&(t=t.replace(/\r\n?/g,(s,i)=>(s.length>1&&e.push(i),` +`)));let n=[],r=0;do{let s=new Cn,i=new _n({src:t});r=s.parse(i,r),n.push(s)}while(r{if(e.length===0)return!1;for(let i=1;in.join(`... +`),n}jr.parse=wo});var De=ne(M=>{"use strict";var p=ce();function bo(t,e,n){return n?`#${n.replace(/[\s\S]^/gm,`$&${e}#`)} +${e}${t}`:t}function Re(t,e,n){return n?n.indexOf(` +`)===-1?`${t} #${n}`:`${t} +`+n.replace(/^/gm,`${e||""}#`):t}var j=class{};function fe(t,e,n){if(Array.isArray(t))return t.map((r,s)=>fe(r,String(s),n));if(t&&typeof t.toJSON=="function"){let r=n&&n.anchors&&n.anchors.get(t);r&&(n.onCreate=i=>{r.res=i,delete n.onCreate});let s=t.toJSON(e,n);return r&&n.onCreate&&n.onCreate(s),s}return(!n||!n.keep)&&typeof t=="bigint"?Number(t):t}var x=class extends j{constructor(e){super(),this.value=e}toJSON(e,n){return n&&n.keep?this.value:fe(this.value,e,n)}toString(){return String(this.value)}};function Gr(t,e,n){let r=n;for(let s=e.length-1;s>=0;--s){let i=e[s];if(Number.isInteger(i)&&i>=0){let o=[];o[i]=r,r=o}else{let o={};Object.defineProperty(o,i,{value:r,writable:!0,enumerable:!0,configurable:!0}),r=o}}return t.createNode(r,!1)}var Xr=t=>t==null||typeof t=="object"&&t[Symbol.iterator]().next().done,Q=class t extends j{constructor(e){super(),p._defineProperty(this,"items",[]),this.schema=e}addIn(e,n){if(Xr(e))this.add(n);else{let[r,...s]=e,i=this.get(r,!0);if(i instanceof t)i.addIn(s,n);else if(i===void 0&&this.schema)this.set(r,Gr(this.schema,s,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${s}`)}}deleteIn([e,...n]){if(n.length===0)return this.delete(e);let r=this.get(e,!0);if(r instanceof t)return r.deleteIn(n);throw new Error(`Expected YAML collection at ${e}. Remaining path: ${n}`)}getIn([e,...n],r){let s=this.get(e,!0);return n.length===0?!r&&s instanceof x?s.value:s:s instanceof t?s.getIn(n,r):void 0}hasAllNullValues(){return this.items.every(e=>{if(!e||e.type!=="PAIR")return!1;let n=e.value;return n==null||n instanceof x&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn([e,...n]){if(n.length===0)return this.has(e);let r=this.get(e,!0);return r instanceof t?r.hasIn(n):!1}setIn([e,...n],r){if(n.length===0)this.set(e,r);else{let s=this.get(e,!0);if(s instanceof t)s.setIn(n,r);else if(s===void 0&&this.schema)this.set(e,Gr(this.schema,n,r));else throw new Error(`Expected YAML collection at ${e}. Remaining path: ${n}`)}}toJSON(){return null}toString(e,{blockItem:n,flowChars:r,isMap:s,itemIndent:i},o,a){let{indent:c,indentStep:l,stringify:f}=e,m=this.type===p.Type.FLOW_MAP||this.type===p.Type.FLOW_SEQ||e.inFlow;m&&(i+=l);let g=s&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:g,indent:i,inFlow:m,type:null});let y=!1,h=!1,d=this.items.reduce((P,A,C)=>{let L;A&&(!y&&A.spaceBefore&&P.push({type:"comment",str:""}),A.commentBefore&&A.commentBefore.match(/^.*$/gm).forEach(Mi=>{P.push({type:"comment",str:`#${Mi}`})}),A.comment&&(L=A.comment),m&&(!y&&A.spaceBefore||A.commentBefore||A.comment||A.key&&(A.key.commentBefore||A.key.comment)||A.value&&(A.value.commentBefore||A.value.comment))&&(h=!0)),y=!1;let R=f(A,e,()=>L=null,()=>y=!0);return m&&!h&&R.includes(` +`)&&(h=!0),m&&CL.str);if(h||C.reduce((L,R)=>L+R.length+2,2)>t.maxFlowStringSingleLineLength){w=P;for(let L of C)w+=L?` +${l}${c}${L}`:` +`;w+=` +${c}${A}`}else w=`${P} ${C.join(" ")} ${A}`}else{let P=d.map(n);w=P.shift();for(let A of P)w+=A?` +${c}${A}`:` +`}return this.comment?(w+=` +`+this.comment.replace(/^/gm,`${c}#`),o&&o()):y&&a&&a(),w}};p._defineProperty(Q,"maxFlowStringSingleLineLength",60);function _t(t){let e=t instanceof x?t.value:t;return e&&typeof e=="string"&&(e=Number(e)),Number.isInteger(e)&&e>=0?e:null}var ue=class extends Q{add(e){this.items.push(e)}delete(e){let n=_t(e);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(e,n){let r=_t(e);if(typeof r!="number")return;let s=this.items[r];return!n&&s instanceof x?s.value:s}has(e){let n=_t(e);return typeof n=="number"&&ns.type==="comment"?s.str:`- ${s.str}`,flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(e.indent||"")+" "},n,r):JSON.stringify(this)}},No=(t,e,n)=>e===null?"":typeof e!="object"?String(e):t instanceof j&&n&&n.doc?t.toString({anchors:Object.create(null),doc:n.doc,indent:"",indentStep:n.indentStep,inFlow:!0,inStringifyKey:!0,stringify:n.stringify}):JSON.stringify(e),T=class t extends j{constructor(e,n=null){super(),this.key=e,this.value=n,this.type=t.Type.PAIR}get commentBefore(){return this.key instanceof j?this.key.commentBefore:void 0}set commentBefore(e){if(this.key==null&&(this.key=new x(null)),this.key instanceof j)this.key.commentBefore=e;else{let n="Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.";throw new Error(n)}}addToJSMap(e,n){let r=fe(this.key,"",e);if(n instanceof Map){let s=fe(this.value,r,e);n.set(r,s)}else if(n instanceof Set)n.add(r);else{let s=No(this.key,r,e),i=fe(this.value,s,e);s in n?Object.defineProperty(n,s,{value:i,writable:!0,enumerable:!0,configurable:!0}):n[s]=i}return n}toJSON(e,n){let r=n&&n.mapAsMap?new Map:{};return this.addToJSMap(n,r)}toString(e,n,r){if(!e||!e.doc)return JSON.stringify(this);let{indent:s,indentSeq:i,simpleKeys:o}=e.doc.options,{key:a,value:c}=this,l=a instanceof j&&a.comment;if(o){if(l)throw new Error("With simple keys, key nodes cannot have comments");if(a instanceof Q){let R="With simple keys, collection cannot be used as a key value";throw new Error(R)}}let f=!o&&(!a||l||(a instanceof j?a instanceof Q||a.type===p.Type.BLOCK_FOLDED||a.type===p.Type.BLOCK_LITERAL:typeof a=="object")),{doc:m,indent:g,indentStep:y,stringify:h}=e;e=Object.assign({},e,{implicitKey:!f,indent:g+y});let d=!1,w=h(a,e,()=>l=null,()=>d=!0);if(w=Re(w,e.indent,l),!f&&w.length>1024){if(o)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");f=!0}if(e.allNullValues&&!o)return this.comment?(w=Re(w,e.indent,this.comment),n&&n()):d&&!l&&r&&r(),e.inFlow&&!f?w:`? ${w}`;w=f?`? ${w} +${g}:`:`${w}:`,this.comment&&(w=Re(w,e.indent,this.comment),n&&n());let P="",A=null;if(c instanceof j){if(c.spaceBefore&&(P=` +`),c.commentBefore){let R=c.commentBefore.replace(/^/gm,`${e.indent}#`);P+=` +${R}`}A=c.comment}else c&&typeof c=="object"&&(c=m.schema.createNode(c,!0));e.implicitKey=!1,!f&&!this.comment&&c instanceof x&&(e.indentAtStart=w.length+1),d=!1,!i&&s>=2&&!e.inFlow&&!f&&c instanceof ue&&c.type!==p.Type.FLOW_SEQ&&!c.tag&&!m.anchors.getName(c)&&(e.indent=e.indent.substr(2));let C=h(c,e,()=>A=null,()=>d=!0),L=" ";return P||this.comment?L=`${P} +${e.indent}`:!f&&c instanceof Q?(!(C[0]==="["||C[0]==="{")||C.includes(` +`))&&(L=` +${e.indent}`):C[0]===` +`&&(L=""),d&&!A&&r&&r(),Re(w+L+C,e.indent,A)}};p._defineProperty(T,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});var xt=(t,e)=>{if(t instanceof we){let n=e.get(t.source);return n.count*n.aliasCount}else if(t instanceof Q){let n=0;for(let r of t.items){let s=xt(r,e);s>n&&(n=s)}return n}else if(t instanceof T){let n=xt(t.key,e),r=xt(t.value,e);return Math.max(n,r)}return 1},we=class t extends j{static stringify({range:e,source:n},{anchors:r,doc:s,implicitKey:i,inStringifyKey:o}){let a=Object.keys(r).find(l=>r[l]===n);if(!a&&o&&(a=s.anchors.getName(n)||s.anchors.newName()),a)return`*${a}${i?" ":""}`;let c=s.anchors.getName(n)?"Alias node must be after source node":"Source node not found for alias node";throw new Error(`${c} [${e}]`)}constructor(e){super(),this.source=e,this.type=p.Type.ALIAS}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(e,n){if(!n)return fe(this.source,e,n);let{anchors:r,maxAliasCount:s}=n,i=r.get(this.source);if(!i||i.res===void 0){let o="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new p.YAMLReferenceError(this.cstNode,o):new ReferenceError(o)}if(s>=0&&(i.count+=1,i.aliasCount===0&&(i.aliasCount=xt(this.source,r)),i.count*i.aliasCount>s)){let o="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new p.YAMLReferenceError(this.cstNode,o):new ReferenceError(o)}return i.res}toString(e){return t.stringify(this,e)}};p._defineProperty(we,"default",!0);function at(t,e){let n=e instanceof x?e.value:e;for(let r of t)if(r instanceof T&&(r.key===e||r.key===n||r.key&&r.key.value===n))return r}var ct=class extends Q{add(e,n){e?e instanceof T||(e=new T(e.key||e,e.value)):e=new T(e);let r=at(this.items,e.key),s=this.schema&&this.schema.sortMapEntries;if(r)if(n)r.value=e.value;else throw new Error(`Key ${e.key} already set`);else if(s){let i=this.items.findIndex(o=>s(e,o)<0);i===-1?this.items.push(e):this.items.splice(i,0,e)}else this.items.push(e)}delete(e){let n=at(this.items,e);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(e,n){let r=at(this.items,e),s=r&&r.value;return!n&&s instanceof x?s.value:s}has(e){return!!at(this.items,e)}set(e,n){this.add(new T(e,n),!0)}toJSON(e,n,r){let s=r?new r:n&&n.mapAsMap?new Map:{};n&&n.onCreate&&n.onCreate(s);for(let i of this.items)i.addToJSMap(n,s);return s}toString(e,n,r){if(!e)return JSON.stringify(this);for(let s of this.items)if(!(s instanceof T))throw new Error(`Map items must all be pairs; found ${JSON.stringify(s)} instead`);return super.toString(e,{blockItem:s=>s.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},n,r)}},zr="<<",$t=class extends T{constructor(e){if(e instanceof T){let n=e.value;n instanceof ue||(n=new ue,n.items.push(e.value),n.range=e.value.range),super(e.key,n),this.range=e.range}else super(new x(zr),new ue);this.type=T.Type.MERGE_PAIR}addToJSMap(e,n){for(let{source:r}of this.value.items){if(!(r instanceof ct))throw new Error("Merge sources must be maps");let s=r.toJSON(null,e,Map);for(let[i,o]of s)n instanceof Map?n.has(i)||n.set(i,o):n instanceof Set?n.add(i):Object.prototype.hasOwnProperty.call(n,i)||Object.defineProperty(n,i,{value:o,writable:!0,enumerable:!0,configurable:!0})}return n}toString(e,n){let r=this.value;if(r.items.length>1)return super.toString(e,n);this.value=r.items[0];let s=super.toString(e,n);return this.value=r,s}},Oo={defaultType:p.Type.BLOCK_LITERAL,lineWidth:76},Ao={trueStr:"true",falseStr:"false"},Lo={asBigInt:!1},To={nullStr:"null"},be={defaultType:p.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function Rn(t,e,n){for(let{format:r,test:s,resolve:i}of e)if(s){let o=t.match(s);if(o){let a=i.apply(null,o);return a instanceof x||(a=new x(a)),r&&(a.format=r),a}}return n&&(t=n(t)),new x(t)}var Zr="flow",xn="block",Rt="quoted",Hr=(t,e)=>{let n=t[e+1];for(;n===" "||n===" ";){do n=t[e+=1];while(n&&n!==` +`);n=t[e+1]}return e};function Yt(t,e,n,{indentAtStart:r,lineWidth:s=80,minContentWidth:i=20,onFold:o,onOverflow:a}){if(!s||s<0)return t;let c=Math.max(1+i,1+s-e.length);if(t.length<=c)return t;let l=[],f={},m=s-e.length;typeof r=="number"&&(r>s-Math.max(2,i)?l.push(0):m=s-r);let g,y,h=!1,d=-1,w=-1,P=-1;n===xn&&(d=Hr(t,d),d!==-1&&(m=d+c));for(let C;C=t[d+=1];){if(n===Rt&&C==="\\"){switch(w=d,t[d+1]){case"x":d+=3;break;case"u":d+=5;break;case"U":d+=9;break;default:d+=1}P=d}if(C===` +`)n===xn&&(d=Hr(t,d)),m=d+c,g=void 0;else{if(C===" "&&y&&y!==" "&&y!==` +`&&y!==" "){let L=t[d+1];L&&L!==" "&&L!==` +`&&L!==" "&&(g=d)}if(d>=m)if(g)l.push(g),m=g+c,g=void 0;else if(n===Rt){for(;y===" "||y===" ";)y=C,C=t[d+=1],h=!0;let L=d>P+1?d-2:w-1;if(f[L])return t;l.push(L),f[L]=!0,m=L+c,g=void 0}else h=!0}y=C}if(h&&a&&a(),l.length===0)return t;o&&o();let A=t.slice(0,l[0]);for(let C=0;Ct?Object.assign({indentAtStart:t},be.fold):be.fold,Bt=t=>/^(%|---|\.\.\.)/m.test(t);function Co(t,e,n){if(!e||e<0)return!1;let r=e-n,s=t.length;if(s<=r)return!1;for(let i=0,o=0;ir)return!0;if(o=i+1,s-o<=r)return!1}return!0}function Se(t,e){let{implicitKey:n}=e,{jsonEncoding:r,minMultiLineLength:s}=be.doubleQuoted,i=JSON.stringify(t);if(r)return i;let o=e.indent||(Bt(t)?" ":""),a="",c=0;for(let l=0,f=i[l];f;f=i[++l])if(f===" "&&i[l+1]==="\\"&&i[l+2]==="n"&&(a+=i.slice(c,l)+"\\ ",l+=1,c=l,f="\\"),f==="\\")switch(i[l+1]){case"u":{a+=i.slice(c,l);let m=i.substr(l+2,4);switch(m){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:m.substr(0,2)==="00"?a+="\\x"+m.substr(2):a+=i.substr(l,6)}l+=5,c=l+1}break;case"n":if(n||i[l+2]==='"'||i.length";if(!n)return l+` +`;let f="",m="";if(n=n.replace(/[\n\t ]*$/,y=>{let h=y.indexOf(` +`);return h===-1?l+="-":(n===y||h!==y.length-1)&&(l+="+",i&&i()),m=y.replace(/\n$/,""),""}).replace(/^[\n ]*/,y=>{y.indexOf(" ")!==-1&&(l+=a);let h=y.match(/ +$/);return h?(f=y.slice(0,-h[0].length),h[0]):(f=y,"")}),m&&(m=m.replace(/\n+(?!\n|$)/g,`$&${o}`)),f&&(f=f.replace(/\n+/g,`$&${o}`)),t&&(l+=" #"+t.replace(/ ?[\r\n]+/g," "),s&&s()),!n)return`${l}${a} +${o}${m}`;if(c)return n=n.replace(/\n+/g,`$&${o}`),`${l} +${o}${f}${n}${m}`;n=n.replace(/\n+/g,` +$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${o}`);let g=Yt(`${f}${n}${m}`,o,xn,be.fold);return`${l} +${o}${g}`}function Mo(t,e,n,r){let{comment:s,type:i,value:o}=t,{actualString:a,implicitKey:c,indent:l,inFlow:f}=e;if(c&&/[\n[\]{},]/.test(o)||f&&/[[\]{},]/.test(o))return Se(o,e);if(!o||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o))return c||f||o.indexOf(` +`)===-1?o.indexOf('"')!==-1&&o.indexOf("'")===-1?es(o,e):Se(o,e):Dt(t,e,n,r);if(!c&&!f&&i!==p.Type.PLAIN&&o.indexOf(` +`)!==-1)return Dt(t,e,n,r);if(l===""&&Bt(o))return e.forceBlockIndent=!0,Dt(t,e,n,r);let m=o.replace(/\n+/g,`$& +${l}`);if(a){let{tags:y}=e.doc.schema;if(typeof Rn(m,y,y.scalarFallback).value!="string")return Se(o,e)}let g=c?m:Yt(m,l,Zr,Dn(e));return s&&!f&&(g.indexOf(` +`)!==-1||s.indexOf(` +`)!==-1)?(n&&n(),bo(g,l,s)):g}function ko(t,e,n,r){let{defaultType:s}=be,{implicitKey:i,inFlow:o}=e,{type:a,value:c}=t;typeof c!="string"&&(c=String(c),t=Object.assign({},t,{value:c}));let l=m=>{switch(m){case p.Type.BLOCK_FOLDED:case p.Type.BLOCK_LITERAL:return Dt(t,e,n,r);case p.Type.QUOTE_DOUBLE:return Se(c,e);case p.Type.QUOTE_SINGLE:return es(c,e);case p.Type.PLAIN:return Mo(t,e,n,r);default:return null}};(a!==p.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(c)||(i||o)&&(a===p.Type.BLOCK_FOLDED||a===p.Type.BLOCK_LITERAL))&&(a=p.Type.QUOTE_DOUBLE);let f=l(a);if(f===null&&(f=l(s),f===null))throw new Error(`Unsupported default string type ${s}`);return f}function Po({format:t,minFractionDigits:e,tag:n,value:r}){if(typeof r=="bigint")return String(r);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let s=JSON.stringify(r);if(!t&&e&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(s)){let i=s.indexOf(".");i<0&&(i=s.length,s+=".");let o=e-(s.length-i-1);for(;o-- >0;)s+="0"}return s}function ts(t,e){let n,r;switch(e.type){case p.Type.FLOW_MAP:n="}",r="flow map";break;case p.Type.FLOW_SEQ:n="]",r="flow sequence";break;default:t.push(new p.YAMLSemanticError(e,"Not a flow collection!?"));return}let s;for(let i=e.items.length-1;i>=0;--i){let o=e.items[i];if(!o||o.type!==p.Type.COMMENT){s=o;break}}if(s&&s.char!==n){let i=`Expected ${r} to end with ${n}`,o;typeof s.offset=="number"?(o=new p.YAMLSemanticError(e,i),o.offset=s.offset+1):(o=new p.YAMLSemanticError(s,i),s.range&&s.range.end&&(o.offset=s.range.end-s.range.start)),t.push(o)}}function ns(t,e){let n=e.context.src[e.range.start-1];if(n!==` +`&&n!==" "&&n!==" "){let r="Comments must be separated from other tokens by white space characters";t.push(new p.YAMLSemanticError(e,r))}}function rs(t,e){let n=String(e),r=n.substr(0,8)+"..."+n.substr(-8);return new p.YAMLSemanticError(t,`The "${r}" key is too long`)}function ss(t,e){for(let{afterKey:n,before:r,comment:s}of e){let i=t.items[r];i?(n&&i.value&&(i=i.value),s===void 0?(n||!i.commentBefore)&&(i.spaceBefore=!0):i.commentBefore?i.commentBefore+=` +`+s:i.commentBefore=s):s!==void 0&&(t.comment?t.comment+=` +`+s:t.comment=s)}}function $n(t,e){let n=e.strValue;return n?typeof n=="string"?n:(n.errors.forEach(r=>{r.source||(r.source=e),t.errors.push(r)}),n.str):""}function vo(t,e){let{handle:n,suffix:r}=e.tag,s=t.tagPrefixes.find(i=>i.handle===n);if(!s){let i=t.getDefaults().tagPrefixes;if(i&&(s=i.find(o=>o.handle===n)),!s)throw new p.YAMLSemanticError(e,`The ${n} tag handle is non-default and was not declared.`)}if(!r)throw new p.YAMLSemanticError(e,`The ${n} tag has no suffix.`);if(n==="!"&&(t.version||t.options.version)==="1.0"){if(r[0]==="^")return t.warnings.push(new p.YAMLWarning(e,"YAML 1.0 ^ tag expansion is not supported")),r;if(/[:/]/.test(r)){let i=r.match(/^([a-z0-9-]+)\/(.*)/i);return i?`tag:${i[1]}.yaml.org,2002:${i[2]}`:`tag:${r}`}}return s.prefix+decodeURIComponent(r)}function Io(t,e){let{tag:n,type:r}=e,s=!1;if(n){let{handle:i,suffix:o,verbatim:a}=n;if(a){if(a!=="!"&&a!=="!!")return a;let c=`Verbatim tags aren't resolved, so ${a} is invalid.`;t.errors.push(new p.YAMLSemanticError(e,c))}else if(i==="!"&&!o)s=!0;else try{return vo(t,e)}catch(c){t.errors.push(c)}}switch(r){case p.Type.BLOCK_FOLDED:case p.Type.BLOCK_LITERAL:case p.Type.QUOTE_DOUBLE:case p.Type.QUOTE_SINGLE:return p.defaultTags.STR;case p.Type.FLOW_MAP:case p.Type.MAP:return p.defaultTags.MAP;case p.Type.FLOW_SEQ:case p.Type.SEQ:return p.defaultTags.SEQ;case p.Type.PLAIN:return s?p.defaultTags.STR:null;default:return null}}function Jr(t,e,n){let{tags:r}=t.schema,s=[];for(let o of r)if(o.tag===n)if(o.test)s.push(o);else{let a=o.resolve(t,e);return a instanceof Q?a:new x(a)}let i=$n(t,e);return typeof i=="string"&&s.length>0?Rn(i,s,r.scalarFallback):null}function _o({type:t}){switch(t){case p.Type.FLOW_MAP:case p.Type.MAP:return p.defaultTags.MAP;case p.Type.FLOW_SEQ:case p.Type.SEQ:return p.defaultTags.SEQ;default:return p.defaultTags.STR}}function xo(t,e,n){try{let r=Jr(t,e,n);if(r)return n&&e.tag&&(r.tag=n),r}catch(r){return r.source||(r.source=e),t.errors.push(r),null}try{let r=_o(e);if(!r)throw new Error(`The tag ${n} is unavailable`);let s=`The tag ${n} is unavailable, falling back to ${r}`;t.warnings.push(new p.YAMLWarning(e,s));let i=Jr(t,e,r);return i.tag=n,i}catch(r){let s=new p.YAMLReferenceError(e,r.message);return s.stack=r.stack,t.errors.push(s),null}}var Ro=t=>{if(!t)return!1;let{type:e}=t;return e===p.Type.MAP_KEY||e===p.Type.MAP_VALUE||e===p.Type.SEQ_ITEM};function Do(t,e){let n={before:[],after:[]},r=!1,s=!1,i=Ro(e.context.parent)?e.context.parent.props.concat(e.props):e.props;for(let{start:o,end:a}of i)switch(e.context.src[o]){case p.Char.COMMENT:{if(!e.commentHasRequiredWhitespace(o)){let m="Comments must be separated from other tokens by white space characters";t.push(new p.YAMLSemanticError(e,m))}let{header:c,valueRange:l}=e;(l&&(o>l.start||c&&o>c.start)?n.after:n.before).push(e.context.src.slice(o+1,a));break}case p.Char.ANCHOR:if(r){let c="A node can have at most one anchor";t.push(new p.YAMLSemanticError(e,c))}r=!0;break;case p.Char.TAG:if(s){let c="A node can have at most one tag";t.push(new p.YAMLSemanticError(e,c))}s=!0;break}return{comments:n,hasAnchor:r,hasTag:s}}function $o(t,e){let{anchors:n,errors:r,schema:s}=t;if(e.type===p.Type.ALIAS){let o=e.rawValue,a=n.getNode(o);if(!a){let l=`Aliased anchor not found: ${o}`;return r.push(new p.YAMLReferenceError(e,l)),null}let c=new we(a);return n._cstAliases.push(c),c}let i=Io(t,e);if(i)return xo(t,e,i);if(e.type!==p.Type.PLAIN){let o=`Failed to resolve ${e.type} node here`;return r.push(new p.YAMLSyntaxError(e,o)),null}try{let o=$n(t,e);return Rn(o,s.tags,s.tags.scalarFallback)}catch(o){return o.source||(o.source=e),r.push(o),null}}function pe(t,e){if(!e)return null;e.error&&t.errors.push(e.error);let{comments:n,hasAnchor:r,hasTag:s}=Do(t.errors,e);if(r){let{anchors:o}=t,a=e.anchor,c=o.getNode(a);c&&(o.map[o.newName(a)]=c),o.map[a]=e}if(e.type===p.Type.ALIAS&&(r||s)){let o="An alias node must not specify any properties";t.errors.push(new p.YAMLSemanticError(e,o))}let i=$o(t,e);if(i){i.range=[e.range.start,e.range.end],t.options.keepCstNodes&&(i.cstNode=e),t.options.keepNodeTypes&&(i.type=e.type);let o=n.before.join(` +`);o&&(i.commentBefore=i.commentBefore?`${i.commentBefore} +${o}`:o);let a=n.after.join(` +`);a&&(i.comment=i.comment?`${i.comment} +${a}`:a)}return e.resolved=i}function Yo(t,e){if(e.type!==p.Type.MAP&&e.type!==p.Type.FLOW_MAP){let o=`A ${e.type} node cannot be resolved as a mapping`;return t.errors.push(new p.YAMLSyntaxError(e,o)),null}let{comments:n,items:r}=e.type===p.Type.FLOW_MAP?Uo(t,e):qo(t,e),s=new ct;s.items=r,ss(s,n);let i=!1;for(let o=0;o{if(f instanceof we){let{type:m}=f.source;return m===p.Type.MAP||m===p.Type.FLOW_MAP?!1:l="Merge nodes aliases can only point to maps"}return l="Merge nodes can only have Alias nodes as values"}),l&&t.errors.push(new p.YAMLSemanticError(e,l))}else for(let c=o+1;c{if(r.length===0)return!1;let{start:s}=r[0];if(e&&s>e.valueRange.start||n[s]!==p.Char.COMMENT)return!1;for(let i=t;i0){c=new p.PlainValue(p.Type.PLAIN,[]),c.context={parent:a,src:a.context.src};let f=a.range.start+1;if(c.range={start:f,end:f},c.valueRange={start:f,end:f},typeof a.range.origStart=="number"){let m=a.range.origStart+1;c.range.origStart=c.range.origEnd=m,c.valueRange.origStart=c.valueRange.origEnd=m}}let l=new T(s,pe(t,c));Fo(a,l),r.push(l),s&&typeof i=="number"&&a.range.start>i+1024&&t.errors.push(rs(e,s)),s=void 0,i=null}break;default:s!==void 0&&r.push(new T(s)),s=pe(t,a),i=a.range.start,a.error&&t.errors.push(a.error);e:for(let c=o+1;;++c){let l=e.items[c];switch(l&&l.type){case p.Type.BLANK_LINE:case p.Type.COMMENT:continue e;case p.Type.MAP_VALUE:break e;default:{let f="Implicit map keys need to be followed by map values";t.errors.push(new p.YAMLSemanticError(a,f));break e}}}if(a.valueRangeContainsNewline){let c="Implicit map keys need to be on a single line";t.errors.push(new p.YAMLSemanticError(a,c))}}}return s!==void 0&&r.push(new T(s)),{comments:n,items:r}}function Uo(t,e){let n=[],r=[],s,i=!1,o="{";for(let a=0;ai instanceof T&&i.key instanceof Q)){let i="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";t.warnings.push(new p.YAMLWarning(e,i))}return e.resolved=s,s}function Wo(t,e){let n=[],r=[];for(let s=0;so+1024&&t.errors.push(rs(e,i));let{src:h}=c.context;for(let d=o;d{"use strict";var G=ce(),O=De(),jo={identify:t=>t instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(t,e)=>{let n=O.resolveString(t,e);if(typeof Buffer=="function")return Buffer.from(n,"base64");if(typeof atob=="function"){let r=atob(n.replace(/[\n\r]/g,"")),s=new Uint8Array(r.length);for(let i=0;i{let o;if(typeof Buffer=="function")o=n instanceof Buffer?n.toString("base64"):Buffer.from(n.buffer).toString("base64");else if(typeof btoa=="function"){let a="";for(let c=0;c1){let o="Each pair must have its own sequence indicator";throw new G.YAMLSemanticError(e,o)}let i=s.items[0]||new O.Pair;s.commentBefore&&(i.commentBefore=i.commentBefore?`${s.commentBefore} +${i.commentBefore}`:s.commentBefore),s.comment&&(i.comment=i.comment?`${s.comment} +${i.comment}`:s.comment),s=i}n.items[r]=s instanceof O.Pair?s:new O.Pair(s)}}return n}function as(t,e,n){let r=new O.YAMLSeq(t);r.tag="tag:yaml.org,2002:pairs";for(let s of e){let i,o;if(Array.isArray(s))if(s.length===2)i=s[0],o=s[1];else throw new TypeError(`Expected [key, value] tuple: ${s}`);else if(s&&s instanceof Object){let c=Object.keys(s);if(c.length===1)i=c[0],o=s[i];else throw new TypeError(`Expected { key: value } tuple: ${s}`)}else i=s;let a=t.createPair(i,o,n);r.items.push(a)}return r}var Qo={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:os,createNode:as},$e=class t extends O.YAMLSeq{constructor(){super(),G._defineProperty(this,"add",O.YAMLMap.prototype.add.bind(this)),G._defineProperty(this,"delete",O.YAMLMap.prototype.delete.bind(this)),G._defineProperty(this,"get",O.YAMLMap.prototype.get.bind(this)),G._defineProperty(this,"has",O.YAMLMap.prototype.has.bind(this)),G._defineProperty(this,"set",O.YAMLMap.prototype.set.bind(this)),this.tag=t.tag}toJSON(e,n){let r=new Map;n&&n.onCreate&&n.onCreate(r);for(let s of this.items){let i,o;if(s instanceof O.Pair?(i=O.toJSON(s.key,"",n),o=O.toJSON(s.value,i,n)):i=O.toJSON(s,"",n),r.has(i))throw new Error("Ordered maps must not include duplicate keys");r.set(i,o)}return r}};G._defineProperty($e,"tag","tag:yaml.org,2002:omap");function Go(t,e){let n=os(t,e),r=[];for(let{key:s}of n.items)if(s instanceof O.Scalar)if(r.includes(s.value)){let i="Ordered maps must not include duplicate keys";throw new G.YAMLSemanticError(e,i)}else r.push(s.value);return Object.assign(new $e,n)}function Ho(t,e,n){let r=as(t,e,n),s=new $e;return s.items=r.items,s}var Jo={identify:t=>t instanceof Map,nodeClass:$e,default:!1,tag:"tag:yaml.org,2002:omap",resolve:Go,createNode:Ho},Ye=class t extends O.YAMLMap{constructor(){super(),this.tag=t.tag}add(e){let n=e instanceof O.Pair?e:new O.Pair(e);O.findPair(this.items,n.key)||this.items.push(n)}get(e,n){let r=O.findPair(this.items,e);return!n&&r instanceof O.Pair?r.key instanceof O.Scalar?r.key.value:r.key:r}set(e,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);let r=O.findPair(this.items,e);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new O.Pair(e))}toJSON(e,n){return super.toJSON(e,n,Set)}toString(e,n,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,n,r);throw new Error("Set items must all have null values")}};G._defineProperty(Ye,"tag","tag:yaml.org,2002:set");function Xo(t,e){let n=O.resolveMap(t,e);if(!n.hasAllNullValues())throw new G.YAMLSemanticError(e,"Set items must all have null values");return Object.assign(new Ye,n)}function zo(t,e,n){let r=new Ye;for(let s of e)r.items.push(t.createPair(s,null,n));return r}var Zo={identify:t=>t instanceof Set,nodeClass:Ye,default:!1,tag:"tag:yaml.org,2002:set",resolve:Xo,createNode:zo},Yn=(t,e)=>{let n=e.split(":").reduce((r,s)=>r*60+Number(s),0);return t==="-"?-n:n},cs=({value:t})=>{if(isNaN(t)||!isFinite(t))return O.stringifyNumber(t);let e="";t<0&&(e="-",t=Math.abs(t));let n=[t%60];return t<60?n.unshift(0):(t=Math.round((t-n[0])/60),n.unshift(t%60),t>=60&&(t=Math.round((t-n[0])/60),n.unshift(t))),e+n.map(r=>r<10?"0"+String(r):String(r)).join(":").replace(/000000\d*$/,"")},ea={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(t,e,n)=>Yn(e,n.replace(/_/g,"")),stringify:cs},ta={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(t,e,n)=>Yn(e,n.replace(/_/g,"")),stringify:cs},na={identify:t=>t instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:(t,e,n,r,s,i,o,a,c)=>{a&&(a=(a+"00").substr(1,3));let l=Date.UTC(e,n-1,r,s||0,i||0,o||0,a||0);if(c&&c!=="Z"){let f=Yn(c[0],c.slice(1));Math.abs(f)<30&&(f*=60),l-=6e4*f}return new Date(l)},stringify:({value:t})=>t.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};function Bn(t){let e={};return t?typeof YAML_SILENCE_DEPRECATION_WARNINGS<"u"?!YAML_SILENCE_DEPRECATION_WARNINGS:!e.YAML_SILENCE_DEPRECATION_WARNINGS:typeof YAML_SILENCE_WARNINGS<"u"?!YAML_SILENCE_WARNINGS:!e.YAML_SILENCE_WARNINGS}function Fn(t,e){Bn(!1)&&console.warn(e?`${e}: ${t}`:t)}function ra(t){if(Bn(!0)){let e=t.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/");Fn(`The endpoint 'yaml/${e}' will be removed in a future release.`,"DeprecationWarning")}}var is={};function sa(t,e){if(!is[t]&&Bn(!0)){is[t]=!0;let n=`The option '${t}' will be removed in a future release`;n+=e?`, use '${e}' instead.`:".",Fn(n,"DeprecationWarning")}}ee.binary=jo;ee.floatTime=ta;ee.intTime=ea;ee.omap=Jo;ee.pairs=Qo;ee.set=Zo;ee.timestamp=na;ee.warn=Fn;ee.warnFileDeprecation=ra;ee.warnOptionDeprecation=sa});var Kn=ne(bs=>{"use strict";var Ut=ce(),E=De(),$=qn();function ia(t,e,n){let r=new E.YAMLMap(t);if(e instanceof Map)for(let[s,i]of e)r.items.push(t.createPair(s,i,n));else if(e&&typeof e=="object")for(let s of Object.keys(e))r.items.push(t.createPair(s,e[s],n));return typeof t.sortMapEntries=="function"&&r.items.sort(t.sortMapEntries),r}var ft={createNode:ia,default:!0,nodeClass:E.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:E.resolveMap};function oa(t,e,n){let r=new E.YAMLSeq(t);if(e&&e[Symbol.iterator])for(let s of e){let i=t.createNode(s,n.wrapScalars,null,n);r.items.push(i)}return r}var Vt={createNode:oa,default:!0,nodeClass:E.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:E.resolveSeq},aa={identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:E.resolveString,stringify(t,e,n,r){return e=Object.assign({actualString:!0},e),E.stringifyString(t,e,n,r)},options:E.strOptions},Vn=[ft,Vt,aa],Wt=t=>typeof t=="bigint"||Number.isInteger(t),Wn=(t,e,n)=>E.intOptions.asBigInt?BigInt(t):parseInt(e,n);function us(t,e,n){let{value:r}=t;return Wt(r)&&r>=0?n+r.toString(e):E.stringifyNumber(t)}var ps={identify:t=>t==null,createNode:(t,e,n)=>n.wrapScalars?new E.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:E.nullOptions,stringify:()=>E.nullOptions.nullStr},ms={identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:t=>t[0]==="t"||t[0]==="T",options:E.boolOptions,stringify:({value:t})=>t?E.boolOptions.trueStr:E.boolOptions.falseStr},hs={identify:t=>Wt(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(t,e)=>Wn(t,e,8),options:E.intOptions,stringify:t=>us(t,8,"0o")},ds={identify:Wt,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:t=>Wn(t,t,10),options:E.intOptions,stringify:E.stringifyNumber},gs={identify:t=>Wt(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(t,e)=>Wn(t,e,16),options:E.intOptions,stringify:t=>us(t,16,"0x")},ys={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(t,e)=>e?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:E.stringifyNumber},Es={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t),stringify:({value:t})=>Number(t).toExponential()},Ss={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(t,e,n){let r=e||n,s=new E.Scalar(parseFloat(t));return r&&r[r.length-1]==="0"&&(s.minFractionDigits=r.length),s},stringify:E.stringifyNumber},ca=Vn.concat([ps,ms,hs,ds,gs,ys,Es,Ss]),ls=t=>typeof t=="bigint"||Number.isInteger(t),Ft=({value:t})=>JSON.stringify(t),ws=[ft,Vt,{identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:E.resolveString,stringify:Ft},{identify:t=>t==null,createNode:(t,e,n)=>n.wrapScalars?new E.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Ft},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:t=>t==="true",stringify:Ft},{identify:ls,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:t=>E.intOptions.asBigInt?BigInt(t):parseInt(t,10),stringify:({value:t})=>ls(t)?t.toString():JSON.stringify(t)},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:t=>parseFloat(t),stringify:Ft}];ws.scalarFallback=t=>{throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(t)}`)};var fs=({value:t})=>t?E.boolOptions.trueStr:E.boolOptions.falseStr,lt=t=>typeof t=="bigint"||Number.isInteger(t);function qt(t,e,n){let r=e.replace(/_/g,"");if(E.intOptions.asBigInt){switch(n){case 2:r=`0b${r}`;break;case 8:r=`0o${r}`;break;case 16:r=`0x${r}`;break}let i=BigInt(r);return t==="-"?BigInt(-1)*i:i}let s=parseInt(r,n);return t==="-"?-1*s:s}function Un(t,e,n){let{value:r}=t;if(lt(r)){let s=r.toString(e);return r<0?"-"+n+s.substr(1):n+s}return E.stringifyNumber(t)}var la=Vn.concat([{identify:t=>t==null,createNode:(t,e,n)=>n.wrapScalars?new E.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:E.nullOptions,stringify:()=>E.nullOptions.nullStr},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>!0,options:E.boolOptions,stringify:fs},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>!1,options:E.boolOptions,stringify:fs},{identify:lt,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(t,e,n)=>qt(e,n,2),stringify:t=>Un(t,2,"0b")},{identify:lt,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(t,e,n)=>qt(e,n,8),stringify:t=>Un(t,8,"0")},{identify:lt,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(t,e,n)=>qt(e,n,10),stringify:E.stringifyNumber},{identify:lt,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(t,e,n)=>qt(e,n,16),stringify:t=>Un(t,16,"0x")},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(t,e)=>e?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:E.stringifyNumber},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t.replace(/_/g,"")),stringify:({value:t})=>Number(t).toExponential()},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(t,e){let n=new E.Scalar(parseFloat(t.replace(/_/g,"")));if(e){let r=e.replace(/_/g,"");r[r.length-1]==="0"&&(n.minFractionDigits=r.length)}return n},stringify:E.stringifyNumber}],$.binary,$.omap,$.pairs,$.set,$.intTime,$.floatTime,$.timestamp),fa={core:ca,failsafe:Vn,json:ws,yaml11:la},ua={binary:$.binary,bool:ms,float:Ss,floatExp:Es,floatNaN:ys,floatTime:$.floatTime,int:ds,intHex:gs,intOct:hs,intTime:$.intTime,map:ft,null:ps,omap:$.omap,pairs:$.pairs,seq:Vt,set:$.set,timestamp:$.timestamp};function pa(t,e,n){if(e){let r=n.filter(i=>i.tag===e),s=r.find(i=>!i.format)||r[0];if(!s)throw new Error(`Tag ${e} not found`);return s}return n.find(r=>(r.identify&&r.identify(t)||r.class&&t instanceof r.class)&&!r.format)}function ma(t,e,n){if(t instanceof E.Node)return t;let{defaultPrefix:r,onTagObj:s,prevObjects:i,schema:o,wrapScalars:a}=n;e&&e.startsWith("!!")&&(e=r+e.slice(2));let c=pa(t,e,o.tags);if(!c){if(typeof t.toJSON=="function"&&(t=t.toJSON()),!t||typeof t!="object")return a?new E.Scalar(t):t;c=t instanceof Map?ft:t[Symbol.iterator]?Vt:ft}s&&(s(c),delete n.onTagObj);let l={value:void 0,node:void 0};if(t&&typeof t=="object"&&i){let f=i.get(t);if(f){let m=new E.Alias(f);return n.aliasNodes.push(m),m}l.value=t,i.set(t,l)}return l.node=c.createNode?c.createNode(n.schema,t,n):a?new E.Scalar(t):t,e&&l.node instanceof E.Node&&(l.node.tag=e),l.node}function ha(t,e,n,r){let s=t[r.replace(/\W/g,"")];if(!s){let i=Object.keys(t).map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown schema "${r}"; use one of ${i}`)}if(Array.isArray(n))for(let i of n)s=s.concat(i);else typeof n=="function"&&(s=n(s.slice()));for(let i=0;iJSON.stringify(l)).join(", ");throw new Error(`Unknown custom tag "${o}"; use one of ${c}`)}s[i]=a}}return s}var da=(t,e)=>t.keye.key?1:0,ut=class t{constructor({customTags:e,merge:n,schema:r,sortMapEntries:s,tags:i}){this.merge=!!n,this.name=r,this.sortMapEntries=s===!0?da:s||null,!e&&i&&$.warnOptionDeprecation("tags","customTags"),this.tags=ha(fa,ua,e||i,r)}createNode(e,n,r,s){let i={defaultPrefix:t.defaultPrefix,schema:this,wrapScalars:n},o=s?Object.assign(s,i):i;return ma(e,r,o)}createPair(e,n,r){r||(r={wrapScalars:!0});let s=this.createNode(e,r.wrapScalars,null,r),i=this.createNode(n,r.wrapScalars,null,r);return new E.Pair(s,i)}};Ut._defineProperty(ut,"defaultPrefix",Ut.defaultTagPrefix);Ut._defineProperty(ut,"defaultTags",Ut.defaultTags);bs.Schema=ut});var Ls=ne(Gt=>{"use strict";var Y=ce(),S=De(),Ns=Kn(),ga={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},ya={get binary(){return S.binaryOptions},set binary(t){Object.assign(S.binaryOptions,t)},get bool(){return S.boolOptions},set bool(t){Object.assign(S.boolOptions,t)},get int(){return S.intOptions},set int(t){Object.assign(S.intOptions,t)},get null(){return S.nullOptions},set null(t){Object.assign(S.nullOptions,t)},get str(){return S.strOptions},set str(t){Object.assign(S.strOptions,t)}},As={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:Y.defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:Y.defaultTagPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:Y.defaultTagPrefix}]}};function Os(t,e){if((t.version||t.options.version)==="1.0"){let s=e.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(s)return"!"+s[1];let i=e.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return i?`!${i[1]}/${i[2]}`:`!${e.replace(/^tag:/,"")}`}let n=t.tagPrefixes.find(s=>e.indexOf(s.prefix)===0);if(!n){let s=t.getDefaults().tagPrefixes;n=s&&s.find(i=>e.indexOf(i.prefix)===0)}if(!n)return e[0]==="!"?e:`!<${e}>`;let r=e.substr(n.prefix.length).replace(/[!,[\]{}]/g,s=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"})[s]);return n.handle+r}function Ea(t,e){if(e instanceof S.Alias)return S.Alias;if(e.tag){let s=t.filter(i=>i.tag===e.tag);if(s.length>0)return s.find(i=>i.format===e.format)||s[0]}let n,r;if(e instanceof S.Scalar){r=e.value;let s=t.filter(i=>i.identify&&i.identify(r)||i.class&&r instanceof i.class);n=s.find(i=>i.format===e.format)||s.find(i=>!i.format)}else r=e,n=t.find(s=>s.nodeClass&&r instanceof s.nodeClass);if(!n){let s=r&&r.constructor?r.constructor.name:typeof r;throw new Error(`Tag not resolved for ${s} value`)}return n}function Sa(t,e,{anchors:n,doc:r}){let s=[],i=r.anchors.getName(t);return i&&(n[i]=t,s.push(`&${i}`)),t.tag?s.push(Os(r,t.tag)):e.default||s.push(Os(r,e.tag)),s.join(" ")}function Kt(t,e,n,r){let{anchors:s,schema:i}=e.doc,o;if(!(t instanceof S.Node)){let l={aliasNodes:[],onTagObj:f=>o=f,prevObjects:new Map};t=i.createNode(t,!0,null,l);for(let f of l.aliasNodes){f.source=f.source.node;let m=s.getName(f.source);m||(m=s.newName(),s.map[m]=f.source)}}if(t instanceof S.Pair)return t.toString(e,n,r);o||(o=Ea(i.tags,t));let a=Sa(t,o,e);a.length>0&&(e.indentAtStart=(e.indentAtStart||0)+a.length+1);let c=typeof o.stringify=="function"?o.stringify(t,e,n,r):t instanceof S.Scalar?S.stringifyString(t,e,n,r):t.toString(e,n,r);return a?t instanceof S.Scalar||c[0]==="{"||c[0]==="["?`${a} ${c}`:`${a} +${e.indent}${c}`:c}var jn=class t{static validAnchorNode(e){return e instanceof S.Scalar||e instanceof S.YAMLSeq||e instanceof S.YAMLMap}constructor(e){Y._defineProperty(this,"map",Object.create(null)),this.prefix=e}createAlias(e,n){return this.setAnchor(e,n),new S.Alias(e)}createMergePair(...e){let n=new S.Merge;return n.value.items=e.map(r=>{if(r instanceof S.Alias){if(r.source instanceof S.YAMLMap)return r}else if(r instanceof S.YAMLMap)return this.createAlias(r);throw new Error("Merge sources must be Map nodes or their Aliases")}),n}getName(e){let{map:n}=this;return Object.keys(n).find(r=>n[r]===e)}getNames(){return Object.keys(this.map)}getNode(e){return this.map[e]}newName(e){e||(e=this.prefix);let n=Object.keys(this.map);for(let r=1;;++r){let s=`${e}${r}`;if(!n.includes(s))return s}}resolveNodes(){let{map:e,_cstAliases:n}=this;Object.keys(e).forEach(r=>{e[r]=e[r].resolved}),n.forEach(r=>{r.source=r.source.resolved}),delete this._cstAliases}setAnchor(e,n){if(e!=null&&!t.validAnchorNode(e))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(n&&/[\x00-\x19\s,[\]{}]/.test(n))throw new Error("Anchor names must not contain whitespace or control characters");let{map:r}=this,s=e&&Object.keys(r).find(i=>r[i]===e);if(s)if(n)s!==n&&(delete r[s],r[n]=e);else return s;else{if(!n){if(!e)return null;n=this.newName()}r[n]=e}return n}},jt=(t,e)=>{if(t&&typeof t=="object"){let{tag:n}=t;t instanceof S.Collection?(n&&(e[n]=!0),t.items.forEach(r=>jt(r,e))):t instanceof S.Pair?(jt(t.key,e),jt(t.value,e)):t instanceof S.Scalar&&n&&(e[n]=!0)}return e},wa=t=>Object.keys(jt(t,{}));function ba(t,e){let n={before:[],after:[]},r,s=!1;for(let i of e)if(i.valueRange){if(r!==void 0){let a="Document contains trailing content not separated by a ... or --- line";t.errors.push(new Y.YAMLSyntaxError(i,a));break}let o=S.resolveNode(t,i);s&&(o.spaceBefore=!0,s=!1),r=o}else i.comment!==null?(r===void 0?n.before:n.after).push(i.comment):i.type===Y.Type.BLANK_LINE&&(s=!0,r===void 0&&n.before.length>0&&!t.commentBefore&&(t.commentBefore=n.before.join(` +`),n.before=[]));if(t.contents=r||null,!r)t.comment=n.before.concat(n.after).join(` +`)||null;else{let i=n.before.join(` +`);if(i){let o=r instanceof S.Collection&&r.items[0]?r.items[0]:r;o.commentBefore=o.commentBefore?`${i} +${o.commentBefore}`:i}t.comment=n.after.join(` +`)||null}}function Na({tagPrefixes:t},e){let[n,r]=e.parameters;if(!n||!r){let s="Insufficient parameters given for %TAG directive";throw new Y.YAMLSemanticError(e,s)}if(t.some(s=>s.handle===n)){let s="The %TAG directive must only be given at most once per handle in the same document.";throw new Y.YAMLSemanticError(e,s)}return{handle:n,prefix:r}}function Oa(t,e){let[n]=e.parameters;if(e.name==="YAML:1.0"&&(n="1.0"),!n){let r="Insufficient parameters given for %YAML directive";throw new Y.YAMLSemanticError(e,r)}if(!As[n]){let s=`Document will be parsed as YAML ${t.version||t.options.version} rather than YAML ${n}`;t.warnings.push(new Y.YAMLWarning(e,s))}return n}function Aa(t,e,n){let r=[],s=!1;for(let i of e){let{comment:o,name:a}=i;switch(a){case"TAG":try{t.tagPrefixes.push(Na(t,i))}catch(c){t.errors.push(c)}s=!0;break;case"YAML":case"YAML:1.0":if(t.version){let c="The %YAML directive must only be given at most once per document.";t.errors.push(new Y.YAMLSemanticError(i,c))}try{t.version=Oa(t,i)}catch(c){t.errors.push(c)}s=!0;break;default:if(a){let c=`YAML only supports %TAG and %YAML directives, and not %${a}`;t.warnings.push(new Y.YAMLWarning(i,c))}}o&&r.push(o)}if(n&&!s&&(t.version||n.version||t.options.version)==="1.1"){let i=({handle:o,prefix:a})=>({handle:o,prefix:a});t.tagPrefixes=n.tagPrefixes.map(i),t.version=n.version}t.commentBefore=r.join(` +`)||null}function Be(t){if(t instanceof S.Collection)return!0;throw new Error("Expected a YAML collection as document contents")}var Qt=class t{constructor(e){this.anchors=new jn(e.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=e,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}add(e){return Be(this.contents),this.contents.add(e)}addIn(e,n){Be(this.contents),this.contents.addIn(e,n)}delete(e){return Be(this.contents),this.contents.delete(e)}deleteIn(e){return S.isEmptyPath(e)?this.contents==null?!1:(this.contents=null,!0):(Be(this.contents),this.contents.deleteIn(e))}getDefaults(){return t.defaults[this.version]||t.defaults[this.options.version]||{}}get(e,n){return this.contents instanceof S.Collection?this.contents.get(e,n):void 0}getIn(e,n){return S.isEmptyPath(e)?!n&&this.contents instanceof S.Scalar?this.contents.value:this.contents:this.contents instanceof S.Collection?this.contents.getIn(e,n):void 0}has(e){return this.contents instanceof S.Collection?this.contents.has(e):!1}hasIn(e){return S.isEmptyPath(e)?this.contents!==void 0:this.contents instanceof S.Collection?this.contents.hasIn(e):!1}set(e,n){Be(this.contents),this.contents.set(e,n)}setIn(e,n){S.isEmptyPath(e)?this.contents=n:(Be(this.contents),this.contents.setIn(e,n))}setSchema(e,n){if(!e&&!n&&this.schema)return;typeof e=="number"&&(e=e.toFixed(1)),e==="1.0"||e==="1.1"||e==="1.2"?(this.version?this.version=e:this.options.version=e,delete this.options.schema):e&&typeof e=="string"&&(this.options.schema=e),Array.isArray(n)&&(this.options.customTags=n);let r=Object.assign({},this.getDefaults(),this.options);this.schema=new Ns.Schema(r)}parse(e,n){this.options.keepCstNodes&&(this.cstNode=e),this.options.keepNodeTypes&&(this.type="DOCUMENT");let{directives:r=[],contents:s=[],directivesEndMarker:i,error:o,valueRange:a}=e;if(o&&(o.source||(o.source=this),this.errors.push(o)),Aa(this,r,n),i&&(this.directivesEndMarker=!0),this.range=a?[a.start,a.end]:null,this.setSchema(),this.anchors._cstAliases=[],ba(this,s),this.anchors.resolveNodes(),this.options.prettyErrors){for(let c of this.errors)c instanceof Y.YAMLError&&c.makePretty();for(let c of this.warnings)c instanceof Y.YAMLError&&c.makePretty()}return this}listNonDefaultTags(){return wa(this.contents).filter(e=>e.indexOf(Ns.Schema.defaultPrefix)!==0)}setTagPrefix(e,n){if(e[0]!=="!"||e[e.length-1]!=="!")throw new Error("Handle must start and end with !");if(n){let r=this.tagPrefixes.find(s=>s.handle===e);r?r.prefix=n:this.tagPrefixes.push({handle:e,prefix:n})}else this.tagPrefixes=this.tagPrefixes.filter(r=>r.handle!==e)}toJSON(e,n){let{keepBlobsInJSON:r,mapAsMap:s,maxAliasCount:i}=this.options,o=r&&(typeof e!="string"||!(this.contents instanceof S.Scalar)),a={doc:this,indentStep:" ",keep:o,mapAsMap:o&&!!s,maxAliasCount:i,stringify:Kt},c=Object.keys(this.anchors.map);c.length>0&&(a.anchors=new Map(c.map(f=>[this.anchors.map[f],{alias:[],aliasCount:0,count:1}])));let l=S.toJSON(this.contents,e,a);if(typeof n=="function"&&a.anchors)for(let{count:f,res:m}of a.anchors.values())n(m,f);return l}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");let e=this.options.indent;if(!Number.isInteger(e)||e<=0){let c=JSON.stringify(e);throw new Error(`"indent" option must be a positive integer, not ${c}`)}this.setSchema();let n=[],r=!1;if(this.version){let c="%YAML 1.2";this.schema.name==="yaml-1.1"&&(this.version==="1.0"?c="%YAML:1.0":this.version==="1.1"&&(c="%YAML 1.1")),n.push(c),r=!0}let s=this.listNonDefaultTags();this.tagPrefixes.forEach(({handle:c,prefix:l})=>{s.some(f=>f.indexOf(l)===0)&&(n.push(`%TAG ${c} ${l}`),r=!0)}),(r||this.directivesEndMarker)&&n.push("---"),this.commentBefore&&((r||!this.directivesEndMarker)&&n.unshift(""),n.unshift(this.commentBefore.replace(/^/gm,"#")));let i={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(e),stringify:Kt},o=!1,a=null;if(this.contents){this.contents instanceof S.Node&&(this.contents.spaceBefore&&(r||this.directivesEndMarker)&&n.push(""),this.contents.commentBefore&&n.push(this.contents.commentBefore.replace(/^/gm,"#")),i.forceBlockIndent=!!this.comment,a=this.contents.comment);let c=a?null:()=>o=!0,l=Kt(this.contents,i,()=>a=null,c);n.push(S.addComment(l,"",a))}else this.contents!==void 0&&n.push(Kt(this.contents,i));return this.comment&&((!o||a)&&n[n.length-1]!==""&&n.push(""),n.push(this.comment.replace(/^/gm,"#"))),n.join(` +`)+` +`}};Y._defineProperty(Qt,"defaults",As);Gt.Document=Qt;Gt.defaultOptions=ga;Gt.scalarOptions=ya});var Ms=ne(Cs=>{"use strict";var Qn=Qr(),Ne=Ls(),La=Kn(),Ta=ce(),Ca=qn();De();function Ma(t,e=!0,n){n===void 0&&typeof e=="string"&&(n=e,e=!0);let r=Object.assign({},Ne.Document.defaults[Ne.defaultOptions.version],Ne.defaultOptions);return new La.Schema(r).createNode(t,e,n)}var Fe=class extends Ne.Document{constructor(e){super(Object.assign({},Ne.defaultOptions,e))}};function ka(t,e){let n=[],r;for(let s of Qn.parse(t)){let i=new Fe(e);i.parse(s,r),n.push(i),r=i}return n}function Ts(t,e){let n=Qn.parse(t),r=new Fe(e).parse(n[0]);if(n.length>1){let s="Source contains multiple documents; please use YAML.parseAllDocuments()";r.errors.unshift(new Ta.YAMLSemanticError(n[1],s))}return r}function Pa(t,e){let n=Ts(t,e);if(n.warnings.forEach(r=>Ca.warn(r)),n.errors.length>0)throw n.errors[0];return n.toJSON()}function va(t,e){let n=new Fe(e);return n.contents=t,String(n)}var Ia={createNode:Ma,defaultOptions:Ne.defaultOptions,Document:Fe,parse:Pa,parseAllDocuments:ka,parseCST:Qn.parse,parseDocument:Ts,scalarOptions:Ne.scalarOptions,stringify:va};Cs.YAML=Ia});var Gn=ne((Lf,ks)=>{ks.exports=Ms().YAML});var Ps=ne(H=>{"use strict";var qe=De(),Ue=ce();H.findPair=qe.findPair;H.parseMap=qe.resolveMap;H.parseSeq=qe.resolveSeq;H.stringifyNumber=qe.stringifyNumber;H.stringifyString=qe.stringifyString;H.toJSON=qe.toJSON;H.Type=Ue.Type;H.YAMLError=Ue.YAMLError;H.YAMLReferenceError=Ue.YAMLReferenceError;H.YAMLSemanticError=Ue.YAMLSemanticError;H.YAMLSyntaxError=Ue.YAMLSyntaxError;H.YAMLWarning=Ue.YAMLWarning});var Ci={};or(Ci,{__parsePrettierYamlConfig:()=>Xa,languages:()=>Ur,options:()=>Vr,parsers:()=>ir,printers:()=>Ja});var mt=(t,e)=>(n,r,...s)=>n|1&&r==null?void 0:(e.call(r)??r[t]).apply(r,s);function Ri(t){return this[t<0?this.length+t:t]}var Di=mt("at",function(){if(Array.isArray(this)||typeof this=="string")return Ri}),D=Di;var $i=String.prototype.replaceAll??function(t,e){return t.global?this.replace(t,e):this.split(t).join(e)},Yi=mt("replaceAll",function(){if(typeof this=="string")return $i}),ht=Yi;var Bi=()=>{},je=Bi;var Qe="string",Ge="array",dt="cursor",gt="indent",Ae="align",yt="trim",Le="group",Te="fill",Ce="if-break",Et="indent-if-break",Me="line-suffix",St="line-suffix-boundary",re="line",wt="label",ke="break-parent",bt=new Set([dt,gt,Ae,yt,Le,Te,Ce,Et,Me,St,re,wt,ke]);function Fi(t){if(typeof t=="string")return Qe;if(Array.isArray(t))return Ge;if(!t)return;let{type:e}=t;if(bt.has(e))return e}var Nt=Fi;var qi=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function Ui(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}', +Expected it to be 'string' or 'object'.`;if(Nt(t))throw new Error("doc is valid.");let n=Object.prototype.toString.call(t);if(n!=="[object Object]")return`Unexpected doc '${n}'.`;let r=qi([...bt].map(s=>`'${s}'`));return`Unexpected doc.type '${t.type}'. +Expected it to be ${r}.`}var an=class extends Error{name="InvalidDocError";constructor(e){super(Ui(e)),this.doc=e}},ar=an;function Vi(t,e){if(typeof t=="string")return e(t);let n=new Map;return r(t);function r(i){if(n.has(i))return n.get(i);let o=s(i);return n.set(i,o),o}function s(i){switch(Nt(i)){case Ge:return e(i.map(r));case Te:return e({...i,parts:i.parts.map(r)});case Ce:return e({...i,breakContents:r(i.breakContents),flatContents:r(i.flatContents)});case Le:{let{expandedStates:o,contents:a}=i;return o?(o=o.map(r),a=o[0]):a=r(a),e({...i,contents:a,expandedStates:o})}case Ae:case gt:case Et:case wt:case Me:return e({...i,contents:r(i.contents)});case Qe:case dt:case yt:case St:case re:case ke:return e(i);default:throw new ar(i)}}}function cr(t,e=He){return Vi(t,n=>typeof n=="string"?v(e,n.split(` +`)):n)}var Z=je,Ot=je,lr=je,fr=je;function Je(t,e){return fr(t),Z(e),{type:Ae,contents:e,n:t}}function cn(t){return Je(Number.NEGATIVE_INFINITY,t)}function ur(t){return Je({type:"root"},t)}function pr(t){return Je(-1,t)}var Xe={type:ke};function At(t){return lr(t),{type:Te,parts:t}}function Pe(t,e={}){return Z(t),Ot(e.expandedStates,!0),{type:Le,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function ln(t,e){return Pe(t[0],{...e,expandedStates:t})}function ze(t,e="",n={}){return Z(t),e!==""&&Z(e),{type:Ce,breakContents:t,flatContents:e,groupId:n.groupId}}function v(t,e){Z(t),Ot(e);let n=[];for(let r=0;r{let s=!!r?.backwards;if(n===!1)return!1;let{length:i}=e,o=n;for(;o>=0&&ot===` +`||t==="\r"||t==="\u2028"||t==="\u2029";function ji(t,e,n){let r=!!n?.backwards;if(e===!1)return!1;let s=t.charAt(e);if(r){if(t.charAt(e-1)==="\r"&&s===` +`)return e-2;if(hr(s))return e-1}else{if(s==="\r"&&t.charAt(e+1)===` +`)return e+2;if(hr(s))return e+1}return e}var un=ji;function Qi(t,e){let n=e-1;n=fn(t,n,{backwards:!0}),n=un(t,n,{backwards:!0}),n=fn(t,n,{backwards:!0});let r=un(t,n,{backwards:!0});return n!==r}var pn=Qi;var mn=class extends Error{name="UnexpectedNodeError";constructor(e,n,r="type"){super(`Unexpected ${n} node ${r}: ${JSON.stringify(e[r])}.`),this.node=e}},dr=mn;var gr="format";var yr=/^\s*#[^\S\n]*@(?:noformat|noprettier)\s*?(?:\n|$)/u,Er=/^\s*#[^\S\n]*@(?:format|prettier)\s*?(?:\n|$)/u,Sr=/^\s*@(?:format|prettier)\s*$/u;var wr=t=>Sr.test(t),br=t=>Er.test(t),Nr=t=>yr.test(t),Or=t=>`# @${gr} + +${t}`;function Ar(t,e){switch(t.type){case"comment":if(wr(t.value))return null;break;case"quoteDouble":case"quoteSingle":e.type="quote";break;case"document":e.directivesEndMarker||delete e.directivesEndMarker,e.documentEndMarker||delete e.documentEndMarker;break}}Ar.ignoredProperties=new Set(["position"]);var Lr=Ar;function Tr(t,e){let{node:n}=t;if(n.type==="root"&&e.filepath&&/(?:[/\\]|^)\.(?:prettier|stylelint|lintstaged)rc$/u.test(e.filepath))return async r=>{let s=await r(e.originalText,{parser:"json"});return s?[s,N]:void 0}}Tr.getVisitorKeys=()=>[];var Cr=Tr;var Ze=null;function et(t){if(Ze!==null&&typeof Ze.property){let e=Ze;return Ze=et.prototype=null,e}return Ze=et.prototype=t??Object.create(null),new et}var Gi=10;for(let t=0;t<=Gi;t++)et();function hn(t){return et(t)}function Hi(t,e="type"){hn(t);function n(r){let s=r[e],i=t[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:r});return i}return n}var Mr=Hi;var k=[["children","anchor","tag","indicatorComment","leadingComments","middleComments","trailingComment","endComments"],["anchor","tag","indicatorComment","leadingComments","middleComments","trailingComment","endComments"],["key","value","children","anchor","tag","indicatorComment","leadingComments","middleComments","trailingComment","endComments"],["content","children","anchor","tag","indicatorComment","leadingComments","middleComments","trailingComment","endComments"],["indicatorComment","leadingComments","middleComments","trailingComment","endComments"]],kr={root:k[0],document:["head","body","children","anchor","tag","indicatorComment","leadingComments","middleComments","trailingComment","endComments"],documentHead:k[0],documentBody:k[0],directive:k[1],alias:k[1],blockLiteral:k[1],blockFolded:k[0],plain:k[0],quoteSingle:k[1],quoteDouble:k[1],mapping:k[0],mappingItem:k[2],mappingKey:k[3],mappingValue:k[3],sequence:k[0],sequenceItem:k[3],flowMapping:k[0],flowMappingItem:k[2],flowSequence:k[0],flowSequenceItem:k[3],comment:k[1],tag:k[4],anchor:k[4]};var Ji=Mr(kr),Pr=Ji;var tt=t=>t.position.start.offset,vr=t=>t.position.end.offset;function Xi(t){return Array.isArray(t)&&t.length>0}var ve=Xi;function W(t,e){return typeof t?.type=="string"&&e.includes(t.type)}function dn(t,e,n){return e("children"in t?{...t,children:t.children.map(r=>dn(r,e,t))}:t,n)}function Ie(t,e,n){Object.defineProperty(t,e,{get:n,enumerable:!1})}function _r(t,e){let n=0,r=e.length;for(let s=t.position.end.offset-1;so===0&&o===a.length-1?i:o!==0&&o!==a.length-1?i.trim():o===0?i.trimEnd():i.trimStart());if(n.proseWrap==="preserve")return r.map(i=>i?[i]:[]);let s=[];for(let[i,o]of r.entries()){let a=Rr(o);i>0&&r[i-1].length>0&&a.length>0&&!(t==="quoteDouble"&&D(0,D(0,s,-1),-1).endsWith("\\"))?s[s.length-1]=[...D(0,s,-1),...a]:s.push(a)}return n.proseWrap==="never"?s.map(i=>[i.join(" ")]):s}function $r(t,{parentIndent:e,isLastDescendant:n,options:r}){let s=t.position.start.line===t.position.end.line?"":r.originalText.slice(t.position.start.offset,t.position.end.offset).match(/^[^\n]*\n(.*)$/su)[1],i;if(t.indent===null){let l=s.match(/^(? *)[^\n\r ]/mu);i=l?l.groups.leadingSpace.length:Number.POSITIVE_INFINITY}else i=t.indent-1+e;let o=s.split(` +`).map(l=>l.slice(i));if(r.proseWrap==="preserve"||t.type==="blockLiteral")return c(o.map(l=>l?[l]:[]));let a=[];for(let[l,f]of o.entries()){let m=Rr(f);l>0&&m.length>0&&o[l-1].length>0&&!/^\s/u.test(m[0])&&!/^\s|\s$/u.test(D(0,a,-1))?a[a.length-1]=[...D(0,a,-1),...m]:a.push(m)}return a=a.map(l=>{let f=[];for(let m of l)f.length>0&&/\s$/u.test(D(0,f,-1))?f[f.length-1]+=" "+m:f.push(m);return f}),r.proseWrap==="never"&&(a=a.map(l=>[l.join(" ")])),c(a);function c(l){if(t.chomping==="keep")return D(0,l,-1).length===0?l.slice(0,-1):l;let f=0;for(let m=l.length-1;m>=0&&l[m].length===0;m--)f++;return f===0?l:f>=2&&!n?l.slice(0,-(f-1)):l.slice(0,-f)}}function nt(t){if(!t)return!0;switch(t.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}var yn=new WeakMap;function kt(t,e){let{node:n,root:r}=t,s;return yn.has(r)?s=yn.get(r):(s=new Set,yn.set(r,s)),!s.has(n.position.end.line)&&(s.add(n.position.end.line),_r(n,e)&&!En(t.parent))?Lt:""}function En(t){return I(t)&&!W(t,["documentHead","documentBody","flowMapping","flowSequence"])}function _(t,e){return Je(" ".repeat(t),e)}function Zi(t,e,n){let{node:r}=t,s=t.ancestors.filter(l=>l.type==="sequence"||l.type==="mapping").length,i=Ct(t),o=[r.type==="blockFolded"?">":"|"];r.indent!==null&&o.push(r.indent.toString()),r.chomping!=="clip"&&o.push(r.chomping==="keep"?"+":"-"),gn(r)&&o.push(" ",n("indicatorComment"));let a=$r(r,{parentIndent:s,isLastDescendant:i,options:e}),c=[];for(let[l,f]of a.entries())l===0&&c.push(N),c.push(At(v(se,f))),l!==a.length-1?c.push(f.length===0?N:ur(He)):r.chomping==="keep"&&i&&c.push(cn(f.length===0?N:He));return r.indent===null?o.push(pr(_(e.tabWidth,c))):o.push(cn(_(r.indent-1+s,c))),o}var Yr=Zi;function Pt(t,e,n){let{node:r}=t,s=r.type==="flowMapping",i=s?"{":"[",o=s?"}":"]",a=Lt;s&&r.children.length>0&&e.bracketSpacing&&(a=se);let c=D(0,r.children,-1),l=c?.type==="flowMappingItem"&&_e(c.key)&&_e(c.value);return[i,_(e.tabWidth,[a,eo(t,e,n),e.trailingComma==="none"?"":ze(","),I(r)?[N,v(N,t.map(n,"endComments"))]:""]),l?"":a,o]}function eo(t,e,n){return t.map(({isLast:r,node:s,next:i})=>[n(),r?"":[",",se,s.position.start.line!==i.position.start.line?kt(t,e.originalText):""]],"children")}function to(t,e,n){let{node:r,parent:s}=t,{key:i,value:o}=r,a=_e(i),c=_e(o);if(a&&c)return": ";let l=n("key"),f=no(r)?" ":"";if(c)return r.type==="flowMappingItem"&&s.type==="flowMapping"?l:r.type==="mappingItem"&&Sn(i.content,e)&&!K(i.content)&&s.tag?.value!=="tag:yaml.org,2002:set"?[l,f,":"]:["? ",_(2,l)];let m=n("value");if(a)return[": ",_(2,m)];if(te(o)||!nt(i.content))return["? ",_(2,l),N,...t.map(()=>[n(),N],"value","leadingComments"),": ",_(2,m)];if(ro(i.content)&&!te(i.content)&&!ae(i.content)&&!K(i.content)&&!I(i)&&!te(o.content)&&!ae(o.content)&&!I(o)&&Sn(o.content,e))return[l,f,": ",m];let g=Symbol("mappingKey"),y=Pe([ze("? "),Pe(_(2,l),{id:g})]),h=[N,": ",_(2,m)],d=[f,":"];I(o)&&o.content&&W(o.content,["flowMapping","flowSequence"])&&o.content.children.length===0?d.push(" "):te(o.content)||I(o)&&o.content&&!W(o.content,["mapping","sequence"])||s.type==="mapping"&&K(i.content)&&nt(o.content)||W(o.content,["mapping","sequence"])&&o.content.tag===null&&o.content.anchor===null?d.push(N):o.content?d.push(se):K(o)&&d.push(" "),d.push(m);let w=_(e.tabWidth,d);return Sn(i.content,e)&&!te(i.content)&&!ae(i.content)&&!K(i.content)&&!I(i)?ln([[l,w]]):ln([[y,ze(h,w,{groupId:g})]])}function Sn(t,e){if(!t)return!0;switch(t.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if(e.proseWrap==="preserve")return t.position.start.line===t.position.end.line;if(/\\$/mu.test(e.originalText.slice(t.position.start.offset,t.position.end.offset)))return!1;switch(e.proseWrap){case"never":return!t.value.includes(` +`);case"always":return!/[\n ]/u.test(t.value);default:return!1}}function no(t){return t.key.content?.type==="alias"}function ro(t){if(!t)return!0;switch(t.type){case"plain":case"quoteDouble":case"quoteSingle":return t.position.start.line===t.position.end.line;case"alias":return!0;default:return!1}}var Br=to;function so(t){return dn(t,io)}function io(t){switch(t.type){case"document":Ie(t,"head",()=>t.children[0]),Ie(t,"body",()=>t.children[1]);break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":Ie(t,"content",()=>t.children[0]);break;case"mappingItem":case"flowMappingItem":Ie(t,"key",()=>t.children[0]),Ie(t,"value",()=>t.children[1]);break}return t}var Fr=so;function oo(t,e,n){let{node:r}=t,s=[];r.type!=="mappingValue"&&te(r)&&s.push([v(N,t.map(n,"leadingComments")),N]);let{tag:i,anchor:o}=r;i&&s.push(n("tag")),i&&o&&s.push(" "),o&&s.push(n("anchor"));let a="";return W(r,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!Ct(t)&&(a=kt(t,e.originalText)),(i||o)&&(W(r,["sequence","mapping"])&&!ae(r)?s.push(N):s.push(" ")),ae(r)&&s.push([r.middleComments.length===1?"":N,v(N,t.map(n,"middleComments")),N]),xr(t)?s.push(cr(e.originalText.slice(r.position.start.offset,r.position.end.offset).trimEnd())):s.push(Pe(ao(t,e,n))),K(r)&&!W(r,["document","documentHead"])&&s.push(mr([r.type==="mappingValue"&&!r.content?"":" ",t.parent.type==="mappingKey"&&t.getParentNode(2).type==="mapping"&&nt(r)?"":Xe,n("trailingComment")])),En(r)&&s.push(_(r.type==="sequenceItem"?2:0,[N,v(N,t.map(({node:c})=>[pn(e.originalText,tt(c))?N:"",n()],"endComments"))])),s.push(a),s}function ao(t,e,n){let{node:r}=t;switch(r.type){case"root":{let s=Mt(r),i=!(W(s,["blockLiteral","blockFolded"])&&s.chomping==="keep"),o=[];return t.each(({node:a,isFirst:c})=>{c||o.push(N),o.push(n()),lo(t)&&(i&&o.push(N),o.push("..."),K(a)&&o.push(" ",n("trailingComment")))},"children"),i&&o.push(N),o}case"document":{let s=[];return fo(t)&&((r.head.children.length>0||r.head.endComments.length>0)&&s.push(n("head")),K(r.head)?s.push(["---"," ",n(["head","trailingComment"])]):s.push("---")),co(r)&&s.push(n("body")),v(N,s)}case"documentHead":return v(N,[...t.map(n,"children"),...t.map(n,"endComments")]);case"documentBody":{let{children:s,endComments:i}=r,o="";if(s.length>0&&i.length>0){let a=Mt(r);if(W(a,["blockFolded","blockLiteral"]))a.chomping!=="keep"&&(o=[N,N]);else{let c=D(0,s,-1);o=W(c,["mapping"])&&pn(e.originalText,tt(i[0]))?[N,N]:N}}return[v(N,t.map(n,"children")),o,v(N,t.map(n,"endComments"))]}case"directive":return["%",v(" ",[r.name,...r.parameters])];case"comment":return["#",r.value];case"alias":return["*",r.value];case"tag":return e.originalText.slice(r.position.start.offset,r.position.end.offset);case"anchor":return["&",r.value];case"plain":return rt(r.type,e.originalText.slice(r.position.start.offset,r.position.end.offset),e);case"quoteDouble":case"quoteSingle":{let o=e.originalText.slice(r.position.start.offset+1,r.position.end.offset-1);if(r.type==="quoteSingle"&&o.includes("\\")||r.type==="quoteDouble"&&/\\[^"]/u.test(o)){let c=r.type==="quoteDouble"?'"':"'";return[c,rt(r.type,o,e),c]}if(o.includes('"'))return["'",rt(r.type,r.type==="quoteDouble"?ht(0,ht(0,o,'\\"','"'),"'","'".repeat(2)):o,e),"'"];if(o.includes("'"))return['"',rt(r.type,r.type==="quoteSingle"?ht(0,o,"''","'"):o,e),'"'];let a=e.singleQuote?"'":'"';return[a,rt(r.type,o,e),a]}case"blockFolded":case"blockLiteral":return Yr(t,e,n);case"mapping":case"sequence":return v(N,t.map(n,"children"));case"sequenceItem":return["- ",_(2,r.content?n("content"):"")];case"mappingKey":case"mappingValue":return r.content?n("content"):"";case"mappingItem":case"flowMappingItem":return Br(t,e,n);case"flowMapping":return Pt(t,e,n);case"flowSequence":return Pt(t,e,n);case"flowSequenceItem":return n("content");default:throw new dr(r,"YAML")}}function co(t){return t.body.children.length>0||I(t.body)}function lo(t){let e=t.node;if(e.documentEndMarker||K(e))return!0;if(t.isLast)return!1;let n=t.next;return n.head.children.length>0||I(n.head)}function fo(t){let e=t.node;return e.directivesEndMarker||e.head.children.length>0||I(e.head)||K(e.head)}function rt(t,e,n){let r=Dr(t,e,n);return v(N,r.map(s=>At(v(se,s))))}var uo={preprocess:Fr,embed:Cr,print:oo,massageAstNode:Lr,insertPragma:Or,getVisitorKeys:Pr},qr=uo;var Ur=[{name:"YAML",type:"data",aceMode:"yaml",extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".clangd",".gemrc","CITATION.cff","glide.lock","pixi.lock",".prettierrc",".stylelintrc",".lintstagedrc"],tmScope:"source.yaml",aliases:["yml"],codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","dockercompose","github-actions-workflow","home-assistant"],linguistLanguageId:407}];var vt={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var po={bracketSpacing:vt.bracketSpacing,singleQuote:vt.singleQuote,proseWrap:vt.proseWrap},Vr=po;var ir={};or(ir,{yaml:()=>Ha});var sr=on(Gn(),1);var J=on(Ps(),1),Cf=J.default.findPair,Mf=J.default.toJSON,kf=J.default.parseMap,Pf=J.default.parseSeq,vf=J.default.stringifyNumber,If=J.default.stringifyString,_f=J.default.Type,xf=J.default.YAMLError,Rf=J.default.YAMLReferenceError,vs=J.default.YAMLSemanticError,Df=J.default.YAMLSyntaxError,$f=J.default.YAMLWarning;function F(t,e=null){"children"in t&&t.children.forEach(n=>F(n,t)),"anchor"in t&&t.anchor&&F(t.anchor,t),"tag"in t&&t.tag&&F(t.tag,t),"leadingComments"in t&&t.leadingComments.forEach(n=>F(n,t)),"middleComments"in t&&t.middleComments.forEach(n=>F(n,t)),"indicatorComment"in t&&t.indicatorComment&&F(t.indicatorComment,t),"trailingComment"in t&&t.trailingComment&&F(t.trailingComment,t),"endComments"in t&&t.endComments.forEach(n=>F(n,t)),Object.defineProperty(t,"_parent",{value:e,enumerable:!1})}function Oe(t){return`${t.line}:${t.column}`}function Is(t){F(t);let e=_a(t),n=t.children.slice();t.comments.sort((r,s)=>r.position.start.offset-s.position.end.offset).filter(r=>!r._parent).forEach(r=>{for(;n.length>1&&r.position.start.line>n[0].position.end.line;)n.shift();xa(r,e,n[0])})}function _a(t){let e=Array.from(new Array(t.position.end.line),()=>({}));for(let n of t.comments)e[n.position.start.line-1].comment=n;return _s(e,t),e}function _s(t,e){if(e.position.start.offset!==e.position.end.offset){if("leadingComments"in e){let{start:n}=e.position,{leadingAttachableNode:r}=t[n.line-1];(!r||n.column1&&e.type!=="document"&&e.type!=="documentHead"){let{end:n}=e.position,{trailingAttachableNode:r}=t[n.line-1];(!r||n.column>=r.position.end.column)&&(t[n.line-1].trailingAttachableNode=e)}if(e.type!=="root"&&e.type!=="document"&&e.type!=="documentHead"&&e.type!=="documentBody"){let{start:n,end:r}=e.position,s=[r.line].concat(n.line===r.line?[]:n.line);for(let i of s){let o=t[i-1].trailingNode;(!o||r.column>=o.position.end.column)&&(t[i-1].trailingNode=e)}}"children"in e&&e.children.forEach(n=>{_s(t,n)})}}function xa(t,e,n){let r=t.position.start.line,{trailingAttachableNode:s}=e[r-1];if(s){if(s.trailingComment)throw new Error(`Unexpected multiple trailing comment at ${Oe(t.position.start)}`);F(t,s),s.trailingComment=t;return}for(let o=r;o>=n.position.start.line;o--){let{trailingNode:a}=e[o-1],c;if(a)c=a;else if(o!==r&&e[o-1].comment)c=e[o-1].comment._parent;else continue;if((c.type==="sequence"||c.type==="mapping")&&(c=c.children[0]),c.type==="mappingItem"){let[l,f]=c.children;c=xs(l)?l:f}for(;;){if(Ra(c,t)){F(t,c),c.endComments.push(t);return}if(!c._parent)break;c=c._parent}break}for(let o=r+1;o<=n.position.end.line;o++){let{leadingAttachableNode:a}=e[o-1];if(a){F(t,a),a.leadingComments.push(t);return}}let i=n.children[1];F(t,i),i.endComments.push(t)}function Ra(t,e){if(t.position.start.offsete.position.end.offset)switch(t.type){case"flowMapping":case"flowSequence":return t.children.length===0||e.position.start.line>t.children[t.children.length-1].position.end.line}if(e.position.end.offsett.position.start.column;case"mappingKey":case"mappingValue":return e.position.start.column>t._parent.position.start.column&&(t.children.length===0||t.children.length===1&&t.children[0].type!=="blockFolded"&&t.children[0].type!=="blockLiteral")&&(t.type==="mappingValue"||xs(t));default:return!1}}function xs(t){return t.position.start!==t.position.end&&(t.children.length===0||t.position.start.offset!==t.children[0].position.start.offset)}function b(t,e){return{type:t,position:e}}function Rs(t,e,n){return{...b("root",t),children:e,comments:n}}function pt(t){switch(t.type){case"DOCUMENT":for(let e=t.contents.length-1;e>=0;e--)t.contents[e].type==="BLANK_LINE"?t.contents.splice(e,1):pt(t.contents[e]);for(let e=t.directives.length-1;e>=0;e--)t.directives[e].type==="BLANK_LINE"&&t.directives.splice(e,1);break;case"FLOW_MAP":case"FLOW_SEQ":case"MAP":case"SEQ":for(let e=t.items.length-1;e>=0;e--){let n=t.items[e];"char"in n||(n.type==="BLANK_LINE"?t.items.splice(e,1):pt(n))}break;case"MAP_KEY":case"MAP_VALUE":case"SEQ_ITEM":t.node&&pt(t.node);break;case"ALIAS":case"BLANK_LINE":case"BLOCK_FOLDED":case"BLOCK_LITERAL":case"COMMENT":case"DIRECTIVE":case"PLAIN":case"QUOTE_DOUBLE":case"QUOTE_SINGLE":break;default:throw new Error(`Unexpected node type ${JSON.stringify(t.type)}`)}}function X(t,e){return{start:t,end:e}}function Hn(t){return{start:t,end:t}}var me;(function(t){t.Tag="!",t.Anchor="&",t.Comment="#"})(me||(me={}));function Ds(t,e){return{...b("anchor",t),value:e}}function Ve(t,e){return{...b("comment",t),value:e}}function $s(t,e,n){return{anchor:e,tag:t,middleComments:n}}function Ys(t,e){return{...b("tag",t),value:e}}function Ht(t,e,n=()=>!1){let r=t.cstNode,s=[],i=null,o=null,a=null;for(let c of r.props){let l=e.text[c.origStart];switch(l){case me.Tag:i=i||c,o=Ys(e.transformRange(c),t.tag);break;case me.Anchor:i=i||c,a=Ds(e.transformRange(c),r.anchor);break;case me.Comment:{let f=Ve(e.transformRange(c),e.text.slice(c.origStart+1,c.origEnd));e.comments.push(f),!n(f)&&i&&i.origEnd<=c.origStart&&c.origEnd<=r.valueRange.origStart&&s.push(f);break}default:throw new Error(`Unexpected leading character ${JSON.stringify(l)}`)}}return $s(o,a,s)}function z(){return{leadingComments:[]}}function he(t=null){return{trailingComment:t}}function q(){return{...z(),...he()}}function Bs(t,e,n){return{...b("alias",t),...q(),...e,value:n}}function Fs(t,e){let n=t.cstNode;return Bs(e.transformRange({origStart:n.valueRange.origStart-1,origEnd:n.valueRange.origEnd}),e.transformContent(t),n.rawValue)}function qs(t){return{...t,type:"blockFolded"}}function Us(t,e,n,r,s,i){return{...b("blockValue",t),...z(),...e,chomping:n,indent:r,value:s,indicatorComment:i}}var Jn;(function(t){t.CLIP="clip",t.STRIP="strip",t.KEEP="keep"})(Jn||(Jn={}));function Jt(t,e){let n=t.cstNode,r=1,s=n.chomping==="CLIP"?0:1,o=n.header.origEnd-n.header.origStart-r-s!==0,a=e.transformRange({origStart:n.header.origStart,origEnd:n.valueRange.origEnd}),c=null,l=Ht(t,e,f=>{if(!(a.start.offset=0;c--){let l=t.contents[c];if(l.type==="COMMENT"){let f=e.transformNode(l);n&&n.line===f.position.start.line?o.unshift(f):a?r.unshift(f):f.position.start.offset>=t.valueRange.origEnd?i.unshift(f):r.unshift(f)}else a=!0}if(i.length>1)throw new Error(`Unexpected multiple document trailing comments at ${Oe(i[1].position.start)}`);if(o.length>1)throw new Error(`Unexpected multiple documentHead trailing comments at ${Oe(o[1].position.start)}`);return{comments:r,endComments:s,documentTrailingComment:V(i)||null,documentHeadTrailingComment:V(o)||null}}function $a(t,e,n){let r=Xt(n.text.slice(t.valueRange.origEnd),/^\.\.\./),s=r===-1?t.valueRange.origEnd:Math.max(0,t.valueRange.origEnd-1);n.text[s-1]==="\r"&&s--;let i=n.transformRange({origStart:e!==null?e.position.start.offset:s,origEnd:s}),o=r===-1?i.end:n.transformOffset(t.valueRange.origEnd+3);return{position:i,documentEndPoint:o}}function zs(t,e,n,r){return{...b("documentHead",t),...U(n),...he(r),children:e}}function Zs(t,e){let n=t.cstNode,{directives:r,comments:s,endComments:i}=Ya(n,e),{position:o,documentEndMarkererPoint:a}=Ba(n,r,e);return e.comments.push(...s,...i),{createDocumentHeadWithTrailingComment:l=>(l&&e.comments.push(l),zs(o,r,i,l)),documentHeadEndMarkerPoint:a}}function Ya(t,e){let n=[],r=[],s=[],i=!1;for(let o=t.directives.length-1;o>=0;o--){let a=e.transformNode(t.directives[o]);a.type==="comment"?i?r.unshift(a):s.unshift(a):(i=!0,n.unshift(a))}return{directives:n,comments:r,endComments:s}}function Ba(t,e,n){let r=Xt(n.text.slice(0,t.valueRange.origStart),/---\s*$/);r>0&&!/[\r\n]/.test(n.text[r-1])&&(r=-1);let s=r===-1?{origStart:t.valueRange.origStart,origEnd:t.valueRange.origStart}:{origStart:r,origEnd:r+3};return e.length!==0&&(s.origStart=e[0].position.start.offset),{position:n.transformRange(s),documentEndMarkererPoint:r===-1?null:n.transformOffset(r)}}function ei(t,e){let{createDocumentHeadWithTrailingComment:n,documentHeadEndMarkerPoint:r}=Zs(t,e),{documentBody:s,documentEndPoint:i,documentTrailingComment:o,documentHeadTrailingComment:a}=Xs(t,e,r),c=n(a);o&&e.comments.push(o);let l=t.cstNode;return Hs(X(c.position.start,i),!!l.directivesEndMarker,!!l.documentEndMarker,c,s,o)}function zt(t,e,n){return{...b("flowCollection",t),...q(),...U(),...e,children:n}}function ti(t,e,n){return{...zt(t,e,n),type:"flowMapping"}}function Zt(t,e,n){return{...b("flowMappingItem",t),...z(),children:[e,n]}}function de(t,e){let n=[];for(let r of t)r&&"type"in r&&r.type==="COMMENT"?e.comments.push(e.transformNode(r)):n.push(r);return n}function en(t){let[e,n]=["?",":"].map(r=>{let s=t.find(i=>"char"in i&&i.char===r);return s?{origStart:s.origOffset,origEnd:s.origOffset+1}:null});return{additionalKeyRange:e,additionalValueRange:n}}function tn(t,e){let n=e;return r=>t.slice(n,n=r)}function nn(t){let e=[],n=tn(t,1),r=!1;for(let s=1;s{let l=r[c],{additionalKeyRange:f,additionalValueRange:m}=en(l);return Ke(a,e,Zt,f,m)}),i=n[0],o=V(n);return ti(e.transformRange({origStart:i.origOffset,origEnd:o.origOffset+1}),e.transformContent(t),s)}function ri(t,e,n){return{...zt(t,e,n),type:"flowSequence"}}function si(t,e){return{...b("flowSequenceItem",t),children:[e]}}function ii(t,e){let n=de(t.cstNode.items,e),r=nn(n),s=t.items.map((a,c)=>{if(a.type!=="PAIR"){let l=e.transformNode(a);return si(X(l.position.start,l.position.end),l)}else{let l=r[c],{additionalKeyRange:f,additionalValueRange:m}=en(l);return Ke(a,e,Zt,f,m)}}),i=n[0],o=V(n);return ri(e.transformRange({origStart:i.origOffset,origEnd:o.origOffset+1}),e.transformContent(t),s)}function oi(t,e,n){return{...b("mapping",t),...z(),...e,children:n}}function ai(t,e,n){return{...b("mappingItem",t),...z(),children:[e,n]}}function ci(t,e){let n=t.cstNode;n.items.filter(o=>o.type==="MAP_KEY"||o.type==="MAP_VALUE").forEach(o=>We(o,e));let r=de(n.items,e),s=Fa(r),i=t.items.map((o,a)=>{let c=s[a],[l,f]=c[0].type==="MAP_VALUE"?[null,c[0].range]:[c[0].range,c.length===1?null:c[1].range];return Ke(o,e,ai,l,f)});return oi(X(i[0].position.start,V(i).position.end),e.transformContent(t),i)}function Fa(t){let e=[],n=tn(t,0),r=!1;for(let s=0;s=0;r--)if(n.test(t[r]))return r;return-1}function ui(t,e){let n=t.cstNode;return li(e.transformRange({origStart:n.valueRange.origStart,origEnd:fi(e.text,n.valueRange.origEnd-1,/\S/)+1}),e.transformContent(t),n.strValue)}function pi(t){return{...t,type:"quoteDouble"}}function mi(t,e,n){return{...b("quoteValue",t),...e,...q(),value:n}}function rn(t,e){let n=t.cstNode;return mi(e.transformRange(n.valueRange),e.transformContent(t),n.strValue)}function hi(t,e){return pi(rn(t,e))}function di(t){return{...t,type:"quoteSingle"}}function gi(t,e){return di(rn(t,e))}function yi(t,e,n){return{...b("sequence",t),...z(),...U(),...e,children:n}}function Ei(t,e){return{...b("sequenceItem",t),...q(),...U(),children:e?[e]:[]}}function Si(t,e){let r=de(t.cstNode.items,e).map((s,i)=>{We(s,e);let o=e.transformNode(t.items[i]);return Ei(X(e.transformOffset(s.valueRange.origStart),o===null?e.transformOffset(s.valueRange.origStart+1):o.position.end),o)});return yi(X(r[0].position.start,V(r).position.end),e.transformContent(t),r)}function wi(t,e){if(t===null||t.type===void 0&&t.value===null)return null;switch(t.type){case"ALIAS":return Fs(t,e);case"BLOCK_FOLDED":return Vs(t,e);case"BLOCK_LITERAL":return Ks(t,e);case"COMMENT":return js(t,e);case"DIRECTIVE":return Gs(t,e);case"DOCUMENT":return ei(t,e);case"FLOW_MAP":return ni(t,e);case"FLOW_SEQ":return ii(t,e);case"MAP":return ci(t,e);case"PLAIN":return ui(t,e);case"QUOTE_DOUBLE":return hi(t,e);case"QUOTE_SINGLE":return gi(t,e);case"SEQ":return Si(t,e);default:throw new Error(`Unexpected node type ${t.type}`)}}var Zn,er=class{text;comments=[];#e;#t;constructor(e,n){this.text=n,this.#e=e}setOrigRanges(){if(!this.#e.setOrigRanges())for(let e of this.#e)e.setOrigRanges([],0)}#n(e){if(!Zn){let[o]=this.#e,a=Object.getPrototypeOf(Object.getPrototypeOf(o));Zn=Object.getOwnPropertyDescriptor(a,"rangeAsLinePos").get}if(this.#t??(this.#t={root:{context:{src:this.text}}}),this.text===""&&e.origStart===0&&e.origEnd===0)return{start:{offset:0,line:1,column:1},end:{offset:0,line:1,column:1}};let{start:{line:n,col:r},end:{line:s,col:i}}=Zn.call({range:{start:this.#r(e.origStart),end:this.#r(e.origEnd)},context:this.#t});return{start:{offset:e.origStart,line:n,column:r},end:{offset:e.origEnd,line:s,column:i}}}#r(e){return e<0?0:e>this.text.length?this.text.length:e}transformOffset(e){return this.#n({origStart:e,origEnd:e}).start}transformRange(e){let{start:n,end:r}=this.#n(e);return X(n,r)}transformNode(e){return wi(e,this)}transformContent(e){return Ht(e,this)}},bi=er;function Ni(t,e,n){let r=new SyntaxError(t);return r.name="YAMLSyntaxError",r.source=e,r.position=n,r}function Oi(t,e){let n=t.source.range||t.source.valueRange;return Ni(t.message,e.text,e.transformRange(n))}function tr(t){if("children"in t){if(t.children.length===1){let e=t.children[0];if(e.type==="plain"&&e.tag===null&&e.anchor===null&&e.value==="")return t.children.splice(0,1),t}t.children.forEach(tr)}return t}function nr(t,e,n,r){let s=e(t);return i=>{r(s,i)&&n(t,s=i)}}function rr(t){if(t===null||!("children"in t))return;let e=t.children;if(e.forEach(rr),t.type==="document"){let[i,o]=t.children;i.position.start.offset===i.position.end.offset?i.position.start=i.position.end=o.position.start:o.position.start.offset===o.position.end.offset&&(o.position.start=o.position.end=i.position.end)}let n=nr(t.position,qa,Ua,Ka),r=nr(t.position,Va,Wa,ja);"endComments"in t&&t.endComments.length!==0&&(n(t.endComments[0].position.start),r(V(t.endComments).position.end));let s=e.filter(i=>i!==null);if(s.length!==0){let i=s[0],o=V(s);n(i.position.start),r(o.position.end),"leadingComments"in i&&i.leadingComments.length!==0&&n(i.leadingComments[0].position.start),"tag"in i&&i.tag&&n(i.tag.position.start),"anchor"in i&&i.anchor&&n(i.anchor.position.start),"trailingComment"in o&&o.trailingComment&&r(o.trailingComment.position.end)}}function qa(t){return t.start}function Ua(t,e){t.start=e}function Va(t){return t.end}function Wa(t,e){t.end=e}function Ka(t,e){return e.offsett.offset}function Ai(t){let e=sr.default.parseCST(t),n=new bi(e,t);n.setOrigRanges();let r=e.map(i=>new sr.default.Document({merge:!1,keepCstNodes:!0}).parse(i));for(let i of r)for(let o of i.errors)if(!(o instanceof vs&&o.message==='Map keys must be unique; "<<" is repeated'))throw Oi(o,n);r.forEach(i=>pt(i.cstNode));let s=Rs(n.transformRange({origStart:0,origEnd:t.length}),r.map(i=>n.transformNode(i)),n.comments);return Is(s),rr(s),tr(s),s}function Qa(t,e){let n=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(n,e)}var Li=Qa;function Ga(t){try{let e=Ai(t);return delete e.comments,e}catch(e){throw e?.position?Li(e.message,{loc:e.position,cause:e}):e}}var Ha={astFormat:"yaml",parse:Ga,hasPragma:br,hasIgnorePragma:Nr,locStart:tt,locEnd:vr};var Ja={yaml:qr};var Ti=on(Gn(),1),Xa=Ti.default.parse;export{Xa as __parsePrettierYamlConfig,Ci as default,Ur as languages,Vr as options,ir as parsers,Ja as printers}; diff --git a/node_modules/prettier/standalone.d.ts b/node_modules/prettier/standalone.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..67945fa3239b973990c9f5ef7ed0f741e5f04152 --- /dev/null +++ b/node_modules/prettier/standalone.d.ts @@ -0,0 +1,33 @@ +import { CursorOptions, CursorResult, Options, SupportInfo } from "./index.js"; + +/** + * formatWithCursor both formats the code, and translates a cursor position from unformatted code to formatted code. + * This is useful for editor integrations, to prevent the cursor from moving when code is formatted + * + * The cursorOffset option should be provided, to specify where the cursor is. + * + * ```js + * await prettier.formatWithCursor(" 1", { cursorOffset: 2, parser: "babel" }); + * ``` + * `-> { formatted: "1;\n", cursorOffset: 1 }` + */ +export function formatWithCursor( + source: string, + options: CursorOptions, +): Promise; + +/** + * `format` is used to format text using Prettier. [Options](https://prettier.io/docs/options) may be provided to override the defaults. + */ +export function format(source: string, options?: Options): Promise; + +/** + * `check` checks to see if the file has been formatted with Prettier given those options and returns a `Boolean`. + * This is similar to the `--list-different` parameter in the CLI and is useful for running Prettier in CI scenarios. + */ +export function check(source: string, options?: Options): Promise; + +/** + * Returns an object representing the parsers, languages and file types Prettier supports for the current version. + */ +export function getSupportInfo(): Promise; diff --git a/node_modules/prettier/standalone.js b/node_modules/prettier/standalone.js new file mode 100644 index 0000000000000000000000000000000000000000..b42d6d3f6e52b4db044deb7345ffcb895cebf4f4 --- /dev/null +++ b/node_modules/prettier/standalone.js @@ -0,0 +1,29 @@ +(function(t){function e(){var o=t();return o.default||o}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var f=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};f.prettier=e()}})(function(){"use strict";var Zn=Object.create;var Je=Object.defineProperty;var eo=Object.getOwnPropertyDescriptor;var to=Object.getOwnPropertyNames;var uo=Object.getPrototypeOf,ro=Object.prototype.hasOwnProperty;var no=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Yt=(e,t)=>{for(var u in t)Je(e,u,{get:t[u],enumerable:!0})},ku=(e,t,u,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of to(t))!ro.call(e,o)&&o!==u&&Je(e,o,{get:()=>t[o],enumerable:!(r=eo(t,o))||r.enumerable});return e};var oo=(e,t,u)=>(u=e!=null?Zn(uo(e)):{},ku(t||!e||!e.__esModule?Je(u,"default",{value:e,enumerable:!0}):u,e)),ao=e=>ku(Je({},"__esModule",{value:!0}),e);var pn=no((af,dn)=>{var bt,At,_t,xt,Bt,$e,bu,Ke,Tt,fn,Nt,Ve,St,wt,Ot,pe,ln,Pt,It,Aa;St=/\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]|[^\/\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu;Ve=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y;bt=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu;Ot=/(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y;Nt=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y;pe=/[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y;It=/[\t\v\f\ufeff\p{Zs}]+/yu;Ke=/\r?\n|[\r\u2028\u2029]/y;Tt=/\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y;wt=/\/\/.*/y;_t=/[<>.:={}]|\/(?![\/*])/y;At=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu;xt=/(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y;Bt=/[^<>{}]+/y;Pt=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/;ln=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/;$e=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/;bu=/^(?:return|throw|yield)$/;fn=RegExp(Ke.source);dn.exports=Aa=function*(e,{jsx:t=!1}={}){var u,r,o,n,a,s,i,D,f,l,d,c,p,F;for({length:s}=e,n=0,a="",F=[{tag:"JS"}],u=[],d=0,c=!1;n":F.pop(),a==="/"||D.tag==="JSXTagEnd"?(l="?JSX",c=!0):F.push({tag:"JSXChildren"});break;case"{":F.push({tag:"InterpolationInJSX",nesting:u.length}),l="?InterpolationInJSX",c=!1;break;case"/":a==="<"&&(F.pop(),F[F.length-1].tag==="JSXChildren"&&F.pop(),F.push({tag:"JSXTagEnd"}))}a=l,yield{type:"JSXPunctuator",value:i[0]};continue}if(At.lastIndex=n,i=At.exec(e)){n=At.lastIndex,a=i[0],yield{type:"JSXIdentifier",value:i[0]};continue}if(xt.lastIndex=n,i=xt.exec(e)){n=xt.lastIndex,a=i[0],yield{type:"JSXString",value:i[0],closed:i[2]!==void 0};continue}break;case"JSXChildren":if(Bt.lastIndex=n,i=Bt.exec(e)){n=Bt.lastIndex,a=i[0],yield{type:"JSXText",value:i[0]};continue}switch(e[n]){case"<":F.push({tag:"JSXTag"}),n++,a="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":F.push({tag:"InterpolationInJSX",nesting:u.length}),n++,a="?InterpolationInJSX",c=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(It.lastIndex=n,i=It.exec(e)){n=It.lastIndex,yield{type:"WhiteSpace",value:i[0]};continue}if(Ke.lastIndex=n,i=Ke.exec(e)){n=Ke.lastIndex,c=!1,bu.test(a)&&(a="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:i[0]};continue}if(Tt.lastIndex=n,i=Tt.exec(e)){n=Tt.lastIndex,fn.test(i[0])&&(c=!1,bu.test(a)&&(a="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:i[0],closed:i[1]!==void 0};continue}if(wt.lastIndex=n,i=wt.exec(e)){n=wt.lastIndex,c=!1,yield{type:"SingleLineComment",value:i[0]};continue}r=String.fromCodePoint(e.codePointAt(n)),n+=r.length,a=r,c=!1,yield{type:D.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:r}}}});var di={};Yt(di,{__debug:()=>li,check:()=>ci,doc:()=>wu,format:()=>Hn,formatWithCursor:()=>Jn,getSupportInfo:()=>fi,util:()=>Pu,version:()=>Yn});var X=(e,t)=>(u,r,...o)=>u|1&&r==null?void 0:(t.call(r)??r[e]).apply(r,o);var io=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},so=X("replaceAll",function(){if(typeof this=="string")return io}),oe=so;var Ne=class{diff(t,u,r={}){let o;typeof r=="function"?(o=r,r={}):"callback"in r&&(o=r.callback);let n=this.castInput(t,r),a=this.castInput(u,r),s=this.removeEmpty(this.tokenize(n,r)),i=this.removeEmpty(this.tokenize(a,r));return this.diffWithOptionsObj(s,i,r,o)}diffWithOptionsObj(t,u,r,o){var n;let a=m=>{if(m=this.postProcess(m,r),o){setTimeout(function(){o(m)},0);return}else return m},s=u.length,i=t.length,D=1,f=s+i;r.maxEditLength!=null&&(f=Math.min(f,r.maxEditLength));let l=(n=r.timeout)!==null&&n!==void 0?n:1/0,d=Date.now()+l,c=[{oldPos:-1,lastComponent:void 0}],p=this.extractCommon(c[0],u,t,0,r);if(c[0].oldPos+1>=i&&p+1>=s)return a(this.buildValues(c[0].lastComponent,u,t));let F=-1/0,C=1/0,y=()=>{for(let m=Math.max(F,-D);m<=Math.min(C,D);m+=2){let h,E=c[m-1],g=c[m+1];E&&(c[m-1]=void 0);let A=!1;if(g){let Q=g.oldPos-m;A=g&&0<=Q&&Q=i&&p+1>=s)return a(this.buildValues(h.lastComponent,u,t))||!0;c[m]=h,h.oldPos+1>=i&&(C=Math.min(C,m-1)),p+1>=s&&(F=Math.max(F,m+1))}D++};if(o)(function m(){setTimeout(function(){if(D>f||Date.now()>d)return o(void 0);y()||m()},0)})();else for(;D<=f&&Date.now()<=d;){let m=y();if(m)return m}}addToPath(t,u,r,o,n){let a=t.lastComponent;return a&&!n.oneChangePerToken&&a.added===u&&a.removed===r?{oldPos:t.oldPos+o,lastComponent:{count:a.count+1,added:u,removed:r,previousComponent:a.previousComponent}}:{oldPos:t.oldPos+o,lastComponent:{count:1,added:u,removed:r,previousComponent:a}}}extractCommon(t,u,r,o,n){let a=u.length,s=r.length,i=t.oldPos,D=i-o,f=0;for(;D+1d.length?p:d}),f.value=this.join(l)}else f.value=this.join(u.slice(i,i+f.count));i+=f.count,f.added||(D+=f.count)}}return o}};var jt=class extends Ne{tokenize(t){return t.slice()}join(t){return t}removeEmpty(t){return t}},vu=new jt;function Ut(e,t,u){return vu.diff(e,t,u)}var Do=()=>{},P=Do;var Lu="cr",Mu="crlf",co="lf",fo=co,Wt="\r",Yu=`\r +`,He=` +`,lo=He;function ju(e){let t=e.indexOf(Wt);return t!==-1?e.charAt(t+1)===He?Mu:Lu:fo}function Se(e){return e===Lu?Wt:e===Mu?Yu:lo}var po=new Map([[He,/\n/gu],[Wt,/\r/gu],[Yu,/\r\n/gu]]);function $t(e,t){let u=po.get(t);return e.match(u)?.length??0}var Fo=/\r\n?/gu;function Uu(e){return oe(0,e,Fo,He)}function mo(e){return this[e<0?this.length+e:e]}var Eo=X("at",function(){if(Array.isArray(this)||typeof this=="string")return mo}),b=Eo;var G="string",j="array",U="cursor",I="indent",k="align",v="trim",x="group",w="fill",B="if-break",R="indent-if-break",L="line-suffix",M="line-suffix-boundary",_="line",O="label",T="break-parent",Xe=new Set([U,I,k,v,x,w,B,R,L,M,_,O,T]);function Wu(e){let t=e.length;for(;t>0&&(e[t-1]==="\r"||e[t-1]===` +`);)t--;return tnew Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function go(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', +Expected it to be 'string' or 'object'.`;if(H(e))throw new Error("doc is valid.");let u=Object.prototype.toString.call(e);if(u!=="[object Object]")return`Unexpected doc '${u}'.`;let r=ho([...Xe].map(o=>`'${o}'`));return`Unexpected doc.type '${e.type}'. +Expected it to be ${r}.`}var Vt=class extends Error{name="InvalidDocError";constructor(t){super(go(t)),this.doc=t}},Z=Vt;var $u={};function yo(e,t,u,r){let o=[e];for(;o.length>0;){let n=o.pop();if(n===$u){u(o.pop());continue}u&&o.push(n,$u);let a=H(n);if(!a)throw new Z(n);if(t?.(n)!==!1)switch(a){case j:case w:{let s=a===j?n:n.parts;for(let i=s.length,D=i-1;D>=0;--D)o.push(s[D]);break}case B:o.push(n.flatContents,n.breakContents);break;case x:if(r&&n.expandedStates)for(let s=n.expandedStates.length,i=s-1;i>=0;--i)o.push(n.expandedStates[i]);else o.push(n.contents);break;case k:case I:case R:case O:case L:o.push(n.contents);break;case G:case U:case v:case M:case _:case T:break;default:throw new Z(n)}}}var we=yo;function Pe(e,t){if(typeof e=="string")return t(e);let u=new Map;return r(e);function r(n){if(u.has(n))return u.get(n);let a=o(n);return u.set(n,a),a}function o(n){switch(H(n)){case j:return t(n.map(r));case w:return t({...n,parts:n.parts.map(r)});case B:return t({...n,breakContents:r(n.breakContents),flatContents:r(n.flatContents)});case x:{let{expandedStates:a,contents:s}=n;return a?(a=a.map(r),s=a[0]):s=r(s),t({...n,contents:s,expandedStates:a})}case k:case I:case R:case O:case L:return t({...n,contents:r(n.contents)});case G:case U:case v:case M:case _:case T:return t(n);default:throw new Z(n)}}}function qe(e,t,u){let r=u,o=!1;function n(a){if(o)return!1;let s=t(a);s!==void 0&&(o=!0,r=s)}return we(e,n),r}function bo(e){if(e.type===x&&e.break||e.type===_&&e.hard||e.type===T)return!0}function Gu(e){return qe(e,bo,!1)}function Vu(e){if(e.length>0){let t=b(0,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function zu(e){let t=new Set,u=[];function r(n){if(n.type===T&&Vu(u),n.type===x){if(u.push(n),t.has(n))return!1;t.add(n)}}function o(n){n.type===x&&u.pop().break&&Vu(u)}we(e,r,o,!0)}function Ao(e){return e.type===_&&!e.hard?e.soft?"":" ":e.type===B?e.flatContents:e}function Ju(e){return Pe(e,Ao)}function Ku(e){for(e=[...e];e.length>=2&&b(0,e,-2).type===_&&b(0,e,-1).type===T;)e.length-=2;if(e.length>0){let t=Oe(b(0,e,-1));e[e.length-1]=t}return e}function Oe(e){switch(H(e)){case I:case R:case x:case L:case O:{let t=Oe(e.contents);return{...e,contents:t}}case B:return{...e,breakContents:Oe(e.breakContents),flatContents:Oe(e.flatContents)};case w:return{...e,parts:Ku(e.parts)};case j:return Ku(e);case G:return Wu(e);case k:case U:case v:case M:case _:case T:break;default:throw new Z(e)}return e}function Qe(e){return Oe(xo(e))}function _o(e){switch(H(e)){case w:if(e.parts.every(t=>t===""))return"";break;case x:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===x&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case k:case I:case R:case L:if(!e.contents)return"";break;case B:if(!e.flatContents&&!e.breakContents)return"";break;case j:{let t=[];for(let u of e){if(!u)continue;let[r,...o]=Array.isArray(u)?u:[u];typeof r=="string"&&typeof b(0,t,-1)=="string"?t[t.length-1]+=r:t.push(r),t.push(...o)}return t.length===0?"":t.length===1?t[0]:t}case G:case U:case v:case M:case _:case O:case T:break;default:throw new Z(e)}return e}function xo(e){return Pe(e,t=>_o(t))}function Hu(e,t=Ze){return Pe(e,u=>typeof u=="string"?Ie(t,u.split(` +`)):u)}function Bo(e){if(e.type===_)return!0}function Xu(e){return qe(e,Bo,!1)}function Ee(e,t){return e.type===O?{...e,contents:t(e.contents)}:t(e)}var N=P,et=P,qu=P,Qu=P;function ae(e){return N(e),{type:I,contents:e}}function De(e,t){return Qu(e),N(t),{type:k,contents:t,n:e}}function Zu(e){return De(Number.NEGATIVE_INFINITY,e)}function tt(e){return De({type:"root"},e)}function er(e){return De(-1,e)}function ut(e,t,u){N(e);let r=e;if(t>0){for(let o=0;o0?`, { ${i.join(", ")} }`:"";return`indentIfBreak(${r(n.contents)}${D})`}if(n.type===x){let i=[];n.break&&n.break!=="propagated"&&i.push("shouldBreak: true"),n.id&&i.push(`id: ${o(n.id)}`);let D=i.length>0?`, { ${i.join(", ")} }`:"";return n.expandedStates?`conditionalGroup([${n.expandedStates.map(f=>r(f)).join(",")}]${D})`:`group(${r(n.contents)}${D})`}if(n.type===w)return`fill([${n.parts.map(i=>r(i)).join(", ")}])`;if(n.type===L)return"lineSuffix("+r(n.contents)+")";if(n.type===M)return"lineSuffixBoundary";if(n.type===O)return`label(${JSON.stringify(n.label)}, ${r(n.contents)})`;if(n.type===U)return"cursor";throw new Error("Unknown doc type "+n.type)}function o(n){if(typeof n!="symbol")return JSON.stringify(String(n));if(n in t)return t[n];let a=n.description||"symbol";for(let s=0;;s++){let i=a+(s>0?` #${s}`:"");if(!u.has(i))return u.add(i),t[n]=`Symbol.for(${JSON.stringify(i)})`}}}var cr=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function zt(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function Jt(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var fr="\xA9\xAE\u203C\u2049\u2122\u2139\u2194\u2195\u2196\u2197\u2198\u2199\u21A9\u21AA\u2328\u23CF\u23F1\u23F2\u23F8\u23F9\u23FA\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600\u2601\u2602\u2603\u2604\u260E\u2611\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638\u2639\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694\u2695\u2696\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F1\u26F7\u26F8\u26F9\u2702\u2708\u2709\u270C\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u2764\u27A1\u2934\u2935\u2B05\u2B06\u2B07";var To=/[^\x20-\x7F]/u,No=new Set(fr);function So(e){if(!e)return 0;if(!To.test(e))return e.length;e=e.replace(cr(),u=>No.has(u)?" ":" ");let t=0;for(let u of e){let r=u.codePointAt(0);r<=31||r>=127&&r<=159||r>=768&&r<=879||r>=65024&&r<=65039||(t+=zt(r)||Jt(r)?2:1)}return t}var Re=So;var wo={type:0},Oo={type:1},Ht={value:"",length:0,queue:[],get root(){return Ht}};function lr(e,t,u){let r=t.type===1?e.queue.slice(0,-1):[...e.queue,t],o="",n=0,a=0,s=0;for(let p of r)switch(p.type){case 0:f(),u.useTabs?i(1):D(u.tabWidth);break;case 3:{let{string:F}=p;f(),o+=F,n+=F.length;break}case 2:{let{width:F}=p;a+=1,s+=F;break}default:throw new Error(`Unexpected indent comment '${p.type}'.`)}return d(),{...e,value:o,length:n,queue:r};function i(p){o+=" ".repeat(p),n+=u.tabWidth*p}function D(p){o+=" ".repeat(p),n+=p}function f(){u.useTabs?l():d()}function l(){a>0&&i(a),c()}function d(){s>0&&D(s),c()}function c(){a=0,s=0}}function dr(e,t,u){if(!t)return e;if(t.type==="root")return{...e,root:e};if(t===Number.NEGATIVE_INFINITY)return e.root;let r;return typeof t=="number"?t<0?r=Oo:r={type:2,width:t}:r={type:3,string:t},lr(e,r,u)}function pr(e,t){return lr(e,wo,t)}function Po(e){let t=0;for(let u=e.length-1;u>=0;u--){let r=e[u];if(r===" "||r===" ")t++;else break}return t}function Xt(e){let t=Po(e);return{text:t===0?e:e.slice(0,e.length-t),count:t}}var W=Symbol("MODE_BREAK"),q=Symbol("MODE_FLAT"),qt=Symbol("DOC_FILL_PRINTED_LENGTH");function nt(e,t,u,r,o,n){if(u===Number.POSITIVE_INFINITY)return!0;let a=t.length,s=!1,i=[e],D="";for(;u>=0;){if(i.length===0){if(a===0)return!0;i.push(t[--a]);continue}let{mode:f,doc:l}=i.pop(),d=H(l);switch(d){case G:l&&(s&&(D+=" ",u-=1,s=!1),D+=l,u-=Re(l));break;case j:case w:{let c=d===j?l:l.parts,p=l[qt]??0;for(let F=c.length-1;F>=p;F--)i.push({mode:f,doc:c[F]});break}case I:case k:case R:case O:i.push({mode:f,doc:l.contents});break;case v:{let{text:c,count:p}=Xt(D);D=c,u+=p;break}case x:{if(n&&l.break)return!1;let c=l.break?W:f,p=l.expandedStates&&c===W?b(0,l.expandedStates,-1):l.contents;i.push({mode:c,doc:p});break}case B:{let p=(l.groupId?o[l.groupId]||q:f)===W?l.breakContents:l.flatContents;p&&i.push({mode:f,doc:p});break}case _:if(f===W||l.hard)return!0;l.soft||(s=!0);break;case L:r=!0;break;case M:if(r)return!1;break}}return!1}function Ce(e,t){let u=Object.create(null),r=t.printWidth,o=Se(t.endOfLine),n=0,a=[{indent:Ht,mode:W,doc:e}],s="",i=!1,D=[],f=[],l=[],d=[],c=0;for(zu(e);a.length>0;){let{indent:m,mode:h,doc:E}=a.pop();switch(H(E)){case G:{let g=o!==` +`?oe(0,E,` +`,o):E;g&&(s+=g,a.length>0&&(n+=Re(g)));break}case j:for(let g=E.length-1;g>=0;g--)a.push({indent:m,mode:h,doc:E[g]});break;case U:if(f.length>=2)throw new Error("There are too many 'cursor' in doc.");f.push(c+s.length);break;case I:a.push({indent:pr(m,t),mode:h,doc:E.contents});break;case k:a.push({indent:dr(m,E.n,t),mode:h,doc:E.contents});break;case v:y();break;case x:switch(h){case q:if(!i){a.push({indent:m,mode:E.break?W:q,doc:E.contents});break}case W:{i=!1;let g={indent:m,mode:q,doc:E.contents},A=r-n,J=D.length>0;if(!E.break&&nt(g,a,A,J,u))a.push(g);else if(E.expandedStates){let Q=b(0,E.expandedStates,-1);if(E.break){a.push({indent:m,mode:W,doc:Q});break}else for(let re=1;re=E.expandedStates.length){a.push({indent:m,mode:W,doc:Q});break}else{let Te=E.expandedStates[re],ne={indent:m,mode:q,doc:Te};if(nt(ne,a,A,J,u)){a.push(ne);break}}}else a.push({indent:m,mode:W,doc:E.contents});break}}E.id&&(u[E.id]=b(0,a,-1).mode);break;case w:{let g=r-n,A=E[qt]??0,{parts:J}=E,Q=J.length-A;if(Q===0)break;let re=J[A+0],Te=J[A+1],ne={indent:m,mode:q,doc:re},Rt={indent:m,mode:W,doc:re},Lt=nt(ne,[],g,D.length>0,u,!0);if(Q===1){Lt?a.push(ne):a.push(Rt);break}let Iu={indent:m,mode:q,doc:Te},Mt={indent:m,mode:W,doc:Te};if(Q===2){Lt?a.push(Iu,ne):a.push(Mt,Rt);break}let Xn=J[A+2],qn={indent:m,mode:h,doc:{...E,[qt]:A+2}},Qn=nt({indent:m,mode:q,doc:[re,Te,Xn]},[],g,D.length>0,u,!0);a.push(qn),Qn?a.push(Iu,ne):Lt?a.push(Mt,ne):a.push(Mt,Rt);break}case B:case R:{let g=E.groupId?u[E.groupId]:h;if(g===W){let A=E.type===B?E.breakContents:E.negate?E.contents:ae(E.contents);A&&a.push({indent:m,mode:h,doc:A})}if(g===q){let A=E.type===B?E.flatContents:E.negate?ae(E.contents):E.contents;A&&a.push({indent:m,mode:h,doc:A})}break}case L:D.push({indent:m,mode:h,doc:E.contents});break;case M:D.length>0&&a.push({indent:m,mode:h,doc:ke});break;case _:switch(h){case q:if(E.hard)i=!0;else{E.soft||(s+=" ",n+=1);break}case W:if(D.length>0){a.push({indent:m,mode:h,doc:E},...D.reverse()),D.length=0;break}E.literal?(s+=o,n=0,m.root&&(m.root.value&&(s+=m.root.value),n=m.root.length)):(y(),s+=o+m.value,n=m.length);break}break;case O:a.push({indent:m,mode:h,doc:E.contents});break;case T:break;default:throw new Z(E)}a.length===0&&D.length>0&&(a.push(...D.reverse()),D.length=0)}let p=l.join("")+s,F=[...d,...f];if(F.length!==2)return{formatted:p};let C=F[0];return{formatted:p,cursorNodeStart:C,cursorNodeText:p.slice(C,b(0,F,-1))};function y(){let{text:m,count:h}=Xt(s);m&&(l.push(m),c+=m.length),s="",n-=h,f.length>0&&(d.push(...f.map(E=>Math.min(E,c))),f.length=0)}}function Io(e,t,u=0){let r=0;for(let o=u;o1?b(0,t,-2):null}getValue(){return b(0,this.stack,-1)}getNode(t=0){let u=this.#t(t);return u===-1?null:this.stack[u]}getParentNode(t=0){return this.getNode(t+1)}#t(t){let{stack:u}=this;for(let r=u.length-1;r>=0;r-=2)if(!Array.isArray(u[r])&&--t<0)return r;return-1}call(t,...u){let{stack:r}=this,{length:o}=r,n=b(0,r,-1);for(let a of u)n=n?.[a],r.push(a,n);try{return t(this)}finally{r.length=o}}callParent(t,u=0){let r=this.#t(u+1),o=this.stack.splice(r+1);try{return t(this)}finally{this.stack.push(...o)}}each(t,...u){let{stack:r}=this,{length:o}=r,n=b(0,r,-1);for(let a of u)n=n[a],r.push(a,n);try{for(let a=0;a{r[n]=t(o,n,a)},...u),r}match(...t){let u=this.stack.length-1,r=null,o=this.stack[u--];for(let n of t){if(o===void 0)return!1;let a=null;if(typeof r=="number"&&(a=r,r=this.stack[u--],o=this.stack[u--]),n&&!n(o,r,a))return!1;r=this.stack[u--],o=this.stack[u--]}return!0}findAncestor(t){for(let u of this.#e())if(t(u))return u}hasAncestor(t){for(let u of this.#e())if(t(u))return!0;return!1}*#e(){let{stack:t}=this;for(let u=t.length-3;u>=0;u-=2){let r=t[u];Array.isArray(r)||(yield r)}}},Fr=Qt;function ko(e){return e!==null&&typeof e=="object"}var ge=ko;function ye(e){return(t,u,r)=>{let o=!!r?.backwards;if(u===!1)return!1;let{length:n}=t,a=u;for(;a>=0&&ae===` +`||e==="\r"||e==="\u2028"||e==="\u2029";function vo(e,t,u){let r=!!u?.backwards;if(t===!1)return!1;let o=e.charAt(t);if(r){if(e.charAt(t-1)==="\r"&&o===` +`)return t-2;if(Er(o))return t-1}else{if(o==="\r"&&e.charAt(t+1)===` +`)return t+2;if(Er(o))return t+1}return t}var K=vo;function Ro(e,t,u={}){let r=Y(e,u.backwards?t-1:t,u),o=K(e,r,u);return r!==o}var z=Ro;function Lo(e){return Array.isArray(e)&&e.length>0}var Cr=Lo;function*be(e,t){let{getVisitorKeys:u,filter:r=()=>!0}=t,o=n=>ge(n)&&r(n);for(let n of u(e)){let a=e[n];if(Array.isArray(a))for(let s of a)o(s)&&(yield s);else o(a)&&(yield a)}}function*hr(e,t){let u=[e];for(let r=0;r(n??(n=[e,...t]),o(D,n)?[D]:yr(D,n,u))),{locStart:s,locEnd:i}=u;return a.sort((D,f)=>s(D)-s(f)||i(D)-i(f)),r.set(e,a),a}var it=yr;function Mo(e){let t=e.type||e.kind||"(unknown type)",u=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return u.length>20&&(u=u.slice(0,19)+"\u2026"),t+(u?" "+u:"")}function Zt(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=Mo(e)}function fe(e,t){t.leading=!0,t.trailing=!1,Zt(e,t)}function ue(e,t,u){t.leading=!1,t.trailing=!1,u&&(t.marker=u),Zt(e,t)}function le(e,t){t.leading=!1,t.trailing=!0,Zt(e,t)}var uu=new WeakMap;function Ar(e,t,u,r,o=[]){let{locStart:n,locEnd:a}=u,s=n(t),i=a(t),D=it(e,o,{cache:uu,locStart:n,locEnd:a,getVisitorKeys:u.getVisitorKeys,filter:u.printer.canAttachComment,getChildren:u.printer.getCommentChildNodes}),f,l,d=0,c=D.length;for(;d>1,F=D[p],C=n(F),y=a(F);if(C<=s&&i<=y)return Ar(F,t,u,F,[F,...o]);if(y<=s){f=F,d=p+1;continue}if(i<=C){l=F,c=p;continue}throw new Error("Comment location overlaps with node location")}if(r?.type==="TemplateLiteral"){let{quasis:p}=r,F=tu(p,t,u);f&&tu(p,f,u)!==F&&(f=null),l&&tu(p,l,u)!==F&&(l=null)}return{enclosingNode:r,precedingNode:f,followingNode:l}}var eu=()=>!1;function _r(e,t){let{comments:u}=e;if(delete e.comments,!Cr(u)||!t.printer.canAttachComment)return;let r=[],{printer:{features:{experimental_avoidAstMutation:o},handleComments:n={}},originalText:a}=t,{ownLine:s=eu,endOfLine:i=eu,remaining:D=eu}=n,f=u.map((l,d)=>({...Ar(e,l,t),comment:l,text:a,options:t,ast:e,isLastComment:u.length-1===d}));for(let[l,d]of f.entries()){let{comment:c,precedingNode:p,enclosingNode:F,followingNode:C,text:y,options:m,ast:h,isLastComment:E}=d,g;if(o?g=[d]:(c.enclosingNode=F,c.precedingNode=p,c.followingNode=C,g=[c,y,m,h,E]),Yo(y,m,f,l))c.placement="ownLine",s(...g)||(C?fe(C,c):p?le(p,c):F?ue(F,c):ue(h,c));else if(jo(y,m,f,l))c.placement="endOfLine",i(...g)||(p?le(p,c):C?fe(C,c):F?ue(F,c):ue(h,c));else if(c.placement="remaining",!D(...g))if(p&&C){let A=r.length;A>0&&r[A-1].followingNode!==C&&br(r,m),r.push(d)}else p?le(p,c):C?fe(C,c):F?ue(F,c):ue(h,c)}if(br(r,t),!o)for(let l of u)delete l.precedingNode,delete l.enclosingNode,delete l.followingNode}var xr=e=>!/[\S\n\u2028\u2029]/u.test(e);function Yo(e,t,u,r){let{comment:o,precedingNode:n}=u[r],{locStart:a,locEnd:s}=t,i=a(o);if(n)for(let D=r-1;D>=0;D--){let{comment:f,precedingNode:l}=u[D];if(l!==n||!xr(e.slice(s(f),i)))break;i=a(f)}return z(e,i,{backwards:!0})}function jo(e,t,u,r){let{comment:o,followingNode:n}=u[r],{locStart:a,locEnd:s}=t,i=s(o);if(n)for(let D=r+1;D0;--a){let{comment:s,precedingNode:i,followingNode:D}=e[a-1];P(i,r),P(D,o);let f=t.originalText.slice(t.locEnd(s),n);if(t.printer.isGap?.(f,t)??/^[\s(]*$/u.test(f))n=t.locStart(s);else break}for(let[s,{comment:i}]of e.entries())s1&&s.comments.sort((i,D)=>t.locStart(i)-t.locStart(D));e.length=0}function tu(e,t,u){let r=u.locStart(t)-1;for(let o=1;o!r.has(i)).length===0)return{leading:"",trailing:""};let n=[],a=[],s;return e.each(()=>{let i=e.node;if(r?.has(i))return;let{leading:D,trailing:f}=i;D?n.push(Wo(e,t)):f&&(s=$o(e,t,s),a.push(s.doc))},"comments"),{leading:n,trailing:a}}function Tr(e,t,u){let{leading:r,trailing:o}=Vo(e,u);return!r&&!o?t:Ee(t,n=>[r,n,o])}function Nr(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:u}=e;for(let r of t){if(!r.printed&&!u.has(r))throw new Error('Comment "'+r.value.trim()+'" was not printed. Please report this error!');delete r.printed}}var Sr=()=>P;var Me=class extends Error{name="ConfigError"},Ye=class extends Error{name="UndefinedParserError"};var wr={checkIgnorePragma:{category:"Special",type:"boolean",default:!1,description:"Check whether the file's first docblock comment contains '@noprettier' or '@noformat' to determine if it should be formatted.",cliCategory:"Other"},cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:`Maintain existing +(mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:e=>typeof e=="string"||typeof e=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"},{value:"mjml",description:"MJML"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive). +The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset. +The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:"Require either '@prettier' or '@format' to be present in the file's first docblock comment in order for it to be formatted.",cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function st({plugins:e=[],showDeprecated:t=!1}={}){let u=e.flatMap(o=>o.languages??[]),r=[];for(let o of Go(Object.assign({},...e.map(({options:n})=>n),wr)))!t&&o.deprecated||(Array.isArray(o.choices)&&(t||(o.choices=o.choices.filter(n=>!n.deprecated)),o.name==="parser"&&(o.choices=[...o.choices,...Ko(o.choices,u,e)])),o.pluginDefaults=Object.fromEntries(e.filter(n=>n.defaultOptions?.[o.name]!==void 0).map(n=>[n.name,n.defaultOptions[o.name]])),r.push(o));return{languages:u,options:r}}function*Ko(e,t,u){let r=new Set(e.map(o=>o.value));for(let o of t)if(o.parsers){for(let n of o.parsers)if(!r.has(n)){r.add(n);let a=u.find(i=>i.parsers&&Object.prototype.hasOwnProperty.call(i.parsers,n)),s=o.name;a?.name&&(s+=` (plugin: ${a.name})`),yield{value:n,description:s}}}}function Go(e){let t=[];for(let[u,r]of Object.entries(e)){let o={name:u,...r};Array.isArray(o.default)&&(o.default=b(0,o.default,-1).value),t.push(o)}return t}var zo=Array.prototype.toReversed??function(){return[...this].reverse()},Jo=X("toReversed",function(){if(Array.isArray(this))return zo}),Or=Jo;function Ho(){let e=globalThis,t=e.Deno?.build?.os;return typeof t=="string"?t==="windows":e.navigator?.platform?.startsWith("Win")??e.process?.platform?.startsWith("win")??!1}var Xo=Ho();function Pr(e){if(e=e instanceof URL?e:new URL(e),e.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function qo(e){return e=Pr(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function Qo(e){e=Pr(e);let t=decodeURIComponent(e.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return e.hostname!==""&&(t=`\\\\${e.hostname}${t}`),t}function ru(e){return Xo?Qo(e):qo(e)}var Ir=e=>String(e).split(/[/\\]/u).pop(),kr=e=>String(e).startsWith("file:");function vr(e,t){if(!t)return;let u=Ir(t).toLowerCase();return e.find(({filenames:r})=>r?.some(o=>o.toLowerCase()===u))??e.find(({extensions:r})=>r?.some(o=>u.endsWith(o)))}function Zo(e,t){if(t)return e.find(({name:u})=>u.toLowerCase()===t)??e.find(({aliases:u})=>u?.includes(t))??e.find(({extensions:u})=>u?.includes(`.${t}`))}var ea=void 0;function Rr(e,t){if(t){if(kr(t))try{t=ru(t)}catch{return}if(typeof t=="string")return e.find(({isSupported:u})=>u?.({filepath:t}))}}function ta(e,t){let u=Or(0,e.plugins).flatMap(o=>o.languages??[]);return(Zo(u,t.language)??vr(u,t.physicalFile)??vr(u,t.file)??Rr(u,t.physicalFile)??Rr(u,t.file)??ea?.(u,t.physicalFile))?.parsers[0]}var Dt=ta;var ie={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(u=>ie.value(u)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(u=>`${ie.key(u)}: ${ie.value(e[u])}`).join(", ")} }`},pair:({key:e,value:t})=>ie.value({[e]:t})};var nu=new Proxy(String,{get:()=>nu}),$=nu,ou=()=>nu;var Lr=(e,t,{descriptor:u})=>{let r=[`${$.yellow(typeof e=="string"?u.key(e):u.pair(e))} is deprecated`];return t&&r.push(`we now treat it as ${$.blue(typeof t=="string"?u.key(t):u.pair(t))}`),r.join("; ")+"."};var ct=Symbol.for("vnopts.VALUE_NOT_EXIST"),Ae=Symbol.for("vnopts.VALUE_UNCHANGED");var Mr=" ".repeat(2),jr=(e,t,u)=>{let{text:r,list:o}=u.normalizeExpectedResult(u.schemas[e].expected(u)),n=[];return r&&n.push(Yr(e,t,r,u.descriptor)),o&&n.push([Yr(e,t,o.title,u.descriptor)].concat(o.values.map(a=>Ur(a,u.loggerPrintWidth))).join(` +`)),Wr(n,u.loggerPrintWidth)};function Yr(e,t,u,r){return[`Invalid ${$.red(r.key(e))} value.`,`Expected ${$.blue(u)},`,`but received ${t===ct?$.gray("nothing"):$.red(r.value(t))}.`].join(" ")}function Ur({text:e,list:t},u){let r=[];return e&&r.push(`- ${$.blue(e)}`),t&&r.push([`- ${$.blue(t.title)}:`].concat(t.values.map(o=>Ur(o,u-Mr.length).replace(/^|\n/g,`$&${Mr}`))).join(` +`)),Wr(r,u)}function Wr(e,t){if(e.length===1)return e[0];let[u,r]=e,[o,n]=e.map(a=>a.split(` +`,1)[0].length);return o>t&&o>n?r:u}var _e=[],au=[];function ft(e,t,u){if(e===t)return 0;let r=u?.maxDistance,o=e;e.length>t.length&&(e=t,t=o);let n=e.length,a=t.length;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-a);)n--,a--;let s=0;for(;sr)return r;if(n===0)return r!==void 0&&a>r?r:a;let i,D,f,l,d=0,c=0;for(;dD?l>D?D+1:l:l>f?f+1:l;if(r!==void 0){let p=D;for(d=0;dr)return r}}return _e.length=n,au.length=n,r!==void 0&&D>r?r:D}function $r(e,t,u){if(!Array.isArray(t)||t.length===0)return;let r=u?.maxDistance,o=e.length;for(let i of t)if(i===e)return i;if(r===0)return;let n,a=Number.POSITIVE_INFINITY,s=new Set;for(let i of t){if(s.has(i))continue;s.add(i);let D=Math.abs(i.length-o);if(D>=a||r!==void 0&&D>r)continue;let f=Number.isFinite(a)?r===void 0?a:Math.min(a,r):r,l=f===void 0?ft(e,i):ft(e,i,{maxDistance:f});if(r!==void 0&&l>r)continue;let d=l;if(f!==void 0&&l===f&&f===r&&(d=ft(e,i)),dr))return n}var lt=(e,t,{descriptor:u,logger:r,schemas:o})=>{let n=[`Ignored unknown option ${$.yellow(u.pair({key:e,value:t}))}.`],a=$r(e,Object.keys(o),{maxDistance:3});a&&n.push(`Did you mean ${$.blue(u.key(a))}?`),r.warn(n.join(" "))};var ua=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function ra(e,t){let u=new e(t),r=Object.create(u);for(let o of ua)o in t&&(r[o]=na(t[o],u,S.prototype[o].length));return r}var S=class{static create(t){return ra(this,t)}constructor(t){this.name=t.name}default(t){}expected(t){return"nothing"}validate(t,u){return!1}deprecated(t,u){return!1}forward(t,u){}redirect(t,u){}overlap(t,u,r){return t}preprocess(t,u){return t}postprocess(t,u){return Ae}};function na(e,t,u){return typeof e=="function"?(...r)=>e(...r.slice(0,u-1),t,...r.slice(u-1)):()=>e}var dt=class extends S{constructor(t){super(t),this._sourceName=t.sourceName}expected(t){return t.schemas[this._sourceName].expected(t)}validate(t,u){return u.schemas[this._sourceName].validate(t,u)}redirect(t,u){return this._sourceName}};var pt=class extends S{expected(){return"anything"}validate(){return!0}};var Ft=class extends S{constructor({valueSchema:t,name:u=t.name,...r}){super({...r,name:u}),this._valueSchema=t}expected(t){let{text:u,list:r}=t.normalizeExpectedResult(this._valueSchema.expected(t));return{text:u&&`an array of ${u}`,list:r&&{title:"an array of the following values",values:[{list:r}]}}}validate(t,u){if(!Array.isArray(t))return!1;let r=[];for(let o of t){let n=u.normalizeValidateResult(this._valueSchema.validate(o,u),o);n!==!0&&r.push(n.value)}return r.length===0?!0:{value:r}}deprecated(t,u){let r=[];for(let o of t){let n=u.normalizeDeprecatedResult(this._valueSchema.deprecated(o,u),o);n!==!1&&r.push(...n.map(({value:a})=>({value:[a]})))}return r}forward(t,u){let r=[];for(let o of t){let n=u.normalizeForwardResult(this._valueSchema.forward(o,u),o);r.push(...n.map(Vr))}return r}redirect(t,u){let r=[],o=[];for(let n of t){let a=u.normalizeRedirectResult(this._valueSchema.redirect(n,u),n);"remain"in a&&r.push(a.remain),o.push(...a.redirect.map(Vr))}return r.length===0?{redirect:o}:{redirect:o,remain:r}}overlap(t,u){return t.concat(u)}};function Vr({from:e,to:t}){return{from:[e],to:t}}var mt=class extends S{expected(){return"true or false"}validate(t){return typeof t=="boolean"}};function Gr(e,t){let u=Object.create(null);for(let r of e){let o=r[t];if(u[o])throw new Error(`Duplicate ${t} ${JSON.stringify(o)}`);u[o]=r}return u}function zr(e,t){let u=new Map;for(let r of e){let o=r[t];if(u.has(o))throw new Error(`Duplicate ${t} ${JSON.stringify(o)}`);u.set(o,r)}return u}function Jr(){let e=Object.create(null);return t=>{let u=JSON.stringify(t);return e[u]?!0:(e[u]=!0,!1)}}function Hr(e,t){let u=[],r=[];for(let o of e)t(o)?u.push(o):r.push(o);return[u,r]}function Xr(e){return e===Math.floor(e)}function qr(e,t){if(e===t)return 0;let u=typeof e,r=typeof t,o=["undefined","object","boolean","number","string"];return u!==r?o.indexOf(u)-o.indexOf(r):u!=="string"?Number(e)-Number(t):e.localeCompare(t)}function Qr(e){return(...t)=>{let u=e(...t);return typeof u=="string"?new Error(u):u}}function iu(e){return e===void 0?{}:e}function su(e){if(typeof e=="string")return{text:e};let{text:t,list:u}=e;return oa((t||u)!==void 0,"Unexpected `expected` result, there should be at least one field."),u?{text:t,list:{title:u.title,values:u.values.map(su)}}:{text:t}}function Du(e,t){return e===!0?!0:e===!1?{value:t}:e}function cu(e,t,u=!1){return e===!1?!1:e===!0?u?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function Kr(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function Et(e,t){return e===void 0?[]:Array.isArray(e)?e.map(u=>Kr(u,t)):[Kr(e,t)]}function fu(e,t){let u=Et(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return u.length===0?{remain:t,redirect:u}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:u}:{redirect:u}}function oa(e,t){if(!e)throw new Error(t)}var Ct=class extends S{constructor(t){super(t),this._choices=zr(t.choices.map(u=>u&&typeof u=="object"?u:{value:u}),"value")}expected({descriptor:t}){let u=Array.from(this._choices.keys()).map(a=>this._choices.get(a)).filter(({hidden:a})=>!a).map(a=>a.value).sort(qr).map(t.value),r=u.slice(0,-2),o=u.slice(-2);return{text:r.concat(o.join(" or ")).join(", "),list:{title:"one of the following values",values:u}}}validate(t){return this._choices.has(t)}deprecated(t){let u=this._choices.get(t);return u&&u.deprecated?{value:t}:!1}forward(t){let u=this._choices.get(t);return u?u.forward:void 0}redirect(t){let u=this._choices.get(t);return u?u.redirect:void 0}};var ht=class extends S{expected(){return"a number"}validate(t,u){return typeof t=="number"}};var gt=class extends ht{expected(){return"an integer"}validate(t,u){return u.normalizeValidateResult(super.validate(t,u),t)===!0&&Xr(t)}};var je=class extends S{expected(){return"a string"}validate(t){return typeof t=="string"}};var Zr=ie,en=lt,tn=jr,un=Lr;var yt=class{constructor(t,u){let{logger:r=console,loggerPrintWidth:o=80,descriptor:n=Zr,unknown:a=en,invalid:s=tn,deprecated:i=un,missing:D=()=>!1,required:f=()=>!1,preprocess:l=c=>c,postprocess:d=()=>Ae}=u||{};this._utils={descriptor:n,logger:r||{warn:()=>{}},loggerPrintWidth:o,schemas:Gr(t,"name"),normalizeDefaultResult:iu,normalizeExpectedResult:su,normalizeDeprecatedResult:cu,normalizeForwardResult:Et,normalizeRedirectResult:fu,normalizeValidateResult:Du},this._unknownHandler=a,this._invalidHandler=Qr(s),this._deprecatedHandler=i,this._identifyMissing=(c,p)=>!(c in p)||D(c,p),this._identifyRequired=f,this._preprocess=l,this._postprocess=d,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=Jr()}normalize(t){let u={},o=[this._preprocess(t,this._utils)],n=()=>{for(;o.length!==0;){let a=o.shift(),s=this._applyNormalization(a,u);o.push(...s)}};n();for(let a of Object.keys(this._utils.schemas)){let s=this._utils.schemas[a];if(!(a in u)){let i=iu(s.default(this._utils));"value"in i&&o.push({[a]:i.value})}}n();for(let a of Object.keys(this._utils.schemas)){if(!(a in u))continue;let s=this._utils.schemas[a],i=u[a],D=s.postprocess(i,this._utils);D!==Ae&&(this._applyValidation(D,a,s),u[a]=D)}return this._applyPostprocess(u),this._applyRequiredCheck(u),u}_applyNormalization(t,u){let r=[],{knownKeys:o,unknownKeys:n}=this._partitionOptionKeys(t);for(let a of o){let s=this._utils.schemas[a],i=s.preprocess(t[a],this._utils);this._applyValidation(i,a,s);let D=({from:c,to:p})=>{r.push(typeof p=="string"?{[p]:c}:{[p.key]:p.value})},f=({value:c,redirectTo:p})=>{let F=cu(s.deprecated(c,this._utils),i,!0);if(F!==!1)if(F===!0)this._hasDeprecationWarned(a)||this._utils.logger.warn(this._deprecatedHandler(a,p,this._utils));else for(let{value:C}of F){let y={key:a,value:C};if(!this._hasDeprecationWarned(y)){let m=typeof p=="string"?{key:p,value:C}:p;this._utils.logger.warn(this._deprecatedHandler(y,m,this._utils))}}};Et(s.forward(i,this._utils),i).forEach(D);let d=fu(s.redirect(i,this._utils),i);if(d.redirect.forEach(D),"remain"in d){let c=d.remain;u[a]=a in u?s.overlap(u[a],c,this._utils):c,f({value:c})}for(let{from:c,to:p}of d.redirect)f({value:c,redirectTo:p})}for(let a of n){let s=t[a];this._applyUnknownHandler(a,s,u,(i,D)=>{r.push({[i]:D})})}return r}_applyRequiredCheck(t){for(let u of Object.keys(this._utils.schemas))if(this._identifyMissing(u,t)&&this._identifyRequired(u))throw this._invalidHandler(u,ct,this._utils)}_partitionOptionKeys(t){let[u,r]=Hr(Object.keys(t).filter(o=>!this._identifyMissing(o,t)),o=>o in this._utils.schemas);return{knownKeys:u,unknownKeys:r}}_applyValidation(t,u,r){let o=Du(r.validate(t,this._utils),t);if(o!==!0)throw this._invalidHandler(u,o.value,this._utils)}_applyUnknownHandler(t,u,r,o){let n=this._unknownHandler(t,u,this._utils);if(n)for(let a of Object.keys(n)){if(this._identifyMissing(a,n))continue;let s=n[a];a in this._utils.schemas?o(a,s):r[a]=s}}_applyPostprocess(t){let u=this._postprocess(t,this._utils);if(u!==Ae){if(u.delete)for(let r of u.delete)delete t[r];if(u.override){let{knownKeys:r,unknownKeys:o}=this._partitionOptionKeys(u.override);for(let n of r){let a=u.override[n];this._applyValidation(a,n,this._utils.schemas[n]),t[n]=a}for(let n of o){let a=u.override[n];this._applyUnknownHandler(n,a,t,(s,i)=>{let D=this._utils.schemas[s];this._applyValidation(i,s,D),t[s]=i})}}}}};var lu;function ia(e,t,{logger:u=!1,isCLI:r=!1,passThrough:o=!1,FlagSchema:n,descriptor:a}={}){if(r){if(!n)throw new Error("'FlagSchema' option is required.");if(!a)throw new Error("'descriptor' option is required.")}else a=ie;let s=o?Array.isArray(o)?(d,c)=>o.includes(d)?{[d]:c}:void 0:(d,c)=>({[d]:c}):(d,c,p)=>{let{_:F,...C}=p.schemas;return lt(d,c,{...p,schemas:C})},i=sa(t,{isCLI:r,FlagSchema:n}),D=new yt(i,{logger:u,unknown:s,descriptor:a}),f=u!==!1;f&&lu&&(D._hasDeprecationWarned=lu);let l=D.normalize(e);return f&&(lu=D._hasDeprecationWarned),l}function sa(e,{isCLI:t,FlagSchema:u}){let r=[];t&&r.push(pt.create({name:"_"}));for(let o of e)r.push(Da(o,{isCLI:t,optionInfos:e,FlagSchema:u})),o.alias&&t&&r.push(dt.create({name:o.alias,sourceName:o.name}));return r}function Da(e,{isCLI:t,optionInfos:u,FlagSchema:r}){let{name:o}=e,n={name:o},a,s={};switch(e.type){case"int":a=gt,t&&(n.preprocess=Number);break;case"string":a=je;break;case"choice":a=Ct,n.choices=e.choices.map(i=>i?.redirect?{...i,redirect:{to:{key:e.name,value:i.redirect}}}:i);break;case"boolean":a=mt;break;case"flag":a=r,n.flags=u.flatMap(i=>[i.alias,i.description&&i.name,i.oppositeDescription&&`no-${i.name}`].filter(Boolean));break;case"path":a=je;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?n.validate=(i,D,f)=>e.exception(i)||D.validate(i,f):n.validate=(i,D,f)=>i===void 0||D.validate(i,f),e.redirect&&(s.redirect=i=>i?{to:typeof e.redirect=="string"?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(s.deprecated=!0),t&&!e.array){let i=n.preprocess||(D=>D);n.preprocess=(D,f,l)=>f.preprocess(i(Array.isArray(D)?b(0,D,-1):D),l)}return e.array?Ft.create({...t?{preprocess:i=>Array.isArray(i)?i:[i]}:{},...s,valueSchema:a.create(n)}):a.create({...n,...s})}var rn=ia;var ca=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let u=this[t];if(e(u,t,this))return u}},fa=X("findLast",function(){if(Array.isArray(this))return ca}),du=fa;var nn=Symbol.for("PRETTIER_IS_FRONT_MATTER"),pu=[];function la(e){return!!e?.[nn]}var de=la;var on=new Set(["yaml","toml"]),Ue=({node:e})=>de(e)&&on.has(e.language);async function Fu(e,t,u,r){let{node:o}=u,{language:n}=o;if(!on.has(n))return;let a=o.value.trim(),s;if(a){let i=n==="yaml"?n:Dt(r,{language:n});if(!i)return;s=a?await e(a,{parser:i}):""}else s=a;return tt([o.startDelimiter,o.explicitLanguage??"",V,s,s?V:"",o.endDelimiter])}function da(e,t){return Ue({node:e})&&(delete t.end,delete t.raw,delete t.value),t}var mu=da;function pa({node:e}){return e.raw}var Eu=pa;var an=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),Fa=e=>Object.keys(e).filter(t=>!an.has(t));function ma(e,t){let u=e?r=>e(r,an):Fa;return t?new Proxy(u,{apply:(r,o,n)=>de(n[0])?pu:Reflect.apply(r,o,n)}):u}var Cu=ma;function gu(e,t){if(!t)throw new Error("parserName is required.");let u=du(0,e,o=>o.parsers&&Object.prototype.hasOwnProperty.call(o.parsers,t));if(u)return u;let r=`Couldn't resolve parser "${t}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new Me(r)}function sn(e,t){if(!t)throw new Error("astFormat is required.");let u=du(0,e,o=>o.printers&&Object.prototype.hasOwnProperty.call(o.printers,t));if(u)return u;let r=`Couldn't find plugin for AST format "${t}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new Me(r)}function We({plugins:e,parser:t}){let u=gu(e,t);return yu(u,t)}function yu(e,t){let u=e.parsers[t];return typeof u=="function"?u():u}async function Dn(e,t){let u=e.printers[t],r=typeof u=="function"?await u():u;return Ea(r)}var hu=new WeakMap,Q0=Symbol("PRINTER_NORMALIZED_MARK");function Ea(e){if(hu.has(e))return hu.get(e);let{features:t,getVisitorKeys:u,embed:r,massageAstNode:o,print:n,...a}=e;t=ya(t);let s=t.experimental_frontMatterSupport;u=Cu(u,s.massageAstNode||s.embed||s.print);let i=o;o&&s.massageAstNode&&(i=new Proxy(o,{apply(d,c,p){return mu(...p),Reflect.apply(d,c,p)}}));let D=r;if(r){let d;D=new Proxy(r,{get(c,p,F){return p==="getVisitorKeys"?(d??(d=r.getVisitorKeys?Cu(r.getVisitorKeys,s.massageAstNode||s.embed):u),d):Reflect.get(c,p,F)},apply:(c,p,F)=>s.embed&&Ue(...F)?Fu:Reflect.apply(c,p,F)})}let f=n;s.print&&(f=new Proxy(n,{apply(d,c,p){let[F]=p;return de(F.node)?Eu(F):Reflect.apply(d,c,p)}}));let l={features:t,getVisitorKeys:u,embed:D,massageAstNode:i,print:f,...a};return hu.set(e,l),l}var Ca=["clean","embed","print"],ha=Object.fromEntries(Ca.map(e=>[e,!1]));function ga(e){return{...ha,...e}}function ya(e){return{experimental_avoidAstMutation:!1,...e,experimental_frontMatterSupport:ga(e?.experimental_frontMatterSupport)}}var cn={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null,getVisitorKeys:null};async function ba(e,t={}){let u={...e};if(!u.parser)if(u.filepath){if(u.parser=Dt(u,{physicalFile:u.filepath}),!u.parser)throw new Ye(`No parser could be inferred for file "${u.filepath}".`)}else throw new Ye("No parser and no file path given, couldn't infer a parser.");let r=st({plugins:e.plugins,showDeprecated:!0}).options,o={...cn,...Object.fromEntries(r.filter(l=>l.default!==void 0).map(l=>[l.name,l.default]))},n=gu(u.plugins,u.parser),a=await yu(n,u.parser);u.astFormat=a.astFormat,u.locEnd=a.locEnd,u.locStart=a.locStart;let s=n.printers?.[a.astFormat]?n:sn(u.plugins,a.astFormat),i=await Dn(s,a.astFormat);u.printer=i,u.getVisitorKeys=i.getVisitorKeys;let D=s.defaultOptions?Object.fromEntries(Object.entries(s.defaultOptions).filter(([,l])=>l!==void 0)):{},f={...o,...D};for(let[l,d]of Object.entries(f))(u[l]===null||u[l]===void 0)&&(u[l]=d);return u.parser==="json"&&(u.trailingComma="none"),rn(u,r,{passThrough:Object.keys(cn),...t})}var se=ba;var Ff=oo(pn(),1);var Au="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",Fn="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",sf=new RegExp("["+Au+"]"),Df=new RegExp("["+Au+Fn+"]");Au=Fn=null;var _u={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},cf=new Set(_u.keyword),ff=new Set(_u.strict),lf=new Set(_u.strictBind);var kt=(e,t)=>u=>e(t(u));function En(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:kt(kt(e.white,e.bgRed),e.bold),gutter:e.gray,marker:kt(e.red,e.bold),message:kt(e.red,e.bold),reset:e.reset}}var gf=En(ou(!0)),yf=En(ou(!1));function _a(){return new Proxy({},{get:()=>e=>e})}var mn=/\r\n|[\n\r\u2028\u2029]/;function xa(e,t,u){let r=Object.assign({column:0,line:-1},e.start),o=Object.assign({},r,e.end),{linesAbove:n=2,linesBelow:a=3}=u||{},s=r.line,i=r.column,D=o.line,f=o.column,l=Math.max(s-(n+1),0),d=Math.min(t.length,D+a);s===-1&&(l=0),D===-1&&(d=t.length);let c=D-s,p={};if(c)for(let F=0;F<=c;F++){let C=F+s;if(!i)p[C]=!0;else if(F===0){let y=t[C-1].length;p[C]=[i,y-i+1]}else if(F===c)p[C]=[0,f];else{let y=t[C-F].length;p[C]=[0,y]}}else i===f?i?p[s]=[i,0]:p[s]=!0:p[s]=[i,f-i];return{start:l,end:d,markerLines:p}}function Cn(e,t,u={}){let o=_a(!1),n=e.split(mn),{start:a,end:s,markerLines:i}=xa(t,n,u),D=t.start&&typeof t.start.column=="number",f=String(s).length,d=e.split(mn,s).slice(a,s).map((c,p)=>{let F=a+1+p,y=` ${` ${F}`.slice(-f)} |`,m=i[F],h=!i[F+1];if(m){let E="";if(Array.isArray(m)){let g=c.slice(0,Math.max(m[0]-1,0)).replace(/[^\t]/g," "),A=m[1]||1;E=[` + `,o.gutter(y.replace(/\d/g," "))," ",g,o.marker("^").repeat(A)].join(""),h&&u.message&&(E+=" "+o.message(u.message))}return[o.marker(">"),o.gutter(y),c.length>0?` ${c}`:"",E].join("")}else return` ${o.gutter(y)}${c.length>0?` ${c}`:""}`}).join(` +`);return u.message&&!D&&(d=`${" ".repeat(f+1)}${u.message} +${d}`),d}async function Ba(e,t){let u=await We(t),r=u.preprocess?await u.preprocess(e,t):e;t.originalText=r;let o;try{o=await u.parse(r,t,t)}catch(n){Ta(n,e)}return{text:r,ast:o}}function Ta(e,t){let{loc:u}=e;if(u){let r=Cn(t,u,{highlightCode:!0});throw e.message+=` +`+r,e.codeFrame=r,e}throw e}var Fe=Ba;async function hn(e,t,u,r,o){if(u.embeddedLanguageFormatting!=="auto")return;let{printer:n}=u,{embed:a}=n;if(!a)return;if(a.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/plugins#optional-embed");let{hasPrettierIgnore:s}=n,{getVisitorKeys:i}=a,D=[];d();let f=e.stack;for(let{print:c,node:p,pathStack:F}of D)try{e.stack=F;let C=await c(l,t,e,u);C&&o.set(p,C)}catch(C){if(globalThis.PRETTIER_DEBUG)throw C}e.stack=f;function l(c,p){return Na(c,p,u,r)}function d(){let{node:c}=e;if(c===null||typeof c!="object"||s?.(e))return;for(let F of i(c))Array.isArray(c[F])?e.each(d,F):e.call(d,F);let p=a(e,u);if(p){if(typeof p=="function"){D.push({print:p,node:c,pathStack:[...e.stack]});return}o.set(c,p)}}}async function Na(e,t,u,r){let o=await se({...u,...t,parentParser:u.parser,originalText:e,cursorOffset:void 0,rangeStart:void 0,rangeEnd:void 0},{passThrough:!0}),{ast:n}=await Fe(e,o),a=await r(n,o);return Qe(a)}function Sa(e,t,u,r){let{originalText:o,[Symbol.for("comments")]:n,locStart:a,locEnd:s,[Symbol.for("printedComments")]:i}=t,{node:D}=e,f=a(D),l=s(D);for(let c of n)a(c)>=f&&s(c)<=l&&i.add(c);let{printPrettierIgnored:d}=t.printer;return d?d(e,t,u,r):o.slice(f,l)}var gn=Sa;async function Ge(e,t){({ast:e}=await xu(e,t));let u=new Map,r=new Fr(e),o=Sr(t),n=new Map;await hn(r,s,t,Ge,n);let a=await yn(r,t,s,void 0,n);if(Nr(t),t.cursorOffset>=0){if(t.nodeAfterCursor&&!t.nodeBeforeCursor)return[ee,a];if(t.nodeBeforeCursor&&!t.nodeAfterCursor)return[a,ee]}return a;function s(D,f){return D===void 0||D===r?i(f):Array.isArray(D)?r.call(()=>i(f),...D):r.call(()=>i(f),D)}function i(D){o(r);let f=r.node;if(f==null)return"";let l=ge(f)&&D===void 0;if(l&&u.has(f))return u.get(f);let d=yn(r,t,s,D,n);return l&&u.set(f,d),d}}function yn(e,t,u,r,o){let{node:n}=e,{printer:a}=t,s;switch(a.hasPrettierIgnore?.(e)?s=gn(e,t,u,r):o.has(n)?s=o.get(n):s=a.print(e,t,u,r),n){case t.cursorNode:s=Ee(s,i=>[ee,i,ee]);break;case t.nodeBeforeCursor:s=Ee(s,i=>[i,ee]);break;case t.nodeAfterCursor:s=Ee(s,i=>[ee,i]);break}return a.printComment&&!a.willPrintOwnComments?.(e,t)&&(s=Tr(e,s,t)),s}async function xu(e,t){let u=e.comments??[];t[Symbol.for("comments")]=u,t[Symbol.for("printedComments")]=new Set,_r(e,t);let{printer:{preprocess:r}}=t;return e=r?await r(e,t):e,{ast:e,comments:u}}function wa(e,t){let{cursorOffset:u,locStart:r,locEnd:o,getVisitorKeys:n}=t,a=c=>r(c)<=u&&o(c)>=u,s=e,i=[e];for(let c of hr(e,{getVisitorKeys:n,filter:a}))i.push(c),s=c;if(gr(s,{getVisitorKeys:n}))return{cursorNode:s};let D,f,l=-1,d=Number.POSITIVE_INFINITY;for(;i.length>0&&(D===void 0||f===void 0);){s=i.pop();let c=D!==void 0,p=f!==void 0;for(let F of be(s,{getVisitorKeys:n})){if(!c){let C=o(F);C<=u&&C>l&&(D=F,l=C)}if(!p){let C=r(F);C>=u&&Ca(d,i)).filter(Boolean);let D={},f=new Set(o(s));for(let d in s)!Object.prototype.hasOwnProperty.call(s,d)||n?.has(d)||(f.has(d)?D[d]=a(s[d],s):D[d]=s[d]);let l=r(s,D,i);if(l!==null)return l??D}}var bn=Oa;var Pa=Array.prototype.findLastIndex??function(e){for(let t=this.length-1;t>=0;t--){let u=this[t];if(e(u,t,this))return t}return-1},Ia=X("findLastIndex",function(){if(Array.isArray(this))return Pa}),An=Ia;var ka=({parser:e})=>e==="json"||e==="json5"||e==="jsonc"||e==="json-stringify";function va(e,t){return t=new Set(t),e.find(u=>Bn.has(u.type)&&t.has(u))}function _n(e){let t=An(0,e,u=>u.type!=="Program"&&u.type!=="File");return t===-1?e:e.slice(0,t+1)}function Ra(e,t,{locStart:u,locEnd:r}){let[o,...n]=e,[a,...s]=t;if(o===a)return[o,a];let i=u(o);for(let f of _n(s))if(u(f)>=i)a=f;else break;let D=r(a);for(let f of _n(n)){if(r(f)<=D)o=f;else break;if(o===a)break}return[o,a]}function Tu(e,t,u,r,o=[],n){let{locStart:a,locEnd:s}=u,i=a(e),D=s(e);if(t>D||tr);let s=e.slice(r,o).search(/\S/u),i=s===-1;if(!i)for(r+=s;o>r&&!/\S/u.test(e[o-1]);--o);let D=Tu(u,r,t,(c,p)=>xn(t,c,p),[],"rangeStart");if(!D)return;let f=i?D:Tu(u,o,t,c=>xn(t,c),[],"rangeEnd");if(!f)return;let l,d;if(ka(t)){let c=va(D,f);l=c,d=c}else[l,d]=Ra(D,f,t);return[Math.min(n(l),n(d)),Math.max(a(l),a(d))]}var On="\uFEFF",Nn=Symbol("cursor");async function Pn(e,t,u=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:r,text:o}=await Fe(e,t);t.cursorOffset>=0&&(t={...t,...Bu(r,t)});let n=await Ge(r,t,u);u>0&&(n=ut([V,n],u,t.tabWidth));let a=Ce(n,t);if(u>0){let i=a.formatted.trim();a.cursorNodeStart!==void 0&&(a.cursorNodeStart-=a.formatted.indexOf(i),a.cursorNodeStart<0&&(a.cursorNodeStart=0,a.cursorNodeText=a.cursorNodeText.trimStart()),a.cursorNodeStart+a.cursorNodeText.length>i.length&&(a.cursorNodeText=a.cursorNodeText.trimEnd())),a.formatted=i+Se(t.endOfLine)}let s=t[Symbol.for("comments")];if(t.cursorOffset>=0){let i,D,f,l;if((t.cursorNode||t.nodeBeforeCursor||t.nodeAfterCursor)&&a.cursorNodeText)if(f=a.cursorNodeStart,l=a.cursorNodeText,t.cursorNode)i=t.locStart(t.cursorNode),D=o.slice(i,t.locEnd(t.cursorNode));else{if(!t.nodeBeforeCursor&&!t.nodeAfterCursor)throw new Error("Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor");i=t.nodeBeforeCursor?t.locEnd(t.nodeBeforeCursor):0;let y=t.nodeAfterCursor?t.locStart(t.nodeAfterCursor):o.length;D=o.slice(i,y)}else i=0,D=o,f=0,l=a.formatted;let d=t.cursorOffset-i;if(D===l)return{formatted:a.formatted,cursorOffset:f+d,comments:s};let c=D.split("");c.splice(d,0,Nn);let p=l.split(""),F=Ut(c,p),C=f;for(let y of F)if(y.removed){if(y.value.includes(Nn))break}else C+=y.count;return{formatted:a.formatted,cursorOffset:C,comments:s}}return{formatted:a.formatted,cursorOffset:-1,comments:s}}async function Ya(e,t){let{ast:u,text:r}=await Fe(e,t),[o,n]=Tn(r,t,u)??[0,0],a=r.slice(o,n),s=Math.min(o,r.lastIndexOf(` +`,o)+1),i=r.slice(s,o).match(/^\s*/u)[0],D=he(i,t.tabWidth),f=await Pn(a,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>o&&t.cursorOffset<=n?t.cursorOffset-o:-1,endOfLine:"lf"},D),l=f.formatted.trimEnd(),{cursorOffset:d}=t;d>n?d+=l.length-a.length:f.cursorOffset>=0&&(d=f.cursorOffset+o);let c=r.slice(0,o)+l+r.slice(n);if(t.endOfLine!=="lf"){let p=Se(t.endOfLine);d>=0&&p===`\r +`&&(d+=$t(c.slice(0,d),` +`)),c=oe(0,c,` +`,p)}return{formatted:c,cursorOffset:d,comments:f.comments}}function Nu(e,t,u){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?u:t}function Sn(e,t){let{cursorOffset:u,rangeStart:r,rangeEnd:o}=t;return u=Nu(e,u,-1),r=Nu(e,r,0),o=Nu(e,o,e.length),{...t,cursorOffset:u,rangeStart:r,rangeEnd:o}}function In(e,t){let{cursorOffset:u,rangeStart:r,rangeEnd:o,endOfLine:n}=Sn(e,t),a=e.charAt(0)===On;if(a&&(e=e.slice(1),u--,r--,o--),n==="auto"&&(n=ju(e)),e.includes("\r")){let s=i=>$t(e.slice(0,Math.max(i,0)),`\r +`);u-=s(u),r-=s(r),o-=s(o),e=Uu(e)}return{hasBOM:a,text:e,options:Sn(e,{...t,cursorOffset:u,rangeStart:r,rangeEnd:o,endOfLine:n})}}async function wn(e,t){let u=await We(t);return!u.hasPragma||u.hasPragma(e)}async function ja(e,t){return(await We(t)).hasIgnorePragma?.(e)}async function Su(e,t){let{hasBOM:u,text:r,options:o}=In(e,await se(t));if(o.rangeStart>=o.rangeEnd&&r!==""||o.requirePragma&&!await wn(r,o)||o.checkIgnorePragma&&await ja(r,o))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let n;return o.rangeStart>0||o.rangeEnd=0&&n.cursorOffset++),n}async function kn(e,t,u){let{text:r,options:o}=In(e,await se(t)),n=await Fe(r,o);return u&&(u.preprocessForPrint&&(n.ast=await xu(n.ast,o)),u.massage&&(n.ast=bn(n.ast,o))),n}async function vn(e,t){t=await se(t);let u=await Ge(e,t);return Ce(u,t)}async function Rn(e,t){let u=Dr(e),{formatted:r}=await Su(u,{...t,parser:"__js_expression"});return r}async function Ln(e,t){t=await se(t);let{ast:u}=await Fe(e,t);return t.cursorOffset>=0&&(t={...t,...Bu(u,t)}),Ge(u,t)}async function Mn(e,t){return Ce(e,await se(t))}var wu={};Yt(wu,{builders:()=>Wa,printer:()=>$a,utils:()=>Va});var Wa={join:Ie,line:rt,softline:ar,hardline:V,literalline:Ze,group:Kt,conditionalGroup:ur,fill:tr,lineSuffix:ve,lineSuffixBoundary:ir,cursor:ee,breakParent:ce,ifBreak:rr,trim:sr,indent:ae,indentIfBreak:nr,align:De,addAlignmentToDoc:ut,markAsRoot:tt,dedentToRoot:Zu,dedent:er,hardlineWithoutBreakParent:ke,literallineWithoutBreakParent:Gt,label:or,concat:e=>e},$a={printDocToString:Ce},Va={willBreak:Gu,traverseDoc:we,findInDoc:qe,mapDoc:Pe,removeLines:Ju,stripTrailingHardline:Qe,replaceEndOfLine:Hu,canBreak:Xu};var Yn="3.8.4";var Pu={};Yt(Pu,{addDanglingComment:()=>ue,addLeadingComment:()=>fe,addTrailingComment:()=>le,getAlignmentSize:()=>he,getIndentSize:()=>jn,getMaxContinuousCount:()=>Un,getNextNonSpaceNonCommentCharacter:()=>Wn,getNextNonSpaceNonCommentCharacterIndex:()=>ni,getPreferredQuote:()=>Kn,getStringWidth:()=>Re,hasNewline:()=>z,hasNewlineInRange:()=>Gn,hasSpaces:()=>zn,isNextLineEmpty:()=>Di,isNextLineEmptyAfterIndex:()=>vt,isPreviousLineEmpty:()=>ai,makeString:()=>si,skip:()=>ye,skipEverythingButNewLine:()=>at,skipInlineComment:()=>xe,skipNewline:()=>K,skipSpaces:()=>Y,skipToLineEnd:()=>ot,skipTrailingComment:()=>Be,skipWhitespace:()=>mr});function Ka(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let u=t+2;uMath.max(r,o.length),0)/t.length}var Un=Xa;function qa(e,t){let u=ze(e,t);return u===!1?"":e.charAt(u)}var Wn=qa;var $n=Object.freeze({character:"'",codePoint:39}),Vn=Object.freeze({character:'"',codePoint:34}),Qa=Object.freeze({preferred:$n,alternate:Vn}),Za=Object.freeze({preferred:Vn,alternate:$n});function ei(e,t){let{preferred:u,alternate:r}=t===!0||t==="'"?Qa:Za,{length:o}=e,n=0,a=0;for(let s=0;sa?r:u).character}var Kn=ei;function ti(e,t,u){for(let r=t;rs===r?s:i===t?"\\"+i:i||(u&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(s)?s:"\\"+s));return t+n+t}function Di(e,t){return arguments.length===2||typeof t=="number"?vt(e,t):ii(...arguments)}function me(e,t=1){return async(...u)=>{let r=u[t]??{},o=r.plugins??[];return u[t]={...r,plugins:Array.isArray(o)?o:Object.values(o)},e(...u)}}var Jn=me(Su);async function Hn(e,t){let{formatted:u}=await Jn(e,{...t,cursorOffset:-1});return u}async function ci(e,t){return await Hn(e,t)===e}var fi=me(st,0),li={parse:me(kn),formatAST:me(vn),formatDoc:me(Rn),printToDoc:me(Ln),printDocToString:me(Mn)};return ao(di);}); \ No newline at end of file diff --git a/node_modules/prettier/standalone.mjs b/node_modules/prettier/standalone.mjs new file mode 100644 index 0000000000000000000000000000000000000000..f7ffdea2ab1f64564c77bfe84b02fb86872a7723 --- /dev/null +++ b/node_modules/prettier/standalone.mjs @@ -0,0 +1,29 @@ +var Zn=Object.create;var Mt=Object.defineProperty;var eo=Object.getOwnPropertyDescriptor;var to=Object.getOwnPropertyNames;var uo=Object.getPrototypeOf,ro=Object.prototype.hasOwnProperty;var no=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Yt=(e,t)=>{for(var u in t)Mt(e,u,{get:t[u],enumerable:!0})},oo=(e,t,u,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of to(t))!ro.call(e,o)&&o!==u&&Mt(e,o,{get:()=>t[o],enumerable:!(r=eo(t,o))||r.enumerable});return e};var ao=(e,t,u)=>(u=e!=null?Zn(uo(e)):{},oo(t||!e||!e.__esModule?Mt(u,"default",{value:e,enumerable:!0}):u,e));var dn=no((of,ln)=>{var yt,bt,At,_t,xt,$e,bu,Ke,Bt,cn,Tt,Ve,Nt,St,wt,pe,fn,Ot,Pt,Aa;Nt=/\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]|[^\/\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu;Ve=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y;yt=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu;wt=/(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y;Tt=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y;pe=/[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y;Pt=/[\t\v\f\ufeff\p{Zs}]+/yu;Ke=/\r?\n|[\r\u2028\u2029]/y;Bt=/\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y;St=/\/\/.*/y;At=/[<>.:={}]|\/(?![\/*])/y;bt=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu;_t=/(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y;xt=/[^<>{}]+/y;Ot=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/;fn=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/;$e=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/;bu=/^(?:return|throw|yield)$/;cn=RegExp(Ke.source);ln.exports=Aa=function*(e,{jsx:t=!1}={}){var u,r,o,n,a,s,i,D,f,l,d,c,p,F;for({length:s}=e,n=0,a="",F=[{tag:"JS"}],u=[],d=0,c=!1;n":F.pop(),a==="/"||D.tag==="JSXTagEnd"?(l="?JSX",c=!0):F.push({tag:"JSXChildren"});break;case"{":F.push({tag:"InterpolationInJSX",nesting:u.length}),l="?InterpolationInJSX",c=!1;break;case"/":a==="<"&&(F.pop(),F[F.length-1].tag==="JSXChildren"&&F.pop(),F.push({tag:"JSXTagEnd"}))}a=l,yield{type:"JSXPunctuator",value:i[0]};continue}if(bt.lastIndex=n,i=bt.exec(e)){n=bt.lastIndex,a=i[0],yield{type:"JSXIdentifier",value:i[0]};continue}if(_t.lastIndex=n,i=_t.exec(e)){n=_t.lastIndex,a=i[0],yield{type:"JSXString",value:i[0],closed:i[2]!==void 0};continue}break;case"JSXChildren":if(xt.lastIndex=n,i=xt.exec(e)){n=xt.lastIndex,a=i[0],yield{type:"JSXText",value:i[0]};continue}switch(e[n]){case"<":F.push({tag:"JSXTag"}),n++,a="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":F.push({tag:"InterpolationInJSX",nesting:u.length}),n++,a="?InterpolationInJSX",c=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(Pt.lastIndex=n,i=Pt.exec(e)){n=Pt.lastIndex,yield{type:"WhiteSpace",value:i[0]};continue}if(Ke.lastIndex=n,i=Ke.exec(e)){n=Ke.lastIndex,c=!1,bu.test(a)&&(a="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:i[0]};continue}if(Bt.lastIndex=n,i=Bt.exec(e)){n=Bt.lastIndex,cn.test(i[0])&&(c=!1,bu.test(a)&&(a="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:i[0],closed:i[1]!==void 0};continue}if(St.lastIndex=n,i=St.exec(e)){n=St.lastIndex,c=!1,yield{type:"SingleLineComment",value:i[0]};continue}r=String.fromCodePoint(e.codePointAt(n)),n+=r.length,a=r,c=!1,yield{type:D.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:r}}}});var Hn={};Yt(Hn,{__debug:()=>li,check:()=>ci,doc:()=>wu,format:()=>Jn,formatWithCursor:()=>zn,getSupportInfo:()=>fi,util:()=>Pu,version:()=>Mn});var X=(e,t)=>(u,r,...o)=>u|1&&r==null?void 0:(t.call(r)??r[e]).apply(r,o);var io=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},so=X("replaceAll",function(){if(typeof this=="string")return io}),oe=so;var Ne=class{diff(t,u,r={}){let o;typeof r=="function"?(o=r,r={}):"callback"in r&&(o=r.callback);let n=this.castInput(t,r),a=this.castInput(u,r),s=this.removeEmpty(this.tokenize(n,r)),i=this.removeEmpty(this.tokenize(a,r));return this.diffWithOptionsObj(s,i,r,o)}diffWithOptionsObj(t,u,r,o){var n;let a=m=>{if(m=this.postProcess(m,r),o){setTimeout(function(){o(m)},0);return}else return m},s=u.length,i=t.length,D=1,f=s+i;r.maxEditLength!=null&&(f=Math.min(f,r.maxEditLength));let l=(n=r.timeout)!==null&&n!==void 0?n:1/0,d=Date.now()+l,c=[{oldPos:-1,lastComponent:void 0}],p=this.extractCommon(c[0],u,t,0,r);if(c[0].oldPos+1>=i&&p+1>=s)return a(this.buildValues(c[0].lastComponent,u,t));let F=-1/0,C=1/0,y=()=>{for(let m=Math.max(F,-D);m<=Math.min(C,D);m+=2){let h,E=c[m-1],g=c[m+1];E&&(c[m-1]=void 0);let A=!1;if(g){let Q=g.oldPos-m;A=g&&0<=Q&&Q=i&&p+1>=s)return a(this.buildValues(h.lastComponent,u,t))||!0;c[m]=h,h.oldPos+1>=i&&(C=Math.min(C,m-1)),p+1>=s&&(F=Math.max(F,m+1))}D++};if(o)(function m(){setTimeout(function(){if(D>f||Date.now()>d)return o(void 0);y()||m()},0)})();else for(;D<=f&&Date.now()<=d;){let m=y();if(m)return m}}addToPath(t,u,r,o,n){let a=t.lastComponent;return a&&!n.oneChangePerToken&&a.added===u&&a.removed===r?{oldPos:t.oldPos+o,lastComponent:{count:a.count+1,added:u,removed:r,previousComponent:a.previousComponent}}:{oldPos:t.oldPos+o,lastComponent:{count:1,added:u,removed:r,previousComponent:a}}}extractCommon(t,u,r,o,n){let a=u.length,s=r.length,i=t.oldPos,D=i-o,f=0;for(;D+1d.length?p:d}),f.value=this.join(l)}else f.value=this.join(u.slice(i,i+f.count));i+=f.count,f.added||(D+=f.count)}}return o}};var jt=class extends Ne{tokenize(t){return t.slice()}join(t){return t}removeEmpty(t){return t}},ku=new jt;function Ut(e,t,u){return ku.diff(e,t,u)}var Do=()=>{},P=Do;var Ru="cr",Lu="crlf",co="lf",fo=co,Wt="\r",Mu=`\r +`,Je=` +`,lo=Je;function Yu(e){let t=e.indexOf(Wt);return t!==-1?e.charAt(t+1)===Je?Lu:Ru:fo}function Se(e){return e===Ru?Wt:e===Lu?Mu:lo}var po=new Map([[Je,/\n/gu],[Wt,/\r/gu],[Mu,/\r\n/gu]]);function $t(e,t){let u=po.get(t);return e.match(u)?.length??0}var Fo=/\r\n?/gu;function ju(e){return oe(0,e,Fo,Je)}function mo(e){return this[e<0?this.length+e:e]}var Eo=X("at",function(){if(Array.isArray(this)||typeof this=="string")return mo}),b=Eo;var G="string",j="array",U="cursor",I="indent",k="align",v="trim",x="group",w="fill",B="if-break",R="indent-if-break",L="line-suffix",M="line-suffix-boundary",_="line",O="label",T="break-parent",He=new Set([U,I,k,v,x,w,B,R,L,M,_,O,T]);function Uu(e){let t=e.length;for(;t>0&&(e[t-1]==="\r"||e[t-1]===` +`);)t--;return tnew Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function go(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', +Expected it to be 'string' or 'object'.`;if(H(e))throw new Error("doc is valid.");let u=Object.prototype.toString.call(e);if(u!=="[object Object]")return`Unexpected doc '${u}'.`;let r=ho([...He].map(o=>`'${o}'`));return`Unexpected doc.type '${e.type}'. +Expected it to be ${r}.`}var Vt=class extends Error{name="InvalidDocError";constructor(t){super(go(t)),this.doc=t}},Z=Vt;var Wu={};function yo(e,t,u,r){let o=[e];for(;o.length>0;){let n=o.pop();if(n===Wu){u(o.pop());continue}u&&o.push(n,Wu);let a=H(n);if(!a)throw new Z(n);if(t?.(n)!==!1)switch(a){case j:case w:{let s=a===j?n:n.parts;for(let i=s.length,D=i-1;D>=0;--D)o.push(s[D]);break}case B:o.push(n.flatContents,n.breakContents);break;case x:if(r&&n.expandedStates)for(let s=n.expandedStates.length,i=s-1;i>=0;--i)o.push(n.expandedStates[i]);else o.push(n.contents);break;case k:case I:case R:case O:case L:o.push(n.contents);break;case G:case U:case v:case M:case _:case T:break;default:throw new Z(n)}}}var we=yo;function Pe(e,t){if(typeof e=="string")return t(e);let u=new Map;return r(e);function r(n){if(u.has(n))return u.get(n);let a=o(n);return u.set(n,a),a}function o(n){switch(H(n)){case j:return t(n.map(r));case w:return t({...n,parts:n.parts.map(r)});case B:return t({...n,breakContents:r(n.breakContents),flatContents:r(n.flatContents)});case x:{let{expandedStates:a,contents:s}=n;return a?(a=a.map(r),s=a[0]):s=r(s),t({...n,contents:s,expandedStates:a})}case k:case I:case R:case O:case L:return t({...n,contents:r(n.contents)});case G:case U:case v:case M:case _:case T:return t(n);default:throw new Z(n)}}}function Xe(e,t,u){let r=u,o=!1;function n(a){if(o)return!1;let s=t(a);s!==void 0&&(o=!0,r=s)}return we(e,n),r}function bo(e){if(e.type===x&&e.break||e.type===_&&e.hard||e.type===T)return!0}function Ku(e){return Xe(e,bo,!1)}function $u(e){if(e.length>0){let t=b(0,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function Gu(e){let t=new Set,u=[];function r(n){if(n.type===T&&$u(u),n.type===x){if(u.push(n),t.has(n))return!1;t.add(n)}}function o(n){n.type===x&&u.pop().break&&$u(u)}we(e,r,o,!0)}function Ao(e){return e.type===_&&!e.hard?e.soft?"":" ":e.type===B?e.flatContents:e}function zu(e){return Pe(e,Ao)}function Vu(e){for(e=[...e];e.length>=2&&b(0,e,-2).type===_&&b(0,e,-1).type===T;)e.length-=2;if(e.length>0){let t=Oe(b(0,e,-1));e[e.length-1]=t}return e}function Oe(e){switch(H(e)){case I:case R:case x:case L:case O:{let t=Oe(e.contents);return{...e,contents:t}}case B:return{...e,breakContents:Oe(e.breakContents),flatContents:Oe(e.flatContents)};case w:return{...e,parts:Vu(e.parts)};case j:return Vu(e);case G:return Uu(e);case k:case U:case v:case M:case _:case T:break;default:throw new Z(e)}return e}function qe(e){return Oe(xo(e))}function _o(e){switch(H(e)){case w:if(e.parts.every(t=>t===""))return"";break;case x:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===x&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case k:case I:case R:case L:if(!e.contents)return"";break;case B:if(!e.flatContents&&!e.breakContents)return"";break;case j:{let t=[];for(let u of e){if(!u)continue;let[r,...o]=Array.isArray(u)?u:[u];typeof r=="string"&&typeof b(0,t,-1)=="string"?t[t.length-1]+=r:t.push(r),t.push(...o)}return t.length===0?"":t.length===1?t[0]:t}case G:case U:case v:case M:case _:case O:case T:break;default:throw new Z(e)}return e}function xo(e){return Pe(e,t=>_o(t))}function Ju(e,t=Qe){return Pe(e,u=>typeof u=="string"?Ie(t,u.split(` +`)):u)}function Bo(e){if(e.type===_)return!0}function Hu(e){return Xe(e,Bo,!1)}function Ee(e,t){return e.type===O?{...e,contents:t(e.contents)}:t(e)}var N=P,Ze=P,Xu=P,qu=P;function ae(e){return N(e),{type:I,contents:e}}function De(e,t){return qu(e),N(t),{type:k,contents:t,n:e}}function Qu(e){return De(Number.NEGATIVE_INFINITY,e)}function et(e){return De({type:"root"},e)}function Zu(e){return De(-1,e)}function tt(e,t,u){N(e);let r=e;if(t>0){for(let o=0;o0?`, { ${i.join(", ")} }`:"";return`indentIfBreak(${r(n.contents)}${D})`}if(n.type===x){let i=[];n.break&&n.break!=="propagated"&&i.push("shouldBreak: true"),n.id&&i.push(`id: ${o(n.id)}`);let D=i.length>0?`, { ${i.join(", ")} }`:"";return n.expandedStates?`conditionalGroup([${n.expandedStates.map(f=>r(f)).join(",")}]${D})`:`group(${r(n.contents)}${D})`}if(n.type===w)return`fill([${n.parts.map(i=>r(i)).join(", ")}])`;if(n.type===L)return"lineSuffix("+r(n.contents)+")";if(n.type===M)return"lineSuffixBoundary";if(n.type===O)return`label(${JSON.stringify(n.label)}, ${r(n.contents)})`;if(n.type===U)return"cursor";throw new Error("Unknown doc type "+n.type)}function o(n){if(typeof n!="symbol")return JSON.stringify(String(n));if(n in t)return t[n];let a=n.description||"symbol";for(let s=0;;s++){let i=a+(s>0?` #${s}`:"");if(!u.has(i))return u.add(i),t[n]=`Symbol.for(${JSON.stringify(i)})`}}}var Dr=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function zt(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function Jt(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var cr="\xA9\xAE\u203C\u2049\u2122\u2139\u2194\u2195\u2196\u2197\u2198\u2199\u21A9\u21AA\u2328\u23CF\u23F1\u23F2\u23F8\u23F9\u23FA\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600\u2601\u2602\u2603\u2604\u260E\u2611\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638\u2639\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694\u2695\u2696\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F1\u26F7\u26F8\u26F9\u2702\u2708\u2709\u270C\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u2764\u27A1\u2934\u2935\u2B05\u2B06\u2B07";var To=/[^\x20-\x7F]/u,No=new Set(cr);function So(e){if(!e)return 0;if(!To.test(e))return e.length;e=e.replace(Dr(),u=>No.has(u)?" ":" ");let t=0;for(let u of e){let r=u.codePointAt(0);r<=31||r>=127&&r<=159||r>=768&&r<=879||r>=65024&&r<=65039||(t+=zt(r)||Jt(r)?2:1)}return t}var Re=So;var wo={type:0},Oo={type:1},Ht={value:"",length:0,queue:[],get root(){return Ht}};function fr(e,t,u){let r=t.type===1?e.queue.slice(0,-1):[...e.queue,t],o="",n=0,a=0,s=0;for(let p of r)switch(p.type){case 0:f(),u.useTabs?i(1):D(u.tabWidth);break;case 3:{let{string:F}=p;f(),o+=F,n+=F.length;break}case 2:{let{width:F}=p;a+=1,s+=F;break}default:throw new Error(`Unexpected indent comment '${p.type}'.`)}return d(),{...e,value:o,length:n,queue:r};function i(p){o+=" ".repeat(p),n+=u.tabWidth*p}function D(p){o+=" ".repeat(p),n+=p}function f(){u.useTabs?l():d()}function l(){a>0&&i(a),c()}function d(){s>0&&D(s),c()}function c(){a=0,s=0}}function lr(e,t,u){if(!t)return e;if(t.type==="root")return{...e,root:e};if(t===Number.NEGATIVE_INFINITY)return e.root;let r;return typeof t=="number"?t<0?r=Oo:r={type:2,width:t}:r={type:3,string:t},fr(e,r,u)}function dr(e,t){return fr(e,wo,t)}function Po(e){let t=0;for(let u=e.length-1;u>=0;u--){let r=e[u];if(r===" "||r===" ")t++;else break}return t}function Xt(e){let t=Po(e);return{text:t===0?e:e.slice(0,e.length-t),count:t}}var W=Symbol("MODE_BREAK"),q=Symbol("MODE_FLAT"),qt=Symbol("DOC_FILL_PRINTED_LENGTH");function rt(e,t,u,r,o,n){if(u===Number.POSITIVE_INFINITY)return!0;let a=t.length,s=!1,i=[e],D="";for(;u>=0;){if(i.length===0){if(a===0)return!0;i.push(t[--a]);continue}let{mode:f,doc:l}=i.pop(),d=H(l);switch(d){case G:l&&(s&&(D+=" ",u-=1,s=!1),D+=l,u-=Re(l));break;case j:case w:{let c=d===j?l:l.parts,p=l[qt]??0;for(let F=c.length-1;F>=p;F--)i.push({mode:f,doc:c[F]});break}case I:case k:case R:case O:i.push({mode:f,doc:l.contents});break;case v:{let{text:c,count:p}=Xt(D);D=c,u+=p;break}case x:{if(n&&l.break)return!1;let c=l.break?W:f,p=l.expandedStates&&c===W?b(0,l.expandedStates,-1):l.contents;i.push({mode:c,doc:p});break}case B:{let p=(l.groupId?o[l.groupId]||q:f)===W?l.breakContents:l.flatContents;p&&i.push({mode:f,doc:p});break}case _:if(f===W||l.hard)return!0;l.soft||(s=!0);break;case L:r=!0;break;case M:if(r)return!1;break}}return!1}function Ce(e,t){let u=Object.create(null),r=t.printWidth,o=Se(t.endOfLine),n=0,a=[{indent:Ht,mode:W,doc:e}],s="",i=!1,D=[],f=[],l=[],d=[],c=0;for(Gu(e);a.length>0;){let{indent:m,mode:h,doc:E}=a.pop();switch(H(E)){case G:{let g=o!==` +`?oe(0,E,` +`,o):E;g&&(s+=g,a.length>0&&(n+=Re(g)));break}case j:for(let g=E.length-1;g>=0;g--)a.push({indent:m,mode:h,doc:E[g]});break;case U:if(f.length>=2)throw new Error("There are too many 'cursor' in doc.");f.push(c+s.length);break;case I:a.push({indent:dr(m,t),mode:h,doc:E.contents});break;case k:a.push({indent:lr(m,E.n,t),mode:h,doc:E.contents});break;case v:y();break;case x:switch(h){case q:if(!i){a.push({indent:m,mode:E.break?W:q,doc:E.contents});break}case W:{i=!1;let g={indent:m,mode:q,doc:E.contents},A=r-n,J=D.length>0;if(!E.break&&rt(g,a,A,J,u))a.push(g);else if(E.expandedStates){let Q=b(0,E.expandedStates,-1);if(E.break){a.push({indent:m,mode:W,doc:Q});break}else for(let re=1;re=E.expandedStates.length){a.push({indent:m,mode:W,doc:Q});break}else{let Te=E.expandedStates[re],ne={indent:m,mode:q,doc:Te};if(rt(ne,a,A,J,u)){a.push(ne);break}}}else a.push({indent:m,mode:W,doc:E.contents});break}}E.id&&(u[E.id]=b(0,a,-1).mode);break;case w:{let g=r-n,A=E[qt]??0,{parts:J}=E,Q=J.length-A;if(Q===0)break;let re=J[A+0],Te=J[A+1],ne={indent:m,mode:q,doc:re},vt={indent:m,mode:W,doc:re},Rt=rt(ne,[],g,D.length>0,u,!0);if(Q===1){Rt?a.push(ne):a.push(vt);break}let Iu={indent:m,mode:q,doc:Te},Lt={indent:m,mode:W,doc:Te};if(Q===2){Rt?a.push(Iu,ne):a.push(Lt,vt);break}let Xn=J[A+2],qn={indent:m,mode:h,doc:{...E,[qt]:A+2}},Qn=rt({indent:m,mode:q,doc:[re,Te,Xn]},[],g,D.length>0,u,!0);a.push(qn),Qn?a.push(Iu,ne):Rt?a.push(Lt,ne):a.push(Lt,vt);break}case B:case R:{let g=E.groupId?u[E.groupId]:h;if(g===W){let A=E.type===B?E.breakContents:E.negate?E.contents:ae(E.contents);A&&a.push({indent:m,mode:h,doc:A})}if(g===q){let A=E.type===B?E.flatContents:E.negate?ae(E.contents):E.contents;A&&a.push({indent:m,mode:h,doc:A})}break}case L:D.push({indent:m,mode:h,doc:E.contents});break;case M:D.length>0&&a.push({indent:m,mode:h,doc:ke});break;case _:switch(h){case q:if(E.hard)i=!0;else{E.soft||(s+=" ",n+=1);break}case W:if(D.length>0){a.push({indent:m,mode:h,doc:E},...D.reverse()),D.length=0;break}E.literal?(s+=o,n=0,m.root&&(m.root.value&&(s+=m.root.value),n=m.root.length)):(y(),s+=o+m.value,n=m.length);break}break;case O:a.push({indent:m,mode:h,doc:E.contents});break;case T:break;default:throw new Z(E)}a.length===0&&D.length>0&&(a.push(...D.reverse()),D.length=0)}let p=l.join("")+s,F=[...d,...f];if(F.length!==2)return{formatted:p};let C=F[0];return{formatted:p,cursorNodeStart:C,cursorNodeText:p.slice(C,b(0,F,-1))};function y(){let{text:m,count:h}=Xt(s);m&&(l.push(m),c+=m.length),s="",n-=h,f.length>0&&(d.push(...f.map(E=>Math.min(E,c))),f.length=0)}}function Io(e,t,u=0){let r=0;for(let o=u;o1?b(0,t,-2):null}getValue(){return b(0,this.stack,-1)}getNode(t=0){let u=this.#t(t);return u===-1?null:this.stack[u]}getParentNode(t=0){return this.getNode(t+1)}#t(t){let{stack:u}=this;for(let r=u.length-1;r>=0;r-=2)if(!Array.isArray(u[r])&&--t<0)return r;return-1}call(t,...u){let{stack:r}=this,{length:o}=r,n=b(0,r,-1);for(let a of u)n=n?.[a],r.push(a,n);try{return t(this)}finally{r.length=o}}callParent(t,u=0){let r=this.#t(u+1),o=this.stack.splice(r+1);try{return t(this)}finally{this.stack.push(...o)}}each(t,...u){let{stack:r}=this,{length:o}=r,n=b(0,r,-1);for(let a of u)n=n[a],r.push(a,n);try{for(let a=0;a{r[n]=t(o,n,a)},...u),r}match(...t){let u=this.stack.length-1,r=null,o=this.stack[u--];for(let n of t){if(o===void 0)return!1;let a=null;if(typeof r=="number"&&(a=r,r=this.stack[u--],o=this.stack[u--]),n&&!n(o,r,a))return!1;r=this.stack[u--],o=this.stack[u--]}return!0}findAncestor(t){for(let u of this.#e())if(t(u))return u}hasAncestor(t){for(let u of this.#e())if(t(u))return!0;return!1}*#e(){let{stack:t}=this;for(let u=t.length-3;u>=0;u-=2){let r=t[u];Array.isArray(r)||(yield r)}}},pr=Qt;function ko(e){return e!==null&&typeof e=="object"}var ge=ko;function ye(e){return(t,u,r)=>{let o=!!r?.backwards;if(u===!1)return!1;let{length:n}=t,a=u;for(;a>=0&&ae===` +`||e==="\r"||e==="\u2028"||e==="\u2029";function vo(e,t,u){let r=!!u?.backwards;if(t===!1)return!1;let o=e.charAt(t);if(r){if(e.charAt(t-1)==="\r"&&o===` +`)return t-2;if(mr(o))return t-1}else{if(o==="\r"&&e.charAt(t+1)===` +`)return t+2;if(mr(o))return t+1}return t}var K=vo;function Ro(e,t,u={}){let r=Y(e,u.backwards?t-1:t,u),o=K(e,r,u);return r!==o}var z=Ro;function Lo(e){return Array.isArray(e)&&e.length>0}var Er=Lo;function*be(e,t){let{getVisitorKeys:u,filter:r=()=>!0}=t,o=n=>ge(n)&&r(n);for(let n of u(e)){let a=e[n];if(Array.isArray(a))for(let s of a)o(s)&&(yield s);else o(a)&&(yield a)}}function*Cr(e,t){let u=[e];for(let r=0;r(n??(n=[e,...t]),o(D,n)?[D]:gr(D,n,u))),{locStart:s,locEnd:i}=u;return a.sort((D,f)=>s(D)-s(f)||i(D)-i(f)),r.set(e,a),a}var at=gr;function Mo(e){let t=e.type||e.kind||"(unknown type)",u=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return u.length>20&&(u=u.slice(0,19)+"\u2026"),t+(u?" "+u:"")}function Zt(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=Mo(e)}function fe(e,t){t.leading=!0,t.trailing=!1,Zt(e,t)}function ue(e,t,u){t.leading=!1,t.trailing=!1,u&&(t.marker=u),Zt(e,t)}function le(e,t){t.leading=!1,t.trailing=!0,Zt(e,t)}var uu=new WeakMap;function br(e,t,u,r,o=[]){let{locStart:n,locEnd:a}=u,s=n(t),i=a(t),D=at(e,o,{cache:uu,locStart:n,locEnd:a,getVisitorKeys:u.getVisitorKeys,filter:u.printer.canAttachComment,getChildren:u.printer.getCommentChildNodes}),f,l,d=0,c=D.length;for(;d>1,F=D[p],C=n(F),y=a(F);if(C<=s&&i<=y)return br(F,t,u,F,[F,...o]);if(y<=s){f=F,d=p+1;continue}if(i<=C){l=F,c=p;continue}throw new Error("Comment location overlaps with node location")}if(r?.type==="TemplateLiteral"){let{quasis:p}=r,F=tu(p,t,u);f&&tu(p,f,u)!==F&&(f=null),l&&tu(p,l,u)!==F&&(l=null)}return{enclosingNode:r,precedingNode:f,followingNode:l}}var eu=()=>!1;function Ar(e,t){let{comments:u}=e;if(delete e.comments,!Er(u)||!t.printer.canAttachComment)return;let r=[],{printer:{features:{experimental_avoidAstMutation:o},handleComments:n={}},originalText:a}=t,{ownLine:s=eu,endOfLine:i=eu,remaining:D=eu}=n,f=u.map((l,d)=>({...br(e,l,t),comment:l,text:a,options:t,ast:e,isLastComment:u.length-1===d}));for(let[l,d]of f.entries()){let{comment:c,precedingNode:p,enclosingNode:F,followingNode:C,text:y,options:m,ast:h,isLastComment:E}=d,g;if(o?g=[d]:(c.enclosingNode=F,c.precedingNode=p,c.followingNode=C,g=[c,y,m,h,E]),Yo(y,m,f,l))c.placement="ownLine",s(...g)||(C?fe(C,c):p?le(p,c):F?ue(F,c):ue(h,c));else if(jo(y,m,f,l))c.placement="endOfLine",i(...g)||(p?le(p,c):C?fe(C,c):F?ue(F,c):ue(h,c));else if(c.placement="remaining",!D(...g))if(p&&C){let A=r.length;A>0&&r[A-1].followingNode!==C&&yr(r,m),r.push(d)}else p?le(p,c):C?fe(C,c):F?ue(F,c):ue(h,c)}if(yr(r,t),!o)for(let l of u)delete l.precedingNode,delete l.enclosingNode,delete l.followingNode}var _r=e=>!/[\S\n\u2028\u2029]/u.test(e);function Yo(e,t,u,r){let{comment:o,precedingNode:n}=u[r],{locStart:a,locEnd:s}=t,i=a(o);if(n)for(let D=r-1;D>=0;D--){let{comment:f,precedingNode:l}=u[D];if(l!==n||!_r(e.slice(s(f),i)))break;i=a(f)}return z(e,i,{backwards:!0})}function jo(e,t,u,r){let{comment:o,followingNode:n}=u[r],{locStart:a,locEnd:s}=t,i=s(o);if(n)for(let D=r+1;D0;--a){let{comment:s,precedingNode:i,followingNode:D}=e[a-1];P(i,r),P(D,o);let f=t.originalText.slice(t.locEnd(s),n);if(t.printer.isGap?.(f,t)??/^[\s(]*$/u.test(f))n=t.locStart(s);else break}for(let[s,{comment:i}]of e.entries())s1&&s.comments.sort((i,D)=>t.locStart(i)-t.locStart(D));e.length=0}function tu(e,t,u){let r=u.locStart(t)-1;for(let o=1;o!r.has(i)).length===0)return{leading:"",trailing:""};let n=[],a=[],s;return e.each(()=>{let i=e.node;if(r?.has(i))return;let{leading:D,trailing:f}=i;D?n.push(Wo(e,t)):f&&(s=$o(e,t,s),a.push(s.doc))},"comments"),{leading:n,trailing:a}}function Br(e,t,u){let{leading:r,trailing:o}=Vo(e,u);return!r&&!o?t:Ee(t,n=>[r,n,o])}function Tr(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:u}=e;for(let r of t){if(!r.printed&&!u.has(r))throw new Error('Comment "'+r.value.trim()+'" was not printed. Please report this error!');delete r.printed}}var Nr=()=>P;var Me=class extends Error{name="ConfigError"},Ye=class extends Error{name="UndefinedParserError"};var Sr={checkIgnorePragma:{category:"Special",type:"boolean",default:!1,description:"Check whether the file's first docblock comment contains '@noprettier' or '@noformat' to determine if it should be formatted.",cliCategory:"Other"},cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:`Maintain existing +(mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:e=>typeof e=="string"||typeof e=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"},{value:"mjml",description:"MJML"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive). +The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset. +The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:"Require either '@prettier' or '@format' to be present in the file's first docblock comment in order for it to be formatted.",cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function it({plugins:e=[],showDeprecated:t=!1}={}){let u=e.flatMap(o=>o.languages??[]),r=[];for(let o of Go(Object.assign({},...e.map(({options:n})=>n),Sr)))!t&&o.deprecated||(Array.isArray(o.choices)&&(t||(o.choices=o.choices.filter(n=>!n.deprecated)),o.name==="parser"&&(o.choices=[...o.choices,...Ko(o.choices,u,e)])),o.pluginDefaults=Object.fromEntries(e.filter(n=>n.defaultOptions?.[o.name]!==void 0).map(n=>[n.name,n.defaultOptions[o.name]])),r.push(o));return{languages:u,options:r}}function*Ko(e,t,u){let r=new Set(e.map(o=>o.value));for(let o of t)if(o.parsers){for(let n of o.parsers)if(!r.has(n)){r.add(n);let a=u.find(i=>i.parsers&&Object.prototype.hasOwnProperty.call(i.parsers,n)),s=o.name;a?.name&&(s+=` (plugin: ${a.name})`),yield{value:n,description:s}}}}function Go(e){let t=[];for(let[u,r]of Object.entries(e)){let o={name:u,...r};Array.isArray(o.default)&&(o.default=b(0,o.default,-1).value),t.push(o)}return t}var zo=Array.prototype.toReversed??function(){return[...this].reverse()},Jo=X("toReversed",function(){if(Array.isArray(this))return zo}),wr=Jo;function Ho(){let e=globalThis,t=e.Deno?.build?.os;return typeof t=="string"?t==="windows":e.navigator?.platform?.startsWith("Win")??e.process?.platform?.startsWith("win")??!1}var Xo=Ho();function Or(e){if(e=e instanceof URL?e:new URL(e),e.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function qo(e){return e=Or(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function Qo(e){e=Or(e);let t=decodeURIComponent(e.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return e.hostname!==""&&(t=`\\\\${e.hostname}${t}`),t}function ru(e){return Xo?Qo(e):qo(e)}var Pr=e=>String(e).split(/[/\\]/u).pop(),Ir=e=>String(e).startsWith("file:");function kr(e,t){if(!t)return;let u=Pr(t).toLowerCase();return e.find(({filenames:r})=>r?.some(o=>o.toLowerCase()===u))??e.find(({extensions:r})=>r?.some(o=>u.endsWith(o)))}function Zo(e,t){if(t)return e.find(({name:u})=>u.toLowerCase()===t)??e.find(({aliases:u})=>u?.includes(t))??e.find(({extensions:u})=>u?.includes(`.${t}`))}var ea=void 0;function vr(e,t){if(t){if(Ir(t))try{t=ru(t)}catch{return}if(typeof t=="string")return e.find(({isSupported:u})=>u?.({filepath:t}))}}function ta(e,t){let u=wr(0,e.plugins).flatMap(o=>o.languages??[]);return(Zo(u,t.language)??kr(u,t.physicalFile)??kr(u,t.file)??vr(u,t.physicalFile)??vr(u,t.file)??ea?.(u,t.physicalFile))?.parsers[0]}var st=ta;var ie={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(u=>ie.value(u)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(u=>`${ie.key(u)}: ${ie.value(e[u])}`).join(", ")} }`},pair:({key:e,value:t})=>ie.value({[e]:t})};var nu=new Proxy(String,{get:()=>nu}),$=nu,ou=()=>nu;var Rr=(e,t,{descriptor:u})=>{let r=[`${$.yellow(typeof e=="string"?u.key(e):u.pair(e))} is deprecated`];return t&&r.push(`we now treat it as ${$.blue(typeof t=="string"?u.key(t):u.pair(t))}`),r.join("; ")+"."};var Dt=Symbol.for("vnopts.VALUE_NOT_EXIST"),Ae=Symbol.for("vnopts.VALUE_UNCHANGED");var Lr=" ".repeat(2),Yr=(e,t,u)=>{let{text:r,list:o}=u.normalizeExpectedResult(u.schemas[e].expected(u)),n=[];return r&&n.push(Mr(e,t,r,u.descriptor)),o&&n.push([Mr(e,t,o.title,u.descriptor)].concat(o.values.map(a=>jr(a,u.loggerPrintWidth))).join(` +`)),Ur(n,u.loggerPrintWidth)};function Mr(e,t,u,r){return[`Invalid ${$.red(r.key(e))} value.`,`Expected ${$.blue(u)},`,`but received ${t===Dt?$.gray("nothing"):$.red(r.value(t))}.`].join(" ")}function jr({text:e,list:t},u){let r=[];return e&&r.push(`- ${$.blue(e)}`),t&&r.push([`- ${$.blue(t.title)}:`].concat(t.values.map(o=>jr(o,u-Lr.length).replace(/^|\n/g,`$&${Lr}`))).join(` +`)),Ur(r,u)}function Ur(e,t){if(e.length===1)return e[0];let[u,r]=e,[o,n]=e.map(a=>a.split(` +`,1)[0].length);return o>t&&o>n?r:u}var _e=[],au=[];function ct(e,t,u){if(e===t)return 0;let r=u?.maxDistance,o=e;e.length>t.length&&(e=t,t=o);let n=e.length,a=t.length;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-a);)n--,a--;let s=0;for(;sr)return r;if(n===0)return r!==void 0&&a>r?r:a;let i,D,f,l,d=0,c=0;for(;dD?l>D?D+1:l:l>f?f+1:l;if(r!==void 0){let p=D;for(d=0;dr)return r}}return _e.length=n,au.length=n,r!==void 0&&D>r?r:D}function Wr(e,t,u){if(!Array.isArray(t)||t.length===0)return;let r=u?.maxDistance,o=e.length;for(let i of t)if(i===e)return i;if(r===0)return;let n,a=Number.POSITIVE_INFINITY,s=new Set;for(let i of t){if(s.has(i))continue;s.add(i);let D=Math.abs(i.length-o);if(D>=a||r!==void 0&&D>r)continue;let f=Number.isFinite(a)?r===void 0?a:Math.min(a,r):r,l=f===void 0?ct(e,i):ct(e,i,{maxDistance:f});if(r!==void 0&&l>r)continue;let d=l;if(f!==void 0&&l===f&&f===r&&(d=ct(e,i)),dr))return n}var ft=(e,t,{descriptor:u,logger:r,schemas:o})=>{let n=[`Ignored unknown option ${$.yellow(u.pair({key:e,value:t}))}.`],a=Wr(e,Object.keys(o),{maxDistance:3});a&&n.push(`Did you mean ${$.blue(u.key(a))}?`),r.warn(n.join(" "))};var ua=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function ra(e,t){let u=new e(t),r=Object.create(u);for(let o of ua)o in t&&(r[o]=na(t[o],u,S.prototype[o].length));return r}var S=class{static create(t){return ra(this,t)}constructor(t){this.name=t.name}default(t){}expected(t){return"nothing"}validate(t,u){return!1}deprecated(t,u){return!1}forward(t,u){}redirect(t,u){}overlap(t,u,r){return t}preprocess(t,u){return t}postprocess(t,u){return Ae}};function na(e,t,u){return typeof e=="function"?(...r)=>e(...r.slice(0,u-1),t,...r.slice(u-1)):()=>e}var lt=class extends S{constructor(t){super(t),this._sourceName=t.sourceName}expected(t){return t.schemas[this._sourceName].expected(t)}validate(t,u){return u.schemas[this._sourceName].validate(t,u)}redirect(t,u){return this._sourceName}};var dt=class extends S{expected(){return"anything"}validate(){return!0}};var pt=class extends S{constructor({valueSchema:t,name:u=t.name,...r}){super({...r,name:u}),this._valueSchema=t}expected(t){let{text:u,list:r}=t.normalizeExpectedResult(this._valueSchema.expected(t));return{text:u&&`an array of ${u}`,list:r&&{title:"an array of the following values",values:[{list:r}]}}}validate(t,u){if(!Array.isArray(t))return!1;let r=[];for(let o of t){let n=u.normalizeValidateResult(this._valueSchema.validate(o,u),o);n!==!0&&r.push(n.value)}return r.length===0?!0:{value:r}}deprecated(t,u){let r=[];for(let o of t){let n=u.normalizeDeprecatedResult(this._valueSchema.deprecated(o,u),o);n!==!1&&r.push(...n.map(({value:a})=>({value:[a]})))}return r}forward(t,u){let r=[];for(let o of t){let n=u.normalizeForwardResult(this._valueSchema.forward(o,u),o);r.push(...n.map($r))}return r}redirect(t,u){let r=[],o=[];for(let n of t){let a=u.normalizeRedirectResult(this._valueSchema.redirect(n,u),n);"remain"in a&&r.push(a.remain),o.push(...a.redirect.map($r))}return r.length===0?{redirect:o}:{redirect:o,remain:r}}overlap(t,u){return t.concat(u)}};function $r({from:e,to:t}){return{from:[e],to:t}}var Ft=class extends S{expected(){return"true or false"}validate(t){return typeof t=="boolean"}};function Kr(e,t){let u=Object.create(null);for(let r of e){let o=r[t];if(u[o])throw new Error(`Duplicate ${t} ${JSON.stringify(o)}`);u[o]=r}return u}function Gr(e,t){let u=new Map;for(let r of e){let o=r[t];if(u.has(o))throw new Error(`Duplicate ${t} ${JSON.stringify(o)}`);u.set(o,r)}return u}function zr(){let e=Object.create(null);return t=>{let u=JSON.stringify(t);return e[u]?!0:(e[u]=!0,!1)}}function Jr(e,t){let u=[],r=[];for(let o of e)t(o)?u.push(o):r.push(o);return[u,r]}function Hr(e){return e===Math.floor(e)}function Xr(e,t){if(e===t)return 0;let u=typeof e,r=typeof t,o=["undefined","object","boolean","number","string"];return u!==r?o.indexOf(u)-o.indexOf(r):u!=="string"?Number(e)-Number(t):e.localeCompare(t)}function qr(e){return(...t)=>{let u=e(...t);return typeof u=="string"?new Error(u):u}}function iu(e){return e===void 0?{}:e}function su(e){if(typeof e=="string")return{text:e};let{text:t,list:u}=e;return oa((t||u)!==void 0,"Unexpected `expected` result, there should be at least one field."),u?{text:t,list:{title:u.title,values:u.values.map(su)}}:{text:t}}function Du(e,t){return e===!0?!0:e===!1?{value:t}:e}function cu(e,t,u=!1){return e===!1?!1:e===!0?u?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function Vr(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function mt(e,t){return e===void 0?[]:Array.isArray(e)?e.map(u=>Vr(u,t)):[Vr(e,t)]}function fu(e,t){let u=mt(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return u.length===0?{remain:t,redirect:u}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:u}:{redirect:u}}function oa(e,t){if(!e)throw new Error(t)}var Et=class extends S{constructor(t){super(t),this._choices=Gr(t.choices.map(u=>u&&typeof u=="object"?u:{value:u}),"value")}expected({descriptor:t}){let u=Array.from(this._choices.keys()).map(a=>this._choices.get(a)).filter(({hidden:a})=>!a).map(a=>a.value).sort(Xr).map(t.value),r=u.slice(0,-2),o=u.slice(-2);return{text:r.concat(o.join(" or ")).join(", "),list:{title:"one of the following values",values:u}}}validate(t){return this._choices.has(t)}deprecated(t){let u=this._choices.get(t);return u&&u.deprecated?{value:t}:!1}forward(t){let u=this._choices.get(t);return u?u.forward:void 0}redirect(t){let u=this._choices.get(t);return u?u.redirect:void 0}};var Ct=class extends S{expected(){return"a number"}validate(t,u){return typeof t=="number"}};var ht=class extends Ct{expected(){return"an integer"}validate(t,u){return u.normalizeValidateResult(super.validate(t,u),t)===!0&&Hr(t)}};var je=class extends S{expected(){return"a string"}validate(t){return typeof t=="string"}};var Qr=ie,Zr=ft,en=Yr,tn=Rr;var gt=class{constructor(t,u){let{logger:r=console,loggerPrintWidth:o=80,descriptor:n=Qr,unknown:a=Zr,invalid:s=en,deprecated:i=tn,missing:D=()=>!1,required:f=()=>!1,preprocess:l=c=>c,postprocess:d=()=>Ae}=u||{};this._utils={descriptor:n,logger:r||{warn:()=>{}},loggerPrintWidth:o,schemas:Kr(t,"name"),normalizeDefaultResult:iu,normalizeExpectedResult:su,normalizeDeprecatedResult:cu,normalizeForwardResult:mt,normalizeRedirectResult:fu,normalizeValidateResult:Du},this._unknownHandler=a,this._invalidHandler=qr(s),this._deprecatedHandler=i,this._identifyMissing=(c,p)=>!(c in p)||D(c,p),this._identifyRequired=f,this._preprocess=l,this._postprocess=d,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=zr()}normalize(t){let u={},o=[this._preprocess(t,this._utils)],n=()=>{for(;o.length!==0;){let a=o.shift(),s=this._applyNormalization(a,u);o.push(...s)}};n();for(let a of Object.keys(this._utils.schemas)){let s=this._utils.schemas[a];if(!(a in u)){let i=iu(s.default(this._utils));"value"in i&&o.push({[a]:i.value})}}n();for(let a of Object.keys(this._utils.schemas)){if(!(a in u))continue;let s=this._utils.schemas[a],i=u[a],D=s.postprocess(i,this._utils);D!==Ae&&(this._applyValidation(D,a,s),u[a]=D)}return this._applyPostprocess(u),this._applyRequiredCheck(u),u}_applyNormalization(t,u){let r=[],{knownKeys:o,unknownKeys:n}=this._partitionOptionKeys(t);for(let a of o){let s=this._utils.schemas[a],i=s.preprocess(t[a],this._utils);this._applyValidation(i,a,s);let D=({from:c,to:p})=>{r.push(typeof p=="string"?{[p]:c}:{[p.key]:p.value})},f=({value:c,redirectTo:p})=>{let F=cu(s.deprecated(c,this._utils),i,!0);if(F!==!1)if(F===!0)this._hasDeprecationWarned(a)||this._utils.logger.warn(this._deprecatedHandler(a,p,this._utils));else for(let{value:C}of F){let y={key:a,value:C};if(!this._hasDeprecationWarned(y)){let m=typeof p=="string"?{key:p,value:C}:p;this._utils.logger.warn(this._deprecatedHandler(y,m,this._utils))}}};mt(s.forward(i,this._utils),i).forEach(D);let d=fu(s.redirect(i,this._utils),i);if(d.redirect.forEach(D),"remain"in d){let c=d.remain;u[a]=a in u?s.overlap(u[a],c,this._utils):c,f({value:c})}for(let{from:c,to:p}of d.redirect)f({value:c,redirectTo:p})}for(let a of n){let s=t[a];this._applyUnknownHandler(a,s,u,(i,D)=>{r.push({[i]:D})})}return r}_applyRequiredCheck(t){for(let u of Object.keys(this._utils.schemas))if(this._identifyMissing(u,t)&&this._identifyRequired(u))throw this._invalidHandler(u,Dt,this._utils)}_partitionOptionKeys(t){let[u,r]=Jr(Object.keys(t).filter(o=>!this._identifyMissing(o,t)),o=>o in this._utils.schemas);return{knownKeys:u,unknownKeys:r}}_applyValidation(t,u,r){let o=Du(r.validate(t,this._utils),t);if(o!==!0)throw this._invalidHandler(u,o.value,this._utils)}_applyUnknownHandler(t,u,r,o){let n=this._unknownHandler(t,u,this._utils);if(n)for(let a of Object.keys(n)){if(this._identifyMissing(a,n))continue;let s=n[a];a in this._utils.schemas?o(a,s):r[a]=s}}_applyPostprocess(t){let u=this._postprocess(t,this._utils);if(u!==Ae){if(u.delete)for(let r of u.delete)delete t[r];if(u.override){let{knownKeys:r,unknownKeys:o}=this._partitionOptionKeys(u.override);for(let n of r){let a=u.override[n];this._applyValidation(a,n,this._utils.schemas[n]),t[n]=a}for(let n of o){let a=u.override[n];this._applyUnknownHandler(n,a,t,(s,i)=>{let D=this._utils.schemas[s];this._applyValidation(i,s,D),t[s]=i})}}}}};var lu;function ia(e,t,{logger:u=!1,isCLI:r=!1,passThrough:o=!1,FlagSchema:n,descriptor:a}={}){if(r){if(!n)throw new Error("'FlagSchema' option is required.");if(!a)throw new Error("'descriptor' option is required.")}else a=ie;let s=o?Array.isArray(o)?(d,c)=>o.includes(d)?{[d]:c}:void 0:(d,c)=>({[d]:c}):(d,c,p)=>{let{_:F,...C}=p.schemas;return ft(d,c,{...p,schemas:C})},i=sa(t,{isCLI:r,FlagSchema:n}),D=new gt(i,{logger:u,unknown:s,descriptor:a}),f=u!==!1;f&&lu&&(D._hasDeprecationWarned=lu);let l=D.normalize(e);return f&&(lu=D._hasDeprecationWarned),l}function sa(e,{isCLI:t,FlagSchema:u}){let r=[];t&&r.push(dt.create({name:"_"}));for(let o of e)r.push(Da(o,{isCLI:t,optionInfos:e,FlagSchema:u})),o.alias&&t&&r.push(lt.create({name:o.alias,sourceName:o.name}));return r}function Da(e,{isCLI:t,optionInfos:u,FlagSchema:r}){let{name:o}=e,n={name:o},a,s={};switch(e.type){case"int":a=ht,t&&(n.preprocess=Number);break;case"string":a=je;break;case"choice":a=Et,n.choices=e.choices.map(i=>i?.redirect?{...i,redirect:{to:{key:e.name,value:i.redirect}}}:i);break;case"boolean":a=Ft;break;case"flag":a=r,n.flags=u.flatMap(i=>[i.alias,i.description&&i.name,i.oppositeDescription&&`no-${i.name}`].filter(Boolean));break;case"path":a=je;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?n.validate=(i,D,f)=>e.exception(i)||D.validate(i,f):n.validate=(i,D,f)=>i===void 0||D.validate(i,f),e.redirect&&(s.redirect=i=>i?{to:typeof e.redirect=="string"?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(s.deprecated=!0),t&&!e.array){let i=n.preprocess||(D=>D);n.preprocess=(D,f,l)=>f.preprocess(i(Array.isArray(D)?b(0,D,-1):D),l)}return e.array?pt.create({...t?{preprocess:i=>Array.isArray(i)?i:[i]}:{},...s,valueSchema:a.create(n)}):a.create({...n,...s})}var un=ia;var ca=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let u=this[t];if(e(u,t,this))return u}},fa=X("findLast",function(){if(Array.isArray(this))return ca}),du=fa;var rn=Symbol.for("PRETTIER_IS_FRONT_MATTER"),pu=[];function la(e){return!!e?.[rn]}var de=la;var nn=new Set(["yaml","toml"]),Ue=({node:e})=>de(e)&&nn.has(e.language);async function Fu(e,t,u,r){let{node:o}=u,{language:n}=o;if(!nn.has(n))return;let a=o.value.trim(),s;if(a){let i=n==="yaml"?n:st(r,{language:n});if(!i)return;s=a?await e(a,{parser:i}):""}else s=a;return et([o.startDelimiter,o.explicitLanguage??"",V,s,s?V:"",o.endDelimiter])}function da(e,t){return Ue({node:e})&&(delete t.end,delete t.raw,delete t.value),t}var mu=da;function pa({node:e}){return e.raw}var Eu=pa;var on=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),Fa=e=>Object.keys(e).filter(t=>!on.has(t));function ma(e,t){let u=e?r=>e(r,on):Fa;return t?new Proxy(u,{apply:(r,o,n)=>de(n[0])?pu:Reflect.apply(r,o,n)}):u}var Cu=ma;function gu(e,t){if(!t)throw new Error("parserName is required.");let u=du(0,e,o=>o.parsers&&Object.prototype.hasOwnProperty.call(o.parsers,t));if(u)return u;let r=`Couldn't resolve parser "${t}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new Me(r)}function an(e,t){if(!t)throw new Error("astFormat is required.");let u=du(0,e,o=>o.printers&&Object.prototype.hasOwnProperty.call(o.printers,t));if(u)return u;let r=`Couldn't find plugin for AST format "${t}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new Me(r)}function We({plugins:e,parser:t}){let u=gu(e,t);return yu(u,t)}function yu(e,t){let u=e.parsers[t];return typeof u=="function"?u():u}async function sn(e,t){let u=e.printers[t],r=typeof u=="function"?await u():u;return Ea(r)}var hu=new WeakMap,q0=Symbol("PRINTER_NORMALIZED_MARK");function Ea(e){if(hu.has(e))return hu.get(e);let{features:t,getVisitorKeys:u,embed:r,massageAstNode:o,print:n,...a}=e;t=ya(t);let s=t.experimental_frontMatterSupport;u=Cu(u,s.massageAstNode||s.embed||s.print);let i=o;o&&s.massageAstNode&&(i=new Proxy(o,{apply(d,c,p){return mu(...p),Reflect.apply(d,c,p)}}));let D=r;if(r){let d;D=new Proxy(r,{get(c,p,F){return p==="getVisitorKeys"?(d??(d=r.getVisitorKeys?Cu(r.getVisitorKeys,s.massageAstNode||s.embed):u),d):Reflect.get(c,p,F)},apply:(c,p,F)=>s.embed&&Ue(...F)?Fu:Reflect.apply(c,p,F)})}let f=n;s.print&&(f=new Proxy(n,{apply(d,c,p){let[F]=p;return de(F.node)?Eu(F):Reflect.apply(d,c,p)}}));let l={features:t,getVisitorKeys:u,embed:D,massageAstNode:i,print:f,...a};return hu.set(e,l),l}var Ca=["clean","embed","print"],ha=Object.fromEntries(Ca.map(e=>[e,!1]));function ga(e){return{...ha,...e}}function ya(e){return{experimental_avoidAstMutation:!1,...e,experimental_frontMatterSupport:ga(e?.experimental_frontMatterSupport)}}var Dn={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null,getVisitorKeys:null};async function ba(e,t={}){let u={...e};if(!u.parser)if(u.filepath){if(u.parser=st(u,{physicalFile:u.filepath}),!u.parser)throw new Ye(`No parser could be inferred for file "${u.filepath}".`)}else throw new Ye("No parser and no file path given, couldn't infer a parser.");let r=it({plugins:e.plugins,showDeprecated:!0}).options,o={...Dn,...Object.fromEntries(r.filter(l=>l.default!==void 0).map(l=>[l.name,l.default]))},n=gu(u.plugins,u.parser),a=await yu(n,u.parser);u.astFormat=a.astFormat,u.locEnd=a.locEnd,u.locStart=a.locStart;let s=n.printers?.[a.astFormat]?n:an(u.plugins,a.astFormat),i=await sn(s,a.astFormat);u.printer=i,u.getVisitorKeys=i.getVisitorKeys;let D=s.defaultOptions?Object.fromEntries(Object.entries(s.defaultOptions).filter(([,l])=>l!==void 0)):{},f={...o,...D};for(let[l,d]of Object.entries(f))(u[l]===null||u[l]===void 0)&&(u[l]=d);return u.parser==="json"&&(u.trailingComma="none"),un(u,r,{passThrough:Object.keys(Dn),...t})}var se=ba;var pf=ao(dn(),1);var Au="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",pn="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",af=new RegExp("["+Au+"]"),sf=new RegExp("["+Au+pn+"]");Au=pn=null;var _u={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},Df=new Set(_u.keyword),cf=new Set(_u.strict),ff=new Set(_u.strictBind);var It=(e,t)=>u=>e(t(u));function mn(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:It(It(e.white,e.bgRed),e.bold),gutter:e.gray,marker:It(e.red,e.bold),message:It(e.red,e.bold),reset:e.reset}}var hf=mn(ou(!0)),gf=mn(ou(!1));function _a(){return new Proxy({},{get:()=>e=>e})}var Fn=/\r\n|[\n\r\u2028\u2029]/;function xa(e,t,u){let r=Object.assign({column:0,line:-1},e.start),o=Object.assign({},r,e.end),{linesAbove:n=2,linesBelow:a=3}=u||{},s=r.line,i=r.column,D=o.line,f=o.column,l=Math.max(s-(n+1),0),d=Math.min(t.length,D+a);s===-1&&(l=0),D===-1&&(d=t.length);let c=D-s,p={};if(c)for(let F=0;F<=c;F++){let C=F+s;if(!i)p[C]=!0;else if(F===0){let y=t[C-1].length;p[C]=[i,y-i+1]}else if(F===c)p[C]=[0,f];else{let y=t[C-F].length;p[C]=[0,y]}}else i===f?i?p[s]=[i,0]:p[s]=!0:p[s]=[i,f-i];return{start:l,end:d,markerLines:p}}function En(e,t,u={}){let o=_a(!1),n=e.split(Fn),{start:a,end:s,markerLines:i}=xa(t,n,u),D=t.start&&typeof t.start.column=="number",f=String(s).length,d=e.split(Fn,s).slice(a,s).map((c,p)=>{let F=a+1+p,y=` ${` ${F}`.slice(-f)} |`,m=i[F],h=!i[F+1];if(m){let E="";if(Array.isArray(m)){let g=c.slice(0,Math.max(m[0]-1,0)).replace(/[^\t]/g," "),A=m[1]||1;E=[` + `,o.gutter(y.replace(/\d/g," "))," ",g,o.marker("^").repeat(A)].join(""),h&&u.message&&(E+=" "+o.message(u.message))}return[o.marker(">"),o.gutter(y),c.length>0?` ${c}`:"",E].join("")}else return` ${o.gutter(y)}${c.length>0?` ${c}`:""}`}).join(` +`);return u.message&&!D&&(d=`${" ".repeat(f+1)}${u.message} +${d}`),d}async function Ba(e,t){let u=await We(t),r=u.preprocess?await u.preprocess(e,t):e;t.originalText=r;let o;try{o=await u.parse(r,t,t)}catch(n){Ta(n,e)}return{text:r,ast:o}}function Ta(e,t){let{loc:u}=e;if(u){let r=En(t,u,{highlightCode:!0});throw e.message+=` +`+r,e.codeFrame=r,e}throw e}var Fe=Ba;async function Cn(e,t,u,r,o){if(u.embeddedLanguageFormatting!=="auto")return;let{printer:n}=u,{embed:a}=n;if(!a)return;if(a.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/plugins#optional-embed");let{hasPrettierIgnore:s}=n,{getVisitorKeys:i}=a,D=[];d();let f=e.stack;for(let{print:c,node:p,pathStack:F}of D)try{e.stack=F;let C=await c(l,t,e,u);C&&o.set(p,C)}catch(C){if(globalThis.PRETTIER_DEBUG)throw C}e.stack=f;function l(c,p){return Na(c,p,u,r)}function d(){let{node:c}=e;if(c===null||typeof c!="object"||s?.(e))return;for(let F of i(c))Array.isArray(c[F])?e.each(d,F):e.call(d,F);let p=a(e,u);if(p){if(typeof p=="function"){D.push({print:p,node:c,pathStack:[...e.stack]});return}o.set(c,p)}}}async function Na(e,t,u,r){let o=await se({...u,...t,parentParser:u.parser,originalText:e,cursorOffset:void 0,rangeStart:void 0,rangeEnd:void 0},{passThrough:!0}),{ast:n}=await Fe(e,o),a=await r(n,o);return qe(a)}function Sa(e,t,u,r){let{originalText:o,[Symbol.for("comments")]:n,locStart:a,locEnd:s,[Symbol.for("printedComments")]:i}=t,{node:D}=e,f=a(D),l=s(D);for(let c of n)a(c)>=f&&s(c)<=l&&i.add(c);let{printPrettierIgnored:d}=t.printer;return d?d(e,t,u,r):o.slice(f,l)}var hn=Sa;async function Ge(e,t){({ast:e}=await xu(e,t));let u=new Map,r=new pr(e),o=Nr(t),n=new Map;await Cn(r,s,t,Ge,n);let a=await gn(r,t,s,void 0,n);if(Tr(t),t.cursorOffset>=0){if(t.nodeAfterCursor&&!t.nodeBeforeCursor)return[ee,a];if(t.nodeBeforeCursor&&!t.nodeAfterCursor)return[a,ee]}return a;function s(D,f){return D===void 0||D===r?i(f):Array.isArray(D)?r.call(()=>i(f),...D):r.call(()=>i(f),D)}function i(D){o(r);let f=r.node;if(f==null)return"";let l=ge(f)&&D===void 0;if(l&&u.has(f))return u.get(f);let d=gn(r,t,s,D,n);return l&&u.set(f,d),d}}function gn(e,t,u,r,o){let{node:n}=e,{printer:a}=t,s;switch(a.hasPrettierIgnore?.(e)?s=hn(e,t,u,r):o.has(n)?s=o.get(n):s=a.print(e,t,u,r),n){case t.cursorNode:s=Ee(s,i=>[ee,i,ee]);break;case t.nodeBeforeCursor:s=Ee(s,i=>[i,ee]);break;case t.nodeAfterCursor:s=Ee(s,i=>[ee,i]);break}return a.printComment&&!a.willPrintOwnComments?.(e,t)&&(s=Br(e,s,t)),s}async function xu(e,t){let u=e.comments??[];t[Symbol.for("comments")]=u,t[Symbol.for("printedComments")]=new Set,Ar(e,t);let{printer:{preprocess:r}}=t;return e=r?await r(e,t):e,{ast:e,comments:u}}function wa(e,t){let{cursorOffset:u,locStart:r,locEnd:o,getVisitorKeys:n}=t,a=c=>r(c)<=u&&o(c)>=u,s=e,i=[e];for(let c of Cr(e,{getVisitorKeys:n,filter:a}))i.push(c),s=c;if(hr(s,{getVisitorKeys:n}))return{cursorNode:s};let D,f,l=-1,d=Number.POSITIVE_INFINITY;for(;i.length>0&&(D===void 0||f===void 0);){s=i.pop();let c=D!==void 0,p=f!==void 0;for(let F of be(s,{getVisitorKeys:n})){if(!c){let C=o(F);C<=u&&C>l&&(D=F,l=C)}if(!p){let C=r(F);C>=u&&Ca(d,i)).filter(Boolean);let D={},f=new Set(o(s));for(let d in s)!Object.prototype.hasOwnProperty.call(s,d)||n?.has(d)||(f.has(d)?D[d]=a(s[d],s):D[d]=s[d]);let l=r(s,D,i);if(l!==null)return l??D}}var yn=Oa;var Pa=Array.prototype.findLastIndex??function(e){for(let t=this.length-1;t>=0;t--){let u=this[t];if(e(u,t,this))return t}return-1},Ia=X("findLastIndex",function(){if(Array.isArray(this))return Pa}),bn=Ia;var ka=({parser:e})=>e==="json"||e==="json5"||e==="jsonc"||e==="json-stringify";function va(e,t){return t=new Set(t),e.find(u=>xn.has(u.type)&&t.has(u))}function An(e){let t=bn(0,e,u=>u.type!=="Program"&&u.type!=="File");return t===-1?e:e.slice(0,t+1)}function Ra(e,t,{locStart:u,locEnd:r}){let[o,...n]=e,[a,...s]=t;if(o===a)return[o,a];let i=u(o);for(let f of An(s))if(u(f)>=i)a=f;else break;let D=r(a);for(let f of An(n)){if(r(f)<=D)o=f;else break;if(o===a)break}return[o,a]}function Tu(e,t,u,r,o=[],n){let{locStart:a,locEnd:s}=u,i=a(e),D=s(e);if(t>D||tr);let s=e.slice(r,o).search(/\S/u),i=s===-1;if(!i)for(r+=s;o>r&&!/\S/u.test(e[o-1]);--o);let D=Tu(u,r,t,(c,p)=>_n(t,c,p),[],"rangeStart");if(!D)return;let f=i?D:Tu(u,o,t,c=>_n(t,c),[],"rangeEnd");if(!f)return;let l,d;if(ka(t)){let c=va(D,f);l=c,d=c}else[l,d]=Ra(D,f,t);return[Math.min(n(l),n(d)),Math.max(a(l),a(d))]}var wn="\uFEFF",Tn=Symbol("cursor");async function On(e,t,u=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:r,text:o}=await Fe(e,t);t.cursorOffset>=0&&(t={...t,...Bu(r,t)});let n=await Ge(r,t,u);u>0&&(n=tt([V,n],u,t.tabWidth));let a=Ce(n,t);if(u>0){let i=a.formatted.trim();a.cursorNodeStart!==void 0&&(a.cursorNodeStart-=a.formatted.indexOf(i),a.cursorNodeStart<0&&(a.cursorNodeStart=0,a.cursorNodeText=a.cursorNodeText.trimStart()),a.cursorNodeStart+a.cursorNodeText.length>i.length&&(a.cursorNodeText=a.cursorNodeText.trimEnd())),a.formatted=i+Se(t.endOfLine)}let s=t[Symbol.for("comments")];if(t.cursorOffset>=0){let i,D,f,l;if((t.cursorNode||t.nodeBeforeCursor||t.nodeAfterCursor)&&a.cursorNodeText)if(f=a.cursorNodeStart,l=a.cursorNodeText,t.cursorNode)i=t.locStart(t.cursorNode),D=o.slice(i,t.locEnd(t.cursorNode));else{if(!t.nodeBeforeCursor&&!t.nodeAfterCursor)throw new Error("Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor");i=t.nodeBeforeCursor?t.locEnd(t.nodeBeforeCursor):0;let y=t.nodeAfterCursor?t.locStart(t.nodeAfterCursor):o.length;D=o.slice(i,y)}else i=0,D=o,f=0,l=a.formatted;let d=t.cursorOffset-i;if(D===l)return{formatted:a.formatted,cursorOffset:f+d,comments:s};let c=D.split("");c.splice(d,0,Tn);let p=l.split(""),F=Ut(c,p),C=f;for(let y of F)if(y.removed){if(y.value.includes(Tn))break}else C+=y.count;return{formatted:a.formatted,cursorOffset:C,comments:s}}return{formatted:a.formatted,cursorOffset:-1,comments:s}}async function Ya(e,t){let{ast:u,text:r}=await Fe(e,t),[o,n]=Bn(r,t,u)??[0,0],a=r.slice(o,n),s=Math.min(o,r.lastIndexOf(` +`,o)+1),i=r.slice(s,o).match(/^\s*/u)[0],D=he(i,t.tabWidth),f=await On(a,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>o&&t.cursorOffset<=n?t.cursorOffset-o:-1,endOfLine:"lf"},D),l=f.formatted.trimEnd(),{cursorOffset:d}=t;d>n?d+=l.length-a.length:f.cursorOffset>=0&&(d=f.cursorOffset+o);let c=r.slice(0,o)+l+r.slice(n);if(t.endOfLine!=="lf"){let p=Se(t.endOfLine);d>=0&&p===`\r +`&&(d+=$t(c.slice(0,d),` +`)),c=oe(0,c,` +`,p)}return{formatted:c,cursorOffset:d,comments:f.comments}}function Nu(e,t,u){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?u:t}function Nn(e,t){let{cursorOffset:u,rangeStart:r,rangeEnd:o}=t;return u=Nu(e,u,-1),r=Nu(e,r,0),o=Nu(e,o,e.length),{...t,cursorOffset:u,rangeStart:r,rangeEnd:o}}function Pn(e,t){let{cursorOffset:u,rangeStart:r,rangeEnd:o,endOfLine:n}=Nn(e,t),a=e.charAt(0)===wn;if(a&&(e=e.slice(1),u--,r--,o--),n==="auto"&&(n=Yu(e)),e.includes("\r")){let s=i=>$t(e.slice(0,Math.max(i,0)),`\r +`);u-=s(u),r-=s(r),o-=s(o),e=ju(e)}return{hasBOM:a,text:e,options:Nn(e,{...t,cursorOffset:u,rangeStart:r,rangeEnd:o,endOfLine:n})}}async function Sn(e,t){let u=await We(t);return!u.hasPragma||u.hasPragma(e)}async function ja(e,t){return(await We(t)).hasIgnorePragma?.(e)}async function Su(e,t){let{hasBOM:u,text:r,options:o}=Pn(e,await se(t));if(o.rangeStart>=o.rangeEnd&&r!==""||o.requirePragma&&!await Sn(r,o)||o.checkIgnorePragma&&await ja(r,o))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let n;return o.rangeStart>0||o.rangeEnd=0&&n.cursorOffset++),n}async function In(e,t,u){let{text:r,options:o}=Pn(e,await se(t)),n=await Fe(r,o);return u&&(u.preprocessForPrint&&(n.ast=await xu(n.ast,o)),u.massage&&(n.ast=yn(n.ast,o))),n}async function kn(e,t){t=await se(t);let u=await Ge(e,t);return Ce(u,t)}async function vn(e,t){let u=sr(e),{formatted:r}=await Su(u,{...t,parser:"__js_expression"});return r}async function Rn(e,t){t=await se(t);let{ast:u}=await Fe(e,t);return t.cursorOffset>=0&&(t={...t,...Bu(u,t)}),Ge(u,t)}async function Ln(e,t){return Ce(e,await se(t))}var wu={};Yt(wu,{builders:()=>Wa,printer:()=>$a,utils:()=>Va});var Wa={join:Ie,line:ut,softline:or,hardline:V,literalline:Qe,group:Kt,conditionalGroup:tr,fill:er,lineSuffix:ve,lineSuffixBoundary:ar,cursor:ee,breakParent:ce,ifBreak:ur,trim:ir,indent:ae,indentIfBreak:rr,align:De,addAlignmentToDoc:tt,markAsRoot:et,dedentToRoot:Qu,dedent:Zu,hardlineWithoutBreakParent:ke,literallineWithoutBreakParent:Gt,label:nr,concat:e=>e},$a={printDocToString:Ce},Va={willBreak:Ku,traverseDoc:we,findInDoc:Xe,mapDoc:Pe,removeLines:zu,stripTrailingHardline:qe,replaceEndOfLine:Ju,canBreak:Hu};var Mn="3.8.4";var Pu={};Yt(Pu,{addDanglingComment:()=>ue,addLeadingComment:()=>fe,addTrailingComment:()=>le,getAlignmentSize:()=>he,getIndentSize:()=>Yn,getMaxContinuousCount:()=>jn,getNextNonSpaceNonCommentCharacter:()=>Un,getNextNonSpaceNonCommentCharacterIndex:()=>ni,getPreferredQuote:()=>Vn,getStringWidth:()=>Re,hasNewline:()=>z,hasNewlineInRange:()=>Kn,hasSpaces:()=>Gn,isNextLineEmpty:()=>Di,isNextLineEmptyAfterIndex:()=>kt,isPreviousLineEmpty:()=>ai,makeString:()=>si,skip:()=>ye,skipEverythingButNewLine:()=>ot,skipInlineComment:()=>xe,skipNewline:()=>K,skipSpaces:()=>Y,skipToLineEnd:()=>nt,skipTrailingComment:()=>Be,skipWhitespace:()=>Fr});function Ka(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let u=t+2;uMath.max(r,o.length),0)/t.length}var jn=Xa;function qa(e,t){let u=ze(e,t);return u===!1?"":e.charAt(u)}var Un=qa;var Wn=Object.freeze({character:"'",codePoint:39}),$n=Object.freeze({character:'"',codePoint:34}),Qa=Object.freeze({preferred:Wn,alternate:$n}),Za=Object.freeze({preferred:$n,alternate:Wn});function ei(e,t){let{preferred:u,alternate:r}=t===!0||t==="'"?Qa:Za,{length:o}=e,n=0,a=0;for(let s=0;sa?r:u).character}var Vn=ei;function ti(e,t,u){for(let r=t;rs===r?s:i===t?"\\"+i:i||(u&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(s)?s:"\\"+s));return t+n+t}function Di(e,t){return arguments.length===2||typeof t=="number"?kt(e,t):ii(...arguments)}function me(e,t=1){return async(...u)=>{let r=u[t]??{},o=r.plugins??[];return u[t]={...r,plugins:Array.isArray(o)?o:Object.values(o)},e(...u)}}var zn=me(Su);async function Jn(e,t){let{formatted:u}=await zn(e,{...t,cursorOffset:-1});return u}async function ci(e,t){return await Jn(e,t)===e}var fi=me(it,0),li={parse:me(In),formatAST:me(kn),formatDoc:me(vn),printToDoc:me(Rn),printDocToString:me(Ln)};export{li as __debug,ci as check,Hn as default,wu as doc,Jn as format,zn as formatWithCursor,fi as getSupportInfo,Pu as util,Mn as version}; diff --git a/node_modules/pretty-bytes/index.d.ts b/node_modules/pretty-bytes/index.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..4713e25c16ad1226612ffadba8f70b9fa85d921c --- /dev/null +++ b/node_modules/pretty-bytes/index.d.ts @@ -0,0 +1,140 @@ +export type Options = { + /** + Include plus sign for positive numbers. If the difference is exactly zero a space character will be prepended instead for better alignment. + + @default false + */ + readonly signed?: boolean; + + /** + - If `false`: Output won't be localized. + - If `true`: Localize the output using the system/browser locale. + - If `string`: Expects a [BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) (For example: `en`, `de`, …) + - If `string[]`: Expects a list of [BCP 47 language tags](https://en.wikipedia.org/wiki/IETF_language_tag) (For example: `en`, `de`, …) + + @default false + */ + readonly locale?: boolean | string | readonly string[]; + + /** + Format the number as [bits](https://en.wikipedia.org/wiki/Bit) instead of [bytes](https://en.wikipedia.org/wiki/Byte). This can be useful when, for example, referring to [bit rate](https://en.wikipedia.org/wiki/Bit_rate). + + @default false + + @example + ``` + import prettyBytes from 'pretty-bytes'; + + prettyBytes(1337, {bits: true}); + //=> '1.34 kbit' + ``` + */ + readonly bits?: boolean; + + /** + Format the number using the [Binary Prefix](https://en.wikipedia.org/wiki/Binary_prefix) instead of the [SI Prefix](https://en.wikipedia.org/wiki/SI_prefix). This can be useful for presenting memory amounts. However, this should not be used for presenting file sizes. + + @default false + + @example + ``` + import prettyBytes from 'pretty-bytes'; + + prettyBytes(1000, {binary: true}); + //=> '1000 bit' + + prettyBytes(1024, {binary: true}); + //=> '1 kiB' + ``` + */ + readonly binary?: boolean; + + /** + The minimum number of fraction digits to display. + + If neither `minimumFractionDigits` or `maximumFractionDigits` are set, the default behavior is to round to 3 significant digits. + + @default undefined + + @example + ``` + import prettyBytes from 'pretty-bytes'; + + // Show the number with at least 3 fractional digits + prettyBytes(1900, {minimumFractionDigits: 3}); + //=> '1.900 kB' + + prettyBytes(1900); + //=> '1.9 kB' + ``` + */ + readonly minimumFractionDigits?: number; + + /** + The maximum number of fraction digits to display. + + If neither `minimumFractionDigits` or `maximumFractionDigits` are set, the default behavior is to round to 3 significant digits. + + @default undefined + + @example + ``` + import prettyBytes from 'pretty-bytes'; + + // Show the number with at most 1 fractional digit + prettyBytes(1920, {maximumFractionDigits: 1}); + //=> '1.9 kB' + + prettyBytes(1920); + //=> '1.92 kB' + ``` + */ + readonly maximumFractionDigits?: number; + + /** + Put a space between the number and unit. + + @default true + + @example + ``` + import prettyBytes from 'pretty-bytes'; + + prettyBytes(1920, {space: false}); + //=> '1.9kB' + + prettyBytes(1920); + //=> '1.92 kB' + ``` + */ + readonly space?: boolean; +}; + +/** +Convert bytes to a human readable string: `1337` → `1.34 kB`. + +@param number - The number to format. + +@example +``` +import prettyBytes from 'pretty-bytes'; + +prettyBytes(1337); +//=> '1.34 kB' + +prettyBytes(100); +//=> '100 B' + +// Display file size differences +prettyBytes(42, {signed: true}); +//=> '+42 B' + +// Localized output using German locale +prettyBytes(1337, {locale: 'de'}); +//=> '1,34 kB' +``` +*/ +export default function prettyBytes( + number: number, + options?: Options +): string; diff --git a/node_modules/pretty-bytes/index.js b/node_modules/pretty-bytes/index.js new file mode 100644 index 0000000000000000000000000000000000000000..945e928328f4b033b22808647abc68a49b6ee033 --- /dev/null +++ b/node_modules/pretty-bytes/index.js @@ -0,0 +1,122 @@ +const BYTE_UNITS = [ + 'B', + 'kB', + 'MB', + 'GB', + 'TB', + 'PB', + 'EB', + 'ZB', + 'YB', +]; + +const BIBYTE_UNITS = [ + 'B', + 'KiB', + 'MiB', + 'GiB', + 'TiB', + 'PiB', + 'EiB', + 'ZiB', + 'YiB', +]; + +const BIT_UNITS = [ + 'b', + 'kbit', + 'Mbit', + 'Gbit', + 'Tbit', + 'Pbit', + 'Ebit', + 'Zbit', + 'Ybit', +]; + +const BIBIT_UNITS = [ + 'b', + 'kibit', + 'Mibit', + 'Gibit', + 'Tibit', + 'Pibit', + 'Eibit', + 'Zibit', + 'Yibit', +]; + +/* +Formats the given number using `Number#toLocaleString`. +- If locale is a string, the value is expected to be a locale-key (for example: `de`). +- If locale is true, the system default locale is used for translation. +- If no value for locale is specified, the number is returned unmodified. +*/ +const toLocaleString = (number, locale, options) => { + let result = number; + if (typeof locale === 'string' || Array.isArray(locale)) { + result = number.toLocaleString(locale, options); + } else if (locale === true || options !== undefined) { + result = number.toLocaleString(undefined, options); + } + + return result; +}; + +export default function prettyBytes(number, options) { + if (!Number.isFinite(number)) { + throw new TypeError(`Expected a finite number, got ${typeof number}: ${number}`); + } + + options = { + bits: false, + binary: false, + space: true, + ...options, + }; + + const UNITS = options.bits + ? (options.binary ? BIBIT_UNITS : BIT_UNITS) + : (options.binary ? BIBYTE_UNITS : BYTE_UNITS); + + const separator = options.space ? ' ' : ''; + + if (options.signed && number === 0) { + return ` 0${separator}${UNITS[0]}`; + } + + const isNegative = number < 0; + const prefix = isNegative ? '-' : (options.signed ? '+' : ''); + + if (isNegative) { + number = -number; + } + + let localeOptions; + + if (options.minimumFractionDigits !== undefined) { + localeOptions = {minimumFractionDigits: options.minimumFractionDigits}; + } + + if (options.maximumFractionDigits !== undefined) { + localeOptions = {maximumFractionDigits: options.maximumFractionDigits, ...localeOptions}; + } + + if (number < 1) { + const numberString = toLocaleString(number, options.locale, localeOptions); + return prefix + numberString + separator + UNITS[0]; + } + + const exponent = Math.min(Math.floor(options.binary ? Math.log(number) / Math.log(1024) : Math.log10(number) / 3), UNITS.length - 1); + number /= (options.binary ? 1024 : 1000) ** exponent; + + if (!localeOptions) { + number = number.toPrecision(3); + } + + const numberString = toLocaleString(Number(number), options.locale, localeOptions); + + const unit = UNITS[exponent]; + + return prefix + numberString + separator + unit; +} diff --git a/node_modules/pretty-bytes/license b/node_modules/pretty-bytes/license new file mode 100644 index 0000000000000000000000000000000000000000..fa7ceba3eb4a9657a9db7f3ffca4e4e97a9019de --- /dev/null +++ b/node_modules/pretty-bytes/license @@ -0,0 +1,9 @@ +MIT License + +Copyright (c) Sindre Sorhus (https://sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/pretty-bytes/package.json b/node_modules/pretty-bytes/package.json new file mode 100644 index 0000000000000000000000000000000000000000..6a57e3b5f316b0efae59da1eb871457e792eb881 --- /dev/null +++ b/node_modules/pretty-bytes/package.json @@ -0,0 +1,47 @@ +{ + "name": "pretty-bytes", + "version": "6.1.1", + "description": "Convert bytes to a human readable string: 1337 → 1.34 kB", + "license": "MIT", + "repository": "sindresorhus/pretty-bytes", + "funding": "https://github.com/sponsors/sindresorhus", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "https://sindresorhus.com" + }, + "type": "module", + "exports": "./index.js", + "types": "./index.d.ts", + "engines": { + "node": "^14.13.1 || >=16.0.0" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "pretty", + "bytes", + "byte", + "filesize", + "size", + "file", + "human", + "humanized", + "readable", + "si", + "data", + "locale", + "localization", + "localized" + ], + "devDependencies": { + "ava": "^4.0.1", + "tsd": "^0.19.1", + "xo": "^0.54.0" + } +} diff --git a/node_modules/pretty-bytes/readme.md b/node_modules/pretty-bytes/readme.md new file mode 100644 index 0000000000000000000000000000000000000000..e9cba3403c0c688fdcbda56887737e8cfc2f7b44 --- /dev/null +++ b/node_modules/pretty-bytes/readme.md @@ -0,0 +1,146 @@ +# pretty-bytes + +> Convert bytes to a human readable string: `1337` → `1.34 kB` + +Useful for displaying file sizes for humans. + +*Note that it uses base-10 (e.g. kilobyte). +[Read about the difference between kilobyte and kibibyte.](https://web.archive.org/web/20150324153922/https://pacoup.com/2009/05/26/kb-kb-kib-whats-up-with-that/)* + +## Install + +```sh +npm install pretty-bytes +``` + +## Usage + +```js +import prettyBytes from 'pretty-bytes'; + +prettyBytes(1337); +//=> '1.34 kB' + +prettyBytes(100); +//=> '100 B' + +// Display with units of bits +prettyBytes(1337, {bits: true}); +//=> '1.34 kbit' + +// Display file size differences +prettyBytes(42, {signed: true}); +//=> '+42 B' + +// Localized output using German locale +prettyBytes(1337, {locale: 'de'}); +//=> '1,34 kB' +``` + +## API + +### prettyBytes(number, options?) + +#### number + +Type: `number` + +The number to format. + +#### options + +Type: `object` + +##### signed + +Type: `boolean`\ +Default: `false` + +Include plus sign for positive numbers. If the difference is exactly zero a space character will be prepended instead for better alignment. + +##### bits + +Type: `boolean`\ +Default: `false` + +Format the number as [bits](https://en.wikipedia.org/wiki/Bit) instead of [bytes](https://en.wikipedia.org/wiki/Byte). This can be useful when, for example, referring to [bit rate](https://en.wikipedia.org/wiki/Bit_rate). + +##### binary + +Type: `boolean`\ +Default: `false` + +Format the number using the [Binary Prefix](https://en.wikipedia.org/wiki/Binary_prefix) instead of the [SI Prefix](https://en.wikipedia.org/wiki/SI_prefix). This can be useful for presenting memory amounts. However, this should not be used for presenting file sizes. + +##### locale + +Type: `boolean | string`\ +Default: `false` *(No localization)* + +**Important:** Only the number and decimal separator are localized. The unit title is not and will not be localized. + +- If `true`: Localize the output using the system/browser locale. +- If `string`: Expects a [BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) (For example: `en`, `de`, …) +- If `string[]`: Expects a list of [BCP 47 language tags](https://en.wikipedia.org/wiki/IETF_language_tag) (For example: `en`, `de`, …) + +##### minimumFractionDigits + +Type: `number`\ +Default: `undefined` + +The minimum number of fraction digits to display. + +If neither `minimumFractionDigits` or `maximumFractionDigits` are set, the default behavior is to round to 3 significant digits. + +```js +import prettyBytes from 'pretty-bytes'; + +// Show the number with at least 3 fractional digits +prettyBytes(1900, {minimumFractionDigits: 3}); +//=> '1.900 kB' + +prettyBytes(1900); +//=> '1.9 kB' +``` + +##### maximumFractionDigits + +Type: `number`\ +Default: `undefined` + +The maximum number of fraction digits to display. + +If neither `minimumFractionDigits` or `maximumFractionDigits` are set, the default behavior is to round to 3 significant digits. + +```js +import prettyBytes from 'pretty-bytes'; + +// Show the number with at most 1 fractional digit +prettyBytes(1920, {maximumFractionDigits: 1}); +//=> '1.9 kB' + +prettyBytes(1920); +//=> '1.92 kB' +``` + +##### space + +Type: `boolean`\ +Default: `true` + +Put a space between the number and unit. + +```js +import prettyBytes from 'pretty-bytes'; + +prettyBytes(1920, {space: false}); +//=> '1.9kB' + +prettyBytes(1920); +//=> '1.92 kB' +``` + +## Related + +- [pretty-bytes-cli](https://github.com/sindresorhus/pretty-bytes-cli) - CLI for this module +- [pretty-ms](https://github.com/sindresorhus/pretty-ms) - Convert milliseconds to a human readable string diff --git a/node_modules/pretty-format/LICENSE b/node_modules/pretty-format/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..b96dcb0480a0b0be0727976e5202a1e7b23edc3f --- /dev/null +++ b/node_modules/pretty-format/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Facebook, Inc. and its affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/node_modules/pretty-format/README.md b/node_modules/pretty-format/README.md new file mode 100644 index 0000000000000000000000000000000000000000..c5cb0041dbfa0e1e4bda5467260c879107d6704c --- /dev/null +++ b/node_modules/pretty-format/README.md @@ -0,0 +1,458 @@ +# pretty-format + +Stringify any JavaScript value. + +- Serialize built-in JavaScript types. +- Serialize application-specific data types with built-in or user-defined plugins. + +## Installation + +```sh +$ yarn add pretty-format +``` + +## Usage + +```js +const {format: prettyFormat} = require('pretty-format'); // CommonJS +``` + +```js +import {format as prettyFormat} from 'pretty-format'; // ES2015 modules +``` + +```js +const val = {object: {}}; +val.circularReference = val; +val[Symbol('foo')] = 'foo'; +val.map = new Map([['prop', 'value']]); +val.array = [-0, Infinity, NaN]; + +console.log(prettyFormat(val)); +/* +Object { + "array": Array [ + -0, + Infinity, + NaN, + ], + "circularReference": [Circular], + "map": Map { + "prop" => "value", + }, + "object": Object {}, + Symbol(foo): "foo", +} +*/ +``` + +## Usage with options + +```js +function onClick() {} + +console.log(prettyFormat(onClick)); +/* +[Function onClick] +*/ + +const options = { + printFunctionName: false, +}; +console.log(prettyFormat(onClick, options)); +/* +[Function] +*/ +``` + + +| key | type | default | description | +| :-------------------- | :-------- | :--------- | :------------------------------------------------------ | +| `callToJSON` | `boolean` | `true` | call `toJSON` method (if it exists) on objects | +| `compareKeys` | `function`| `undefined`| compare function used when sorting object keys | +| `escapeRegex` | `boolean` | `false` | escape special characters in regular expressions | +| `escapeString` | `boolean` | `true` | escape special characters in strings | +| `highlight` | `boolean` | `false` | highlight syntax with colors in terminal (some plugins) | +| `indent` | `number` | `2` | spaces in each level of indentation | +| `maxDepth` | `number` | `Infinity` | levels to print in arrays, objects, elements, and so on | +| `min` | `boolean` | `false` | minimize added space: no indentation nor line breaks | +| `plugins` | `array` | `[]` | plugins to serialize application-specific data types | +| `printBasicPrototype` | `boolean` | `false` | print the prototype for plain objects and arrays | +| `printFunctionName` | `boolean` | `true` | include or omit the name of a function | +| `theme` | `object` | | colors to highlight syntax in terminal | + +Property values of `theme` are from [ansi-styles colors](https://github.com/chalk/ansi-styles#colors) + +```js +const DEFAULT_THEME = { + comment: 'gray', + content: 'reset', + prop: 'yellow', + tag: 'cyan', + value: 'green', +}; +``` + +## Usage with plugins + +The `pretty-format` package provides some built-in plugins, including: + +- `ReactElement` for elements from `react` +- `ReactTestComponent` for test objects from `react-test-renderer` + +```js +// CommonJS +const React = require('react'); +const renderer = require('react-test-renderer'); +const {format: prettyFormat, plugins} = require('pretty-format'); + +const {ReactElement, ReactTestComponent} = plugins; +``` + +```js +// ES2015 modules and destructuring assignment +import React from 'react'; +import renderer from 'react-test-renderer'; +import {plugins, format as prettyFormat} from 'pretty-format'; + +const {ReactElement, ReactTestComponent} = plugins; +``` + +```js +const onClick = () => {}; +const element = React.createElement('button', {onClick}, 'Hello World'); + +const formatted1 = prettyFormat(element, { + plugins: [ReactElement], + printFunctionName: false, +}); +const formatted2 = prettyFormat(renderer.create(element).toJSON(), { + plugins: [ReactTestComponent], + printFunctionName: false, +}); +/* + +*/ +``` + +## Usage in Jest + +For snapshot tests, Jest uses `pretty-format` with options that include some of its built-in plugins. For this purpose, plugins are also known as **snapshot serializers**. + +To serialize application-specific data types, you can add modules to `devDependencies` of a project, and then: + +In an **individual** test file, you can add a module as follows. It precedes any modules from Jest configuration. + +```js +import serializer from 'my-serializer-module'; +expect.addSnapshotSerializer(serializer); + +// tests which have `expect(value).toMatchSnapshot()` assertions +``` + +For **all** test files, you can specify modules in Jest configuration. They precede built-in plugins for React, HTML, and Immutable.js data types. For example, in a `package.json` file: + +```json +{ + "jest": { + "snapshotSerializers": ["my-serializer-module"] + } +} +``` + +## Writing plugins + +A plugin is a JavaScript object. + +If `options` has a `plugins` array: for the first plugin whose `test(val)` method returns a truthy value, then `prettyFormat(val, options)` returns the result from either: + +- `serialize(val, …)` method of the **improved** interface (available in **version 21** or later) +- `print(val, …)` method of the **original** interface (if plugin does not have `serialize` method) + +### test + +Write `test` so it can receive `val` argument of any type. To serialize **objects** which have certain properties, then a guarded expression like `val != null && …` or more concise `val && …` prevents the following errors: + +- `TypeError: Cannot read property 'whatever' of null` +- `TypeError: Cannot read property 'whatever' of undefined` + +For example, `test` method of built-in `ReactElement` plugin: + +```js +const elementSymbol = Symbol.for('react.element'); +const test = val => val && val.$$typeof === elementSymbol; +``` + +Pay attention to efficiency in `test` because `pretty-format` calls it often. + +### serialize + +The **improved** interface is available in **version 21** or later. + +Write `serialize` to return a string, given the arguments: + +- `val` which “passed the test” +- unchanging `config` object: derived from `options` +- current `indentation` string: concatenate to `indent` from `config` +- current `depth` number: compare to `maxDepth` from `config` +- current `refs` array: find circular references in objects +- `printer` callback function: serialize children + +### config + + +| key | type | description | +| :------------------ | :-------- | :------------------------------------------------------ | +| `callToJSON` | `boolean` | call `toJSON` method (if it exists) on objects | +| `compareKeys` | `function`| compare function used when sorting object keys | +| `colors` | `Object` | escape codes for colors to highlight syntax | +| `escapeRegex` | `boolean` | escape special characters in regular expressions | +| `escapeString` | `boolean` | escape special characters in strings | +| `indent` | `string` | spaces in each level of indentation | +| `maxDepth` | `number` | levels to print in arrays, objects, elements, and so on | +| `min` | `boolean` | minimize added space: no indentation nor line breaks | +| `plugins` | `array` | plugins to serialize application-specific data types | +| `printFunctionName` | `boolean` | include or omit the name of a function | +| `spacingInner` | `strong` | spacing to separate items in a list | +| `spacingOuter` | `strong` | spacing to enclose a list of items | + +Each property of `colors` in `config` corresponds to a property of `theme` in `options`: + +- the key is the same (for example, `tag`) +- the value in `colors` is a object with `open` and `close` properties whose values are escape codes from [ansi-styles](https://github.com/chalk/ansi-styles) for the color value in `theme` (for example, `'cyan'`) + +Some properties in `config` are derived from `min` in `options`: + +- `spacingInner` and `spacingOuter` are **newline** if `min` is `false` +- `spacingInner` is **space** and `spacingOuter` is **empty string** if `min` is `true` + +### Example of serialize and test + +This plugin is a pattern you can apply to serialize composite data types. Side note: `pretty-format` does not need a plugin to serialize arrays. + +```js +// We reused more code when we factored out a function for child items +// that is independent of depth, name, and enclosing punctuation (see below). +const SEPARATOR = ','; +function serializeItems(items, config, indentation, depth, refs, printer) { + if (items.length === 0) { + return ''; + } + const indentationItems = indentation + config.indent; + return ( + config.spacingOuter + + items + .map( + item => + indentationItems + + printer(item, config, indentationItems, depth, refs), // callback + ) + .join(SEPARATOR + config.spacingInner) + + (config.min ? '' : SEPARATOR) + // following the last item + config.spacingOuter + + indentation + ); +} + +const plugin = { + test(val) { + return Array.isArray(val); + }, + serialize(array, config, indentation, depth, refs, printer) { + const name = array.constructor.name; + return ++depth > config.maxDepth + ? '[' + name + ']' + : (config.min ? '' : name + ' ') + + '[' + + serializeItems(array, config, indentation, depth, refs, printer) + + ']'; + }, +}; +``` + +```js +const val = { + filter: 'completed', + items: [ + { + text: 'Write test', + completed: true, + }, + { + text: 'Write serialize', + completed: true, + }, + ], +}; +``` + +```js +console.log( + prettyFormat(val, { + plugins: [plugin], + }), +); +/* +Object { + "filter": "completed", + "items": Array [ + Object { + "completed": true, + "text": "Write test", + }, + Object { + "completed": true, + "text": "Write serialize", + }, + ], +} +*/ +``` + +```js +console.log( + prettyFormat(val, { + indent: 4, + plugins: [plugin], + }), +); +/* +Object { + "filter": "completed", + "items": Array [ + Object { + "completed": true, + "text": "Write test", + }, + Object { + "completed": true, + "text": "Write serialize", + }, + ], +} +*/ +``` + +```js +console.log( + prettyFormat(val, { + maxDepth: 1, + plugins: [plugin], + }), +); +/* +Object { + "filter": "completed", + "items": [Array], +} +*/ +``` + +```js +console.log( + prettyFormat(val, { + min: true, + plugins: [plugin], + }), +); +/* +{"filter": "completed", "items": [{"completed": true, "text": "Write test"}, {"completed": true, "text": "Write serialize"}]} +*/ +``` + +### print + +The **original** interface is adequate for plugins: + +- that **do not** depend on options other than `highlight` or `min` +- that **do not** depend on `depth` or `refs` in recursive traversal, and +- if values either + - do **not** require indentation, or + - do **not** occur as children of JavaScript data structures (for example, array) + +Write `print` to return a string, given the arguments: + +- `val` which “passed the test” +- current `printer(valChild)` callback function: serialize children +- current `indenter(lines)` callback function: indent lines at the next level +- unchanging `config` object: derived from `options` +- unchanging `colors` object: derived from `options` + +The 3 properties of `config` are `min` in `options` and: + +- `spacing` and `edgeSpacing` are **newline** if `min` is `false` +- `spacing` is **space** and `edgeSpacing` is **empty string** if `min` is `true` + +Each property of `colors` corresponds to a property of `theme` in `options`: + +- the key is the same (for example, `tag`) +- the value in `colors` is a object with `open` and `close` properties whose values are escape codes from [ansi-styles](https://github.com/chalk/ansi-styles) for the color value in `theme` (for example, `'cyan'`) + +### Example of print and test + +This plugin prints functions with the **number of named arguments** excluding rest argument. + +```js +const plugin = { + print(val) { + return `[Function ${val.name || 'anonymous'} ${val.length}]`; + }, + test(val) { + return typeof val === 'function'; + }, +}; +``` + +```js +const val = { + onClick(event) {}, + render() {}, +}; + +prettyFormat(val, { + plugins: [plugin], +}); +/* +Object { + "onClick": [Function onClick 1], + "render": [Function render 0], +} +*/ + +prettyFormat(val); +/* +Object { + "onClick": [Function onClick], + "render": [Function render], +} +*/ +``` + +This plugin **ignores** the `printFunctionName` option. That limitation of the original `print` interface is a reason to use the improved `serialize` interface, described above. + +```js +prettyFormat(val, { + plugins: [pluginOld], + printFunctionName: false, +}); +/* +Object { + "onClick": [Function onClick 1], + "render": [Function render 0], +} +*/ + +prettyFormat(val, { + printFunctionName: false, +}); +/* +Object { + "onClick": [Function], + "render": [Function], +} +*/ +``` diff --git a/node_modules/pretty-format/build/collections.d.ts b/node_modules/pretty-format/build/collections.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..eaf7e611efe64ef2e8f482872218cbde21f07545 --- /dev/null +++ b/node_modules/pretty-format/build/collections.d.ts @@ -0,0 +1,32 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + */ +import type { Config, Printer, Refs } from './types'; +/** + * Return entries (for example, of a map) + * with spacing, indentation, and comma + * without surrounding punctuation (for example, braces) + */ +export declare function printIteratorEntries(iterator: Iterator<[unknown, unknown]>, config: Config, indentation: string, depth: number, refs: Refs, printer: Printer, separator?: string): string; +/** + * Return values (for example, of a set) + * with spacing, indentation, and comma + * without surrounding punctuation (braces or brackets) + */ +export declare function printIteratorValues(iterator: Iterator, config: Config, indentation: string, depth: number, refs: Refs, printer: Printer): string; +/** + * Return items (for example, of an array) + * with spacing, indentation, and comma + * without surrounding punctuation (for example, brackets) + **/ +export declare function printListItems(list: ArrayLike, config: Config, indentation: string, depth: number, refs: Refs, printer: Printer): string; +/** + * Return properties of an object + * with spacing, indentation, and comma + * without surrounding punctuation (for example, braces) + */ +export declare function printObjectProperties(val: Record, config: Config, indentation: string, depth: number, refs: Refs, printer: Printer): string; diff --git a/node_modules/pretty-format/build/collections.js b/node_modules/pretty-format/build/collections.js new file mode 100644 index 0000000000000000000000000000000000000000..004e349754a10615f9daff7349cee31c0f61a013 --- /dev/null +++ b/node_modules/pretty-format/build/collections.js @@ -0,0 +1,187 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { + value: true +}); +exports.printIteratorEntries = printIteratorEntries; +exports.printIteratorValues = printIteratorValues; +exports.printListItems = printListItems; +exports.printObjectProperties = printObjectProperties; + +/** + * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + */ +const getKeysOfEnumerableProperties = (object, compareKeys) => { + const keys = Object.keys(object).sort(compareKeys); + + if (Object.getOwnPropertySymbols) { + Object.getOwnPropertySymbols(object).forEach(symbol => { + if (Object.getOwnPropertyDescriptor(object, symbol).enumerable) { + keys.push(symbol); + } + }); + } + + return keys; +}; +/** + * Return entries (for example, of a map) + * with spacing, indentation, and comma + * without surrounding punctuation (for example, braces) + */ + +function printIteratorEntries( + iterator, + config, + indentation, + depth, + refs, + printer, // Too bad, so sad that separator for ECMAScript Map has been ' => ' + // What a distracting diff if you change a data structure to/from + // ECMAScript Object or Immutable.Map/OrderedMap which use the default. + separator = ': ' +) { + let result = ''; + let current = iterator.next(); + + if (!current.done) { + result += config.spacingOuter; + const indentationNext = indentation + config.indent; + + while (!current.done) { + const name = printer( + current.value[0], + config, + indentationNext, + depth, + refs + ); + const value = printer( + current.value[1], + config, + indentationNext, + depth, + refs + ); + result += indentationNext + name + separator + value; + current = iterator.next(); + + if (!current.done) { + result += ',' + config.spacingInner; + } else if (!config.min) { + result += ','; + } + } + + result += config.spacingOuter + indentation; + } + + return result; +} +/** + * Return values (for example, of a set) + * with spacing, indentation, and comma + * without surrounding punctuation (braces or brackets) + */ + +function printIteratorValues( + iterator, + config, + indentation, + depth, + refs, + printer +) { + let result = ''; + let current = iterator.next(); + + if (!current.done) { + result += config.spacingOuter; + const indentationNext = indentation + config.indent; + + while (!current.done) { + result += + indentationNext + + printer(current.value, config, indentationNext, depth, refs); + current = iterator.next(); + + if (!current.done) { + result += ',' + config.spacingInner; + } else if (!config.min) { + result += ','; + } + } + + result += config.spacingOuter + indentation; + } + + return result; +} +/** + * Return items (for example, of an array) + * with spacing, indentation, and comma + * without surrounding punctuation (for example, brackets) + **/ + +function printListItems(list, config, indentation, depth, refs, printer) { + let result = ''; + + if (list.length) { + result += config.spacingOuter; + const indentationNext = indentation + config.indent; + + for (let i = 0; i < list.length; i++) { + result += indentationNext; + + if (i in list) { + result += printer(list[i], config, indentationNext, depth, refs); + } + + if (i < list.length - 1) { + result += ',' + config.spacingInner; + } else if (!config.min) { + result += ','; + } + } + + result += config.spacingOuter + indentation; + } + + return result; +} +/** + * Return properties of an object + * with spacing, indentation, and comma + * without surrounding punctuation (for example, braces) + */ + +function printObjectProperties(val, config, indentation, depth, refs, printer) { + let result = ''; + const keys = getKeysOfEnumerableProperties(val, config.compareKeys); + + if (keys.length) { + result += config.spacingOuter; + const indentationNext = indentation + config.indent; + + for (let i = 0; i < keys.length; i++) { + const key = keys[i]; + const name = printer(key, config, indentationNext, depth, refs); + const value = printer(val[key], config, indentationNext, depth, refs); + result += indentationNext + name + ': ' + value; + + if (i < keys.length - 1) { + result += ',' + config.spacingInner; + } else if (!config.min) { + result += ','; + } + } + + result += config.spacingOuter + indentation; + } + + return result; +} diff --git a/node_modules/pretty-format/build/index.d.ts b/node_modules/pretty-format/build/index.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..f62f82f4a8d47c469a2a0051fc4172b1886e5db5 --- /dev/null +++ b/node_modules/pretty-format/build/index.d.ts @@ -0,0 +1,25 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +import type { NewPlugin, Options, OptionsReceived } from './types'; +export type { Colors, CompareKeys, Config, Options, OptionsReceived, OldPlugin, NewPlugin, Plugin, Plugins, PrettyFormatOptions, Printer, Refs, Theme, } from './types'; +export declare const DEFAULT_OPTIONS: Options; +/** + * Returns a presentation string of your `val` object + * @param val any potential JavaScript object + * @param options Custom settings + */ +export declare function format(val: unknown, options?: OptionsReceived): string; +export declare const plugins: { + AsymmetricMatcher: NewPlugin; + ConvertAnsi: NewPlugin; + DOMCollection: NewPlugin; + DOMElement: NewPlugin; + Immutable: NewPlugin; + ReactElement: NewPlugin; + ReactTestComponent: NewPlugin; +}; +export default format; diff --git a/node_modules/pretty-format/build/index.js b/node_modules/pretty-format/build/index.js new file mode 100644 index 0000000000000000000000000000000000000000..9ebfa6f874c537ec7bf2552b8381c0da89a21d67 --- /dev/null +++ b/node_modules/pretty-format/build/index.js @@ -0,0 +1,597 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { + value: true +}); +exports.default = exports.DEFAULT_OPTIONS = void 0; +exports.format = format; +exports.plugins = void 0; + +var _ansiStyles = _interopRequireDefault(require('ansi-styles')); + +var _collections = require('./collections'); + +var _AsymmetricMatcher = _interopRequireDefault( + require('./plugins/AsymmetricMatcher') +); + +var _ConvertAnsi = _interopRequireDefault(require('./plugins/ConvertAnsi')); + +var _DOMCollection = _interopRequireDefault(require('./plugins/DOMCollection')); + +var _DOMElement = _interopRequireDefault(require('./plugins/DOMElement')); + +var _Immutable = _interopRequireDefault(require('./plugins/Immutable')); + +var _ReactElement = _interopRequireDefault(require('./plugins/ReactElement')); + +var _ReactTestComponent = _interopRequireDefault( + require('./plugins/ReactTestComponent') +); + +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : {default: obj}; +} + +/** + * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +/* eslint-disable local/ban-types-eventually */ +const toString = Object.prototype.toString; +const toISOString = Date.prototype.toISOString; +const errorToString = Error.prototype.toString; +const regExpToString = RegExp.prototype.toString; +/** + * Explicitly comparing typeof constructor to function avoids undefined as name + * when mock identity-obj-proxy returns the key as the value for any key. + */ + +const getConstructorName = val => + (typeof val.constructor === 'function' && val.constructor.name) || 'Object'; +/* global window */ + +/** Is val is equal to global window object? Works even if it does not exist :) */ + +const isWindow = val => typeof window !== 'undefined' && val === window; + +const SYMBOL_REGEXP = /^Symbol\((.*)\)(.*)$/; +const NEWLINE_REGEXP = /\n/gi; + +class PrettyFormatPluginError extends Error { + constructor(message, stack) { + super(message); + this.stack = stack; + this.name = this.constructor.name; + } +} + +function isToStringedArrayType(toStringed) { + return ( + toStringed === '[object Array]' || + toStringed === '[object ArrayBuffer]' || + toStringed === '[object DataView]' || + toStringed === '[object Float32Array]' || + toStringed === '[object Float64Array]' || + toStringed === '[object Int8Array]' || + toStringed === '[object Int16Array]' || + toStringed === '[object Int32Array]' || + toStringed === '[object Uint8Array]' || + toStringed === '[object Uint8ClampedArray]' || + toStringed === '[object Uint16Array]' || + toStringed === '[object Uint32Array]' + ); +} + +function printNumber(val) { + return Object.is(val, -0) ? '-0' : String(val); +} + +function printBigInt(val) { + return String(`${val}n`); +} + +function printFunction(val, printFunctionName) { + if (!printFunctionName) { + return '[Function]'; + } + + return '[Function ' + (val.name || 'anonymous') + ']'; +} + +function printSymbol(val) { + return String(val).replace(SYMBOL_REGEXP, 'Symbol($1)'); +} + +function printError(val) { + return '[' + errorToString.call(val) + ']'; +} +/** + * The first port of call for printing an object, handles most of the + * data-types in JS. + */ + +function printBasicValue(val, printFunctionName, escapeRegex, escapeString) { + if (val === true || val === false) { + return '' + val; + } + + if (val === undefined) { + return 'undefined'; + } + + if (val === null) { + return 'null'; + } + + const typeOf = typeof val; + + if (typeOf === 'number') { + return printNumber(val); + } + + if (typeOf === 'bigint') { + return printBigInt(val); + } + + if (typeOf === 'string') { + if (escapeString) { + return '"' + val.replace(/"|\\/g, '\\$&') + '"'; + } + + return '"' + val + '"'; + } + + if (typeOf === 'function') { + return printFunction(val, printFunctionName); + } + + if (typeOf === 'symbol') { + return printSymbol(val); + } + + const toStringed = toString.call(val); + + if (toStringed === '[object WeakMap]') { + return 'WeakMap {}'; + } + + if (toStringed === '[object WeakSet]') { + return 'WeakSet {}'; + } + + if ( + toStringed === '[object Function]' || + toStringed === '[object GeneratorFunction]' + ) { + return printFunction(val, printFunctionName); + } + + if (toStringed === '[object Symbol]') { + return printSymbol(val); + } + + if (toStringed === '[object Date]') { + return isNaN(+val) ? 'Date { NaN }' : toISOString.call(val); + } + + if (toStringed === '[object Error]') { + return printError(val); + } + + if (toStringed === '[object RegExp]') { + if (escapeRegex) { + // https://github.com/benjamingr/RegExp.escape/blob/main/polyfill.js + return regExpToString.call(val).replace(/[\\^$*+?.()|[\]{}]/g, '\\$&'); + } + + return regExpToString.call(val); + } + + if (val instanceof Error) { + return printError(val); + } + + return null; +} +/** + * Handles more complex objects ( such as objects with circular references. + * maps and sets etc ) + */ + +function printComplexValue( + val, + config, + indentation, + depth, + refs, + hasCalledToJSON +) { + if (refs.indexOf(val) !== -1) { + return '[Circular]'; + } + + refs = refs.slice(); + refs.push(val); + const hitMaxDepth = ++depth > config.maxDepth; + const min = config.min; + + if ( + config.callToJSON && + !hitMaxDepth && + val.toJSON && + typeof val.toJSON === 'function' && + !hasCalledToJSON + ) { + return printer(val.toJSON(), config, indentation, depth, refs, true); + } + + const toStringed = toString.call(val); + + if (toStringed === '[object Arguments]') { + return hitMaxDepth + ? '[Arguments]' + : (min ? '' : 'Arguments ') + + '[' + + (0, _collections.printListItems)( + val, + config, + indentation, + depth, + refs, + printer + ) + + ']'; + } + + if (isToStringedArrayType(toStringed)) { + return hitMaxDepth + ? '[' + val.constructor.name + ']' + : (min + ? '' + : !config.printBasicPrototype && val.constructor.name === 'Array' + ? '' + : val.constructor.name + ' ') + + '[' + + (0, _collections.printListItems)( + val, + config, + indentation, + depth, + refs, + printer + ) + + ']'; + } + + if (toStringed === '[object Map]') { + return hitMaxDepth + ? '[Map]' + : 'Map {' + + (0, _collections.printIteratorEntries)( + val.entries(), + config, + indentation, + depth, + refs, + printer, + ' => ' + ) + + '}'; + } + + if (toStringed === '[object Set]') { + return hitMaxDepth + ? '[Set]' + : 'Set {' + + (0, _collections.printIteratorValues)( + val.values(), + config, + indentation, + depth, + refs, + printer + ) + + '}'; + } // Avoid failure to serialize global window object in jsdom test environment. + // For example, not even relevant if window is prop of React element. + + return hitMaxDepth || isWindow(val) + ? '[' + getConstructorName(val) + ']' + : (min + ? '' + : !config.printBasicPrototype && getConstructorName(val) === 'Object' + ? '' + : getConstructorName(val) + ' ') + + '{' + + (0, _collections.printObjectProperties)( + val, + config, + indentation, + depth, + refs, + printer + ) + + '}'; +} + +function isNewPlugin(plugin) { + return plugin.serialize != null; +} + +function printPlugin(plugin, val, config, indentation, depth, refs) { + let printed; + + try { + printed = isNewPlugin(plugin) + ? plugin.serialize(val, config, indentation, depth, refs, printer) + : plugin.print( + val, + valChild => printer(valChild, config, indentation, depth, refs), + str => { + const indentationNext = indentation + config.indent; + return ( + indentationNext + + str.replace(NEWLINE_REGEXP, '\n' + indentationNext) + ); + }, + { + edgeSpacing: config.spacingOuter, + min: config.min, + spacing: config.spacingInner + }, + config.colors + ); + } catch (error) { + throw new PrettyFormatPluginError(error.message, error.stack); + } + + if (typeof printed !== 'string') { + throw new Error( + `pretty-format: Plugin must return type "string" but instead returned "${typeof printed}".` + ); + } + + return printed; +} + +function findPlugin(plugins, val) { + for (let p = 0; p < plugins.length; p++) { + try { + if (plugins[p].test(val)) { + return plugins[p]; + } + } catch (error) { + throw new PrettyFormatPluginError(error.message, error.stack); + } + } + + return null; +} + +function printer(val, config, indentation, depth, refs, hasCalledToJSON) { + const plugin = findPlugin(config.plugins, val); + + if (plugin !== null) { + return printPlugin(plugin, val, config, indentation, depth, refs); + } + + const basicResult = printBasicValue( + val, + config.printFunctionName, + config.escapeRegex, + config.escapeString + ); + + if (basicResult !== null) { + return basicResult; + } + + return printComplexValue( + val, + config, + indentation, + depth, + refs, + hasCalledToJSON + ); +} + +const DEFAULT_THEME = { + comment: 'gray', + content: 'reset', + prop: 'yellow', + tag: 'cyan', + value: 'green' +}; +const DEFAULT_THEME_KEYS = Object.keys(DEFAULT_THEME); +const DEFAULT_OPTIONS = { + callToJSON: true, + compareKeys: undefined, + escapeRegex: false, + escapeString: true, + highlight: false, + indent: 2, + maxDepth: Infinity, + min: false, + plugins: [], + printBasicPrototype: true, + printFunctionName: true, + theme: DEFAULT_THEME +}; +exports.DEFAULT_OPTIONS = DEFAULT_OPTIONS; + +function validateOptions(options) { + Object.keys(options).forEach(key => { + if (!DEFAULT_OPTIONS.hasOwnProperty(key)) { + throw new Error(`pretty-format: Unknown option "${key}".`); + } + }); + + if (options.min && options.indent !== undefined && options.indent !== 0) { + throw new Error( + 'pretty-format: Options "min" and "indent" cannot be used together.' + ); + } + + if (options.theme !== undefined) { + if (options.theme === null) { + throw new Error('pretty-format: Option "theme" must not be null.'); + } + + if (typeof options.theme !== 'object') { + throw new Error( + `pretty-format: Option "theme" must be of type "object" but instead received "${typeof options.theme}".` + ); + } + } +} + +const getColorsHighlight = options => + DEFAULT_THEME_KEYS.reduce((colors, key) => { + const value = + options.theme && options.theme[key] !== undefined + ? options.theme[key] + : DEFAULT_THEME[key]; + const color = value && _ansiStyles.default[value]; + + if ( + color && + typeof color.close === 'string' && + typeof color.open === 'string' + ) { + colors[key] = color; + } else { + throw new Error( + `pretty-format: Option "theme" has a key "${key}" whose value "${value}" is undefined in ansi-styles.` + ); + } + + return colors; + }, Object.create(null)); + +const getColorsEmpty = () => + DEFAULT_THEME_KEYS.reduce((colors, key) => { + colors[key] = { + close: '', + open: '' + }; + return colors; + }, Object.create(null)); + +const getPrintFunctionName = options => + options && options.printFunctionName !== undefined + ? options.printFunctionName + : DEFAULT_OPTIONS.printFunctionName; + +const getEscapeRegex = options => + options && options.escapeRegex !== undefined + ? options.escapeRegex + : DEFAULT_OPTIONS.escapeRegex; + +const getEscapeString = options => + options && options.escapeString !== undefined + ? options.escapeString + : DEFAULT_OPTIONS.escapeString; + +const getConfig = options => { + var _options$printBasicPr; + + return { + callToJSON: + options && options.callToJSON !== undefined + ? options.callToJSON + : DEFAULT_OPTIONS.callToJSON, + colors: + options && options.highlight + ? getColorsHighlight(options) + : getColorsEmpty(), + compareKeys: + options && typeof options.compareKeys === 'function' + ? options.compareKeys + : DEFAULT_OPTIONS.compareKeys, + escapeRegex: getEscapeRegex(options), + escapeString: getEscapeString(options), + indent: + options && options.min + ? '' + : createIndent( + options && options.indent !== undefined + ? options.indent + : DEFAULT_OPTIONS.indent + ), + maxDepth: + options && options.maxDepth !== undefined + ? options.maxDepth + : DEFAULT_OPTIONS.maxDepth, + min: + options && options.min !== undefined ? options.min : DEFAULT_OPTIONS.min, + plugins: + options && options.plugins !== undefined + ? options.plugins + : DEFAULT_OPTIONS.plugins, + printBasicPrototype: + (_options$printBasicPr = + options === null || options === void 0 + ? void 0 + : options.printBasicPrototype) !== null && + _options$printBasicPr !== void 0 + ? _options$printBasicPr + : true, + printFunctionName: getPrintFunctionName(options), + spacingInner: options && options.min ? ' ' : '\n', + spacingOuter: options && options.min ? '' : '\n' + }; +}; + +function createIndent(indent) { + return new Array(indent + 1).join(' '); +} +/** + * Returns a presentation string of your `val` object + * @param val any potential JavaScript object + * @param options Custom settings + */ + +function format(val, options) { + if (options) { + validateOptions(options); + + if (options.plugins) { + const plugin = findPlugin(options.plugins, val); + + if (plugin !== null) { + return printPlugin(plugin, val, getConfig(options), '', 0, []); + } + } + } + + const basicResult = printBasicValue( + val, + getPrintFunctionName(options), + getEscapeRegex(options), + getEscapeString(options) + ); + + if (basicResult !== null) { + return basicResult; + } + + return printComplexValue(val, getConfig(options), '', 0, []); +} + +const plugins = { + AsymmetricMatcher: _AsymmetricMatcher.default, + ConvertAnsi: _ConvertAnsi.default, + DOMCollection: _DOMCollection.default, + DOMElement: _DOMElement.default, + Immutable: _Immutable.default, + ReactElement: _ReactElement.default, + ReactTestComponent: _ReactTestComponent.default +}; +exports.plugins = plugins; +var _default = format; +exports.default = _default; diff --git a/node_modules/pretty-format/build/plugins/AsymmetricMatcher.d.ts b/node_modules/pretty-format/build/plugins/AsymmetricMatcher.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..fd2531b888de4a0f9929db85100117b86c0e5022 --- /dev/null +++ b/node_modules/pretty-format/build/plugins/AsymmetricMatcher.d.ts @@ -0,0 +1,11 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +import type { NewPlugin } from '../types'; +export declare const serialize: NewPlugin['serialize']; +export declare const test: NewPlugin['test']; +declare const plugin: NewPlugin; +export default plugin; diff --git a/node_modules/pretty-format/build/plugins/AsymmetricMatcher.js b/node_modules/pretty-format/build/plugins/AsymmetricMatcher.js new file mode 100644 index 0000000000000000000000000000000000000000..400345188354d20acee7c39ccb2a0fe15f5b06e6 --- /dev/null +++ b/node_modules/pretty-format/build/plugins/AsymmetricMatcher.js @@ -0,0 +1,117 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { + value: true +}); +exports.test = exports.serialize = exports.default = void 0; + +var _collections = require('../collections'); + +var global = (function () { + if (typeof globalThis !== 'undefined') { + return globalThis; + } else if (typeof global !== 'undefined') { + return global; + } else if (typeof self !== 'undefined') { + return self; + } else if (typeof window !== 'undefined') { + return window; + } else { + return Function('return this')(); + } +})(); + +var Symbol = global['jest-symbol-do-not-touch'] || global.Symbol; +const asymmetricMatcher = + typeof Symbol === 'function' && Symbol.for + ? Symbol.for('jest.asymmetricMatcher') + : 0x1357a5; +const SPACE = ' '; + +const serialize = (val, config, indentation, depth, refs, printer) => { + const stringedValue = val.toString(); + + if ( + stringedValue === 'ArrayContaining' || + stringedValue === 'ArrayNotContaining' + ) { + if (++depth > config.maxDepth) { + return '[' + stringedValue + ']'; + } + + return ( + stringedValue + + SPACE + + '[' + + (0, _collections.printListItems)( + val.sample, + config, + indentation, + depth, + refs, + printer + ) + + ']' + ); + } + + if ( + stringedValue === 'ObjectContaining' || + stringedValue === 'ObjectNotContaining' + ) { + if (++depth > config.maxDepth) { + return '[' + stringedValue + ']'; + } + + return ( + stringedValue + + SPACE + + '{' + + (0, _collections.printObjectProperties)( + val.sample, + config, + indentation, + depth, + refs, + printer + ) + + '}' + ); + } + + if ( + stringedValue === 'StringMatching' || + stringedValue === 'StringNotMatching' + ) { + return ( + stringedValue + + SPACE + + printer(val.sample, config, indentation, depth, refs) + ); + } + + if ( + stringedValue === 'StringContaining' || + stringedValue === 'StringNotContaining' + ) { + return ( + stringedValue + + SPACE + + printer(val.sample, config, indentation, depth, refs) + ); + } + + return val.toAsymmetricMatcher(); +}; + +exports.serialize = serialize; + +const test = val => val && val.$$typeof === asymmetricMatcher; + +exports.test = test; +const plugin = { + serialize, + test +}; +var _default = plugin; +exports.default = _default; diff --git a/node_modules/pretty-format/build/plugins/ConvertAnsi.d.ts b/node_modules/pretty-format/build/plugins/ConvertAnsi.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb0f507b781d7d4d0536ccc00713734adebf6c39 --- /dev/null +++ b/node_modules/pretty-format/build/plugins/ConvertAnsi.d.ts @@ -0,0 +1,11 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +import type { NewPlugin } from '../types'; +export declare const test: NewPlugin['test']; +export declare const serialize: NewPlugin['serialize']; +declare const plugin: NewPlugin; +export default plugin; diff --git a/node_modules/pretty-format/build/plugins/ConvertAnsi.js b/node_modules/pretty-format/build/plugins/ConvertAnsi.js new file mode 100644 index 0000000000000000000000000000000000000000..c5edf00c1dc4ca67bbc83127e86bbf62cb806451 --- /dev/null +++ b/node_modules/pretty-format/build/plugins/ConvertAnsi.js @@ -0,0 +1,96 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { + value: true +}); +exports.test = exports.serialize = exports.default = void 0; + +var _ansiRegex = _interopRequireDefault(require('ansi-regex')); + +var _ansiStyles = _interopRequireDefault(require('ansi-styles')); + +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : {default: obj}; +} + +/** + * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +const toHumanReadableAnsi = text => + text.replace((0, _ansiRegex.default)(), match => { + switch (match) { + case _ansiStyles.default.red.close: + case _ansiStyles.default.green.close: + case _ansiStyles.default.cyan.close: + case _ansiStyles.default.gray.close: + case _ansiStyles.default.white.close: + case _ansiStyles.default.yellow.close: + case _ansiStyles.default.bgRed.close: + case _ansiStyles.default.bgGreen.close: + case _ansiStyles.default.bgYellow.close: + case _ansiStyles.default.inverse.close: + case _ansiStyles.default.dim.close: + case _ansiStyles.default.bold.close: + case _ansiStyles.default.reset.open: + case _ansiStyles.default.reset.close: + return ''; + + case _ansiStyles.default.red.open: + return ''; + + case _ansiStyles.default.green.open: + return ''; + + case _ansiStyles.default.cyan.open: + return ''; + + case _ansiStyles.default.gray.open: + return ''; + + case _ansiStyles.default.white.open: + return ''; + + case _ansiStyles.default.yellow.open: + return ''; + + case _ansiStyles.default.bgRed.open: + return ''; + + case _ansiStyles.default.bgGreen.open: + return ''; + + case _ansiStyles.default.bgYellow.open: + return ''; + + case _ansiStyles.default.inverse.open: + return ''; + + case _ansiStyles.default.dim.open: + return ''; + + case _ansiStyles.default.bold.open: + return ''; + + default: + return ''; + } + }); + +const test = val => + typeof val === 'string' && !!val.match((0, _ansiRegex.default)()); + +exports.test = test; + +const serialize = (val, config, indentation, depth, refs, printer) => + printer(toHumanReadableAnsi(val), config, indentation, depth, refs); + +exports.serialize = serialize; +const plugin = { + serialize, + test +}; +var _default = plugin; +exports.default = _default; diff --git a/node_modules/pretty-format/build/plugins/DOMCollection.d.ts b/node_modules/pretty-format/build/plugins/DOMCollection.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb0f507b781d7d4d0536ccc00713734adebf6c39 --- /dev/null +++ b/node_modules/pretty-format/build/plugins/DOMCollection.d.ts @@ -0,0 +1,11 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +import type { NewPlugin } from '../types'; +export declare const test: NewPlugin['test']; +export declare const serialize: NewPlugin['serialize']; +declare const plugin: NewPlugin; +export default plugin; diff --git a/node_modules/pretty-format/build/plugins/DOMCollection.js b/node_modules/pretty-format/build/plugins/DOMCollection.js new file mode 100644 index 0000000000000000000000000000000000000000..f3dba3db1732d63d94f5207130031d28f8a9a864 --- /dev/null +++ b/node_modules/pretty-format/build/plugins/DOMCollection.js @@ -0,0 +1,80 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { + value: true +}); +exports.test = exports.serialize = exports.default = void 0; + +var _collections = require('../collections'); + +/** + * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +/* eslint-disable local/ban-types-eventually */ +const SPACE = ' '; +const OBJECT_NAMES = ['DOMStringMap', 'NamedNodeMap']; +const ARRAY_REGEXP = /^(HTML\w*Collection|NodeList)$/; + +const testName = name => + OBJECT_NAMES.indexOf(name) !== -1 || ARRAY_REGEXP.test(name); + +const test = val => + val && + val.constructor && + !!val.constructor.name && + testName(val.constructor.name); + +exports.test = test; + +const isNamedNodeMap = collection => + collection.constructor.name === 'NamedNodeMap'; + +const serialize = (collection, config, indentation, depth, refs, printer) => { + const name = collection.constructor.name; + + if (++depth > config.maxDepth) { + return '[' + name + ']'; + } + + return ( + (config.min ? '' : name + SPACE) + + (OBJECT_NAMES.indexOf(name) !== -1 + ? '{' + + (0, _collections.printObjectProperties)( + isNamedNodeMap(collection) + ? Array.from(collection).reduce((props, attribute) => { + props[attribute.name] = attribute.value; + return props; + }, {}) + : {...collection}, + config, + indentation, + depth, + refs, + printer + ) + + '}' + : '[' + + (0, _collections.printListItems)( + Array.from(collection), + config, + indentation, + depth, + refs, + printer + ) + + ']') + ); +}; + +exports.serialize = serialize; +const plugin = { + serialize, + test +}; +var _default = plugin; +exports.default = _default; diff --git a/node_modules/pretty-format/build/plugins/DOMElement.d.ts b/node_modules/pretty-format/build/plugins/DOMElement.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb0f507b781d7d4d0536ccc00713734adebf6c39 --- /dev/null +++ b/node_modules/pretty-format/build/plugins/DOMElement.d.ts @@ -0,0 +1,11 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +import type { NewPlugin } from '../types'; +export declare const test: NewPlugin['test']; +export declare const serialize: NewPlugin['serialize']; +declare const plugin: NewPlugin; +export default plugin; diff --git a/node_modules/pretty-format/build/plugins/DOMElement.js b/node_modules/pretty-format/build/plugins/DOMElement.js new file mode 100644 index 0000000000000000000000000000000000000000..b9d30cec269e6c79166a26d6b83d20266f15a183 --- /dev/null +++ b/node_modules/pretty-format/build/plugins/DOMElement.js @@ -0,0 +1,128 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { + value: true +}); +exports.test = exports.serialize = exports.default = void 0; + +var _markup = require('./lib/markup'); + +/** + * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +const ELEMENT_NODE = 1; +const TEXT_NODE = 3; +const COMMENT_NODE = 8; +const FRAGMENT_NODE = 11; +const ELEMENT_REGEXP = /^((HTML|SVG)\w*)?Element$/; + +const testHasAttribute = val => { + try { + return typeof val.hasAttribute === 'function' && val.hasAttribute('is'); + } catch { + return false; + } +}; + +const testNode = val => { + const constructorName = val.constructor.name; + const {nodeType, tagName} = val; + const isCustomElement = + (typeof tagName === 'string' && tagName.includes('-')) || + testHasAttribute(val); + return ( + (nodeType === ELEMENT_NODE && + (ELEMENT_REGEXP.test(constructorName) || isCustomElement)) || + (nodeType === TEXT_NODE && constructorName === 'Text') || + (nodeType === COMMENT_NODE && constructorName === 'Comment') || + (nodeType === FRAGMENT_NODE && constructorName === 'DocumentFragment') + ); +}; + +const test = val => { + var _val$constructor; + + return ( + (val === null || val === void 0 + ? void 0 + : (_val$constructor = val.constructor) === null || + _val$constructor === void 0 + ? void 0 + : _val$constructor.name) && testNode(val) + ); +}; + +exports.test = test; + +function nodeIsText(node) { + return node.nodeType === TEXT_NODE; +} + +function nodeIsComment(node) { + return node.nodeType === COMMENT_NODE; +} + +function nodeIsFragment(node) { + return node.nodeType === FRAGMENT_NODE; +} + +const serialize = (node, config, indentation, depth, refs, printer) => { + if (nodeIsText(node)) { + return (0, _markup.printText)(node.data, config); + } + + if (nodeIsComment(node)) { + return (0, _markup.printComment)(node.data, config); + } + + const type = nodeIsFragment(node) + ? 'DocumentFragment' + : node.tagName.toLowerCase(); + + if (++depth > config.maxDepth) { + return (0, _markup.printElementAsLeaf)(type, config); + } + + return (0, _markup.printElement)( + type, + (0, _markup.printProps)( + nodeIsFragment(node) + ? [] + : Array.from(node.attributes) + .map(attr => attr.name) + .sort(), + nodeIsFragment(node) + ? {} + : Array.from(node.attributes).reduce((props, attribute) => { + props[attribute.name] = attribute.value; + return props; + }, {}), + config, + indentation + config.indent, + depth, + refs, + printer + ), + (0, _markup.printChildren)( + Array.prototype.slice.call(node.childNodes || node.children), + config, + indentation + config.indent, + depth, + refs, + printer + ), + config, + indentation + ); +}; + +exports.serialize = serialize; +const plugin = { + serialize, + test +}; +var _default = plugin; +exports.default = _default; diff --git a/node_modules/pretty-format/build/plugins/Immutable.d.ts b/node_modules/pretty-format/build/plugins/Immutable.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..fd2531b888de4a0f9929db85100117b86c0e5022 --- /dev/null +++ b/node_modules/pretty-format/build/plugins/Immutable.d.ts @@ -0,0 +1,11 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +import type { NewPlugin } from '../types'; +export declare const serialize: NewPlugin['serialize']; +export declare const test: NewPlugin['test']; +declare const plugin: NewPlugin; +export default plugin; diff --git a/node_modules/pretty-format/build/plugins/Immutable.js b/node_modules/pretty-format/build/plugins/Immutable.js new file mode 100644 index 0000000000000000000000000000000000000000..99159661a6e9c0cd698dc7b1daef0b98a3f811b4 --- /dev/null +++ b/node_modules/pretty-format/build/plugins/Immutable.js @@ -0,0 +1,247 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { + value: true +}); +exports.test = exports.serialize = exports.default = void 0; + +var _collections = require('../collections'); + +/** + * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +// SENTINEL constants are from https://github.com/facebook/immutable-js +const IS_ITERABLE_SENTINEL = '@@__IMMUTABLE_ITERABLE__@@'; +const IS_LIST_SENTINEL = '@@__IMMUTABLE_LIST__@@'; +const IS_KEYED_SENTINEL = '@@__IMMUTABLE_KEYED__@@'; +const IS_MAP_SENTINEL = '@@__IMMUTABLE_MAP__@@'; +const IS_ORDERED_SENTINEL = '@@__IMMUTABLE_ORDERED__@@'; +const IS_RECORD_SENTINEL = '@@__IMMUTABLE_RECORD__@@'; // immutable v4 + +const IS_SEQ_SENTINEL = '@@__IMMUTABLE_SEQ__@@'; +const IS_SET_SENTINEL = '@@__IMMUTABLE_SET__@@'; +const IS_STACK_SENTINEL = '@@__IMMUTABLE_STACK__@@'; + +const getImmutableName = name => 'Immutable.' + name; + +const printAsLeaf = name => '[' + name + ']'; + +const SPACE = ' '; +const LAZY = '…'; // Seq is lazy if it calls a method like filter + +const printImmutableEntries = ( + val, + config, + indentation, + depth, + refs, + printer, + type +) => + ++depth > config.maxDepth + ? printAsLeaf(getImmutableName(type)) + : getImmutableName(type) + + SPACE + + '{' + + (0, _collections.printIteratorEntries)( + val.entries(), + config, + indentation, + depth, + refs, + printer + ) + + '}'; // Record has an entries method because it is a collection in immutable v3. +// Return an iterator for Immutable Record from version v3 or v4. + +function getRecordEntries(val) { + let i = 0; + return { + next() { + if (i < val._keys.length) { + const key = val._keys[i++]; + return { + done: false, + value: [key, val.get(key)] + }; + } + + return { + done: true, + value: undefined + }; + } + }; +} + +const printImmutableRecord = ( + val, + config, + indentation, + depth, + refs, + printer +) => { + // _name property is defined only for an Immutable Record instance + // which was constructed with a second optional descriptive name arg + const name = getImmutableName(val._name || 'Record'); + return ++depth > config.maxDepth + ? printAsLeaf(name) + : name + + SPACE + + '{' + + (0, _collections.printIteratorEntries)( + getRecordEntries(val), + config, + indentation, + depth, + refs, + printer + ) + + '}'; +}; + +const printImmutableSeq = (val, config, indentation, depth, refs, printer) => { + const name = getImmutableName('Seq'); + + if (++depth > config.maxDepth) { + return printAsLeaf(name); + } + + if (val[IS_KEYED_SENTINEL]) { + return ( + name + + SPACE + + '{' + // from Immutable collection of entries or from ECMAScript object + (val._iter || val._object + ? (0, _collections.printIteratorEntries)( + val.entries(), + config, + indentation, + depth, + refs, + printer + ) + : LAZY) + + '}' + ); + } + + return ( + name + + SPACE + + '[' + + (val._iter || // from Immutable collection of values + val._array || // from ECMAScript array + val._collection || // from ECMAScript collection in immutable v4 + val._iterable // from ECMAScript collection in immutable v3 + ? (0, _collections.printIteratorValues)( + val.values(), + config, + indentation, + depth, + refs, + printer + ) + : LAZY) + + ']' + ); +}; + +const printImmutableValues = ( + val, + config, + indentation, + depth, + refs, + printer, + type +) => + ++depth > config.maxDepth + ? printAsLeaf(getImmutableName(type)) + : getImmutableName(type) + + SPACE + + '[' + + (0, _collections.printIteratorValues)( + val.values(), + config, + indentation, + depth, + refs, + printer + ) + + ']'; + +const serialize = (val, config, indentation, depth, refs, printer) => { + if (val[IS_MAP_SENTINEL]) { + return printImmutableEntries( + val, + config, + indentation, + depth, + refs, + printer, + val[IS_ORDERED_SENTINEL] ? 'OrderedMap' : 'Map' + ); + } + + if (val[IS_LIST_SENTINEL]) { + return printImmutableValues( + val, + config, + indentation, + depth, + refs, + printer, + 'List' + ); + } + + if (val[IS_SET_SENTINEL]) { + return printImmutableValues( + val, + config, + indentation, + depth, + refs, + printer, + val[IS_ORDERED_SENTINEL] ? 'OrderedSet' : 'Set' + ); + } + + if (val[IS_STACK_SENTINEL]) { + return printImmutableValues( + val, + config, + indentation, + depth, + refs, + printer, + 'Stack' + ); + } + + if (val[IS_SEQ_SENTINEL]) { + return printImmutableSeq(val, config, indentation, depth, refs, printer); + } // For compatibility with immutable v3 and v4, let record be the default. + + return printImmutableRecord(val, config, indentation, depth, refs, printer); +}; // Explicitly comparing sentinel properties to true avoids false positive +// when mock identity-obj-proxy returns the key as the value for any key. + +exports.serialize = serialize; + +const test = val => + val && + (val[IS_ITERABLE_SENTINEL] === true || val[IS_RECORD_SENTINEL] === true); + +exports.test = test; +const plugin = { + serialize, + test +}; +var _default = plugin; +exports.default = _default; diff --git a/node_modules/pretty-format/build/plugins/ReactElement.d.ts b/node_modules/pretty-format/build/plugins/ReactElement.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..fd2531b888de4a0f9929db85100117b86c0e5022 --- /dev/null +++ b/node_modules/pretty-format/build/plugins/ReactElement.d.ts @@ -0,0 +1,11 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +import type { NewPlugin } from '../types'; +export declare const serialize: NewPlugin['serialize']; +export declare const test: NewPlugin['test']; +declare const plugin: NewPlugin; +export default plugin; diff --git a/node_modules/pretty-format/build/plugins/ReactElement.js b/node_modules/pretty-format/build/plugins/ReactElement.js new file mode 100644 index 0000000000000000000000000000000000000000..f45a6e0413b8765c9a1bfa76a0faa87062f7ff8f --- /dev/null +++ b/node_modules/pretty-format/build/plugins/ReactElement.js @@ -0,0 +1,166 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { + value: true +}); +exports.test = exports.serialize = exports.default = void 0; + +var ReactIs = _interopRequireWildcard(require('react-is')); + +var _markup = require('./lib/markup'); + +function _getRequireWildcardCache(nodeInterop) { + if (typeof WeakMap !== 'function') return null; + var cacheBabelInterop = new WeakMap(); + var cacheNodeInterop = new WeakMap(); + return (_getRequireWildcardCache = function (nodeInterop) { + return nodeInterop ? cacheNodeInterop : cacheBabelInterop; + })(nodeInterop); +} + +function _interopRequireWildcard(obj, nodeInterop) { + if (!nodeInterop && obj && obj.__esModule) { + return obj; + } + if (obj === null || (typeof obj !== 'object' && typeof obj !== 'function')) { + return {default: obj}; + } + var cache = _getRequireWildcardCache(nodeInterop); + if (cache && cache.has(obj)) { + return cache.get(obj); + } + var newObj = {}; + var hasPropertyDescriptor = + Object.defineProperty && Object.getOwnPropertyDescriptor; + for (var key in obj) { + if (key !== 'default' && Object.prototype.hasOwnProperty.call(obj, key)) { + var desc = hasPropertyDescriptor + ? Object.getOwnPropertyDescriptor(obj, key) + : null; + if (desc && (desc.get || desc.set)) { + Object.defineProperty(newObj, key, desc); + } else { + newObj[key] = obj[key]; + } + } + } + newObj.default = obj; + if (cache) { + cache.set(obj, newObj); + } + return newObj; +} + +/** + * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +// Given element.props.children, or subtree during recursive traversal, +// return flattened array of children. +const getChildren = (arg, children = []) => { + if (Array.isArray(arg)) { + arg.forEach(item => { + getChildren(item, children); + }); + } else if (arg != null && arg !== false) { + children.push(arg); + } + + return children; +}; + +const getType = element => { + const type = element.type; + + if (typeof type === 'string') { + return type; + } + + if (typeof type === 'function') { + return type.displayName || type.name || 'Unknown'; + } + + if (ReactIs.isFragment(element)) { + return 'React.Fragment'; + } + + if (ReactIs.isSuspense(element)) { + return 'React.Suspense'; + } + + if (typeof type === 'object' && type !== null) { + if (ReactIs.isContextProvider(element)) { + return 'Context.Provider'; + } + + if (ReactIs.isContextConsumer(element)) { + return 'Context.Consumer'; + } + + if (ReactIs.isForwardRef(element)) { + if (type.displayName) { + return type.displayName; + } + + const functionName = type.render.displayName || type.render.name || ''; + return functionName !== '' + ? 'ForwardRef(' + functionName + ')' + : 'ForwardRef'; + } + + if (ReactIs.isMemo(element)) { + const functionName = + type.displayName || type.type.displayName || type.type.name || ''; + return functionName !== '' ? 'Memo(' + functionName + ')' : 'Memo'; + } + } + + return 'UNDEFINED'; +}; + +const getPropKeys = element => { + const {props} = element; + return Object.keys(props) + .filter(key => key !== 'children' && props[key] !== undefined) + .sort(); +}; + +const serialize = (element, config, indentation, depth, refs, printer) => + ++depth > config.maxDepth + ? (0, _markup.printElementAsLeaf)(getType(element), config) + : (0, _markup.printElement)( + getType(element), + (0, _markup.printProps)( + getPropKeys(element), + element.props, + config, + indentation + config.indent, + depth, + refs, + printer + ), + (0, _markup.printChildren)( + getChildren(element.props.children), + config, + indentation + config.indent, + depth, + refs, + printer + ), + config, + indentation + ); + +exports.serialize = serialize; + +const test = val => val != null && ReactIs.isElement(val); + +exports.test = test; +const plugin = { + serialize, + test +}; +var _default = plugin; +exports.default = _default; diff --git a/node_modules/pretty-format/build/plugins/ReactTestComponent.d.ts b/node_modules/pretty-format/build/plugins/ReactTestComponent.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..91542d9856c322b6b7f6cfe027e977a534e2882c --- /dev/null +++ b/node_modules/pretty-format/build/plugins/ReactTestComponent.d.ts @@ -0,0 +1,18 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +import type { NewPlugin } from '../types'; +export declare type ReactTestObject = { + $$typeof: symbol; + type: string; + props?: Record; + children?: null | Array; +}; +declare type ReactTestChild = ReactTestObject | string | number; +export declare const serialize: NewPlugin['serialize']; +export declare const test: NewPlugin['test']; +declare const plugin: NewPlugin; +export default plugin; diff --git a/node_modules/pretty-format/build/plugins/ReactTestComponent.js b/node_modules/pretty-format/build/plugins/ReactTestComponent.js new file mode 100644 index 0000000000000000000000000000000000000000..6e09edc79c5731233edf1ab6e7d23e3b6faa6bcc --- /dev/null +++ b/node_modules/pretty-format/build/plugins/ReactTestComponent.js @@ -0,0 +1,79 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { + value: true +}); +exports.test = exports.serialize = exports.default = void 0; + +var _markup = require('./lib/markup'); + +var global = (function () { + if (typeof globalThis !== 'undefined') { + return globalThis; + } else if (typeof global !== 'undefined') { + return global; + } else if (typeof self !== 'undefined') { + return self; + } else if (typeof window !== 'undefined') { + return window; + } else { + return Function('return this')(); + } +})(); + +var Symbol = global['jest-symbol-do-not-touch'] || global.Symbol; +const testSymbol = + typeof Symbol === 'function' && Symbol.for + ? Symbol.for('react.test.json') + : 0xea71357; + +const getPropKeys = object => { + const {props} = object; + return props + ? Object.keys(props) + .filter(key => props[key] !== undefined) + .sort() + : []; +}; + +const serialize = (object, config, indentation, depth, refs, printer) => + ++depth > config.maxDepth + ? (0, _markup.printElementAsLeaf)(object.type, config) + : (0, _markup.printElement)( + object.type, + object.props + ? (0, _markup.printProps)( + getPropKeys(object), + object.props, + config, + indentation + config.indent, + depth, + refs, + printer + ) + : '', + object.children + ? (0, _markup.printChildren)( + object.children, + config, + indentation + config.indent, + depth, + refs, + printer + ) + : '', + config, + indentation + ); + +exports.serialize = serialize; + +const test = val => val && val.$$typeof === testSymbol; + +exports.test = test; +const plugin = { + serialize, + test +}; +var _default = plugin; +exports.default = _default; diff --git a/node_modules/pretty-format/build/plugins/lib/escapeHTML.d.ts b/node_modules/pretty-format/build/plugins/lib/escapeHTML.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..aee0d3d06377651c6640fd78fa4984fa2abaf6c4 --- /dev/null +++ b/node_modules/pretty-format/build/plugins/lib/escapeHTML.d.ts @@ -0,0 +1,7 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +export default function escapeHTML(str: string): string; diff --git a/node_modules/pretty-format/build/plugins/lib/escapeHTML.js b/node_modules/pretty-format/build/plugins/lib/escapeHTML.js new file mode 100644 index 0000000000000000000000000000000000000000..50dda25909472e296c2c412521c3464de5e89581 --- /dev/null +++ b/node_modules/pretty-format/build/plugins/lib/escapeHTML.js @@ -0,0 +1,16 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { + value: true +}); +exports.default = escapeHTML; + +/** + * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +function escapeHTML(str) { + return str.replace(//g, '>'); +} diff --git a/node_modules/pretty-format/build/plugins/lib/markup.d.ts b/node_modules/pretty-format/build/plugins/lib/markup.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..60d99ab90649df6193bd553f7ff4d91a0b65d1e8 --- /dev/null +++ b/node_modules/pretty-format/build/plugins/lib/markup.d.ts @@ -0,0 +1,13 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +import type { Config, Printer, Refs } from '../../types'; +export declare const printProps: (keys: Array, props: Record, config: Config, indentation: string, depth: number, refs: Refs, printer: Printer) => string; +export declare const printChildren: (children: Array, config: Config, indentation: string, depth: number, refs: Refs, printer: Printer) => string; +export declare const printText: (text: string, config: Config) => string; +export declare const printComment: (comment: string, config: Config) => string; +export declare const printElement: (type: string, printedProps: string, printedChildren: string, config: Config, indentation: string) => string; +export declare const printElementAsLeaf: (type: string, config: Config) => string; diff --git a/node_modules/pretty-format/build/plugins/lib/markup.js b/node_modules/pretty-format/build/plugins/lib/markup.js new file mode 100644 index 0000000000000000000000000000000000000000..4f677ac74934e1a9044142c9d7da04f99e1cfa70 --- /dev/null +++ b/node_modules/pretty-format/build/plugins/lib/markup.js @@ -0,0 +1,153 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { + value: true +}); +exports.printText = + exports.printProps = + exports.printElementAsLeaf = + exports.printElement = + exports.printComment = + exports.printChildren = + void 0; + +var _escapeHTML = _interopRequireDefault(require('./escapeHTML')); + +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : {default: obj}; +} + +/** + * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +// Return empty string if keys is empty. +const printProps = (keys, props, config, indentation, depth, refs, printer) => { + const indentationNext = indentation + config.indent; + const colors = config.colors; + return keys + .map(key => { + const value = props[key]; + let printed = printer(value, config, indentationNext, depth, refs); + + if (typeof value !== 'string') { + if (printed.indexOf('\n') !== -1) { + printed = + config.spacingOuter + + indentationNext + + printed + + config.spacingOuter + + indentation; + } + + printed = '{' + printed + '}'; + } + + return ( + config.spacingInner + + indentation + + colors.prop.open + + key + + colors.prop.close + + '=' + + colors.value.open + + printed + + colors.value.close + ); + }) + .join(''); +}; // Return empty string if children is empty. + +exports.printProps = printProps; + +const printChildren = (children, config, indentation, depth, refs, printer) => + children + .map( + child => + config.spacingOuter + + indentation + + (typeof child === 'string' + ? printText(child, config) + : printer(child, config, indentation, depth, refs)) + ) + .join(''); + +exports.printChildren = printChildren; + +const printText = (text, config) => { + const contentColor = config.colors.content; + return ( + contentColor.open + (0, _escapeHTML.default)(text) + contentColor.close + ); +}; + +exports.printText = printText; + +const printComment = (comment, config) => { + const commentColor = config.colors.comment; + return ( + commentColor.open + + '' + + commentColor.close + ); +}; // Separate the functions to format props, children, and element, +// so a plugin could override a particular function, if needed. +// Too bad, so sad: the traditional (but unnecessary) space +// in a self-closing tagColor requires a second test of printedProps. + +exports.printComment = printComment; + +const printElement = ( + type, + printedProps, + printedChildren, + config, + indentation +) => { + const tagColor = config.colors.tag; + return ( + tagColor.open + + '<' + + type + + (printedProps && + tagColor.close + + printedProps + + config.spacingOuter + + indentation + + tagColor.open) + + (printedChildren + ? '>' + + tagColor.close + + printedChildren + + config.spacingOuter + + indentation + + tagColor.open + + '' + + tagColor.close + ); +}; + +exports.printElement = printElement; + +const printElementAsLeaf = (type, config) => { + const tagColor = config.colors.tag; + return ( + tagColor.open + + '<' + + type + + tagColor.close + + ' …' + + tagColor.open + + ' />' + + tagColor.close + ); +}; + +exports.printElementAsLeaf = printElementAsLeaf; diff --git a/node_modules/pretty-format/build/types.d.ts b/node_modules/pretty-format/build/types.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..f070ad8232666aef87de58f82f3e322932cbaaf3 --- /dev/null +++ b/node_modules/pretty-format/build/types.d.ts @@ -0,0 +1,108 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +export declare type Colors = { + comment: { + close: string; + open: string; + }; + content: { + close: string; + open: string; + }; + prop: { + close: string; + open: string; + }; + tag: { + close: string; + open: string; + }; + value: { + close: string; + open: string; + }; +}; +declare type Indent = (arg0: string) => string; +export declare type Refs = Array; +declare type Print = (arg0: unknown) => string; +export declare type Theme = { + comment: string; + content: string; + prop: string; + tag: string; + value: string; +}; +declare type ThemeReceived = { + comment?: string; + content?: string; + prop?: string; + tag?: string; + value?: string; +}; +export declare type CompareKeys = ((a: string, b: string) => number) | undefined; +export declare type Options = { + callToJSON: boolean; + compareKeys: CompareKeys; + escapeRegex: boolean; + escapeString: boolean; + highlight: boolean; + indent: number; + maxDepth: number; + min: boolean; + plugins: Plugins; + printBasicPrototype: boolean; + printFunctionName: boolean; + theme: Theme; +}; +export interface PrettyFormatOptions { + callToJSON?: boolean; + compareKeys?: CompareKeys; + escapeRegex?: boolean; + escapeString?: boolean; + highlight?: boolean; + indent?: number; + maxDepth?: number; + min?: boolean; + plugins?: Plugins; + printBasicPrototype?: boolean; + printFunctionName?: boolean; + theme?: ThemeReceived; +} +export declare type OptionsReceived = PrettyFormatOptions; +export declare type Config = { + callToJSON: boolean; + compareKeys: CompareKeys; + colors: Colors; + escapeRegex: boolean; + escapeString: boolean; + indent: string; + maxDepth: number; + min: boolean; + plugins: Plugins; + printBasicPrototype: boolean; + printFunctionName: boolean; + spacingInner: string; + spacingOuter: string; +}; +export declare type Printer = (val: unknown, config: Config, indentation: string, depth: number, refs: Refs, hasCalledToJSON?: boolean) => string; +declare type Test = (arg0: any) => boolean; +export declare type NewPlugin = { + serialize: (val: any, config: Config, indentation: string, depth: number, refs: Refs, printer: Printer) => string; + test: Test; +}; +declare type PluginOptions = { + edgeSpacing: string; + min: boolean; + spacing: string; +}; +export declare type OldPlugin = { + print: (val: unknown, print: Print, indent: Indent, options: PluginOptions, colors: Colors) => string; + test: Test; +}; +export declare type Plugin = NewPlugin | OldPlugin; +export declare type Plugins = Array; +export {}; diff --git a/node_modules/pretty-format/build/types.js b/node_modules/pretty-format/build/types.js new file mode 100644 index 0000000000000000000000000000000000000000..ad9a93a7c160f02945911772460eb8a1bcb003db --- /dev/null +++ b/node_modules/pretty-format/build/types.js @@ -0,0 +1 @@ +'use strict'; diff --git a/node_modules/pretty-format/package.json b/node_modules/pretty-format/package.json new file mode 100644 index 0000000000000000000000000000000000000000..a8cc469818683713f3b1c1d82d6342e019263d92 --- /dev/null +++ b/node_modules/pretty-format/package.json @@ -0,0 +1,44 @@ +{ + "name": "pretty-format", + "version": "27.5.1", + "repository": { + "type": "git", + "url": "https://github.com/facebook/jest.git", + "directory": "packages/pretty-format" + }, + "license": "MIT", + "description": "Stringify any JavaScript value.", + "main": "./build/index.js", + "types": "./build/index.d.ts", + "exports": { + ".": { + "types": "./build/index.d.ts", + "default": "./build/index.js" + }, + "./package.json": "./package.json", + "./ConvertAnsi": "./build/plugins/ConvertAnsi.js" + }, + "author": "James Kyle ", + "dependencies": { + "ansi-regex": "^5.0.1", + "ansi-styles": "^5.0.0", + "react-is": "^17.0.1" + }, + "devDependencies": { + "@types/react": "*", + "@types/react-is": "^17.0.0", + "@types/react-test-renderer": "*", + "immutable": "^4.0.0", + "jest-util": "^27.5.1", + "react": "*", + "react-dom": "*", + "react-test-renderer": "*" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "publishConfig": { + "access": "public" + }, + "gitHead": "67c1aa20c5fec31366d733e901fee2b981cb1850" +} diff --git a/node_modules/process-nextick-args/index.js b/node_modules/process-nextick-args/index.js new file mode 100644 index 0000000000000000000000000000000000000000..3eecf11488531cd40aed422f0a68bdf0e6a8611a --- /dev/null +++ b/node_modules/process-nextick-args/index.js @@ -0,0 +1,45 @@ +'use strict'; + +if (typeof process === 'undefined' || + !process.version || + process.version.indexOf('v0.') === 0 || + process.version.indexOf('v1.') === 0 && process.version.indexOf('v1.8.') !== 0) { + module.exports = { nextTick: nextTick }; +} else { + module.exports = process +} + +function nextTick(fn, arg1, arg2, arg3) { + if (typeof fn !== 'function') { + throw new TypeError('"callback" argument must be a function'); + } + var len = arguments.length; + var args, i; + switch (len) { + case 0: + case 1: + return process.nextTick(fn); + case 2: + return process.nextTick(function afterTickOne() { + fn.call(null, arg1); + }); + case 3: + return process.nextTick(function afterTickTwo() { + fn.call(null, arg1, arg2); + }); + case 4: + return process.nextTick(function afterTickThree() { + fn.call(null, arg1, arg2, arg3); + }); + default: + args = new Array(len - 1); + i = 0; + while (i < args.length) { + args[i++] = arguments[i]; + } + return process.nextTick(function afterTick() { + fn.apply(null, args); + }); + } +} + diff --git a/node_modules/process-nextick-args/license.md b/node_modules/process-nextick-args/license.md new file mode 100644 index 0000000000000000000000000000000000000000..c67e3532b542455fad8c4004ef297534d7f480b2 --- /dev/null +++ b/node_modules/process-nextick-args/license.md @@ -0,0 +1,19 @@ +# Copyright (c) 2015 Calvin Metcalf + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +**THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE.** diff --git a/node_modules/process-nextick-args/package.json b/node_modules/process-nextick-args/package.json new file mode 100644 index 0000000000000000000000000000000000000000..6070b723fcd3476052a28040412e61d7df2511f4 --- /dev/null +++ b/node_modules/process-nextick-args/package.json @@ -0,0 +1,25 @@ +{ + "name": "process-nextick-args", + "version": "2.0.1", + "description": "process.nextTick but always with args", + "main": "index.js", + "files": [ + "index.js" + ], + "scripts": { + "test": "node test.js" + }, + "repository": { + "type": "git", + "url": "https://github.com/calvinmetcalf/process-nextick-args.git" + }, + "author": "", + "license": "MIT", + "bugs": { + "url": "https://github.com/calvinmetcalf/process-nextick-args/issues" + }, + "homepage": "https://github.com/calvinmetcalf/process-nextick-args", + "devDependencies": { + "tap": "~0.2.6" + } +} diff --git a/node_modules/process-nextick-args/readme.md b/node_modules/process-nextick-args/readme.md new file mode 100644 index 0000000000000000000000000000000000000000..ecb432c9b21ffd44bded842812586d3dab132c69 --- /dev/null +++ b/node_modules/process-nextick-args/readme.md @@ -0,0 +1,18 @@ +process-nextick-args +===== + +[![Build Status](https://travis-ci.org/calvinmetcalf/process-nextick-args.svg?branch=master)](https://travis-ci.org/calvinmetcalf/process-nextick-args) + +```bash +npm install --save process-nextick-args +``` + +Always be able to pass arguments to process.nextTick, no matter the platform + +```js +var pna = require('process-nextick-args'); + +pna.nextTick(function (a, b, c) { + console.log(a, b, c); +}, 'step', 3, 'profit'); +``` diff --git a/node_modules/prop-types/LICENSE b/node_modules/prop-types/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..188fb2b0bd8e7b4aa032165449c180cc108d18ac --- /dev/null +++ b/node_modules/prop-types/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2013-present, Facebook, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/node_modules/prop-types/README.md b/node_modules/prop-types/README.md new file mode 100644 index 0000000000000000000000000000000000000000..e54d435f9f80a7f91bde42e0de20849097d133b8 --- /dev/null +++ b/node_modules/prop-types/README.md @@ -0,0 +1,302 @@ +# prop-types [![Build Status](https://travis-ci.com/facebook/prop-types.svg?branch=main)](https://travis-ci.org/facebook/prop-types) + +Runtime type checking for React props and similar objects. + +You can use prop-types to document the intended types of properties passed to +components. React (and potentially other libraries—see the `checkPropTypes()` +reference below) will check props passed to your components against those +definitions, and warn in development if they don’t match. + +## Installation + +```shell +npm install --save prop-types +``` + +## Importing + +```js +import PropTypes from 'prop-types'; // ES6 +var PropTypes = require('prop-types'); // ES5 with npm +``` + +### CDN + +If you prefer to exclude `prop-types` from your application and use it +globally via `window.PropTypes`, the `prop-types` package provides +single-file distributions, which are hosted on the following CDNs: + +* [**unpkg**](https://unpkg.com/prop-types/) +```html + + + + + +``` + +* [**cdnjs**](https://cdnjs.com/libraries/prop-types) +```html + + + + + +``` + +To load a specific version of `prop-types` replace `15.6.0` with the version number. + +## Usage + +PropTypes was originally exposed as part of the React core module, and is +commonly used with React components. +Here is an example of using PropTypes with a React component, which also +documents the different validators provided: + +```js +import React from 'react'; +import PropTypes from 'prop-types'; + +class MyComponent extends React.Component { + render() { + // ... do things with the props + } +} + +MyComponent.propTypes = { + // You can declare that a prop is a specific JS primitive. By default, these + // are all optional. + optionalArray: PropTypes.array, + optionalBigInt: PropTypes.bigint, + optionalBool: PropTypes.bool, + optionalFunc: PropTypes.func, + optionalNumber: PropTypes.number, + optionalObject: PropTypes.object, + optionalString: PropTypes.string, + optionalSymbol: PropTypes.symbol, + + // Anything that can be rendered: numbers, strings, elements or an array + // (or fragment) containing these types. + // see https://reactjs.org/docs/rendering-elements.html for more info + optionalNode: PropTypes.node, + + // A React element (ie. ). + optionalElement: PropTypes.element, + + // A React element type (eg. MyComponent). + // a function, string, or "element-like" object (eg. React.Fragment, Suspense, etc.) + // see https://github.com/facebook/react/blob/HEAD/packages/shared/isValidElementType.js + optionalElementType: PropTypes.elementType, + + // You can also declare that a prop is an instance of a class. This uses + // JS's instanceof operator. + optionalMessage: PropTypes.instanceOf(Message), + + // You can ensure that your prop is limited to specific values by treating + // it as an enum. + optionalEnum: PropTypes.oneOf(['News', 'Photos']), + + // An object that could be one of many types + optionalUnion: PropTypes.oneOfType([ + PropTypes.string, + PropTypes.number, + PropTypes.instanceOf(Message) + ]), + + // An array of a certain type + optionalArrayOf: PropTypes.arrayOf(PropTypes.number), + + // An object with property values of a certain type + optionalObjectOf: PropTypes.objectOf(PropTypes.number), + + // You can chain any of the above with `isRequired` to make sure a warning + // is shown if the prop isn't provided. + + // An object taking on a particular shape + optionalObjectWithShape: PropTypes.shape({ + optionalProperty: PropTypes.string, + requiredProperty: PropTypes.number.isRequired + }), + + // An object with warnings on extra properties + optionalObjectWithStrictShape: PropTypes.exact({ + optionalProperty: PropTypes.string, + requiredProperty: PropTypes.number.isRequired + }), + + requiredFunc: PropTypes.func.isRequired, + + // A value of any data type + requiredAny: PropTypes.any.isRequired, + + // You can also specify a custom validator. It should return an Error + // object if the validation fails. Don't `console.warn` or throw, as this + // won't work inside `oneOfType`. + customProp: function(props, propName, componentName) { + if (!/matchme/.test(props[propName])) { + return new Error( + 'Invalid prop `' + propName + '` supplied to' + + ' `' + componentName + '`. Validation failed.' + ); + } + }, + + // You can also supply a custom validator to `arrayOf` and `objectOf`. + // It should return an Error object if the validation fails. The validator + // will be called for each key in the array or object. The first two + // arguments of the validator are the array or object itself, and the + // current item's key. + customArrayProp: PropTypes.arrayOf(function(propValue, key, componentName, location, propFullName) { + if (!/matchme/.test(propValue[key])) { + return new Error( + 'Invalid prop `' + propFullName + '` supplied to' + + ' `' + componentName + '`. Validation failed.' + ); + } + }) +}; +``` + +Refer to the [React documentation](https://facebook.github.io/react/docs/typechecking-with-proptypes.html) for more information. + +## Migrating from React.PropTypes + +Check out [Migrating from React.PropTypes](https://facebook.github.io/react/blog/2017/04/07/react-v15.5.0.html#migrating-from-react.proptypes) for details on how to migrate to `prop-types` from `React.PropTypes`. + +Note that this blog posts **mentions a codemod script that performs the conversion automatically**. + +There are also important notes below. + +## How to Depend on This Package? + +For apps, we recommend putting it in `dependencies` with a caret range. +For example: + +```js + "dependencies": { + "prop-types": "^15.5.7" + } +``` + +For libraries, we *also* recommend leaving it in `dependencies`: + +```js + "dependencies": { + "prop-types": "^15.5.7" + }, + "peerDependencies": { + "react": "^15.5.0" + } +``` + +**Note:** there are known issues in versions before 15.5.7 so we recommend using it as the minimal version. + +Make sure that the version range uses a caret (`^`) and thus is broad enough for npm to efficiently deduplicate packages. + +For UMD bundles of your components, make sure you **don’t** include `PropTypes` in the build. Usually this is done by marking it as an external (the specifics depend on your bundler), just like you do with React. + +## Compatibility + +### React 0.14 + +This package is compatible with **React 0.14.9**. Compared to 0.14.8 (which was released in March of 2016), there are no other changes in 0.14.9, so it should be a painless upgrade. + +```shell +# ATTENTION: Only run this if you still use React 0.14! +npm install --save react@^0.14.9 react-dom@^0.14.9 +``` + +### React 15+ + +This package is compatible with **React 15.3.0** and higher. + +``` +npm install --save react@^15.3.0 react-dom@^15.3.0 +``` + +### What happens on other React versions? + +It outputs warnings with the message below even though the developer doesn’t do anything wrong. Unfortunately there is no solution for this other than updating React to either 15.3.0 or higher, or 0.14.9 if you’re using React 0.14. + +## Difference from `React.PropTypes`: Don’t Call Validator Functions + +First of all, **which version of React are you using**? You might be seeing this message because a component library has updated to use `prop-types` package, but your version of React is incompatible with it. See the [above section](#compatibility) for more details. + +Are you using either React 0.14.9 or a version higher than React 15.3.0? Read on. + +When you migrate components to use the standalone `prop-types`, **all validator functions will start throwing an error if you call them directly**. This makes sure that nobody relies on them in production code, and it is safe to strip their implementations to optimize the bundle size. + +Code like this is still fine: + +```js +MyComponent.propTypes = { + myProp: PropTypes.bool +}; +``` + +However, code like this will not work with the `prop-types` package: + +```js +// Will not work with `prop-types` package! +var errorOrNull = PropTypes.bool(42, 'myProp', 'MyComponent', 'prop'); +``` + +It will throw an error: + +``` +Calling PropTypes validators directly is not supported by the `prop-types` package. +Use PropTypes.checkPropTypes() to call them. +``` + +(If you see **a warning** rather than an error with this message, please check the [above section about compatibility](#compatibility).) + +This is new behavior, and you will only encounter it when you migrate from `React.PropTypes` to the `prop-types` package. For the vast majority of components, this doesn’t matter, and if you didn’t see [this warning](https://facebook.github.io/react/warnings/dont-call-proptypes.html) in your components, your code is safe to migrate. This is not a breaking change in React because you are only opting into this change for a component by explicitly changing your imports to use `prop-types`. If you temporarily need the old behavior, you can keep using `React.PropTypes` until React 16. + +**If you absolutely need to trigger the validation manually**, call `PropTypes.checkPropTypes()`. Unlike the validators themselves, this function is safe to call in production, as it will be replaced by an empty function: + +```js +// Works with standalone PropTypes +PropTypes.checkPropTypes(MyComponent.propTypes, props, 'prop', 'MyComponent'); +``` +See below for more info. + +**If you DO want to use validation in production**, you can choose to use the **development version** by importing/requiring `prop-types/prop-types` instead of `prop-types`. + +**You might also see this error** if you’re calling a `PropTypes` validator from your own custom `PropTypes` validator. In this case, the fix is to make sure that you are passing *all* of the arguments to the inner function. There is a more in-depth explanation of how to fix it [on this page](https://facebook.github.io/react/warnings/dont-call-proptypes.html#fixing-the-false-positive-in-third-party-proptypes). Alternatively, you can temporarily keep using `React.PropTypes` until React 16, as it would still only warn in this case. + +If you use a bundler like Browserify or Webpack, don’t forget to [follow these instructions](https://reactjs.org/docs/optimizing-performance.html#use-the-production-build) to correctly bundle your application in development or production mode. Otherwise you’ll ship unnecessary code to your users. + +## PropTypes.checkPropTypes + +React will automatically check the propTypes you set on the component, but if +you are using PropTypes without React then you may want to manually call +`PropTypes.checkPropTypes`, like so: + +```js +const myPropTypes = { + name: PropTypes.string, + age: PropTypes.number, + // ... define your prop validations +}; + +const props = { + name: 'hello', // is valid + age: 'world', // not valid +}; + +// Let's say your component is called 'MyComponent' + +// Works with standalone PropTypes +PropTypes.checkPropTypes(myPropTypes, props, 'prop', 'MyComponent'); +// This will warn as follows: +// Warning: Failed prop type: Invalid prop `age` of type `string` supplied to +// `MyComponent`, expected `number`. +``` + +## PropTypes.resetWarningCache() + +`PropTypes.checkPropTypes(...)` only `console.error`s a given message once. To reset the error warning cache in tests, call `PropTypes.resetWarningCache()` + +### License + +prop-types is [MIT licensed](./LICENSE). diff --git a/node_modules/prop-types/checkPropTypes.js b/node_modules/prop-types/checkPropTypes.js new file mode 100644 index 0000000000000000000000000000000000000000..481f2cf9b9c16d50b50c918c172cba4e2d1e21ba --- /dev/null +++ b/node_modules/prop-types/checkPropTypes.js @@ -0,0 +1,103 @@ +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +'use strict'; + +var printWarning = function() {}; + +if (process.env.NODE_ENV !== 'production') { + var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret'); + var loggedTypeFailures = {}; + var has = require('./lib/has'); + + printWarning = function(text) { + var message = 'Warning: ' + text; + if (typeof console !== 'undefined') { + console.error(message); + } + try { + // --- Welcome to debugging React --- + // This error was thrown as a convenience so that you can use this stack + // to find the callsite that caused this warning to fire. + throw new Error(message); + } catch (x) { /**/ } + }; +} + +/** + * Assert that the values match with the type specs. + * Error messages are memorized and will only be shown once. + * + * @param {object} typeSpecs Map of name to a ReactPropType + * @param {object} values Runtime values that need to be type-checked + * @param {string} location e.g. "prop", "context", "child context" + * @param {string} componentName Name of the component for error messages. + * @param {?Function} getStack Returns the component stack. + * @private + */ +function checkPropTypes(typeSpecs, values, location, componentName, getStack) { + if (process.env.NODE_ENV !== 'production') { + for (var typeSpecName in typeSpecs) { + if (has(typeSpecs, typeSpecName)) { + var error; + // Prop type validation may throw. In case they do, we don't want to + // fail the render phase where it didn't fail before. So we log it. + // After these have been cleaned up, we'll let them throw. + try { + // This is intentionally an invariant that gets caught. It's the same + // behavior as without this statement except with a better message. + if (typeof typeSpecs[typeSpecName] !== 'function') { + var err = Error( + (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.' + ); + err.name = 'Invariant Violation'; + throw err; + } + error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret); + } catch (ex) { + error = ex; + } + if (error && !(error instanceof Error)) { + printWarning( + (componentName || 'React class') + ': type specification of ' + + location + ' `' + typeSpecName + '` is invalid; the type checker ' + + 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' + + 'You may have forgotten to pass an argument to the type checker ' + + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + + 'shape all require an argument).' + ); + } + if (error instanceof Error && !(error.message in loggedTypeFailures)) { + // Only monitor this failure once because there tends to be a lot of the + // same error. + loggedTypeFailures[error.message] = true; + + var stack = getStack ? getStack() : ''; + + printWarning( + 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '') + ); + } + } + } + } +} + +/** + * Resets warning cache when testing. + * + * @private + */ +checkPropTypes.resetWarningCache = function() { + if (process.env.NODE_ENV !== 'production') { + loggedTypeFailures = {}; + } +} + +module.exports = checkPropTypes; diff --git a/node_modules/prop-types/factory.js b/node_modules/prop-types/factory.js new file mode 100644 index 0000000000000000000000000000000000000000..abdf8e6dc7f88a6e5c55fdbb4e67b0f58e3f8c4b --- /dev/null +++ b/node_modules/prop-types/factory.js @@ -0,0 +1,19 @@ +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +'use strict'; + +// React 15.5 references this module, and assumes PropTypes are still callable in production. +// Therefore we re-export development-only version with all the PropTypes checks here. +// However if one is migrating to the `prop-types` npm library, they will go through the +// `index.js` entry point, and it will branch depending on the environment. +var factory = require('./factoryWithTypeCheckers'); +module.exports = function(isValidElement) { + // It is still allowed in 15.5. + var throwOnDirectAccess = false; + return factory(isValidElement, throwOnDirectAccess); +}; diff --git a/node_modules/prop-types/factoryWithThrowingShims.js b/node_modules/prop-types/factoryWithThrowingShims.js new file mode 100644 index 0000000000000000000000000000000000000000..ac882672e1749bb2729c845fbcb374c65b6e123f --- /dev/null +++ b/node_modules/prop-types/factoryWithThrowingShims.js @@ -0,0 +1,65 @@ +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +'use strict'; + +var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret'); + +function emptyFunction() {} +function emptyFunctionWithReset() {} +emptyFunctionWithReset.resetWarningCache = emptyFunction; + +module.exports = function() { + function shim(props, propName, componentName, location, propFullName, secret) { + if (secret === ReactPropTypesSecret) { + // It is still safe when called from React. + return; + } + var err = new Error( + 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' + + 'Use PropTypes.checkPropTypes() to call them. ' + + 'Read more at http://fb.me/use-check-prop-types' + ); + err.name = 'Invariant Violation'; + throw err; + }; + shim.isRequired = shim; + function getShim() { + return shim; + }; + // Important! + // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`. + var ReactPropTypes = { + array: shim, + bigint: shim, + bool: shim, + func: shim, + number: shim, + object: shim, + string: shim, + symbol: shim, + + any: shim, + arrayOf: getShim, + element: shim, + elementType: shim, + instanceOf: getShim, + node: shim, + objectOf: getShim, + oneOf: getShim, + oneOfType: getShim, + shape: getShim, + exact: getShim, + + checkPropTypes: emptyFunctionWithReset, + resetWarningCache: emptyFunction + }; + + ReactPropTypes.PropTypes = ReactPropTypes; + + return ReactPropTypes; +}; diff --git a/node_modules/prop-types/factoryWithTypeCheckers.js b/node_modules/prop-types/factoryWithTypeCheckers.js new file mode 100644 index 0000000000000000000000000000000000000000..a88068e50585fe462e8aee742211c17075f091c2 --- /dev/null +++ b/node_modules/prop-types/factoryWithTypeCheckers.js @@ -0,0 +1,610 @@ +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +'use strict'; + +var ReactIs = require('react-is'); +var assign = require('object-assign'); + +var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret'); +var has = require('./lib/has'); +var checkPropTypes = require('./checkPropTypes'); + +var printWarning = function() {}; + +if (process.env.NODE_ENV !== 'production') { + printWarning = function(text) { + var message = 'Warning: ' + text; + if (typeof console !== 'undefined') { + console.error(message); + } + try { + // --- Welcome to debugging React --- + // This error was thrown as a convenience so that you can use this stack + // to find the callsite that caused this warning to fire. + throw new Error(message); + } catch (x) {} + }; +} + +function emptyFunctionThatReturnsNull() { + return null; +} + +module.exports = function(isValidElement, throwOnDirectAccess) { + /* global Symbol */ + var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator; + var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec. + + /** + * Returns the iterator method function contained on the iterable object. + * + * Be sure to invoke the function with the iterable as context: + * + * var iteratorFn = getIteratorFn(myIterable); + * if (iteratorFn) { + * var iterator = iteratorFn.call(myIterable); + * ... + * } + * + * @param {?object} maybeIterable + * @return {?function} + */ + function getIteratorFn(maybeIterable) { + var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]); + if (typeof iteratorFn === 'function') { + return iteratorFn; + } + } + + /** + * Collection of methods that allow declaration and validation of props that are + * supplied to React components. Example usage: + * + * var Props = require('ReactPropTypes'); + * var MyArticle = React.createClass({ + * propTypes: { + * // An optional string prop named "description". + * description: Props.string, + * + * // A required enum prop named "category". + * category: Props.oneOf(['News','Photos']).isRequired, + * + * // A prop named "dialog" that requires an instance of Dialog. + * dialog: Props.instanceOf(Dialog).isRequired + * }, + * render: function() { ... } + * }); + * + * A more formal specification of how these methods are used: + * + * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...) + * decl := ReactPropTypes.{type}(.isRequired)? + * + * Each and every declaration produces a function with the same signature. This + * allows the creation of custom validation functions. For example: + * + * var MyLink = React.createClass({ + * propTypes: { + * // An optional string or URI prop named "href". + * href: function(props, propName, componentName) { + * var propValue = props[propName]; + * if (propValue != null && typeof propValue !== 'string' && + * !(propValue instanceof URI)) { + * return new Error( + * 'Expected a string or an URI for ' + propName + ' in ' + + * componentName + * ); + * } + * } + * }, + * render: function() {...} + * }); + * + * @internal + */ + + var ANONYMOUS = '<>'; + + // Important! + // Keep this list in sync with production version in `./factoryWithThrowingShims.js`. + var ReactPropTypes = { + array: createPrimitiveTypeChecker('array'), + bigint: createPrimitiveTypeChecker('bigint'), + bool: createPrimitiveTypeChecker('boolean'), + func: createPrimitiveTypeChecker('function'), + number: createPrimitiveTypeChecker('number'), + object: createPrimitiveTypeChecker('object'), + string: createPrimitiveTypeChecker('string'), + symbol: createPrimitiveTypeChecker('symbol'), + + any: createAnyTypeChecker(), + arrayOf: createArrayOfTypeChecker, + element: createElementTypeChecker(), + elementType: createElementTypeTypeChecker(), + instanceOf: createInstanceTypeChecker, + node: createNodeChecker(), + objectOf: createObjectOfTypeChecker, + oneOf: createEnumTypeChecker, + oneOfType: createUnionTypeChecker, + shape: createShapeTypeChecker, + exact: createStrictShapeTypeChecker, + }; + + /** + * inlined Object.is polyfill to avoid requiring consumers ship their own + * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is + */ + /*eslint-disable no-self-compare*/ + function is(x, y) { + // SameValue algorithm + if (x === y) { + // Steps 1-5, 7-10 + // Steps 6.b-6.e: +0 != -0 + return x !== 0 || 1 / x === 1 / y; + } else { + // Step 6.a: NaN == NaN + return x !== x && y !== y; + } + } + /*eslint-enable no-self-compare*/ + + /** + * We use an Error-like object for backward compatibility as people may call + * PropTypes directly and inspect their output. However, we don't use real + * Errors anymore. We don't inspect their stack anyway, and creating them + * is prohibitively expensive if they are created too often, such as what + * happens in oneOfType() for any type before the one that matched. + */ + function PropTypeError(message, data) { + this.message = message; + this.data = data && typeof data === 'object' ? data: {}; + this.stack = ''; + } + // Make `instanceof Error` still work for returned errors. + PropTypeError.prototype = Error.prototype; + + function createChainableTypeChecker(validate) { + if (process.env.NODE_ENV !== 'production') { + var manualPropTypeCallCache = {}; + var manualPropTypeWarningCount = 0; + } + function checkType(isRequired, props, propName, componentName, location, propFullName, secret) { + componentName = componentName || ANONYMOUS; + propFullName = propFullName || propName; + + if (secret !== ReactPropTypesSecret) { + if (throwOnDirectAccess) { + // New behavior only for users of `prop-types` package + var err = new Error( + 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' + + 'Use `PropTypes.checkPropTypes()` to call them. ' + + 'Read more at http://fb.me/use-check-prop-types' + ); + err.name = 'Invariant Violation'; + throw err; + } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') { + // Old behavior for people using React.PropTypes + var cacheKey = componentName + ':' + propName; + if ( + !manualPropTypeCallCache[cacheKey] && + // Avoid spamming the console because they are often not actionable except for lib authors + manualPropTypeWarningCount < 3 + ) { + printWarning( + 'You are manually calling a React.PropTypes validation ' + + 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' + + 'and will throw in the standalone `prop-types` package. ' + + 'You may be seeing this warning due to a third-party PropTypes ' + + 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.' + ); + manualPropTypeCallCache[cacheKey] = true; + manualPropTypeWarningCount++; + } + } + } + if (props[propName] == null) { + if (isRequired) { + if (props[propName] === null) { + return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.')); + } + return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.')); + } + return null; + } else { + return validate(props, propName, componentName, location, propFullName); + } + } + + var chainedCheckType = checkType.bind(null, false); + chainedCheckType.isRequired = checkType.bind(null, true); + + return chainedCheckType; + } + + function createPrimitiveTypeChecker(expectedType) { + function validate(props, propName, componentName, location, propFullName, secret) { + var propValue = props[propName]; + var propType = getPropType(propValue); + if (propType !== expectedType) { + // `propValue` being instance of, say, date/regexp, pass the 'object' + // check, but we can offer a more precise error message here rather than + // 'of type `object`'. + var preciseType = getPreciseType(propValue); + + return new PropTypeError( + 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'), + {expectedType: expectedType} + ); + } + return null; + } + return createChainableTypeChecker(validate); + } + + function createAnyTypeChecker() { + return createChainableTypeChecker(emptyFunctionThatReturnsNull); + } + + function createArrayOfTypeChecker(typeChecker) { + function validate(props, propName, componentName, location, propFullName) { + if (typeof typeChecker !== 'function') { + return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.'); + } + var propValue = props[propName]; + if (!Array.isArray(propValue)) { + var propType = getPropType(propValue); + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.')); + } + for (var i = 0; i < propValue.length; i++) { + var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret); + if (error instanceof Error) { + return error; + } + } + return null; + } + return createChainableTypeChecker(validate); + } + + function createElementTypeChecker() { + function validate(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + if (!isValidElement(propValue)) { + var propType = getPropType(propValue); + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.')); + } + return null; + } + return createChainableTypeChecker(validate); + } + + function createElementTypeTypeChecker() { + function validate(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + if (!ReactIs.isValidElementType(propValue)) { + var propType = getPropType(propValue); + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.')); + } + return null; + } + return createChainableTypeChecker(validate); + } + + function createInstanceTypeChecker(expectedClass) { + function validate(props, propName, componentName, location, propFullName) { + if (!(props[propName] instanceof expectedClass)) { + var expectedClassName = expectedClass.name || ANONYMOUS; + var actualClassName = getClassName(props[propName]); + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.')); + } + return null; + } + return createChainableTypeChecker(validate); + } + + function createEnumTypeChecker(expectedValues) { + if (!Array.isArray(expectedValues)) { + if (process.env.NODE_ENV !== 'production') { + if (arguments.length > 1) { + printWarning( + 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' + + 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).' + ); + } else { + printWarning('Invalid argument supplied to oneOf, expected an array.'); + } + } + return emptyFunctionThatReturnsNull; + } + + function validate(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + for (var i = 0; i < expectedValues.length; i++) { + if (is(propValue, expectedValues[i])) { + return null; + } + } + + var valuesString = JSON.stringify(expectedValues, function replacer(key, value) { + var type = getPreciseType(value); + if (type === 'symbol') { + return String(value); + } + return value; + }); + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.')); + } + return createChainableTypeChecker(validate); + } + + function createObjectOfTypeChecker(typeChecker) { + function validate(props, propName, componentName, location, propFullName) { + if (typeof typeChecker !== 'function') { + return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.'); + } + var propValue = props[propName]; + var propType = getPropType(propValue); + if (propType !== 'object') { + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.')); + } + for (var key in propValue) { + if (has(propValue, key)) { + var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); + if (error instanceof Error) { + return error; + } + } + } + return null; + } + return createChainableTypeChecker(validate); + } + + function createUnionTypeChecker(arrayOfTypeCheckers) { + if (!Array.isArray(arrayOfTypeCheckers)) { + process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0; + return emptyFunctionThatReturnsNull; + } + + for (var i = 0; i < arrayOfTypeCheckers.length; i++) { + var checker = arrayOfTypeCheckers[i]; + if (typeof checker !== 'function') { + printWarning( + 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + + 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.' + ); + return emptyFunctionThatReturnsNull; + } + } + + function validate(props, propName, componentName, location, propFullName) { + var expectedTypes = []; + for (var i = 0; i < arrayOfTypeCheckers.length; i++) { + var checker = arrayOfTypeCheckers[i]; + var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret); + if (checkerResult == null) { + return null; + } + if (checkerResult.data && has(checkerResult.data, 'expectedType')) { + expectedTypes.push(checkerResult.data.expectedType); + } + } + var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': ''; + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.')); + } + return createChainableTypeChecker(validate); + } + + function createNodeChecker() { + function validate(props, propName, componentName, location, propFullName) { + if (!isNode(props[propName])) { + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.')); + } + return null; + } + return createChainableTypeChecker(validate); + } + + function invalidValidatorError(componentName, location, propFullName, key, type) { + return new PropTypeError( + (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' + + 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.' + ); + } + + function createShapeTypeChecker(shapeTypes) { + function validate(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + var propType = getPropType(propValue); + if (propType !== 'object') { + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); + } + for (var key in shapeTypes) { + var checker = shapeTypes[key]; + if (typeof checker !== 'function') { + return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker)); + } + var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); + if (error) { + return error; + } + } + return null; + } + return createChainableTypeChecker(validate); + } + + function createStrictShapeTypeChecker(shapeTypes) { + function validate(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + var propType = getPropType(propValue); + if (propType !== 'object') { + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); + } + // We need to check all keys in case some are required but missing from props. + var allKeys = assign({}, props[propName], shapeTypes); + for (var key in allKeys) { + var checker = shapeTypes[key]; + if (has(shapeTypes, key) && typeof checker !== 'function') { + return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker)); + } + if (!checker) { + return new PropTypeError( + 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' + + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ') + ); + } + var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); + if (error) { + return error; + } + } + return null; + } + + return createChainableTypeChecker(validate); + } + + function isNode(propValue) { + switch (typeof propValue) { + case 'number': + case 'string': + case 'undefined': + return true; + case 'boolean': + return !propValue; + case 'object': + if (Array.isArray(propValue)) { + return propValue.every(isNode); + } + if (propValue === null || isValidElement(propValue)) { + return true; + } + + var iteratorFn = getIteratorFn(propValue); + if (iteratorFn) { + var iterator = iteratorFn.call(propValue); + var step; + if (iteratorFn !== propValue.entries) { + while (!(step = iterator.next()).done) { + if (!isNode(step.value)) { + return false; + } + } + } else { + // Iterator will provide entry [k,v] tuples rather than values. + while (!(step = iterator.next()).done) { + var entry = step.value; + if (entry) { + if (!isNode(entry[1])) { + return false; + } + } + } + } + } else { + return false; + } + + return true; + default: + return false; + } + } + + function isSymbol(propType, propValue) { + // Native Symbol. + if (propType === 'symbol') { + return true; + } + + // falsy value can't be a Symbol + if (!propValue) { + return false; + } + + // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol' + if (propValue['@@toStringTag'] === 'Symbol') { + return true; + } + + // Fallback for non-spec compliant Symbols which are polyfilled. + if (typeof Symbol === 'function' && propValue instanceof Symbol) { + return true; + } + + return false; + } + + // Equivalent of `typeof` but with special handling for array and regexp. + function getPropType(propValue) { + var propType = typeof propValue; + if (Array.isArray(propValue)) { + return 'array'; + } + if (propValue instanceof RegExp) { + // Old webkits (at least until Android 4.0) return 'function' rather than + // 'object' for typeof a RegExp. We'll normalize this here so that /bla/ + // passes PropTypes.object. + return 'object'; + } + if (isSymbol(propType, propValue)) { + return 'symbol'; + } + return propType; + } + + // This handles more types than `getPropType`. Only used for error messages. + // See `createPrimitiveTypeChecker`. + function getPreciseType(propValue) { + if (typeof propValue === 'undefined' || propValue === null) { + return '' + propValue; + } + var propType = getPropType(propValue); + if (propType === 'object') { + if (propValue instanceof Date) { + return 'date'; + } else if (propValue instanceof RegExp) { + return 'regexp'; + } + } + return propType; + } + + // Returns a string that is postfixed to a warning about an invalid type. + // For example, "undefined" or "of type array" + function getPostfixForTypeWarning(value) { + var type = getPreciseType(value); + switch (type) { + case 'array': + case 'object': + return 'an ' + type; + case 'boolean': + case 'date': + case 'regexp': + return 'a ' + type; + default: + return type; + } + } + + // Returns class name of the object, if any. + function getClassName(propValue) { + if (!propValue.constructor || !propValue.constructor.name) { + return ANONYMOUS; + } + return propValue.constructor.name; + } + + ReactPropTypes.checkPropTypes = checkPropTypes; + ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache; + ReactPropTypes.PropTypes = ReactPropTypes; + + return ReactPropTypes; +}; diff --git a/node_modules/prop-types/index.js b/node_modules/prop-types/index.js new file mode 100644 index 0000000000000000000000000000000000000000..e9ef51d6f39a3a26da5023d5470d73882139727a --- /dev/null +++ b/node_modules/prop-types/index.js @@ -0,0 +1,19 @@ +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +if (process.env.NODE_ENV !== 'production') { + var ReactIs = require('react-is'); + + // By explicitly using `prop-types` you are opting into new development behavior. + // http://fb.me/prop-types-in-prod + var throwOnDirectAccess = true; + module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess); +} else { + // By explicitly using `prop-types` you are opting into new production behavior. + // http://fb.me/prop-types-in-prod + module.exports = require('./factoryWithThrowingShims')(); +} diff --git a/node_modules/prop-types/lib/ReactPropTypesSecret.js b/node_modules/prop-types/lib/ReactPropTypesSecret.js new file mode 100644 index 0000000000000000000000000000000000000000..f54525e7f12a47338a6fb8cb4527b30c6affbe6e --- /dev/null +++ b/node_modules/prop-types/lib/ReactPropTypesSecret.js @@ -0,0 +1,12 @@ +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +'use strict'; + +var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; + +module.exports = ReactPropTypesSecret; diff --git a/node_modules/prop-types/lib/has.js b/node_modules/prop-types/lib/has.js new file mode 100644 index 0000000000000000000000000000000000000000..007bae3226e8c675d160309e42013f5ab46f991b --- /dev/null +++ b/node_modules/prop-types/lib/has.js @@ -0,0 +1 @@ +module.exports = Function.call.bind(Object.prototype.hasOwnProperty); diff --git a/node_modules/prop-types/package.json b/node_modules/prop-types/package.json new file mode 100644 index 0000000000000000000000000000000000000000..63daf70409b51c7dcea190cf15bf931f5faedf04 --- /dev/null +++ b/node_modules/prop-types/package.json @@ -0,0 +1,60 @@ +{ + "name": "prop-types", + "version": "15.8.1", + "description": "Runtime type checking for React props and similar objects.", + "sideEffects": false, + "main": "index.js", + "license": "MIT", + "files": [ + "LICENSE", + "README.md", + "checkPropTypes.js", + "factory.js", + "factoryWithThrowingShims.js", + "factoryWithTypeCheckers.js", + "index.js", + "prop-types.js", + "prop-types.min.js", + "lib" + ], + "repository": "facebook/prop-types", + "keywords": [ + "react" + ], + "bugs": { + "url": "https://github.com/facebook/prop-types/issues" + }, + "homepage": "https://facebook.github.io/react/", + "dependencies": { + "loose-envify": "^1.4.0", + "object-assign": "^4.1.1", + "react-is": "^16.13.1" + }, + "scripts": { + "pretest": "npm run lint", + "lint": "eslint .", + "test": "npm run tests-only", + "tests-only": "jest", + "umd": "NODE_ENV=development browserify index.js -t loose-envify --standalone PropTypes -o prop-types.js", + "umd-min": "NODE_ENV=production browserify index.js -t loose-envify -t uglifyify --standalone PropTypes -p bundle-collapser/plugin -o | uglifyjs --compress unused,dead_code -o prop-types.min.js", + "build": "yarn umd && yarn umd-min", + "prepublish": "not-in-publish || yarn build" + }, + "devDependencies": { + "babel-jest": "^19.0.0", + "babel-preset-react": "^6.24.1", + "browserify": "^16.5.0", + "bundle-collapser": "^1.4.0", + "eslint": "^8.6.0", + "in-publish": "^2.0.1", + "jest": "^19.0.2", + "react": "^15.7.0", + "uglifyify": "^5.0.2", + "uglifyjs": "^2.4.11" + }, + "browserify": { + "transform": [ + "loose-envify" + ] + } +} diff --git a/node_modules/prop-types/prop-types.js b/node_modules/prop-types/prop-types.js new file mode 100644 index 0000000000000000000000000000000000000000..a5a15ddb55020d688e7fb9f5f5f0c53d8d3be5fe --- /dev/null +++ b/node_modules/prop-types/prop-types.js @@ -0,0 +1,1315 @@ +(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.PropTypes = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i 1) { + printWarning( + 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' + + 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).' + ); + } else { + printWarning('Invalid argument supplied to oneOf, expected an array.'); + } + } + return emptyFunctionThatReturnsNull; + } + + function validate(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + for (var i = 0; i < expectedValues.length; i++) { + if (is(propValue, expectedValues[i])) { + return null; + } + } + + var valuesString = JSON.stringify(expectedValues, function replacer(key, value) { + var type = getPreciseType(value); + if (type === 'symbol') { + return String(value); + } + return value; + }); + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.')); + } + return createChainableTypeChecker(validate); + } + + function createObjectOfTypeChecker(typeChecker) { + function validate(props, propName, componentName, location, propFullName) { + if (typeof typeChecker !== 'function') { + return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.'); + } + var propValue = props[propName]; + var propType = getPropType(propValue); + if (propType !== 'object') { + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.')); + } + for (var key in propValue) { + if (has(propValue, key)) { + var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); + if (error instanceof Error) { + return error; + } + } + } + return null; + } + return createChainableTypeChecker(validate); + } + + function createUnionTypeChecker(arrayOfTypeCheckers) { + if (!Array.isArray(arrayOfTypeCheckers)) { + "development" !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0; + return emptyFunctionThatReturnsNull; + } + + for (var i = 0; i < arrayOfTypeCheckers.length; i++) { + var checker = arrayOfTypeCheckers[i]; + if (typeof checker !== 'function') { + printWarning( + 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + + 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.' + ); + return emptyFunctionThatReturnsNull; + } + } + + function validate(props, propName, componentName, location, propFullName) { + var expectedTypes = []; + for (var i = 0; i < arrayOfTypeCheckers.length; i++) { + var checker = arrayOfTypeCheckers[i]; + var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret); + if (checkerResult == null) { + return null; + } + if (checkerResult.data.hasOwnProperty('expectedType')) { + expectedTypes.push(checkerResult.data.expectedType); + } + } + var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': ''; + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.')); + } + return createChainableTypeChecker(validate); + } + + function createNodeChecker() { + function validate(props, propName, componentName, location, propFullName) { + if (!isNode(props[propName])) { + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.')); + } + return null; + } + return createChainableTypeChecker(validate); + } + + function invalidValidatorError(componentName, location, propFullName, key, type) { + return new PropTypeError( + (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' + + 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.' + ); + } + + function createShapeTypeChecker(shapeTypes) { + function validate(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + var propType = getPropType(propValue); + if (propType !== 'object') { + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); + } + for (var key in shapeTypes) { + var checker = shapeTypes[key]; + if (typeof checker !== 'function') { + return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker)); + } + var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); + if (error) { + return error; + } + } + return null; + } + return createChainableTypeChecker(validate); + } + + function createStrictShapeTypeChecker(shapeTypes) { + function validate(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + var propType = getPropType(propValue); + if (propType !== 'object') { + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); + } + // We need to check all keys in case some are required but missing from props. + var allKeys = assign({}, props[propName], shapeTypes); + for (var key in allKeys) { + var checker = shapeTypes[key]; + if (has(shapeTypes, key) && typeof checker !== 'function') { + return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker)); + } + if (!checker) { + return new PropTypeError( + 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' + + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ') + ); + } + var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); + if (error) { + return error; + } + } + return null; + } + + return createChainableTypeChecker(validate); + } + + function isNode(propValue) { + switch (typeof propValue) { + case 'number': + case 'string': + case 'undefined': + return true; + case 'boolean': + return !propValue; + case 'object': + if (Array.isArray(propValue)) { + return propValue.every(isNode); + } + if (propValue === null || isValidElement(propValue)) { + return true; + } + + var iteratorFn = getIteratorFn(propValue); + if (iteratorFn) { + var iterator = iteratorFn.call(propValue); + var step; + if (iteratorFn !== propValue.entries) { + while (!(step = iterator.next()).done) { + if (!isNode(step.value)) { + return false; + } + } + } else { + // Iterator will provide entry [k,v] tuples rather than values. + while (!(step = iterator.next()).done) { + var entry = step.value; + if (entry) { + if (!isNode(entry[1])) { + return false; + } + } + } + } + } else { + return false; + } + + return true; + default: + return false; + } + } + + function isSymbol(propType, propValue) { + // Native Symbol. + if (propType === 'symbol') { + return true; + } + + // falsy value can't be a Symbol + if (!propValue) { + return false; + } + + // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol' + if (propValue['@@toStringTag'] === 'Symbol') { + return true; + } + + // Fallback for non-spec compliant Symbols which are polyfilled. + if (typeof Symbol === 'function' && propValue instanceof Symbol) { + return true; + } + + return false; + } + + // Equivalent of `typeof` but with special handling for array and regexp. + function getPropType(propValue) { + var propType = typeof propValue; + if (Array.isArray(propValue)) { + return 'array'; + } + if (propValue instanceof RegExp) { + // Old webkits (at least until Android 4.0) return 'function' rather than + // 'object' for typeof a RegExp. We'll normalize this here so that /bla/ + // passes PropTypes.object. + return 'object'; + } + if (isSymbol(propType, propValue)) { + return 'symbol'; + } + return propType; + } + + // This handles more types than `getPropType`. Only used for error messages. + // See `createPrimitiveTypeChecker`. + function getPreciseType(propValue) { + if (typeof propValue === 'undefined' || propValue === null) { + return '' + propValue; + } + var propType = getPropType(propValue); + if (propType === 'object') { + if (propValue instanceof Date) { + return 'date'; + } else if (propValue instanceof RegExp) { + return 'regexp'; + } + } + return propType; + } + + // Returns a string that is postfixed to a warning about an invalid type. + // For example, "undefined" or "of type array" + function getPostfixForTypeWarning(value) { + var type = getPreciseType(value); + switch (type) { + case 'array': + case 'object': + return 'an ' + type; + case 'boolean': + case 'date': + case 'regexp': + return 'a ' + type; + default: + return type; + } + } + + // Returns class name of the object, if any. + function getClassName(propValue) { + if (!propValue.constructor || !propValue.constructor.name) { + return ANONYMOUS; + } + return propValue.constructor.name; + } + + ReactPropTypes.checkPropTypes = checkPropTypes; + ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache; + ReactPropTypes.PropTypes = ReactPropTypes; + + return ReactPropTypes; +}; + +},{"./checkPropTypes":1,"./lib/ReactPropTypesSecret":5,"./lib/has":6,"object-assign":7,"react-is":11}],4:[function(require,module,exports){ +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +if ("development" !== 'production') { + var ReactIs = require('react-is'); + + // By explicitly using `prop-types` you are opting into new development behavior. + // http://fb.me/prop-types-in-prod + var throwOnDirectAccess = true; + module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess); +} else { + // By explicitly using `prop-types` you are opting into new production behavior. + // http://fb.me/prop-types-in-prod + module.exports = require('./factoryWithThrowingShims')(); +} + +},{"./factoryWithThrowingShims":2,"./factoryWithTypeCheckers":3,"react-is":11}],5:[function(require,module,exports){ +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +'use strict'; + +var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; + +module.exports = ReactPropTypesSecret; + +},{}],6:[function(require,module,exports){ +module.exports = Function.call.bind(Object.prototype.hasOwnProperty); + +},{}],7:[function(require,module,exports){ +/* +object-assign +(c) Sindre Sorhus +@license MIT +*/ + +'use strict'; +/* eslint-disable no-unused-vars */ +var getOwnPropertySymbols = Object.getOwnPropertySymbols; +var hasOwnProperty = Object.prototype.hasOwnProperty; +var propIsEnumerable = Object.prototype.propertyIsEnumerable; + +function toObject(val) { + if (val === null || val === undefined) { + throw new TypeError('Object.assign cannot be called with null or undefined'); + } + + return Object(val); +} + +function shouldUseNative() { + try { + if (!Object.assign) { + return false; + } + + // Detect buggy property enumeration order in older V8 versions. + + // https://bugs.chromium.org/p/v8/issues/detail?id=4118 + var test1 = new String('abc'); // eslint-disable-line no-new-wrappers + test1[5] = 'de'; + if (Object.getOwnPropertyNames(test1)[0] === '5') { + return false; + } + + // https://bugs.chromium.org/p/v8/issues/detail?id=3056 + var test2 = {}; + for (var i = 0; i < 10; i++) { + test2['_' + String.fromCharCode(i)] = i; + } + var order2 = Object.getOwnPropertyNames(test2).map(function (n) { + return test2[n]; + }); + if (order2.join('') !== '0123456789') { + return false; + } + + // https://bugs.chromium.org/p/v8/issues/detail?id=3056 + var test3 = {}; + 'abcdefghijklmnopqrst'.split('').forEach(function (letter) { + test3[letter] = letter; + }); + if (Object.keys(Object.assign({}, test3)).join('') !== + 'abcdefghijklmnopqrst') { + return false; + } + + return true; + } catch (err) { + // We don't expect any of the above to throw, but better to be safe. + return false; + } +} + +module.exports = shouldUseNative() ? Object.assign : function (target, source) { + var from; + var to = toObject(target); + var symbols; + + for (var s = 1; s < arguments.length; s++) { + from = Object(arguments[s]); + + for (var key in from) { + if (hasOwnProperty.call(from, key)) { + to[key] = from[key]; + } + } + + if (getOwnPropertySymbols) { + symbols = getOwnPropertySymbols(from); + for (var i = 0; i < symbols.length; i++) { + if (propIsEnumerable.call(from, symbols[i])) { + to[symbols[i]] = from[symbols[i]]; + } + } + } + } + + return to; +}; + +},{}],8:[function(require,module,exports){ +// shim for using process in browser +var process = module.exports = {}; + +// cached from whatever global is present so that test runners that stub it +// don't break things. But we need to wrap it in a try catch in case it is +// wrapped in strict mode code which doesn't define any globals. It's inside a +// function because try/catches deoptimize in certain engines. + +var cachedSetTimeout; +var cachedClearTimeout; + +function defaultSetTimout() { + throw new Error('setTimeout has not been defined'); +} +function defaultClearTimeout () { + throw new Error('clearTimeout has not been defined'); +} +(function () { + try { + if (typeof setTimeout === 'function') { + cachedSetTimeout = setTimeout; + } else { + cachedSetTimeout = defaultSetTimout; + } + } catch (e) { + cachedSetTimeout = defaultSetTimout; + } + try { + if (typeof clearTimeout === 'function') { + cachedClearTimeout = clearTimeout; + } else { + cachedClearTimeout = defaultClearTimeout; + } + } catch (e) { + cachedClearTimeout = defaultClearTimeout; + } +} ()) +function runTimeout(fun) { + if (cachedSetTimeout === setTimeout) { + //normal enviroments in sane situations + return setTimeout(fun, 0); + } + // if setTimeout wasn't available but was latter defined + if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { + cachedSetTimeout = setTimeout; + return setTimeout(fun, 0); + } + try { + // when when somebody has screwed with setTimeout but no I.E. maddness + return cachedSetTimeout(fun, 0); + } catch(e){ + try { + // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally + return cachedSetTimeout.call(null, fun, 0); + } catch(e){ + // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error + return cachedSetTimeout.call(this, fun, 0); + } + } + + +} +function runClearTimeout(marker) { + if (cachedClearTimeout === clearTimeout) { + //normal enviroments in sane situations + return clearTimeout(marker); + } + // if clearTimeout wasn't available but was latter defined + if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { + cachedClearTimeout = clearTimeout; + return clearTimeout(marker); + } + try { + // when when somebody has screwed with setTimeout but no I.E. maddness + return cachedClearTimeout(marker); + } catch (e){ + try { + // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally + return cachedClearTimeout.call(null, marker); + } catch (e){ + // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error. + // Some versions of I.E. have different rules for clearTimeout vs setTimeout + return cachedClearTimeout.call(this, marker); + } + } + + + +} +var queue = []; +var draining = false; +var currentQueue; +var queueIndex = -1; + +function cleanUpNextTick() { + if (!draining || !currentQueue) { + return; + } + draining = false; + if (currentQueue.length) { + queue = currentQueue.concat(queue); + } else { + queueIndex = -1; + } + if (queue.length) { + drainQueue(); + } +} + +function drainQueue() { + if (draining) { + return; + } + var timeout = runTimeout(cleanUpNextTick); + draining = true; + + var len = queue.length; + while(len) { + currentQueue = queue; + queue = []; + while (++queueIndex < len) { + if (currentQueue) { + currentQueue[queueIndex].run(); + } + } + queueIndex = -1; + len = queue.length; + } + currentQueue = null; + draining = false; + runClearTimeout(timeout); +} + +process.nextTick = function (fun) { + var args = new Array(arguments.length - 1); + if (arguments.length > 1) { + for (var i = 1; i < arguments.length; i++) { + args[i - 1] = arguments[i]; + } + } + queue.push(new Item(fun, args)); + if (queue.length === 1 && !draining) { + runTimeout(drainQueue); + } +}; + +// v8 likes predictible objects +function Item(fun, array) { + this.fun = fun; + this.array = array; +} +Item.prototype.run = function () { + this.fun.apply(null, this.array); +}; +process.title = 'browser'; +process.browser = true; +process.env = {}; +process.argv = []; +process.version = ''; // empty string to avoid regexp issues +process.versions = {}; + +function noop() {} + +process.on = noop; +process.addListener = noop; +process.once = noop; +process.off = noop; +process.removeListener = noop; +process.removeAllListeners = noop; +process.emit = noop; +process.prependListener = noop; +process.prependOnceListener = noop; + +process.listeners = function (name) { return [] } + +process.binding = function (name) { + throw new Error('process.binding is not supported'); +}; + +process.cwd = function () { return '/' }; +process.chdir = function (dir) { + throw new Error('process.chdir is not supported'); +}; +process.umask = function() { return 0; }; + +},{}],9:[function(require,module,exports){ +(function (process){(function (){ +/** @license React v16.13.1 + * react-is.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +'use strict'; + + + +if (process.env.NODE_ENV !== "production") { + (function() { +'use strict'; + +// The Symbol used to tag the ReactElement-like types. If there is no native Symbol +// nor polyfill, then a plain number is used for performance. +var hasSymbol = typeof Symbol === 'function' && Symbol.for; +var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7; +var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca; +var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb; +var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc; +var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2; +var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd; +var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary +// (unstable) APIs that have been removed. Can we remove the symbols? + +var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf; +var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf; +var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0; +var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1; +var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8; +var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3; +var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4; +var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9; +var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5; +var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6; +var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7; + +function isValidElementType(type) { + return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. + type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE); +} + +function typeOf(object) { + if (typeof object === 'object' && object !== null) { + var $$typeof = object.$$typeof; + + switch ($$typeof) { + case REACT_ELEMENT_TYPE: + var type = object.type; + + switch (type) { + case REACT_ASYNC_MODE_TYPE: + case REACT_CONCURRENT_MODE_TYPE: + case REACT_FRAGMENT_TYPE: + case REACT_PROFILER_TYPE: + case REACT_STRICT_MODE_TYPE: + case REACT_SUSPENSE_TYPE: + return type; + + default: + var $$typeofType = type && type.$$typeof; + + switch ($$typeofType) { + case REACT_CONTEXT_TYPE: + case REACT_FORWARD_REF_TYPE: + case REACT_LAZY_TYPE: + case REACT_MEMO_TYPE: + case REACT_PROVIDER_TYPE: + return $$typeofType; + + default: + return $$typeof; + } + + } + + case REACT_PORTAL_TYPE: + return $$typeof; + } + } + + return undefined; +} // AsyncMode is deprecated along with isAsyncMode + +var AsyncMode = REACT_ASYNC_MODE_TYPE; +var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE; +var ContextConsumer = REACT_CONTEXT_TYPE; +var ContextProvider = REACT_PROVIDER_TYPE; +var Element = REACT_ELEMENT_TYPE; +var ForwardRef = REACT_FORWARD_REF_TYPE; +var Fragment = REACT_FRAGMENT_TYPE; +var Lazy = REACT_LAZY_TYPE; +var Memo = REACT_MEMO_TYPE; +var Portal = REACT_PORTAL_TYPE; +var Profiler = REACT_PROFILER_TYPE; +var StrictMode = REACT_STRICT_MODE_TYPE; +var Suspense = REACT_SUSPENSE_TYPE; +var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated + +function isAsyncMode(object) { + { + if (!hasWarnedAboutDeprecatedIsAsyncMode) { + hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint + + console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.'); + } + } + + return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE; +} +function isConcurrentMode(object) { + return typeOf(object) === REACT_CONCURRENT_MODE_TYPE; +} +function isContextConsumer(object) { + return typeOf(object) === REACT_CONTEXT_TYPE; +} +function isContextProvider(object) { + return typeOf(object) === REACT_PROVIDER_TYPE; +} +function isElement(object) { + return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; +} +function isForwardRef(object) { + return typeOf(object) === REACT_FORWARD_REF_TYPE; +} +function isFragment(object) { + return typeOf(object) === REACT_FRAGMENT_TYPE; +} +function isLazy(object) { + return typeOf(object) === REACT_LAZY_TYPE; +} +function isMemo(object) { + return typeOf(object) === REACT_MEMO_TYPE; +} +function isPortal(object) { + return typeOf(object) === REACT_PORTAL_TYPE; +} +function isProfiler(object) { + return typeOf(object) === REACT_PROFILER_TYPE; +} +function isStrictMode(object) { + return typeOf(object) === REACT_STRICT_MODE_TYPE; +} +function isSuspense(object) { + return typeOf(object) === REACT_SUSPENSE_TYPE; +} + +exports.AsyncMode = AsyncMode; +exports.ConcurrentMode = ConcurrentMode; +exports.ContextConsumer = ContextConsumer; +exports.ContextProvider = ContextProvider; +exports.Element = Element; +exports.ForwardRef = ForwardRef; +exports.Fragment = Fragment; +exports.Lazy = Lazy; +exports.Memo = Memo; +exports.Portal = Portal; +exports.Profiler = Profiler; +exports.StrictMode = StrictMode; +exports.Suspense = Suspense; +exports.isAsyncMode = isAsyncMode; +exports.isConcurrentMode = isConcurrentMode; +exports.isContextConsumer = isContextConsumer; +exports.isContextProvider = isContextProvider; +exports.isElement = isElement; +exports.isForwardRef = isForwardRef; +exports.isFragment = isFragment; +exports.isLazy = isLazy; +exports.isMemo = isMemo; +exports.isPortal = isPortal; +exports.isProfiler = isProfiler; +exports.isStrictMode = isStrictMode; +exports.isSuspense = isSuspense; +exports.isValidElementType = isValidElementType; +exports.typeOf = typeOf; + })(); +} + +}).call(this)}).call(this,require('_process')) +},{"_process":8}],10:[function(require,module,exports){ +/** @license React v16.13.1 + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +'use strict';var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b? +Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119; +function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d; +exports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t}; +exports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p}; +exports.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z; + +},{}],11:[function(require,module,exports){ +(function (process){(function (){ +'use strict'; + +if (process.env.NODE_ENV === 'production') { + module.exports = require('./cjs/react-is.production.min.js'); +} else { + module.exports = require('./cjs/react-is.development.js'); +} + +}).call(this)}).call(this,require('_process')) +},{"./cjs/react-is.development.js":9,"./cjs/react-is.production.min.js":10,"_process":8}]},{},[4])(4) +}); diff --git a/node_modules/prop-types/prop-types.min.js b/node_modules/prop-types/prop-types.min.js new file mode 100644 index 0000000000000000000000000000000000000000..7a746e122d8a820bed3a2882daa457c7054f1138 --- /dev/null +++ b/node_modules/prop-types/prop-types.min.js @@ -0,0 +1 @@ +!function(f){"object"==typeof exports&&"undefined"!=typeof module?module.exports=f():"function"==typeof define&&define.amd?define([],f):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).PropTypes=f()}(function(){return function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var p="function"==typeof require&&require;if(!f&&p)return p(i,!0);if(u)return u(i,!0);throw(p=new Error("Cannot find module '"+i+"'")).code="MODULE_NOT_FOUND",p}p=n[i]={exports:{}},e[i][0].call(p.exports,function(r){return o(e[i][1][r]||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i + /** + * Object mapping properties to info. + */ + property: Record + /** + * Space of the schema. + */ + space: Space | undefined +} + +/** + * Space of a property. + */ +export type Space = 'html' | 'svg' | 'xlink' | 'xmlns' | 'xml' + +export {find} from './lib/find.js' + +export {hastToReact} from './lib/hast-to-react.js' + +/** + * `Schema` for HTML, + * with info on properties from HTML itself and related embedded spaces + * (ARIA, XML, XMLNS, XLink). + */ +export const html: Schema + +export {normalize} from './lib/normalize.js' + +/** + * `Schema` for SVG, + * with info on properties from SVG itself and related embedded spaces + * (ARIA, XML, XMLNS, XLink). + */ +export const svg: Schema diff --git a/node_modules/property-information/index.js b/node_modules/property-information/index.js new file mode 100644 index 0000000000000000000000000000000000000000..e434f836da7749d7cee62e14cc2db710a8752c66 --- /dev/null +++ b/node_modules/property-information/index.js @@ -0,0 +1,17 @@ +// Note: types exposed from `index.d.ts`. +import {merge} from './lib/util/merge.js' +import {aria} from './lib/aria.js' +import {html as htmlBase} from './lib/html.js' +import {svg as svgBase} from './lib/svg.js' +import {xlink} from './lib/xlink.js' +import {xmlns} from './lib/xmlns.js' +import {xml} from './lib/xml.js' + +export {hastToReact} from './lib/hast-to-react.js' + +export const html = merge([aria, htmlBase, xlink, xmlns, xml], 'html') + +export {find} from './lib/find.js' +export {normalize} from './lib/normalize.js' + +export const svg = merge([aria, svgBase, xlink, xmlns, xml], 'svg') diff --git a/node_modules/property-information/lib/aria.d.ts b/node_modules/property-information/lib/aria.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..7a415d0a9df7568fff312975fbba4f6898bc55fd --- /dev/null +++ b/node_modules/property-information/lib/aria.d.ts @@ -0,0 +1,2 @@ +export const aria: import("./util/schema.js").Schema; +//# sourceMappingURL=aria.d.ts.map \ No newline at end of file diff --git a/node_modules/property-information/lib/aria.d.ts.map b/node_modules/property-information/lib/aria.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..fad7af62e850a9fbb01f17527674bbf8a1801031 --- /dev/null +++ b/node_modules/property-information/lib/aria.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"aria.d.ts","sourceRoot":"","sources":["aria.js"],"names":[],"mappings":"AAGA,qDAyDE"} \ No newline at end of file diff --git a/node_modules/property-information/lib/aria.js b/node_modules/property-information/lib/aria.js new file mode 100644 index 0000000000000000000000000000000000000000..8ea51d7345e2c976dca24539542b8205afb5bf57 --- /dev/null +++ b/node_modules/property-information/lib/aria.js @@ -0,0 +1,61 @@ +import {create} from './util/create.js' +import {booleanish, number, spaceSeparated} from './util/types.js' + +export const aria = create({ + properties: { + ariaActiveDescendant: null, + ariaAtomic: booleanish, + ariaAutoComplete: null, + ariaBusy: booleanish, + ariaChecked: booleanish, + ariaColCount: number, + ariaColIndex: number, + ariaColSpan: number, + ariaControls: spaceSeparated, + ariaCurrent: null, + ariaDescribedBy: spaceSeparated, + ariaDetails: null, + ariaDisabled: booleanish, + ariaDropEffect: spaceSeparated, + ariaErrorMessage: null, + ariaExpanded: booleanish, + ariaFlowTo: spaceSeparated, + ariaGrabbed: booleanish, + ariaHasPopup: null, + ariaHidden: booleanish, + ariaInvalid: null, + ariaKeyShortcuts: null, + ariaLabel: null, + ariaLabelledBy: spaceSeparated, + ariaLevel: number, + ariaLive: null, + ariaModal: booleanish, + ariaMultiLine: booleanish, + ariaMultiSelectable: booleanish, + ariaOrientation: null, + ariaOwns: spaceSeparated, + ariaPlaceholder: null, + ariaPosInSet: number, + ariaPressed: booleanish, + ariaReadOnly: booleanish, + ariaRelevant: null, + ariaRequired: booleanish, + ariaRoleDescription: spaceSeparated, + ariaRowCount: number, + ariaRowIndex: number, + ariaRowSpan: number, + ariaSelected: booleanish, + ariaSetSize: number, + ariaSort: null, + ariaValueMax: number, + ariaValueMin: number, + ariaValueNow: number, + ariaValueText: null, + role: null + }, + transform(_, property) { + return property === 'role' + ? property + : 'aria-' + property.slice(4).toLowerCase() + } +}) diff --git a/node_modules/property-information/lib/find.d.ts b/node_modules/property-information/lib/find.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..ed6fdf9bd4de3c41aefdac1bb9e731554e6dc29d --- /dev/null +++ b/node_modules/property-information/lib/find.d.ts @@ -0,0 +1,34 @@ +/** + * Look up info on a property. + * + * In most cases the given `schema` contains info on the property. + * All standard, + * most legacy, + * and some non-standard properties are supported. + * For these cases, + * the returned `Info` has hints about the value of the property. + * + * `name` can also be a valid data attribute or property, + * in which case an `Info` object with the correctly cased `attribute` and + * `property` is returned. + * + * `name` can be an unknown attribute, + * in which case an `Info` object with `attribute` and `property` set to the + * given name is returned. + * It is not recommended to provide unsupported legacy or recently specced + * properties. + * + * + * @param {Schema} schema + * Schema; + * either the `html` or `svg` export. + * @param {string} value + * An attribute-like or property-like name; + * it will be passed through `normalize` to hopefully find the correct info. + * @returns {Info} + * Info. + */ +export function find(schema: Schema, value: string): Info; +import type { Schema } from 'property-information'; +import { Info } from './util/info.js'; +//# sourceMappingURL=find.d.ts.map \ No newline at end of file diff --git a/node_modules/property-information/lib/find.d.ts.map b/node_modules/property-information/lib/find.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..b5217d3a17264c3b8f05eb1f61d692fa1e566ecc --- /dev/null +++ b/node_modules/property-information/lib/find.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"find.d.ts","sourceRoot":"","sources":["find.js"],"names":[],"mappings":"AAYA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,6BATW,MAAM,SAGN,MAAM,GAGJ,IAAI,CAqChB;4BA3EwB,sBAAsB;qBAI5B,gBAAgB"} \ No newline at end of file diff --git a/node_modules/property-information/lib/find.js b/node_modules/property-information/lib/find.js new file mode 100644 index 0000000000000000000000000000000000000000..074e2d93a8b8de716a680833a494bfb7b2f328ac --- /dev/null +++ b/node_modules/property-information/lib/find.js @@ -0,0 +1,97 @@ +/** + * @import {Schema} from 'property-information' + */ + +import {DefinedInfo} from './util/defined-info.js' +import {Info} from './util/info.js' +import {normalize} from './normalize.js' + +const cap = /[A-Z]/g +const dash = /-[a-z]/g +const valid = /^data[-\w.:]+$/i + +/** + * Look up info on a property. + * + * In most cases the given `schema` contains info on the property. + * All standard, + * most legacy, + * and some non-standard properties are supported. + * For these cases, + * the returned `Info` has hints about the value of the property. + * + * `name` can also be a valid data attribute or property, + * in which case an `Info` object with the correctly cased `attribute` and + * `property` is returned. + * + * `name` can be an unknown attribute, + * in which case an `Info` object with `attribute` and `property` set to the + * given name is returned. + * It is not recommended to provide unsupported legacy or recently specced + * properties. + * + * + * @param {Schema} schema + * Schema; + * either the `html` or `svg` export. + * @param {string} value + * An attribute-like or property-like name; + * it will be passed through `normalize` to hopefully find the correct info. + * @returns {Info} + * Info. + */ +export function find(schema, value) { + const normal = normalize(value) + let property = value + let Type = Info + + if (normal in schema.normal) { + return schema.property[schema.normal[normal]] + } + + if (normal.length > 4 && normal.slice(0, 4) === 'data' && valid.test(value)) { + // Attribute or property. + if (value.charAt(4) === '-') { + // Turn it into a property. + const rest = value.slice(5).replace(dash, camelcase) + property = 'data' + rest.charAt(0).toUpperCase() + rest.slice(1) + } else { + // Turn it into an attribute. + const rest = value.slice(4) + + if (!dash.test(rest)) { + let dashes = rest.replace(cap, kebab) + + if (dashes.charAt(0) !== '-') { + dashes = '-' + dashes + } + + value = 'data' + dashes + } + } + + Type = DefinedInfo + } + + return new Type(property, value) +} + +/** + * @param {string} $0 + * Value. + * @returns {string} + * Kebab. + */ +function kebab($0) { + return '-' + $0.toLowerCase() +} + +/** + * @param {string} $0 + * Value. + * @returns {string} + * Camel. + */ +function camelcase($0) { + return $0.charAt(1).toUpperCase() +} diff --git a/node_modules/property-information/lib/hast-to-react.d.ts b/node_modules/property-information/lib/hast-to-react.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..02142e46118e2c564407a10c009ab4031bd57471 --- /dev/null +++ b/node_modules/property-information/lib/hast-to-react.d.ts @@ -0,0 +1,13 @@ +/** + * Special cases for React (`Record`). + * + * `hast` is close to `React` but differs in a couple of cases. + * To get a React property from a hast property, + * check if it is in `hastToReact`. + * If it is, use the corresponding value; + * otherwise, use the hast property. + * + * @type {Record} + */ +export const hastToReact: Record; +//# sourceMappingURL=hast-to-react.d.ts.map \ No newline at end of file diff --git a/node_modules/property-information/lib/hast-to-react.d.ts.map b/node_modules/property-information/lib/hast-to-react.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..2b6eead193a62188d04630152285329c90137853 --- /dev/null +++ b/node_modules/property-information/lib/hast-to-react.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"hast-to-react.d.ts","sourceRoot":"","sources":["hast-to-react.js"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,0BAFU,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAoB/B"} \ No newline at end of file diff --git a/node_modules/property-information/lib/hast-to-react.js b/node_modules/property-information/lib/hast-to-react.js new file mode 100644 index 0000000000000000000000000000000000000000..805ad87e94bda7a59dbeb3256883bc06772c13a9 --- /dev/null +++ b/node_modules/property-information/lib/hast-to-react.js @@ -0,0 +1,30 @@ +/** + * Special cases for React (`Record`). + * + * `hast` is close to `React` but differs in a couple of cases. + * To get a React property from a hast property, + * check if it is in `hastToReact`. + * If it is, use the corresponding value; + * otherwise, use the hast property. + * + * @type {Record} + */ +export const hastToReact = { + classId: 'classID', + dataType: 'datatype', + itemId: 'itemID', + strokeDashArray: 'strokeDasharray', + strokeDashOffset: 'strokeDashoffset', + strokeLineCap: 'strokeLinecap', + strokeLineJoin: 'strokeLinejoin', + strokeMiterLimit: 'strokeMiterlimit', + typeOf: 'typeof', + xLinkActuate: 'xlinkActuate', + xLinkArcRole: 'xlinkArcrole', + xLinkHref: 'xlinkHref', + xLinkRole: 'xlinkRole', + xLinkShow: 'xlinkShow', + xLinkTitle: 'xlinkTitle', + xLinkType: 'xlinkType', + xmlnsXLink: 'xmlnsXlink' +} diff --git a/node_modules/property-information/lib/html.d.ts b/node_modules/property-information/lib/html.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..437ca9687ad96037dd1ed9a16d9eb6e8aeb568cb --- /dev/null +++ b/node_modules/property-information/lib/html.d.ts @@ -0,0 +1,2 @@ +export const html: import("./util/schema.js").Schema; +//# sourceMappingURL=html.d.ts.map \ No newline at end of file diff --git a/node_modules/property-information/lib/html.d.ts.map b/node_modules/property-information/lib/html.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..86d055ee39a5811bcddd7c217eaa6c51e5ca4bb1 --- /dev/null +++ b/node_modules/property-information/lib/html.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"html.d.ts","sourceRoot":"","sources":["html.js"],"names":[],"mappings":"AAWA,qDAgUE"} \ No newline at end of file diff --git a/node_modules/property-information/lib/html.js b/node_modules/property-information/lib/html.js new file mode 100644 index 0000000000000000000000000000000000000000..1e86b0225a28549891e68cf0db8625e2cafd0141 --- /dev/null +++ b/node_modules/property-information/lib/html.js @@ -0,0 +1,332 @@ +import {caseInsensitiveTransform} from './util/case-insensitive-transform.js' +import {create} from './util/create.js' +import { + booleanish, + boolean, + commaSeparated, + number, + overloadedBoolean, + spaceSeparated +} from './util/types.js' + +export const html = create({ + attributes: { + acceptcharset: 'accept-charset', + classname: 'class', + htmlfor: 'for', + httpequiv: 'http-equiv' + }, + mustUseProperty: ['checked', 'multiple', 'muted', 'selected'], + properties: { + // Standard Properties. + abbr: null, + accept: commaSeparated, + acceptCharset: spaceSeparated, + accessKey: spaceSeparated, + action: null, + allow: null, + allowFullScreen: boolean, + allowPaymentRequest: boolean, + allowUserMedia: boolean, + alpha: boolean, + alt: null, + as: null, + async: boolean, + autoCapitalize: null, + autoComplete: spaceSeparated, + autoFocus: boolean, + autoPlay: boolean, + blocking: spaceSeparated, + capture: null, + charSet: null, + checked: boolean, + cite: null, + className: spaceSeparated, + closedBy: null, + colorSpace: null, + cols: number, + colSpan: number, + command: null, + commandFor: null, + content: null, + contentEditable: booleanish, + controls: boolean, + controlsList: spaceSeparated, + coords: number | commaSeparated, + crossOrigin: null, + data: null, + dateTime: null, + decoding: null, + default: boolean, + defer: boolean, + dir: null, + dirName: null, + disabled: boolean, + download: overloadedBoolean, + draggable: booleanish, + encType: null, + enterKeyHint: null, + fetchPriority: null, + form: null, + formAction: null, + formEncType: null, + formMethod: null, + formNoValidate: boolean, + formTarget: null, + headers: spaceSeparated, + height: number, + hidden: overloadedBoolean, + high: number, + href: null, + hrefLang: null, + htmlFor: spaceSeparated, + httpEquiv: spaceSeparated, + id: null, + imageSizes: null, + imageSrcSet: null, + inert: boolean, + inputMode: null, + integrity: null, + is: null, + isMap: boolean, + itemId: null, + itemProp: spaceSeparated, + itemRef: spaceSeparated, + itemScope: boolean, + itemType: spaceSeparated, + kind: null, + label: null, + lang: null, + language: null, + list: null, + loading: null, + loop: boolean, + low: number, + manifest: null, + max: null, + maxLength: number, + media: null, + method: null, + min: null, + minLength: number, + multiple: boolean, + muted: boolean, + name: null, + nonce: null, + noModule: boolean, + noValidate: boolean, + onAbort: null, + onAfterPrint: null, + onAuxClick: null, + onBeforeMatch: null, + onBeforePrint: null, + onBeforeToggle: null, + onBeforeUnload: null, + onBlur: null, + onCancel: null, + onCanPlay: null, + onCanPlayThrough: null, + onChange: null, + onClick: null, + onClose: null, + onContextLost: null, + onContextMenu: null, + onContextRestored: null, + onCopy: null, + onCueChange: null, + onCut: null, + onDblClick: null, + onDrag: null, + onDragEnd: null, + onDragEnter: null, + onDragExit: null, + onDragLeave: null, + onDragOver: null, + onDragStart: null, + onDrop: null, + onDurationChange: null, + onEmptied: null, + onEnded: null, + onError: null, + onFocus: null, + onFormData: null, + onHashChange: null, + onInput: null, + onInvalid: null, + onKeyDown: null, + onKeyPress: null, + onKeyUp: null, + onLanguageChange: null, + onLoad: null, + onLoadedData: null, + onLoadedMetadata: null, + onLoadEnd: null, + onLoadStart: null, + onMessage: null, + onMessageError: null, + onMouseDown: null, + onMouseEnter: null, + onMouseLeave: null, + onMouseMove: null, + onMouseOut: null, + onMouseOver: null, + onMouseUp: null, + onOffline: null, + onOnline: null, + onPageHide: null, + onPageShow: null, + onPaste: null, + onPause: null, + onPlay: null, + onPlaying: null, + onPopState: null, + onProgress: null, + onRateChange: null, + onRejectionHandled: null, + onReset: null, + onResize: null, + onScroll: null, + onScrollEnd: null, + onSecurityPolicyViolation: null, + onSeeked: null, + onSeeking: null, + onSelect: null, + onSlotChange: null, + onStalled: null, + onStorage: null, + onSubmit: null, + onSuspend: null, + onTimeUpdate: null, + onToggle: null, + onUnhandledRejection: null, + onUnload: null, + onVolumeChange: null, + onWaiting: null, + onWheel: null, + open: boolean, + optimum: number, + pattern: null, + ping: spaceSeparated, + placeholder: null, + playsInline: boolean, + popover: null, + popoverTarget: null, + popoverTargetAction: null, + poster: null, + preload: null, + readOnly: boolean, + referrerPolicy: null, + rel: spaceSeparated, + required: boolean, + reversed: boolean, + rows: number, + rowSpan: number, + sandbox: spaceSeparated, + scope: null, + scoped: boolean, + seamless: boolean, + selected: boolean, + shadowRootClonable: boolean, + shadowRootCustomElementRegistry: boolean, + shadowRootDelegatesFocus: boolean, + shadowRootMode: null, + shadowRootSerializable: boolean, + shape: null, + size: number, + sizes: null, + slot: null, + span: number, + spellCheck: booleanish, + src: null, + srcDoc: null, + srcLang: null, + srcSet: null, + start: number, + step: null, + style: null, + tabIndex: number, + target: null, + title: null, + translate: null, + type: null, + typeMustMatch: boolean, + useMap: null, + value: booleanish, + width: number, + wrap: null, + writingSuggestions: null, + + // Legacy. + // See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis + align: null, // Several. Use CSS `text-align` instead, + aLink: null, // ``. Use CSS `a:active {color}` instead + archive: spaceSeparated, // ``. List of URIs to archives + axis: null, // `` and ``. Use `scope` on `` + background: null, // ``. Use CSS `background-image` instead + bgColor: null, // `` and table elements. Use CSS `background-color` instead + border: number, // ``. Use CSS `border-width` instead, + borderColor: null, // `
`. Use CSS `border-color` instead, + bottomMargin: number, // `` + cellPadding: null, // `
` + cellSpacing: null, // `
` + char: null, // Several table elements. When `align=char`, sets the character to align on + charOff: null, // Several table elements. When `char`, offsets the alignment + classId: null, // `` + clear: null, // `
`. Use CSS `clear` instead + code: null, // `` + codeBase: null, // `` + codeType: null, // `` + color: null, // `` and `
`. Use CSS instead + compact: boolean, // Lists. Use CSS to reduce space between items instead + declare: boolean, // `` + event: null, // ` +``` + +## Use + +```js +import {find, html, svg} from 'property-information' + +console.log(find(html, 'className')) +// Or: find(html, 'class') +console.log(find(svg, 'horiz-adv-x')) +// Or: find(svg, 'horizAdvX') +console.log(find(svg, 'xlink:arcrole')) +// Or: find(svg, 'xLinkArcRole') +console.log(find(html, 'xmlLang')) +// Or: find(html, 'xml:lang') +console.log(find(html, 'ariaValueNow')) +// Or: find(html, 'aria-valuenow') +``` + +Yields: + +```js +{attribute: 'class', property: 'className', spaceSeparated: true, space: 'html'} +{attribute: 'horiz-adv-x', number: true, property: 'horizAdvX', space: 'svg'} +{attribute: 'xlink:arcrole', property: 'xLinkArcRole', space: 'xlink'} +{attribute: 'xml:lang', property: 'xmlLang', space: 'xml'} +{attribute: 'aria-valuenow', number: true, property: 'ariaValueNow'} +``` + +## API + +This package exports the identifiers +[`find`][api-find], +[`hastToReact`][api-hast-to-react], +[`html`][api-html], +[`normalize`][api-normalize], +and +[`svg`][api-svg]. +There is no default export. +It exports the [TypeScript][] types +[`Info`][api-info], +[`Schema`][api-schema], +and +[`Space`][api-space]. + +### `Info` + +Info on a property (TypeScript type). + +###### Fields + +* `attribute` (`string`) + — attribute name for the property that could be used in markup + (such as `'aria-describedby'`, `'allowfullscreen'`, `'xml:lang'`, `'for'`, + or `'charoff'`) +* `booleanish` (`boolean`) + — the property is *like* a `boolean` + (such as `draggable`); + these properties have both an on and off state when defined, + *and* another state when not defined +* `boolean` (`boolean`) + — the property is a `boolean` + (such as `hidden`); + these properties have an on state when defined and an off state when not + defined +* `commaOrSpaceSeparated` (`boolean`) + — the property is a list separated by spaces or commas + (such as `strokeDashArray`) +* `commaSeparated` (`boolean`) + — the property is a list separated by commas + (such as `coords`) +* `defined` (`boolean`) + — the property is [defined by a space][section-support]; + this is the case for values in HTML + (including [data][mozilla-dataset] and ARIA), + SVG, XML, XMLNS, and XLink; + not defined properties can only be found through `find` +* `mustUseProperty` (`boolean`) + — when working with the DOM, + this property has to be changed as a field on the element, + instead of through `setAttribute` + (this is true only for `'checked'`, `'multiple'`, `'muted'`, and + `'selected'`) +* `number` (`boolean`) + — the property is a `number` (such as `height`) +* `overloadedBoolean` (`boolean`) + — the property is *like* a `boolean` (such as `download`); + these properties have an on state *and* more states when defined and an off + state when not defined +* `property` (`string`) + — JavaScript-style camel-cased name; + based on the DOM but sometimes different + (such as `'ariaDescribedBy'`, `'allowFullScreen'`, `'xmlLang'`, `'htmlFor'`, + `'charOff'`) +* `spaceSeparated` (`boolean`) + — the property is a list separated by spaces + (such as `className`) +* `space` ([`Space`][api-space] or `undefined`) + — [space][github-web-namespaces] of the property + +### `Schema` + +Schema for a primary space (TypeScript type). + +###### Fields + +* `normal` (`Record`) + — object mapping normalized attributes and properties to properly cased + properties +* `property` ([`Record`][api-info]) + — object mapping properties to info +* `space` (`'html'` or `'svg'`) + — primary space of the schema + +### `Space` + +Space of a property (TypeScript type). + +###### Type + +```ts +type Space = 'html' | 'svg' | 'xlink' | 'xmlns' | 'xml' +``` + +### `find(schema, name)` + +Look up info on a property. + +In most cases the given `schema` contains info on the property. +All standard, +most legacy, +and some non-standard properties are supported. +For these cases, +the returned [`Info`][api-info] has hints about the value of the property. + +`name` can also be a [valid data attribute or property][mozilla-dataset], +in which case an [`Info`][api-info] object with the correctly cased `attribute` +and `property` is returned. + +`name` can be an unknown attribute, +in which case an [`Info`][api-info] object with `attribute` and `property` set +to the given name is returned. +It is not recommended to provide unsupported legacy or recently specced +properties. + +###### Parameters + +* `schema` ([`Schema`][api-schema]) + — schema; + either the `html` or `svg` export +* `name` (`string`) + — an attribute-like or property-like name; + it will be passed through + [`normalize`][api-normalize] to hopefully find the correct info + +###### Returns + +[`Info`][api-info]. + +###### Example + +Aside from the aforementioned example, +which shows known HTML, SVG, XML, XLink, and ARIA support, +data properties and attributes are also supported: + +```js +console.log(find(html, 'data-date-of-birth')) +// Or: find(html, 'dataDateOfBirth') +// => {attribute: 'data-date-of-birth', property: 'dataDateOfBirth'} +``` + +Unknown values are passed through untouched: + +```js +console.log(find(html, 'un-Known')) +// => {attribute: 'un-Known', property: 'un-Known'} +``` + +### `hastToReact` + +Special cases for React (`Record`). + +[`hast`][github-hast] is close to [`React`][github-react] +but differs in a couple of cases. +To get a React property from a hast property, +check if it is in `hastToReact`. +If it is, +use the corresponding value. + +### `html` + +[`Schema`][api-schema] for HTML, +with info on properties from HTML itself and related embedded spaces +(ARIA, XML, XMLNS, XLink). + +###### Example + +```js +console.log(html.property.htmlFor) +// => {attribute: 'for', property: 'htmlFor', spaceSeparated: true, space: 'html'} +console.log(html.property.unknown) +// => undefined +``` + +### `normalize(name)` + +Get the cleaned case insensitive form of an attribute or property. + +###### Parameters + +* `name` (`string`) + — an attribute-like or property-like name + +###### Returns + +Value (`string`) that can be used to look up the properly cased property on a +[`Schema`][api-schema]. + +###### Example + +```js +html.normal[normalize('for')] // => 'htmlFor' +svg.normal[normalize('VIEWBOX')] // => 'viewBox' +html.normal[normalize('unknown')] // => undefined +html.normal[normalize('accept-charset')] // => 'acceptCharset' +``` + +### `svg` + +[`Schema`][api-schema] for SVG, +with info on properties from SVG itself and related embedded spaces +(ARIA, XML, XMLNS, XLink). + +###### Example + +```js +console.log(svg.property.viewBox) +// => {attribute: 'viewBox', property: 'viewBox', space: 'svg'} +console.log(svg.property.unknown) +// => undefined +``` + +## Compatibility + +This package is at least compatible with all maintained versions of Node.js. +As of now, +that is Node.js 16+. +It also works in Deno and modern browsers. + +## Support + + + +| Property | Attribute | Space | +| --------------------------------- | --------------------------------- | ------------- | +| `aLink` | `alink` | `html` | +| `abbr` | `abbr` | `html` | +| `about` | `about` | `svg` | +| `accentHeight` | `accent-height` | `svg` | +| `accept` | `accept` | `html` | +| `acceptCharset` | `accept-charset` | `html` | +| `accessKey` | `accesskey` | `html` | +| `accumulate` | `accumulate` | `svg` | +| `action` | `action` | `html` | +| `additive` | `additive` | `svg` | +| `align` | `align` | `html` | +| `alignmentBaseline` | `alignment-baseline` | `svg` | +| `allow` | `allow` | `html` | +| `allowFullScreen` | `allowfullscreen` | `html` | +| `allowPaymentRequest` | `allowpaymentrequest` | `html` | +| `allowTransparency` | `allowtransparency` | `html` | +| `allowUserMedia` | `allowusermedia` | `html` | +| `alpha` | `alpha` | `html` | +| `alphabetic` | `alphabetic` | `svg` | +| `alt` | `alt` | `html` | +| `amplitude` | `amplitude` | `svg` | +| `arabicForm` | `arabic-form` | `svg` | +| `archive` | `archive` | `html` | +| `ariaActiveDescendant` | `aria-activedescendant` | | +| `ariaAtomic` | `aria-atomic` | | +| `ariaAutoComplete` | `aria-autocomplete` | | +| `ariaBusy` | `aria-busy` | | +| `ariaChecked` | `aria-checked` | | +| `ariaColCount` | `aria-colcount` | | +| `ariaColIndex` | `aria-colindex` | | +| `ariaColSpan` | `aria-colspan` | | +| `ariaControls` | `aria-controls` | | +| `ariaCurrent` | `aria-current` | | +| `ariaDescribedBy` | `aria-describedby` | | +| `ariaDetails` | `aria-details` | | +| `ariaDisabled` | `aria-disabled` | | +| `ariaDropEffect` | `aria-dropeffect` | | +| `ariaErrorMessage` | `aria-errormessage` | | +| `ariaExpanded` | `aria-expanded` | | +| `ariaFlowTo` | `aria-flowto` | | +| `ariaGrabbed` | `aria-grabbed` | | +| `ariaHasPopup` | `aria-haspopup` | | +| `ariaHidden` | `aria-hidden` | | +| `ariaInvalid` | `aria-invalid` | | +| `ariaKeyShortcuts` | `aria-keyshortcuts` | | +| `ariaLabel` | `aria-label` | | +| `ariaLabelledBy` | `aria-labelledby` | | +| `ariaLevel` | `aria-level` | | +| `ariaLive` | `aria-live` | | +| `ariaModal` | `aria-modal` | | +| `ariaMultiLine` | `aria-multiline` | | +| `ariaMultiSelectable` | `aria-multiselectable` | | +| `ariaOrientation` | `aria-orientation` | | +| `ariaOwns` | `aria-owns` | | +| `ariaPlaceholder` | `aria-placeholder` | | +| `ariaPosInSet` | `aria-posinset` | | +| `ariaPressed` | `aria-pressed` | | +| `ariaReadOnly` | `aria-readonly` | | +| `ariaRelevant` | `aria-relevant` | | +| `ariaRequired` | `aria-required` | | +| `ariaRoleDescription` | `aria-roledescription` | | +| `ariaRowCount` | `aria-rowcount` | | +| `ariaRowIndex` | `aria-rowindex` | | +| `ariaRowSpan` | `aria-rowspan` | | +| `ariaSelected` | `aria-selected` | | +| `ariaSetSize` | `aria-setsize` | | +| `ariaSort` | `aria-sort` | | +| `ariaValueMax` | `aria-valuemax` | | +| `ariaValueMin` | `aria-valuemin` | | +| `ariaValueNow` | `aria-valuenow` | | +| `ariaValueText` | `aria-valuetext` | | +| `as` | `as` | `html` | +| `ascent` | `ascent` | `svg` | +| `async` | `async` | `html` | +| `attributeName` | `attributeName` | `svg` | +| `attributeType` | `attributeType` | `svg` | +| `autoCapitalize` | `autocapitalize` | `html` | +| `autoComplete` | `autocomplete` | `html` | +| `autoCorrect` | `autocorrect` | `html` | +| `autoFocus` | `autofocus` | `html` | +| `autoPlay` | `autoplay` | `html` | +| `autoSave` | `autosave` | `html` | +| `axis` | `axis` | `html` | +| `azimuth` | `azimuth` | `svg` | +| `background` | `background` | `html` | +| `bandwidth` | `bandwidth` | `svg` | +| `baseFrequency` | `baseFrequency` | `svg` | +| `baseProfile` | `baseProfile` | `svg` | +| `baselineShift` | `baseline-shift` | `svg` | +| `bbox` | `bbox` | `svg` | +| `begin` | `begin` | `svg` | +| `bgColor` | `bgcolor` | `html` | +| `bias` | `bias` | `svg` | +| `blocking` | `blocking` | `html` | +| `border` | `border` | `html` | +| `borderColor` | `bordercolor` | `html` | +| `bottomMargin` | `bottommargin` | `html` | +| `by` | `by` | `svg` | +| `calcMode` | `calcMode` | `svg` | +| `capHeight` | `cap-height` | `svg` | +| `capture` | `capture` | `html` | +| `cellPadding` | `cellpadding` | `html` | +| `cellSpacing` | `cellspacing` | `html` | +| `char` | `char` | `html` | +| `charOff` | `charoff` | `html` | +| `charSet` | `charset` | `html` | +| `checked` | `checked` | `html` | +| `cite` | `cite` | `html` | +| `classId` | `classid` | `html` | +| `className` | `class` | `svg`, `html` | +| `clear` | `clear` | `html` | +| `clip` | `clip` | `svg` | +| `clipPath` | `clip-path` | `svg` | +| `clipPathUnits` | `clipPathUnits` | `svg` | +| `clipRule` | `clip-rule` | `svg` | +| `closedBy` | `closedby` | `html` | +| `code` | `code` | `html` | +| `codeBase` | `codebase` | `html` | +| `codeType` | `codetype` | `html` | +| `colSpan` | `colspan` | `html` | +| `color` | `color` | `svg`, `html` | +| `colorInterpolation` | `color-interpolation` | `svg` | +| `colorInterpolationFilters` | `color-interpolation-filters` | `svg` | +| `colorProfile` | `color-profile` | `svg` | +| `colorRendering` | `color-rendering` | `svg` | +| `colorSpace` | `colorspace` | `html` | +| `cols` | `cols` | `html` | +| `command` | `command` | `html` | +| `commandFor` | `commandfor` | `html` | +| `compact` | `compact` | `html` | +| `content` | `content` | `svg`, `html` | +| `contentEditable` | `contenteditable` | `html` | +| `contentScriptType` | `contentScriptType` | `svg` | +| `contentStyleType` | `contentStyleType` | `svg` | +| `controls` | `controls` | `html` | +| `controlsList` | `controlslist` | `html` | +| `coords` | `coords` | `html` | +| `credentialless` | `credentialless` | `html` | +| `crossOrigin` | `crossorigin` | `svg`, `html` | +| `cursor` | `cursor` | `svg` | +| `cx` | `cx` | `svg` | +| `cy` | `cy` | `svg` | +| `d` | `d` | `svg` | +| `data` | `data` | `html` | +| `dataType` | `datatype` | `svg` | +| `dateTime` | `datetime` | `html` | +| `declare` | `declare` | `html` | +| `decoding` | `decoding` | `html` | +| `default` | `default` | `html` | +| `defaultAction` | `defaultAction` | `svg` | +| `defer` | `defer` | `html` | +| `descent` | `descent` | `svg` | +| `diffuseConstant` | `diffuseConstant` | `svg` | +| `dir` | `dir` | `html` | +| `dirName` | `dirname` | `html` | +| `direction` | `direction` | `svg` | +| `disablePictureInPicture` | `disablepictureinpicture` | `html` | +| `disableRemotePlayback` | `disableremoteplayback` | `html` | +| `disabled` | `disabled` | `html` | +| `display` | `display` | `svg` | +| `divisor` | `divisor` | `svg` | +| `dominantBaseline` | `dominant-baseline` | `svg` | +| `download` | `download` | `svg`, `html` | +| `draggable` | `draggable` | `html` | +| `dur` | `dur` | `svg` | +| `dx` | `dx` | `svg` | +| `dy` | `dy` | `svg` | +| `edgeMode` | `edgeMode` | `svg` | +| `editable` | `editable` | `svg` | +| `elevation` | `elevation` | `svg` | +| `enableBackground` | `enable-background` | `svg` | +| `encType` | `enctype` | `html` | +| `end` | `end` | `svg` | +| `enterKeyHint` | `enterkeyhint` | `html` | +| `event` | `event` | `svg`, `html` | +| `exponent` | `exponent` | `svg` | +| `exportParts` | `exportparts` | `html` | +| `externalResourcesRequired` | `externalResourcesRequired` | `svg` | +| `face` | `face` | `html` | +| `fetchPriority` | `fetchpriority` | `html` | +| `fill` | `fill` | `svg` | +| `fillOpacity` | `fill-opacity` | `svg` | +| `fillRule` | `fill-rule` | `svg` | +| `filter` | `filter` | `svg` | +| `filterRes` | `filterRes` | `svg` | +| `filterUnits` | `filterUnits` | `svg` | +| `floodColor` | `flood-color` | `svg` | +| `floodOpacity` | `flood-opacity` | `svg` | +| `focusHighlight` | `focusHighlight` | `svg` | +| `focusable` | `focusable` | `svg` | +| `fontFamily` | `font-family` | `svg` | +| `fontSize` | `font-size` | `svg` | +| `fontSizeAdjust` | `font-size-adjust` | `svg` | +| `fontStretch` | `font-stretch` | `svg` | +| `fontStyle` | `font-style` | `svg` | +| `fontVariant` | `font-variant` | `svg` | +| `fontWeight` | `font-weight` | `svg` | +| `form` | `form` | `html` | +| `formAction` | `formaction` | `html` | +| `formEncType` | `formenctype` | `html` | +| `formMethod` | `formmethod` | `html` | +| `formNoValidate` | `formnovalidate` | `html` | +| `formTarget` | `formtarget` | `html` | +| `format` | `format` | `svg` | +| `fr` | `fr` | `svg` | +| `frame` | `frame` | `html` | +| `frameBorder` | `frameborder` | `html` | +| `from` | `from` | `svg` | +| `fx` | `fx` | `svg` | +| `fy` | `fy` | `svg` | +| `g1` | `g1` | `svg` | +| `g2` | `g2` | `svg` | +| `glyphName` | `glyph-name` | `svg` | +| `glyphOrientationHorizontal` | `glyph-orientation-horizontal` | `svg` | +| `glyphOrientationVertical` | `glyph-orientation-vertical` | `svg` | +| `glyphRef` | `glyphRef` | `svg` | +| `gradientTransform` | `gradientTransform` | `svg` | +| `gradientUnits` | `gradientUnits` | `svg` | +| `hSpace` | `hspace` | `html` | +| `handler` | `handler` | `svg` | +| `hanging` | `hanging` | `svg` | +| `hatchContentUnits` | `hatchContentUnits` | `svg` | +| `hatchUnits` | `hatchUnits` | `svg` | +| `headers` | `headers` | `html` | +| `height` | `height` | `svg`, `html` | +| `hidden` | `hidden` | `html` | +| `high` | `high` | `html` | +| `horizAdvX` | `horiz-adv-x` | `svg` | +| `horizOriginX` | `horiz-origin-x` | `svg` | +| `horizOriginY` | `horiz-origin-y` | `svg` | +| `href` | `href` | `svg`, `html` | +| `hrefLang` | `hreflang` | `svg`, `html` | +| `htmlFor` | `for` | `html` | +| `httpEquiv` | `http-equiv` | `html` | +| `id` | `id` | `svg`, `html` | +| `ideographic` | `ideographic` | `svg` | +| `imageRendering` | `image-rendering` | `svg` | +| `imageSizes` | `imagesizes` | `html` | +| `imageSrcSet` | `imagesrcset` | `html` | +| `in` | `in` | `svg` | +| `in2` | `in2` | `svg` | +| `inert` | `inert` | `html` | +| `initialVisibility` | `initialVisibility` | `svg` | +| `inputMode` | `inputmode` | `html` | +| `integrity` | `integrity` | `html` | +| `intercept` | `intercept` | `svg` | +| `is` | `is` | `html` | +| `isMap` | `ismap` | `html` | +| `itemId` | `itemid` | `html` | +| `itemProp` | `itemprop` | `html` | +| `itemRef` | `itemref` | `html` | +| `itemScope` | `itemscope` | `html` | +| `itemType` | `itemtype` | `html` | +| `k` | `k` | `svg` | +| `k1` | `k1` | `svg` | +| `k2` | `k2` | `svg` | +| `k3` | `k3` | `svg` | +| `k4` | `k4` | `svg` | +| `kernelMatrix` | `kernelMatrix` | `svg` | +| `kernelUnitLength` | `kernelUnitLength` | `svg` | +| `kerning` | `kerning` | `svg` | +| `keyPoints` | `keyPoints` | `svg` | +| `keySplines` | `keySplines` | `svg` | +| `keyTimes` | `keyTimes` | `svg` | +| `kind` | `kind` | `html` | +| `label` | `label` | `html` | +| `lang` | `lang` | `svg`, `html` | +| `language` | `language` | `html` | +| `leftMargin` | `leftmargin` | `html` | +| `lengthAdjust` | `lengthAdjust` | `svg` | +| `letterSpacing` | `letter-spacing` | `svg` | +| `lightingColor` | `lighting-color` | `svg` | +| `limitingConeAngle` | `limitingConeAngle` | `svg` | +| `link` | `link` | `html` | +| `list` | `list` | `html` | +| `loading` | `loading` | `html` | +| `local` | `local` | `svg` | +| `longDesc` | `longdesc` | `html` | +| `loop` | `loop` | `html` | +| `low` | `low` | `html` | +| `lowSrc` | `lowsrc` | `html` | +| `manifest` | `manifest` | `html` | +| `marginHeight` | `marginheight` | `html` | +| `marginWidth` | `marginwidth` | `html` | +| `markerEnd` | `marker-end` | `svg` | +| `markerHeight` | `markerHeight` | `svg` | +| `markerMid` | `marker-mid` | `svg` | +| `markerStart` | `marker-start` | `svg` | +| `markerUnits` | `markerUnits` | `svg` | +| `markerWidth` | `markerWidth` | `svg` | +| `mask` | `mask` | `svg` | +| `maskContentUnits` | `maskContentUnits` | `svg` | +| `maskType` | `mask-type` | `svg` | +| `maskUnits` | `maskUnits` | `svg` | +| `mathematical` | `mathematical` | `svg` | +| `max` | `max` | `svg`, `html` | +| `maxLength` | `maxlength` | `html` | +| `media` | `media` | `svg`, `html` | +| `mediaCharacterEncoding` | `mediaCharacterEncoding` | `svg` | +| `mediaContentEncodings` | `mediaContentEncodings` | `svg` | +| `mediaSize` | `mediaSize` | `svg` | +| `mediaTime` | `mediaTime` | `svg` | +| `method` | `method` | `svg`, `html` | +| `min` | `min` | `svg`, `html` | +| `minLength` | `minlength` | `html` | +| `mode` | `mode` | `svg` | +| `multiple` | `multiple` | `html` | +| `muted` | `muted` | `html` | +| `name` | `name` | `svg`, `html` | +| `navDown` | `nav-down` | `svg` | +| `navDownLeft` | `nav-down-left` | `svg` | +| `navDownRight` | `nav-down-right` | `svg` | +| `navLeft` | `nav-left` | `svg` | +| `navNext` | `nav-next` | `svg` | +| `navPrev` | `nav-prev` | `svg` | +| `navRight` | `nav-right` | `svg` | +| `navUp` | `nav-up` | `svg` | +| `navUpLeft` | `nav-up-left` | `svg` | +| `navUpRight` | `nav-up-right` | `svg` | +| `noHref` | `nohref` | `html` | +| `noModule` | `nomodule` | `html` | +| `noResize` | `noresize` | `html` | +| `noShade` | `noshade` | `html` | +| `noValidate` | `novalidate` | `html` | +| `noWrap` | `nowrap` | `html` | +| `nonce` | `nonce` | `html` | +| `numOctaves` | `numOctaves` | `svg` | +| `object` | `object` | `html` | +| `observer` | `observer` | `svg` | +| `offset` | `offset` | `svg` | +| `onAbort` | `onabort` | `svg`, `html` | +| `onActivate` | `onactivate` | `svg` | +| `onAfterPrint` | `onafterprint` | `svg`, `html` | +| `onAuxClick` | `onauxclick` | `html` | +| `onBeforeMatch` | `onbeforematch` | `html` | +| `onBeforePrint` | `onbeforeprint` | `svg`, `html` | +| `onBeforeToggle` | `onbeforetoggle` | `html` | +| `onBeforeUnload` | `onbeforeunload` | `html` | +| `onBegin` | `onbegin` | `svg` | +| `onBlur` | `onblur` | `html` | +| `onCanPlay` | `oncanplay` | `svg`, `html` | +| `onCanPlayThrough` | `oncanplaythrough` | `svg`, `html` | +| `onCancel` | `oncancel` | `svg`, `html` | +| `onChange` | `onchange` | `svg`, `html` | +| `onClick` | `onclick` | `svg`, `html` | +| `onClose` | `onclose` | `svg`, `html` | +| `onContextLost` | `oncontextlost` | `html` | +| `onContextMenu` | `oncontextmenu` | `html` | +| `onContextRestored` | `oncontextrestored` | `html` | +| `onCopy` | `oncopy` | `svg`, `html` | +| `onCueChange` | `oncuechange` | `svg`, `html` | +| `onCut` | `oncut` | `svg`, `html` | +| `onDblClick` | `ondblclick` | `svg`, `html` | +| `onDrag` | `ondrag` | `svg`, `html` | +| `onDragEnd` | `ondragend` | `svg`, `html` | +| `onDragEnter` | `ondragenter` | `svg`, `html` | +| `onDragExit` | `ondragexit` | `svg`, `html` | +| `onDragLeave` | `ondragleave` | `svg`, `html` | +| `onDragOver` | `ondragover` | `svg`, `html` | +| `onDragStart` | `ondragstart` | `svg`, `html` | +| `onDrop` | `ondrop` | `svg`, `html` | +| `onDurationChange` | `ondurationchange` | `svg`, `html` | +| `onEmptied` | `onemptied` | `svg`, `html` | +| `onEnd` | `onend` | `svg` | +| `onEnded` | `onended` | `svg`, `html` | +| `onError` | `onerror` | `svg`, `html` | +| `onFocus` | `onfocus` | `svg`, `html` | +| `onFocusIn` | `onfocusin` | `svg` | +| `onFocusOut` | `onfocusout` | `svg` | +| `onFormData` | `onformdata` | `html` | +| `onHashChange` | `onhashchange` | `svg`, `html` | +| `onInput` | `oninput` | `svg`, `html` | +| `onInvalid` | `oninvalid` | `svg`, `html` | +| `onKeyDown` | `onkeydown` | `svg`, `html` | +| `onKeyPress` | `onkeypress` | `svg`, `html` | +| `onKeyUp` | `onkeyup` | `svg`, `html` | +| `onLanguageChange` | `onlanguagechange` | `html` | +| `onLoad` | `onload` | `svg`, `html` | +| `onLoadEnd` | `onloadend` | `html` | +| `onLoadStart` | `onloadstart` | `svg`, `html` | +| `onLoadedData` | `onloadeddata` | `svg`, `html` | +| `onLoadedMetadata` | `onloadedmetadata` | `svg`, `html` | +| `onMessage` | `onmessage` | `svg`, `html` | +| `onMessageError` | `onmessageerror` | `html` | +| `onMouseDown` | `onmousedown` | `svg`, `html` | +| `onMouseEnter` | `onmouseenter` | `svg`, `html` | +| `onMouseLeave` | `onmouseleave` | `svg`, `html` | +| `onMouseMove` | `onmousemove` | `svg`, `html` | +| `onMouseOut` | `onmouseout` | `svg`, `html` | +| `onMouseOver` | `onmouseover` | `svg`, `html` | +| `onMouseUp` | `onmouseup` | `svg`, `html` | +| `onMouseWheel` | `onmousewheel` | `svg` | +| `onOffline` | `onoffline` | `svg`, `html` | +| `onOnline` | `ononline` | `svg`, `html` | +| `onPageHide` | `onpagehide` | `svg`, `html` | +| `onPageShow` | `onpageshow` | `svg`, `html` | +| `onPaste` | `onpaste` | `svg`, `html` | +| `onPause` | `onpause` | `svg`, `html` | +| `onPlay` | `onplay` | `svg`, `html` | +| `onPlaying` | `onplaying` | `svg`, `html` | +| `onPopState` | `onpopstate` | `svg`, `html` | +| `onProgress` | `onprogress` | `svg`, `html` | +| `onRateChange` | `onratechange` | `svg`, `html` | +| `onRejectionHandled` | `onrejectionhandled` | `html` | +| `onRepeat` | `onrepeat` | `svg` | +| `onReset` | `onreset` | `svg`, `html` | +| `onResize` | `onresize` | `svg`, `html` | +| `onScroll` | `onscroll` | `svg`, `html` | +| `onScrollEnd` | `onscrollend` | `html` | +| `onSecurityPolicyViolation` | `onsecuritypolicyviolation` | `html` | +| `onSeeked` | `onseeked` | `svg`, `html` | +| `onSeeking` | `onseeking` | `svg`, `html` | +| `onSelect` | `onselect` | `svg`, `html` | +| `onShow` | `onshow` | `svg` | +| `onSlotChange` | `onslotchange` | `html` | +| `onStalled` | `onstalled` | `svg`, `html` | +| `onStorage` | `onstorage` | `svg`, `html` | +| `onSubmit` | `onsubmit` | `svg`, `html` | +| `onSuspend` | `onsuspend` | `svg`, `html` | +| `onTimeUpdate` | `ontimeupdate` | `svg`, `html` | +| `onToggle` | `ontoggle` | `svg`, `html` | +| `onUnhandledRejection` | `onunhandledrejection` | `html` | +| `onUnload` | `onunload` | `svg`, `html` | +| `onVolumeChange` | `onvolumechange` | `svg`, `html` | +| `onWaiting` | `onwaiting` | `svg`, `html` | +| `onWheel` | `onwheel` | `html` | +| `onZoom` | `onzoom` | `svg` | +| `opacity` | `opacity` | `svg` | +| `open` | `open` | `html` | +| `operator` | `operator` | `svg` | +| `optimum` | `optimum` | `html` | +| `order` | `order` | `svg` | +| `orient` | `orient` | `svg` | +| `orientation` | `orientation` | `svg` | +| `origin` | `origin` | `svg` | +| `overflow` | `overflow` | `svg` | +| `overlay` | `overlay` | `svg` | +| `overlinePosition` | `overline-position` | `svg` | +| `overlineThickness` | `overline-thickness` | `svg` | +| `paintOrder` | `paint-order` | `svg` | +| `panose1` | `panose-1` | `svg` | +| `part` | `part` | `html` | +| `path` | `path` | `svg` | +| `pathLength` | `pathLength` | `svg` | +| `pattern` | `pattern` | `html` | +| `patternContentUnits` | `patternContentUnits` | `svg` | +| `patternTransform` | `patternTransform` | `svg` | +| `patternUnits` | `patternUnits` | `svg` | +| `phase` | `phase` | `svg` | +| `ping` | `ping` | `svg`, `html` | +| `pitch` | `pitch` | `svg` | +| `placeholder` | `placeholder` | `html` | +| `playbackOrder` | `playbackorder` | `svg` | +| `playsInline` | `playsinline` | `html` | +| `pointerEvents` | `pointer-events` | `svg` | +| `points` | `points` | `svg` | +| `pointsAtX` | `pointsAtX` | `svg` | +| `pointsAtY` | `pointsAtY` | `svg` | +| `pointsAtZ` | `pointsAtZ` | `svg` | +| `popover` | `popover` | `html` | +| `popoverTarget` | `popovertarget` | `html` | +| `popoverTargetAction` | `popovertargetaction` | `html` | +| `poster` | `poster` | `html` | +| `prefix` | `prefix` | `html` | +| `preload` | `preload` | `html` | +| `preserveAlpha` | `preserveAlpha` | `svg` | +| `preserveAspectRatio` | `preserveAspectRatio` | `svg` | +| `primitiveUnits` | `primitiveUnits` | `svg` | +| `profile` | `profile` | `html` | +| `prompt` | `prompt` | `html` | +| `propagate` | `propagate` | `svg` | +| `property` | `property` | `svg`, `html` | +| `r` | `r` | `svg` | +| `radius` | `radius` | `svg` | +| `readOnly` | `readonly` | `html` | +| `refX` | `refX` | `svg` | +| `refY` | `refY` | `svg` | +| `referrerPolicy` | `referrerpolicy` | `svg`, `html` | +| `rel` | `rel` | `svg`, `html` | +| `renderingIntent` | `rendering-intent` | `svg` | +| `repeatCount` | `repeatCount` | `svg` | +| `repeatDur` | `repeatDur` | `svg` | +| `required` | `required` | `html` | +| `requiredExtensions` | `requiredExtensions` | `svg` | +| `requiredFeatures` | `requiredFeatures` | `svg` | +| `requiredFonts` | `requiredFonts` | `svg` | +| `requiredFormats` | `requiredFormats` | `svg` | +| `resource` | `resource` | `svg` | +| `restart` | `restart` | `svg` | +| `result` | `result` | `svg` | +| `results` | `results` | `html` | +| `rev` | `rev` | `svg`, `html` | +| `reversed` | `reversed` | `html` | +| `rightMargin` | `rightmargin` | `html` | +| `role` | `role` | | +| `rotate` | `rotate` | `svg` | +| `rowSpan` | `rowspan` | `html` | +| `rows` | `rows` | `html` | +| `rules` | `rules` | `html` | +| `rx` | `rx` | `svg` | +| `ry` | `ry` | `svg` | +| `sandbox` | `sandbox` | `html` | +| `scale` | `scale` | `svg` | +| `scheme` | `scheme` | `html` | +| `scope` | `scope` | `html` | +| `scoped` | `scoped` | `html` | +| `scrolling` | `scrolling` | `html` | +| `seamless` | `seamless` | `html` | +| `security` | `security` | `html` | +| `seed` | `seed` | `svg` | +| `selected` | `selected` | `html` | +| `shadowRootClonable` | `shadowrootclonable` | `html` | +| `shadowRootCustomElementRegistry` | `shadowrootcustomelementregistry` | `html` | +| `shadowRootDelegatesFocus` | `shadowrootdelegatesfocus` | `html` | +| `shadowRootMode` | `shadowrootmode` | `html` | +| `shadowRootSerializable` | `shadowrootserializable` | `html` | +| `shape` | `shape` | `html` | +| `shapeRendering` | `shape-rendering` | `svg` | +| `side` | `side` | `svg` | +| `size` | `size` | `html` | +| `sizes` | `sizes` | `html` | +| `slope` | `slope` | `svg` | +| `slot` | `slot` | `html` | +| `snapshotTime` | `snapshotTime` | `svg` | +| `spacing` | `spacing` | `svg` | +| `span` | `span` | `html` | +| `specularConstant` | `specularConstant` | `svg` | +| `specularExponent` | `specularExponent` | `svg` | +| `spellCheck` | `spellcheck` | `html` | +| `spreadMethod` | `spreadMethod` | `svg` | +| `src` | `src` | `html` | +| `srcDoc` | `srcdoc` | `html` | +| `srcLang` | `srclang` | `html` | +| `srcSet` | `srcset` | `html` | +| `standby` | `standby` | `html` | +| `start` | `start` | `html` | +| `startOffset` | `startOffset` | `svg` | +| `stdDeviation` | `stdDeviation` | `svg` | +| `stemh` | `stemh` | `svg` | +| `stemv` | `stemv` | `svg` | +| `step` | `step` | `html` | +| `stitchTiles` | `stitchTiles` | `svg` | +| `stopColor` | `stop-color` | `svg` | +| `stopOpacity` | `stop-opacity` | `svg` | +| `strikethroughPosition` | `strikethrough-position` | `svg` | +| `strikethroughThickness` | `strikethrough-thickness` | `svg` | +| `string` | `string` | `svg` | +| `stroke` | `stroke` | `svg` | +| `strokeDashArray` | `stroke-dasharray` | `svg` | +| `strokeDashOffset` | `stroke-dashoffset` | `svg` | +| `strokeLineCap` | `stroke-linecap` | `svg` | +| `strokeLineJoin` | `stroke-linejoin` | `svg` | +| `strokeMiterLimit` | `stroke-miterlimit` | `svg` | +| `strokeOpacity` | `stroke-opacity` | `svg` | +| `strokeWidth` | `stroke-width` | `svg` | +| `style` | `style` | `svg`, `html` | +| `summary` | `summary` | `html` | +| `surfaceScale` | `surfaceScale` | `svg` | +| `syncBehavior` | `syncBehavior` | `svg` | +| `syncBehaviorDefault` | `syncBehaviorDefault` | `svg` | +| `syncMaster` | `syncMaster` | `svg` | +| `syncTolerance` | `syncTolerance` | `svg` | +| `syncToleranceDefault` | `syncToleranceDefault` | `svg` | +| `systemLanguage` | `systemLanguage` | `svg` | +| `tabIndex` | `tabindex` | `svg`, `html` | +| `tableValues` | `tableValues` | `svg` | +| `target` | `target` | `svg`, `html` | +| `targetX` | `targetX` | `svg` | +| `targetY` | `targetY` | `svg` | +| `text` | `text` | `html` | +| `textAnchor` | `text-anchor` | `svg` | +| `textDecoration` | `text-decoration` | `svg` | +| `textLength` | `textLength` | `svg` | +| `textRendering` | `text-rendering` | `svg` | +| `timelineBegin` | `timelinebegin` | `svg` | +| `title` | `title` | `svg`, `html` | +| `to` | `to` | `svg` | +| `topMargin` | `topmargin` | `html` | +| `transform` | `transform` | `svg` | +| `transformBehavior` | `transformBehavior` | `svg` | +| `transformOrigin` | `transform-origin` | `svg` | +| `translate` | `translate` | `html` | +| `type` | `type` | `svg`, `html` | +| `typeMustMatch` | `typemustmatch` | `html` | +| `typeOf` | `typeof` | `svg` | +| `u1` | `u1` | `svg` | +| `u2` | `u2` | `svg` | +| `underlinePosition` | `underline-position` | `svg` | +| `underlineThickness` | `underline-thickness` | `svg` | +| `unicode` | `unicode` | `svg` | +| `unicodeBidi` | `unicode-bidi` | `svg` | +| `unicodeRange` | `unicode-range` | `svg` | +| `unitsPerEm` | `units-per-em` | `svg` | +| `unselectable` | `unselectable` | `html` | +| `useMap` | `usemap` | `html` | +| `vAlign` | `valign` | `html` | +| `vAlphabetic` | `v-alphabetic` | `svg` | +| `vHanging` | `v-hanging` | `svg` | +| `vIdeographic` | `v-ideographic` | `svg` | +| `vLink` | `vlink` | `html` | +| `vMathematical` | `v-mathematical` | `svg` | +| `vSpace` | `vspace` | `html` | +| `value` | `value` | `html` | +| `valueType` | `valuetype` | `html` | +| `values` | `values` | `svg` | +| `vectorEffect` | `vector-effect` | `svg` | +| `version` | `version` | `svg`, `html` | +| `vertAdvY` | `vert-adv-y` | `svg` | +| `vertOriginX` | `vert-origin-x` | `svg` | +| `vertOriginY` | `vert-origin-y` | `svg` | +| `viewBox` | `viewBox` | `svg` | +| `viewTarget` | `viewTarget` | `svg` | +| `visibility` | `visibility` | `svg` | +| `width` | `width` | `svg`, `html` | +| `widths` | `widths` | `svg` | +| `wordSpacing` | `word-spacing` | `svg` | +| `wrap` | `wrap` | `html` | +| `writingMode` | `writing-mode` | `svg` | +| `writingSuggestions` | `writingsuggestions` | `html` | +| `x` | `x` | `svg` | +| `x1` | `x1` | `svg` | +| `x2` | `x2` | `svg` | +| `xChannelSelector` | `xChannelSelector` | `svg` | +| `xHeight` | `x-height` | `svg` | +| `xLinkActuate` | `xlink:actuate` | `xlink` | +| `xLinkArcRole` | `xlink:arcrole` | `xlink` | +| `xLinkHref` | `xlink:href` | `xlink` | +| `xLinkRole` | `xlink:role` | `xlink` | +| `xLinkShow` | `xlink:show` | `xlink` | +| `xLinkTitle` | `xlink:title` | `xlink` | +| `xLinkType` | `xlink:type` | `xlink` | +| `xmlBase` | `xml:base` | `xml` | +| `xmlLang` | `xml:lang` | `xml` | +| `xmlSpace` | `xml:space` | `xml` | +| `xmlns` | `xmlns` | `xmlns` | +| `xmlnsXLink` | `xmlns:xlink` | `xmlns` | +| `y` | `y` | `svg` | +| `y1` | `y1` | `svg` | +| `y2` | `y2` | `svg` | +| `yChannelSelector` | `yChannelSelector` | `svg` | +| `z` | `z` | `svg` | +| `zoomAndPan` | `zoomAndPan` | `svg` | + + + +## Security + +This package is safe. + +## Related + +* [`wooorm/web-namespaces`][github-web-namespaces] + — list of web namespaces +* [`wooorm/space-separated-tokens`](https://github.com/wooorm/space-separated-tokens) + — parse/stringify space separated tokens +* [`wooorm/comma-separated-tokens`](https://github.com/wooorm/comma-separated-tokens) + — parse/stringify comma separated tokens +* [`wooorm/html-tag-names`](https://github.com/wooorm/html-tag-names) + — list of HTML tag names +* [`wooorm/mathml-tag-names`](https://github.com/wooorm/mathml-tag-names) + — list of MathML tag names +* [`wooorm/svg-tag-names`](https://github.com/wooorm/svg-tag-names) + — list of SVG tag names +* [`wooorm/html-void-elements`](https://github.com/wooorm/html-void-elements) + — list of void HTML tag names +* [`wooorm/svg-element-attributes`](https://github.com/wooorm/svg-element-attributes) + — map of SVG elements to allowed attributes +* [`wooorm/html-element-attributes`](https://github.com/wooorm/html-element-attributes) + — map of HTML elements to allowed attributes +* [`wooorm/aria-attributes`](https://github.com/wooorm/aria-attributes) + — list of ARIA attributes + +## Contribute + +Yes please! +See [*How to Contribute to Open Source*][opensource-guide]. + +## License + +[MIT][file-license] © [Titus Wormer][wooorm] + +Derivative work based on [React][github-react-source] licensed under +[MIT][github-react-source-license] © Facebook, Inc. + +[api-find]: #findschema-name + +[api-hast-to-react]: #hasttoreact + +[api-html]: #html + +[api-info]: #info + +[api-normalize]: #normalizename + +[api-schema]: #schema + +[api-space]: #space + +[api-svg]: #svg + +[badge-build-image]: https://github.com/wooorm/property-information/workflows/main/badge.svg + +[badge-build-url]: https://github.com/wooorm/property-information/actions + +[badge-coverage-image]: https://img.shields.io/codecov/c/github/wooorm/property-information.svg + +[badge-coverage-url]: https://codecov.io/github/wooorm/property-information + +[badge-downloads-image]: https://img.shields.io/npm/dm/property-information.svg + +[badge-downloads-url]: https://www.npmjs.com/package/property-information + +[badge-size-image]: https://img.shields.io/bundlejs/size/property-information + +[badge-size-url]: https://bundlejs.com/?q=property-information + +[esmsh]: https://esm.sh + +[file-license]: license + +[github-gist-esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c + +[github-hast]: https://github.com/syntax-tree/hast + +[github-hast-property-name]: https://github.com/syntax-tree/hast#propertyname + +[github-react]: https://github.com/facebook/react + +[github-react-source]: https://github.com/facebook/react/blob/4632e36/packages/react-dom-bindings/src/shared/possibleStandardNames.js + +[github-react-source-license]: https://github.com/facebook/react/blob/4632e36/LICENSE + +[github-web-namespaces]: https://github.com/wooorm/web-namespaces + +[mozilla-dataset]: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dataset + +[npmjs-install]: https://docs.npmjs.com/cli/install + +[opensource-guide]: https://opensource.guide/how-to-contribute/ + +[section-support]: #support + +[typescript]: https://www.typescriptlang.org + +[wooorm]: https://wooorm.com diff --git a/node_modules/protocol-buffers-schema/.travis.yml b/node_modules/protocol-buffers-schema/.travis.yml new file mode 100644 index 0000000000000000000000000000000000000000..f95469dbad8a049e5c84ad3a92f7a7d7ffe31129 --- /dev/null +++ b/node_modules/protocol-buffers-schema/.travis.yml @@ -0,0 +1,7 @@ +language: node_js +node_js: + - '0.10' + - '0.12' + - '4' + - '5' + - 'node' diff --git a/node_modules/protocol-buffers-schema/LICENSE b/node_modules/protocol-buffers-schema/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..757562ec59276bff35792501d88fe83b34acca9a --- /dev/null +++ b/node_modules/protocol-buffers-schema/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2014 Mathias Buus + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. \ No newline at end of file diff --git a/node_modules/protocol-buffers-schema/README.md b/node_modules/protocol-buffers-schema/README.md new file mode 100644 index 0000000000000000000000000000000000000000..4312eb44842b436830b8c98e2dc61bf6d77258ea --- /dev/null +++ b/node_modules/protocol-buffers-schema/README.md @@ -0,0 +1,122 @@ +# protocol-buffers-schema + +No nonsense [protocol buffers](https://developers.google.com/protocol-buffers) schema parser written in Javascript + +``` js +npm install protocol-buffers-schema +``` + +[![build status](http://img.shields.io/travis/mafintosh/protocol-buffers-schema.svg?style=flat)](http://travis-ci.org/mafintosh/protocol-buffers-schema) + +## Usage + +First save the following file as `example.proto` + +```proto +syntax = "proto2"; + +message Point { + required int32 x = 1; + required int32 y=2; + optional string label = 3; +} + +message Line { + required Point start = 1; + required Point end = 2; + optional string label = 3; +} +``` + +The run the following example + +``` js +var fs = require('fs') +var schema = require('protocol-buffers-schema') + +// pass a buffer or string to schema.parse +var sch = schema.parse(fs.readFileSync('example.proto')) + +// will print out the schema as a javascript object +console.log(sch) +``` + +Running the above example will print something like + +``` js +{ + syntax: 2, + package: null, + enums: [], + messages: [{ + name: 'Point', + enums: [], + messages: [], + options: {}, + fields: [{ + name: 'x', + type: 'int32', + tag: 1, + required: true, + repeated: false, + options: {} + }, { + name: 'y', + type: 'int32', + tag: 2, + required: true, + repeated: false, + options: {} + }, { + name: 'label', + type: 'string', + tag: 3, + required: false, + repeated: false, + options: {} + }] + }, { + name: 'Line', + enums: [], + messages: [], + options: {}, + fields: [{ + name: 'start', + type: 'Point', + tag: 1, + required: true, + repeated: false, + options: {} + }, { + name: 'end', + type: 'Point', + tag: 2, + required: true, + repeated: false, + options: {} + }, { + name: 'label', + type: 'string', + tag: 3, + required: false, + repeated: false, + options: {} + }] + }], + options:{} +} +``` + +## API + +#### `schema.parse(protobufSchemaBufferOrString)` + +Parses a .proto schema into a javascript object + +#### `schema.stringify(schema)` + +Stringifies a parsed schema back into .proto format + +## License + +MIT diff --git a/node_modules/protocol-buffers-schema/example.js b/node_modules/protocol-buffers-schema/example.js new file mode 100644 index 0000000000000000000000000000000000000000..a8a14daa831e7b36d585e0b4eb67b77a9d542e40 --- /dev/null +++ b/node_modules/protocol-buffers-schema/example.js @@ -0,0 +1,11 @@ +var schema = require('./') +var fs = require('fs') + +var sch = schema.parse(fs.readFileSync('example.proto')) + +console.log('Parsed schema:') +console.log(JSON.stringify(sch, null, 2)) +console.log('') + +console.log('Stringified schema:') +console.log(schema.stringify(sch)) diff --git a/node_modules/protocol-buffers-schema/example.proto b/node_modules/protocol-buffers-schema/example.proto new file mode 100644 index 0000000000000000000000000000000000000000..08043ce7d339d33befa6453f68d746d677c95537 --- /dev/null +++ b/node_modules/protocol-buffers-schema/example.proto @@ -0,0 +1,13 @@ +// example file + +message Test { + map data = 1; + required string hello = 2; + oneof test { + uint32 age = 3; + uint32 year = 4; + } + message Nested { + optional bytes thing = 1; + } +} diff --git a/node_modules/protocol-buffers-schema/index.js b/node_modules/protocol-buffers-schema/index.js new file mode 100644 index 0000000000000000000000000000000000000000..1292497d8dacd5ddb4f453626c58693c922d097b --- /dev/null +++ b/node_modules/protocol-buffers-schema/index.js @@ -0,0 +1,6 @@ +var parse = require('./parse') +var stringify = require('./stringify') + +module.exports = parse +module.exports.parse = parse +module.exports.stringify = stringify diff --git a/node_modules/protocol-buffers-schema/package.json b/node_modules/protocol-buffers-schema/package.json new file mode 100644 index 0000000000000000000000000000000000000000..3922c7d3583168e9ff20aea221338db50041b699 --- /dev/null +++ b/node_modules/protocol-buffers-schema/package.json @@ -0,0 +1,31 @@ +{ + "name": "protocol-buffers-schema", + "version": "3.6.1", + "description": "No nonsense protocol buffers schema parser written in Javascript", + "main": "index.js", + "devDependencies": { + "standard": "^10.0.3", + "tape": "^4.8.0" + }, + "scripts": { + "test": "standard && tape test/*.js" + }, + "repository": { + "type": "git", + "url": "https://github.com/mafintosh/protocol-buffers-schema" + }, + "keywords": [ + "protobuf", + "protocol", + "buffers", + "schema", + "parser", + "parse" + ], + "author": "Mathias Buus", + "license": "MIT", + "bugs": { + "url": "https://github.com/mafintosh/protocol-buffers-schema/issues" + }, + "homepage": "https://github.com/mafintosh/protocol-buffers-schema" +} diff --git a/node_modules/protocol-buffers-schema/parse.js b/node_modules/protocol-buffers-schema/parse.js new file mode 100644 index 0000000000000000000000000000000000000000..d9bd27c1ec3f91c4eaa0e36e3aa82febc21389a8 --- /dev/null +++ b/node_modules/protocol-buffers-schema/parse.js @@ -0,0 +1,769 @@ +var tokenize = require('./tokenize') +var MAX_RANGE = 0x1FFFFFFF + +// "Only repeated fields of primitive numeric types (types which use the varint, 32-bit, or 64-bit wire types) can be declared "packed"." +// https://developers.google.com/protocol-buffers/docs/encoding#optional +var PACKABLE_TYPES = [ + // varint wire types + 'int32', 'int64', 'uint32', 'uint64', 'sint32', 'sint64', 'bool', + // + ENUMS + // 64-bit wire types + 'fixed64', 'sfixed64', 'double', + // 32-bit wire types + 'fixed32', 'sfixed32', 'float' +] + +var onfieldoptionvalue = function (tokens) { + var value = tokens.shift() + if (value !== '{') { + return value + } + value = Object.create(null) + var field = '' + while (tokens.length) { + switch (tokens[0]) { + case '}': + tokens.shift() + return value + case ':': + tokens.shift() + value[field] = onfieldoptionvalue(tokens) + break + default: + field = tokens.shift() + } + } +} + +var onfieldoptions = function (tokens) { + var opts = Object.create(null) + + while (tokens.length) { + switch (tokens[0]) { + case '[': + case ',': { + tokens.shift() + var name = tokens.shift() + if (name === '(') { // handling [(A) = B] + name = tokens.shift() + tokens.shift() // remove the end of bracket + } + var field = [] + if (tokens[0][0] === '.') { + field = tokens[0].substr(1).split('.') + tokens.shift() + } + if (tokens[0] !== '=') throw new Error('Unexpected token in field options: ' + tokens[0]) + tokens.shift() + if (tokens[0] === ']') throw new Error('Unexpected ] in field option') + + // for option (A).b.c + // path will be ['A', 'b'] and lastFieldName 'c' + var path = [name].concat(field) + var lastFieldName = path.pop() + + // opt references opts.A.b + var opt = path.reduce(function (opt, n, index) { + if (opt[n] == null) { + opt[n] = Object.create(null) + } + return opt[n] + }, opts) + + // now set opt['c'] that references opts.A.b['c'] + opt[lastFieldName] = onfieldoptionvalue(tokens) + break + } + case ']': + tokens.shift() + return opts + + default: + throw new Error('Unexpected token in field options: ' + tokens[0]) + } + } + + throw new Error('No closing tag for field options') +} + +var onfield = function (tokens) { + var field = { + name: null, + type: null, + tag: -1, + map: null, + oneof: null, + required: false, + repeated: false, + options: Object.create(null) + } + + while (tokens.length) { + switch (tokens[0]) { + case '=': + tokens.shift() + field.tag = Number(tokens.shift()) + break + + case 'map': + field.type = 'map' + field.map = { from: null, to: null } + tokens.shift() + if (tokens[0] !== '<') throw new Error('Unexpected token in map type: ' + tokens[0]) + tokens.shift() + field.map.from = tokens.shift() + if (tokens[0] !== ',') throw new Error('Unexpected token in map type: ' + tokens[0]) + tokens.shift() + field.map.to = tokens.shift() + if (tokens[0] !== '>') throw new Error('Unexpected token in map type: ' + tokens[0]) + tokens.shift() + field.name = tokens.shift() + break + + case 'repeated': + case 'required': + case 'optional': + var t = tokens.shift() + field.required = t === 'required' + field.repeated = t === 'repeated' + field.type = tokens.shift() + field.name = tokens.shift() + break + + case '[': + field.options = onfieldoptions(tokens) + break + + case ';': + if (field.name === null) throw new Error('Missing field name') + if (field.type === null) throw new Error('Missing type in message field: ' + field.name) + if (field.tag === -1) throw new Error('Missing tag number in message field: ' + field.name) + tokens.shift() + return field + + default: + throw new Error('Unexpected token in message field: ' + tokens[0]) + } + } + + throw new Error('No ; found for message field') +} + +var onmessagebody = function (tokens) { + var body = { + enums: [], + options: Object.create(null), + messages: [], + fields: [], + extends: [], + extensions: null + } + + while (tokens.length) { + switch (tokens[0]) { + case 'map': + case 'repeated': + case 'optional': + case 'required': + body.fields.push(onfield(tokens)) + break + + case 'enum': + body.enums.push(onenum(tokens)) + break + + case 'message': + body.messages.push(onmessage(tokens)) + break + + case 'extensions': + body.extensions = onextensions(tokens) + break + + case 'oneof': + tokens.shift() + var name = tokens.shift() + if (tokens[0] !== '{') throw new Error('Unexpected token in oneof: ' + tokens[0]) + tokens.shift() + while (tokens[0] !== '}') { + tokens.unshift('optional') + var field = onfield(tokens) + field.oneof = name + body.fields.push(field) + } + tokens.shift() + break + + case 'extend': + body.extends.push(onextend(tokens)) + break + + case ';': + tokens.shift() + break + + case 'reserved': + tokens.shift() + while (tokens[0] !== ';') { + tokens.shift() + } + break + + case 'option': + var opt = onoption(tokens) + if (body.options[opt.name] !== undefined) throw new Error('Duplicate option ' + opt.name) + body.options[opt.name] = opt.value + break + + default: + // proto3 does not require the use of optional/required, assumed as optional + // "singular: a well-formed message can have zero or one of this field (but not more than one)." + // https://developers.google.com/protocol-buffers/docs/proto3#specifying-field-rules + tokens.unshift('optional') + body.fields.push(onfield(tokens)) + } + } + + return body +} + +var onextend = function (tokens) { + var out = { + name: tokens[1], + message: onmessage(tokens) + } + return out +} + +var onextensions = function (tokens) { + tokens.shift() + var from = Number(tokens.shift()) + if (isNaN(from)) throw new Error('Invalid from in extensions definition') + if (tokens.shift() !== 'to') throw new Error("Expected keyword 'to' in extensions definition") + var to = tokens.shift() + if (to === 'max') to = MAX_RANGE + to = Number(to) + if (isNaN(to)) throw new Error('Invalid to in extensions definition') + if (tokens.shift() !== ';') throw new Error('Missing ; in extensions definition') + return { from: from, to: to } +} +var onmessage = function (tokens) { + tokens.shift() + + var lvl = 1 + var body = [] + var msg = { + name: tokens.shift(), + options: Object.create(null), + enums: [], + extends: [], + messages: [], + fields: [] + } + + if (tokens[0] !== '{') throw new Error('Expected { but found ' + tokens[0]) + tokens.shift() + + while (tokens.length) { + if (tokens[0] === '{') lvl++ + else if (tokens[0] === '}') lvl-- + + if (!lvl) { + tokens.shift() + body = onmessagebody(body) + msg.enums = body.enums + msg.messages = body.messages + msg.fields = body.fields + msg.extends = body.extends + msg.extensions = body.extensions + msg.options = body.options + return msg + } + + body.push(tokens.shift()) + } + + if (lvl) throw new Error('No closing tag for message') +} + +var onpackagename = function (tokens) { + tokens.shift() + var name = tokens.shift() + if (tokens[0] !== ';') throw new Error('Expected ; but found ' + tokens[0]) + tokens.shift() + return name +} + +var onsyntaxversion = function (tokens) { + tokens.shift() + + if (tokens[0] !== '=') throw new Error('Expected = but found ' + tokens[0]) + tokens.shift() + + var version = tokens.shift() + switch (version) { + case '"proto2"': + version = 2 + break + + case '"proto3"': + version = 3 + break + + default: + throw new Error('Expected protobuf syntax version but found ' + version) + } + + if (tokens[0] !== ';') throw new Error('Expected ; but found ' + tokens[0]) + tokens.shift() + + return version +} + +var onenumvalue = function (tokens) { + if (tokens.length < 4) throw new Error('Invalid enum value: ' + tokens.slice(0, 3).join(' ')) + if (tokens[0] === 'reserved') { + tokens.shift() + while (tokens[0] !== ';') { + tokens.shift() + } + tokens.shift() + return null + } + if (tokens[1] !== '=') throw new Error('Expected = but found ' + tokens[1]) + if (tokens[3] !== ';' && tokens[3] !== '[') throw new Error('Expected ; or [ but found ' + tokens[1]) + + var name = tokens.shift() + tokens.shift() + var val = { + value: null, + options: Object.create(null) + } + val.value = Number(tokens.shift()) + if (tokens[0] === '[') { + val.options = onfieldoptions(tokens) + } + tokens.shift() // expecting the semicolon here + + return { + name: name, + val: val + } +} + +var onenum = function (tokens) { + tokens.shift() + var options = {} + var e = { + name: tokens.shift(), + values: {}, + options: Object.create(null) + } + + if (tokens[0] !== '{') throw new Error('Expected { but found ' + tokens[0]) + tokens.shift() + + while (tokens.length) { + if (tokens[0] === '}') { + tokens.shift() + // there goes optional semicolon after the enclosing "}" + if (tokens[0] === ';') tokens.shift() + return e + } + if (tokens[0] === 'option') { + options = onoption(tokens) + e.options[options.name] = options.value + continue + } + var val = onenumvalue(tokens) + if (val !== null) { + e.values[val.name] = val.val + } + } + + throw new Error('No closing tag for enum') +} + +var onoption = function (tokens) { + var name = null + var value = null + + var parse = function (value) { + if (value === 'true') return true + if (value === 'false') return false + return value.replace(/^"+|"+$/gm, '') + } + + while (tokens.length) { + if (tokens[0] === ';') { + tokens.shift() + return { name: name, value: value } + } + switch (tokens[0]) { + case 'option': + tokens.shift() + + var hasBracket = tokens[0] === '(' + if (hasBracket) tokens.shift() + + name = tokens.shift() + + if (hasBracket) { + if (tokens[0] !== ')') throw new Error('Expected ) but found ' + tokens[0]) + tokens.shift() + } + + if (tokens[0][0] === '.') { + name += tokens.shift() + } + + break + + case '=': + tokens.shift() + if (name === null) throw new Error('Expected key for option with value: ' + tokens[0]) + value = parse(tokens.shift()) + + if (name === 'optimize_for' && !/^(SPEED|CODE_SIZE|LITE_RUNTIME)$/.test(value)) { + throw new Error('Unexpected value for option optimize_for: ' + value) + } else if (value === '{') { + // option foo = {bar: baz} + value = onoptionMap(tokens) + } + break + + default: + throw new Error('Unexpected token in option: ' + tokens[0]) + } + } +} + +var onoptionMap = function (tokens) { + var parse = function (value) { + if (value === 'true') return true + if (value === 'false') return false + return value.replace(/^"+|"+$/gm, '') + } + + var map = Object.create(null) + + while (tokens.length) { + if (tokens[0] === '}') { + tokens.shift() + return map + } + + var hasBracket = tokens[0] === '(' + if (hasBracket) tokens.shift() + + var key = tokens.shift() + if (hasBracket) { + if (tokens[0] !== ')') throw new Error('Expected ) but found ' + tokens[0]) + tokens.shift() + } + + var value = null + + switch (tokens[0]) { + case ':': + if (map[key] !== undefined) throw new Error('Duplicate option map key ' + key) + + tokens.shift() + + value = parse(tokens.shift()) + + if (value === '{') { + // option foo = {bar: baz} + value = onoptionMap(tokens) + } + + map[key] = value + + if (tokens[0] === ';') { + tokens.shift() + } + break + + case '{': + tokens.shift() + value = onoptionMap(tokens) + + if (map[key] === undefined) map[key] = [] + if (!Array.isArray(map[key])) throw new Error('Duplicate option map key ' + key) + + map[key].push(value) + break + + default: + throw new Error('Unexpected token in option map: ' + tokens[0]) + } + } + + throw new Error('No closing tag for option map') +} + +var onimport = function (tokens) { + tokens.shift() + var file = tokens.shift().replace(/^"+|"+$/gm, '') + + if (tokens[0] !== ';') throw new Error('Unexpected token: ' + tokens[0] + '. Expected ";"') + + tokens.shift() + return file +} + +var onservice = function (tokens) { + tokens.shift() + + var service = { + name: tokens.shift(), + methods: [], + options: Object.create(null) + } + + if (tokens[0] !== '{') throw new Error('Expected { but found ' + tokens[0]) + tokens.shift() + + while (tokens.length) { + if (tokens[0] === '}') { + tokens.shift() + // there goes optional semicolon after the enclosing "}" + if (tokens[0] === ';') tokens.shift() + return service + } + + switch (tokens[0]) { + case 'option': + var opt = onoption(tokens) + if (service.options[opt.name] !== undefined) throw new Error('Duplicate option ' + opt.name) + service.options[opt.name] = opt.value + break + case 'rpc': + service.methods.push(onrpc(tokens)) + break + default: + throw new Error('Unexpected token in service: ' + tokens[0]) + } + } + + throw new Error('No closing tag for service') +} + +var onrpc = function (tokens) { + tokens.shift() + + var rpc = { + name: tokens.shift(), + input_type: null, + output_type: null, + client_streaming: false, + server_streaming: false, + options: Object.create(null) + } + + if (tokens[0] !== '(') throw new Error('Expected ( but found ' + tokens[0]) + tokens.shift() + + if (tokens[0] === 'stream') { + tokens.shift() + rpc.client_streaming = true + } + + rpc.input_type = tokens.shift() + + if (tokens[0] !== ')') throw new Error('Expected ) but found ' + tokens[0]) + tokens.shift() + + if (tokens[0] !== 'returns') throw new Error('Expected returns but found ' + tokens[0]) + tokens.shift() + + if (tokens[0] !== '(') throw new Error('Expected ( but found ' + tokens[0]) + tokens.shift() + + if (tokens[0] === 'stream') { + tokens.shift() + rpc.server_streaming = true + } + + rpc.output_type = tokens.shift() + + if (tokens[0] !== ')') throw new Error('Expected ) but found ' + tokens[0]) + tokens.shift() + + if (tokens[0] === ';') { + tokens.shift() + return rpc + } + + if (tokens[0] !== '{') throw new Error('Expected { but found ' + tokens[0]) + tokens.shift() + + while (tokens.length) { + if (tokens[0] === '}') { + tokens.shift() + // there goes optional semicolon after the enclosing "}" + if (tokens[0] === ';') tokens.shift() + return rpc + } + + if (tokens[0] === 'option') { + var opt = onoption(tokens) + if (rpc.options[opt.name] !== undefined) throw new Error('Duplicate option ' + opt.name) + rpc.options[opt.name] = opt.value + } else { + throw new Error('Unexpected token in rpc options: ' + tokens[0]) + } + } + + throw new Error('No closing tag for rpc') +} + +var parse = function (buf) { + var tokens = tokenize(buf.toString()) + // check for isolated strings in tokens by looking for opening quote + for (var i = 0; i < tokens.length; i++) { + if (/^("|')([^'"]*)$/.test(tokens[i])) { + var j + if (tokens[i].length === 1) { + j = i + 1 + } else { + j = i + } + // look ahead for the closing quote and collapse all + // in-between tokens into a single token + for (j; j < tokens.length; j++) { + if (/^[^'"\\]*(?:\\.[^'"\\]*)*("|')$/.test(tokens[j])) { + tokens = tokens.slice(0, i).concat(tokens.slice(i, j + 1).join('')).concat(tokens.slice(j + 1)) + break + } + } + } + } + var schema = { + syntax: 3, + package: null, + imports: [], + enums: [], + messages: [], + options: Object.create(null), + extends: [] + } + + var firstline = true + + while (tokens.length) { + switch (tokens[0]) { + case 'package': + schema.package = onpackagename(tokens) + break + + case 'syntax': + if (!firstline) throw new Error('Protobuf syntax version should be first thing in file') + schema.syntax = onsyntaxversion(tokens) + break + + case 'message': + schema.messages.push(onmessage(tokens)) + break + + case 'enum': + schema.enums.push(onenum(tokens)) + break + + case 'option': + var opt = onoption(tokens) + if (schema.options[opt.name]) throw new Error('Duplicate option ' + opt.name) + schema.options[opt.name] = opt.value + break + + case 'import': + schema.imports.push(onimport(tokens)) + break + + case 'extend': + schema.extends.push(onextend(tokens)) + break + + case 'service': + if (!schema.services) schema.services = [] + schema.services.push(onservice(tokens)) + break + + default: + throw new Error('Unexpected token: ' + tokens[0]) + } + firstline = false + } + + // now iterate over messages and propagate extends + schema.extends.forEach(function (ext) { + schema.messages.forEach(function (msg) { + if (msg.name === ext.name) { + ext.message.fields.forEach(function (field) { + if (!msg.extensions || field.tag < msg.extensions.from || field.tag > msg.extensions.to) { + throw new Error(msg.name + ' does not declare ' + field.tag + ' as an extension number') + } + msg.fields.push(field) + }) + } + }) + }) + + schema.messages.forEach(function (msg) { + msg.fields.forEach(function (field) { + var fieldSplit + var messageName + var nestedEnumName + var message + + function enumNameIsFieldType (en) { + return en.name === field.type + } + + function enumNameIsNestedEnumName (en) { + return en.name === nestedEnumName + } + + if (field.options && field.options.packed === 'true') { + if (PACKABLE_TYPES.indexOf(field.type) === -1) { + // let's see if it's an enum + if (field.type.indexOf('.') === -1) { + if (msg.enums && msg.enums.some(enumNameIsFieldType)) { + return + } + } else { + fieldSplit = field.type.split('.') + if (fieldSplit.length > 2) { + throw new Error('what is this?') + } + + messageName = fieldSplit[0] + nestedEnumName = fieldSplit[1] + + schema.messages.some(function (msg) { + if (msg.name === messageName) { + message = msg + return msg + } + }) + + if (message && message.enums && message.enums.some(enumNameIsNestedEnumName)) { + return + } + } + + throw new Error( + 'Fields of type ' + field.type + ' cannot be declared [packed=true]. ' + + 'Only repeated fields of primitive numeric types (types which use ' + + 'the varint, 32-bit, or 64-bit wire types) can be declared "packed". ' + + 'See https://developers.google.com/protocol-buffers/docs/encoding#optional' + ) + } + } + }) + }) + + return schema +} + +module.exports = parse diff --git a/node_modules/protocol-buffers-schema/stringify.js b/node_modules/protocol-buffers-schema/stringify.js new file mode 100644 index 0000000000000000000000000000000000000000..19c9435fdfe10f572dd2b5211025796e18bb7638 --- /dev/null +++ b/node_modules/protocol-buffers-schema/stringify.js @@ -0,0 +1,206 @@ +var onimport = function (i, result) { + result.push('import "' + i + '";', '') + return result +} + +var onfield = function (f, result) { + var prefix = f.repeated ? 'repeated' : f.required ? 'required' : 'optional' + if (f.type === 'map') prefix = 'map<' + f.map.from + ',' + f.map.to + '>' + if (f.oneof) prefix = '' + + var opts = Object.keys(f.options || {}).map(function (key) { + return key + ' = ' + f.options[key] + }).join(',') + + if (opts) opts = ' [' + opts + ']' + + result.push((prefix ? prefix + ' ' : '') + (f.map === 'map' ? '' : f.type + ' ') + f.name + ' = ' + f.tag + opts + ';') + return result +} + +var onmessage = function (m, result) { + result.push('message ' + m.name + ' {') + + if (!m.options) m.options = {} + onoption(m.options, result) + + if (!m.enums) m.enums = [] + m.enums.forEach(function (e) { + result.push(onenum(e, [])) + }) + + if (!m.messages) m.messages = [] + m.messages.forEach(function (m) { + result.push(onmessage(m, [])) + }) + + var oneofs = {} + + if (!m.fields) m.fields = [] + m.fields.forEach(function (f) { + if (f.oneof) { + if (!oneofs[f.oneof]) oneofs[f.oneof] = [] + oneofs[f.oneof].push(onfield(f, [])) + } else { + result.push(onfield(f, [])) + } + }) + + Object.keys(oneofs).forEach(function (n) { + oneofs[n].unshift('oneof ' + n + ' {') + oneofs[n].push('}') + result.push(oneofs[n]) + }) + + result.push('}', '') + return result +} + +var onenum = function (e, result) { + result.push('enum ' + e.name + ' {') + if (!e.options) e.options = {} + var options = onoption(e.options, []) + if (options.length > 1) { + result.push(options.slice(0, -1)) + } + Object.keys(e.values).map(function (v) { + var val = onenumvalue(e.values[v]) + result.push([v + ' = ' + val + ';']) + }) + result.push('}', '') + return result +} + +var onenumvalue = function (v, result) { + var opts = Object.keys(v.options || {}).map(function (key) { + return key + ' = ' + v.options[key] + }).join(',') + + if (opts) opts = ' [' + opts + ']' + var val = v.value + opts + return val +} + +var onoption = function (o, result) { + var keys = Object.keys(o) + keys.forEach(function (option) { + var v = o[option] + if (~option.indexOf('.')) option = '(' + option + ')' + + var type = typeof v + + if (type === 'object') { + v = onoptionMap(v, []) + if (v.length) result.push('option ' + option + ' = {', v, '};') + } else { + if (type === 'string' && option !== 'optimize_for') v = '"' + v + '"' + result.push('option ' + option + ' = ' + v + ';') + } + }) + if (keys.length > 0) { + result.push('') + } + + return result +} + +var onoptionMap = function (o, result) { + var keys = Object.keys(o) + keys.forEach(function (k) { + var v = o[k] + + var type = typeof v + + if (type === 'object') { + if (Array.isArray(v)) { + v.forEach(function (v) { + v = onoptionMap(v, []) + if (v.length) result.push(k + ' {', v, '}') + }) + } else { + v = onoptionMap(v, []) + if (v.length) result.push(k + ' {', v, '}') + } + } else { + if (type === 'string') v = '"' + v + '"' + result.push(k + ': ' + v) + } + }) + + return result +} + +var onservices = function (s, result) { + result.push('service ' + s.name + ' {') + + if (!s.options) s.options = {} + onoption(s.options, result) + if (!s.methods) s.methods = [] + s.methods.forEach(function (m) { + result.push(onrpc(m, [])) + }) + + result.push('}', '') + return result +} + +var onrpc = function (rpc, result) { + var def = 'rpc ' + rpc.name + '(' + if (rpc.client_streaming) def += 'stream ' + def += rpc.input_type + ') returns (' + if (rpc.server_streaming) def += 'stream ' + def += rpc.output_type + ')' + + if (!rpc.options) rpc.options = {} + + var options = onoption(rpc.options, []) + if (options.length > 1) { + result.push(def + ' {', options.slice(0, -1), '}') + } else { + result.push(def + ';') + } + + return result +} + +var indent = function (lvl) { + return function (line) { + if (Array.isArray(line)) return line.map(indent(lvl + ' ')).join('\n') + return lvl + line + } +} + +module.exports = function (schema) { + var result = [] + + result.push('syntax = "proto' + schema.syntax + '";', '') + + if (schema.package) result.push('package ' + schema.package + ';', '') + + if (schema.imports) { + schema.imports.forEach(function (i) { + onimport(i, result) + }) + } + + if (!schema.options) schema.options = {} + + onoption(schema.options, result) + + if (!schema.enums) schema.enums = [] + schema.enums.forEach(function (e) { + onenum(e, result) + }) + + if (!schema.messages) schema.messages = [] + schema.messages.forEach(function (m) { + onmessage(m, result) + }) + + if (schema.services) { + schema.services.forEach(function (s) { + onservices(s, result) + }) + } + return result.map(indent('')).join('\n') +} diff --git a/node_modules/protocol-buffers-schema/test/fixtures/basic.json b/node_modules/protocol-buffers-schema/test/fixtures/basic.json new file mode 100644 index 0000000000000000000000000000000000000000..c528693ccfd60e76bfa8a6f6de41da17a3d25f66 --- /dev/null +++ b/node_modules/protocol-buffers-schema/test/fixtures/basic.json @@ -0,0 +1,90 @@ +{ + "syntax": 3, + "package": null, + "imports": [], + "enums": [], + "extends": [], + "messages": [ + { + "name": "Point", + "enums": [], + "extends": [], + "messages": [], + "options": {}, + "extensions": null, + "fields": [ + { + "name": "x", + "type": "int32", + "tag": 1, + "map": null, + "oneof": null, + "required": true, + "repeated": false, + "options": {} + }, + { + "name": "y", + "type": "int32", + "tag": 2, + "map": null, + "oneof": null, + "required": true, + "repeated": false, + "options": {} + }, + { + "name": "label", + "type": "string", + "tag": 3, + "map": null, + "oneof": null, + "required": false, + "repeated": false, + "options": {} + } + ] + }, + { + "name": "Line", + "enums": [], + "extends": [], + "extensions": null, + "messages": [], + "options": {}, + "fields": [ + { + "name": "start", + "type": "Point", + "tag": 1, + "map": null, + "oneof": null, + "required": true, + "repeated": false, + "options": {} + }, + { + "name": "end", + "type": "Point", + "tag": 2, + "map": null, + "oneof": null, + "required": true, + "repeated": false, + "options": {} + }, + { + "name": "label", + "type": "string", + "tag": 3, + "map": null, + "oneof": null, + "required": false, + "repeated": false, + "options": {} + } + ] + } + ], + "options":{} +} diff --git a/node_modules/protocol-buffers-schema/test/fixtures/basic.proto b/node_modules/protocol-buffers-schema/test/fixtures/basic.proto new file mode 100644 index 0000000000000000000000000000000000000000..26f7510bf51c5a594b2e956bc070d8ee2c685b82 --- /dev/null +++ b/node_modules/protocol-buffers-schema/test/fixtures/basic.proto @@ -0,0 +1,11 @@ +message Point { + required int32 x = 1; + required int32 y = 2; + optional string label = 3; +} + +message Line { + required Point start = 1; + required Point end = 2; + optional string label = 3; +} diff --git a/node_modules/protocol-buffers-schema/test/fixtures/comments.json b/node_modules/protocol-buffers-schema/test/fixtures/comments.json new file mode 100644 index 0000000000000000000000000000000000000000..fd90a810ee157c69198892606276e9180cb62283 --- /dev/null +++ b/node_modules/protocol-buffers-schema/test/fixtures/comments.json @@ -0,0 +1,99 @@ +{ + "syntax": 3, + "package": null, + "imports": [], + "enums": [], + "extends": [], + "messages": [ + { + "name": "Point", + "enums": [], + "extends": [], + "messages": [], + "options": {}, + "extensions": null, + "fields": [ + { + "name": "x", + "type": "int32", + "tag": 1, + "map": null, + "oneof": null, + "required": true, + "repeated": false, + "options": {} + }, + { + "name": "y", + "type": "int32", + "tag": 2, + "map": null, + "oneof": null, + "required": true, + "repeated": false, + "options": {} + }, + { + "name": "label", + "type": "string", + "tag": 3, + "map": null, + "oneof": null, + "required": false, + "repeated": false, + "options": {} + } + ] + }, + { + "name": "Line", + "enums": [], + "extends": [], + "options": {}, + "extensions": null, + "messages": [], + "fields": [ + { + "name": "start", + "type": "Point", + "tag": 1, + "map": null, + "oneof": null, + "required": true, + "repeated": false, + "options": {} + }, + { + "name": "end", + "type": "Point", + "tag": 2, + "map": null, + "oneof": null, + "required": true, + "repeated": false, + "options": {} + }, + { + "name": "label", + "type": "string", + "tag": 3, + "map": null, + "oneof": null, + "required": false, + "repeated": false, + "options": {} + } + ] + }, + { + "name": "A", + "enums": [], + "extends": [], + "options": {}, + "messages": [], + "fields": [], + "extensions": null + } + ], + "options":{} +} diff --git a/node_modules/protocol-buffers-schema/test/fixtures/comments.proto b/node_modules/protocol-buffers-schema/test/fixtures/comments.proto new file mode 100644 index 0000000000000000000000000000000000000000..dd184949a537e3fa786137c902e73aaca8dd0569 --- /dev/null +++ b/node_modules/protocol-buffers-schema/test/fixtures/comments.proto @@ -0,0 +1,19 @@ +//Single-line comment +message Point { + required int32 x = 1; + required int32 y = 2; + optional string label = 3; +} + +/*Multi-line comment*/ +message Line {/* +*/required Point start = 1; + required Point end = 2; + optional string label = 3; +} + +/** + * Doxygen-style comment + **/ +message A { +}//Comment after closing brace of last message diff --git a/node_modules/protocol-buffers-schema/test/fixtures/complex.json b/node_modules/protocol-buffers-schema/test/fixtures/complex.json new file mode 100644 index 0000000000000000000000000000000000000000..895fdb8f98b9a35f6571d7ade414429284315b2d --- /dev/null +++ b/node_modules/protocol-buffers-schema/test/fixtures/complex.json @@ -0,0 +1,125 @@ +{ + "syntax": 3, + "package": "tutorial", + "imports": [], + "enums": [], + "messages": [{ + "name": "Person", + "options": {}, + "enums": [{ + "name": "PhoneType", + "values": { + "MOBILE": { + "value": 0, + "options": { + "some_enum_option": "true" + } + }, + "HOME": { + "value": 1, + "options": {} + }, + "WORK": { + "value": 2, + "options": {} + } + }, + "options": { + "allow_alias": true, + "custom_option": true + } + }], + "extends": [], + "messages": [{ + "name": "PhoneNumber", + "enums": [], + "extends": [], + "messages": [], + "options": {}, + "fields": [{ + "name": "number", + "type": "string", + "tag": 1, + "map": null, + "oneof": null, + "required": true, + "repeated": false, + "options": {} + }, { + "name": "type", + "type": "PhoneType", + "tag": 2, + "map": null, + "oneof": null, + "required": false, + "repeated": false, + "options": { + "default": "HOME" + } + }], + "extensions": null + }], + "fields": [{ + "name": "name", + "type": "string", + "tag": 1, + "map": null, + "oneof": null, + "required": true, + "repeated": false, + "options": {} + }, { + "name": "id", + "type": "int32", + "tag": 2, + "map": null, + "oneof": null, + "required": true, + "repeated": false, + "options": {} + }, { + "name": "email", + "type": "string", + "tag": 3, + "map": null, + "oneof": null, + "required": false, + "repeated": false, + "options": {} + }, { + "name": "phone", + "type": "PhoneNumber", + "tag": 4, + "map": null, + "oneof": null, + "required": false, + "repeated": true, + "options": {} + }], + "extensions": null + }, { + "name": "AddressBook", + "enums": [], + "extends": [], + "messages": [], + "options": {}, + "fields": [{ + "name": "person", + "type": "Person", + "tag": 1, + "map": null, + "oneof": null, + "required": false, + "repeated": true, + "options": {} + }], + "extensions": null + }], + "options": { + "java_package": "com.mafintosh.generated", + "java_outer_classname": "Example", + "java_generate_equals_and_hash": true, + "optimize_for": "SPEED" + }, + "extends": [] +} diff --git a/node_modules/protocol-buffers-schema/test/fixtures/complex.proto b/node_modules/protocol-buffers-schema/test/fixtures/complex.proto new file mode 100644 index 0000000000000000000000000000000000000000..87d8c07a958b0f8f8b9adf089c7aaa90300c60a4 --- /dev/null +++ b/node_modules/protocol-buffers-schema/test/fixtures/complex.proto @@ -0,0 +1,30 @@ +package tutorial; + +option java_package = "com.mafintosh.generated"; +option java_outer_classname = "Example"; +option java_generate_equals_and_hash = true; +option optimize_for = SPEED; + +message Person { + enum PhoneType { + option allow_alias = true; + option custom_option = true; + MOBILE = 0 [some_enum_option = true]; + HOME = 1; + WORK = 2; + } + + message PhoneNumber { + required string number = 1; + optional PhoneType type = 2 [default = HOME]; + } + + required string name = 1; + required int32 id = 2; + optional string email = 3; + repeated PhoneNumber phone = 4; +} + +message AddressBook { + repeated Person person = 1; +} diff --git a/node_modules/protocol-buffers-schema/test/fixtures/enum.json b/node_modules/protocol-buffers-schema/test/fixtures/enum.json new file mode 100644 index 0000000000000000000000000000000000000000..bec5ef293d0a6ff7447ead6b73a799a701f04ecc --- /dev/null +++ b/node_modules/protocol-buffers-schema/test/fixtures/enum.json @@ -0,0 +1,42 @@ +{ + "syntax": 3, + "package": null, + "imports": [], + "enums": [], + "messages": [{ + "name": "Person", + "enums": [{ + "name": "PhoneType", + "values": { + "MOBILE": { + "value": 0, + "options": { + "enum_value_is_deprecated": "true", + "some_second_option": "\"value1, value2, value3\"", + "some_third_option": "'[value1, value2, value3]'" + } + }, + "HOME": { + "value": 1, + "options": { + "enum_value_is_deprecated": "true" + } + }, + "WORK": { + "value": 2, + "options": {} + } + }, + "options": { + "allow_alias": true + } + }], + "extends": [], + "messages": [], + "options": {}, + "fields": [], + "extensions": null + }], + "options": {}, + "extends": [] +} diff --git a/node_modules/protocol-buffers-schema/test/fixtures/enum.proto b/node_modules/protocol-buffers-schema/test/fixtures/enum.proto new file mode 100644 index 0000000000000000000000000000000000000000..93d3e72c685640fe84e059441750d5dee91a0f1f --- /dev/null +++ b/node_modules/protocol-buffers-schema/test/fixtures/enum.proto @@ -0,0 +1,8 @@ +message Person { + enum PhoneType { + option allow_alias = true; + MOBILE = 0 [(enum_value_is_deprecated) = true, (some_second_option) = "value1, value2, value3", (some_third_option) = '[value1, value2, value3]']; + HOME = 1 [(enum_value_is_deprecated) = true]; + WORK = 2; + } +} diff --git a/node_modules/protocol-buffers-schema/test/fixtures/escaped-quotes.json b/node_modules/protocol-buffers-schema/test/fixtures/escaped-quotes.json new file mode 100644 index 0000000000000000000000000000000000000000..0032d471663afbfad914394f4ac35daf423782a1 --- /dev/null +++ b/node_modules/protocol-buffers-schema/test/fixtures/escaped-quotes.json @@ -0,0 +1,32 @@ +{ + "syntax": 3, + "package": null, + "imports": [], + "enums": [], + "messages": [ + { + "name": "Event", + "enums": [], + "options": {}, + "extends": [], + "messages": [], + "fields": [ + { + "name": "id", + "type": "EntityId", + "tag": 1, + "map": null, + "oneof": null, + "required": false, + "repeated": false, + "options": { + "tagger.tags": "\"a:'Hello, there', bson:\\\"_id,omitempty\\\"\"" + } + } + ], + "extensions": null + } + ], + "options": {}, + "extends": [] + } diff --git a/node_modules/protocol-buffers-schema/test/fixtures/escaped-quotes.proto b/node_modules/protocol-buffers-schema/test/fixtures/escaped-quotes.proto new file mode 100644 index 0000000000000000000000000000000000000000..dd55f14865e31bb6667a7df96ff474aea575e26a --- /dev/null +++ b/node_modules/protocol-buffers-schema/test/fixtures/escaped-quotes.proto @@ -0,0 +1,3 @@ +message Event { + EntityId id = 1 [(tagger.tags) = "a:'Hello, there', bson:\"_id,omitempty\"" ]; +} \ No newline at end of file diff --git a/node_modules/protocol-buffers-schema/test/fixtures/extend.json b/node_modules/protocol-buffers-schema/test/fixtures/extend.json new file mode 100644 index 0000000000000000000000000000000000000000..42c2c1c187dd4213e0caa7d6110a77e68bf016d7 --- /dev/null +++ b/node_modules/protocol-buffers-schema/test/fixtures/extend.json @@ -0,0 +1,167 @@ +{ + "syntax": 3, + "package": null, + "imports": [], + "enums": [], + "messages": [ + { + "name": "MsgNormal", + "enums": [], + "extends": [], + "options": {}, + "messages": [], + "fields": [ + { + "name": "field1", + "type": "int32", + "tag": 1, + "map": null, + "oneof": null, + "required": true, + "repeated": false, + "options": {} + }, + { + "name": "field2", + "type": "string", + "tag": 2, + "map": null, + "oneof": null, + "required": false, + "repeated": false, + "options": {} + }, + { + "name": "field3", + "type": "int32", + "tag": 3, + "map": null, + "oneof": null, + "required": true, + "repeated": false, + "options": {} + }, + { + "name": "exField1", + "type": "int32", + "tag": 101, + "map": null, + "oneof": null, + "required": false, + "repeated": false, + "options": {} + }, + { + "name": "exField2", + "type": "string", + "tag": 102, + "map": null, + "oneof": null, + "required": false, + "repeated": false, + "options": {} + } + ], + "extensions": null + }, + { + "name": "MsgExtend", + "enums": [], + "extends": [], + "messages": [], + "options": {}, + "fields": [ + { + "name": "field1", + "type": "int32", + "tag": 1, + "map": null, + "oneof": null, + "required": true, + "repeated": false, + "options": {} + }, + { + "name": "field2", + "type": "string", + "tag": 2, + "map": null, + "oneof": null, + "required": false, + "repeated": false, + "options": {} + }, + { + "name": "field3", + "type": "int32", + "tag": 3, + "map": null, + "oneof": null, + "required": true, + "repeated": false, + "options": {} + }, + { + "name": "exField1", + "type": "int32", + "tag": 101, + "map": null, + "oneof": null, + "required": false, + "repeated": false, + "options": {} + }, + { + "name": "exField2", + "type": "string", + "tag": 102, + "map": null, + "oneof": null, + "required": false, + "repeated": false, + "options": {} + } + ], + "extensions": { + "from": 100, + "to": 200 + } + } + ], + "options": {}, + "extends": [ + { + "name": "MsgExtend", + "message": { + "name": "MsgExtend", + "enums": [], + "extends": [], + "options": {}, + "messages": [], + "fields": [ + { + "name": "exField1", + "type": "int32", + "tag": 101, + "map": null, + "oneof": null, + "required": false, + "repeated": false, + "options": {} + }, + { + "name": "exField2", + "type": "string", + "tag": 102, + "map": null, + "oneof": null, + "required": false, + "repeated": false, + "options": {} + } + ], + "extensions": null + } + } + ] +} diff --git a/node_modules/protocol-buffers-schema/test/fixtures/extend.proto b/node_modules/protocol-buffers-schema/test/fixtures/extend.proto new file mode 100644 index 0000000000000000000000000000000000000000..e7af75aa8510d0f912e2ca538efd5b3a57bc95d5 --- /dev/null +++ b/node_modules/protocol-buffers-schema/test/fixtures/extend.proto @@ -0,0 +1,19 @@ +message MsgNormal { + required int32 field1 = 1; + optional string field2 = 2; + required int32 field3 = 3; + optional int32 exField1 = 101; + optional string exField2 = 102; +} + +message MsgExtend { + required int32 field1 = 1; + optional string field2 = 2; + required int32 field3 = 3; + extensions 100 to 200; +} + +extend MsgExtend { + optional int32 exField1 = 101; + optional string exField2 = 102; +} \ No newline at end of file diff --git a/node_modules/protocol-buffers-schema/test/fixtures/import.json b/node_modules/protocol-buffers-schema/test/fixtures/import.json new file mode 100644 index 0000000000000000000000000000000000000000..bb53a72192fbb19fa8f9e3c5250d825dce153cc4 --- /dev/null +++ b/node_modules/protocol-buffers-schema/test/fixtures/import.json @@ -0,0 +1,30 @@ +{ + "syntax": 3, + "package": null, + "imports": ["./result.proto", "./other_result.proto"], + "enums": [], + "extends": [], + "messages": [ + { + "name": "SearchResponse", + "extensions": null, + "enums": [], + "extends": [], + "options": {}, + "messages": [], + "fields": [ + { + "name": "result", + "type": "Result", + "tag": 1, + "map": null, + "oneof": null, + "required": false, + "repeated": true, + "options": {} + } + ] + } + ], + "options": {} +} \ No newline at end of file diff --git a/node_modules/protocol-buffers-schema/test/fixtures/import.proto b/node_modules/protocol-buffers-schema/test/fixtures/import.proto new file mode 100644 index 0000000000000000000000000000000000000000..692ca7178582b394328d95c07f3c140b14de424a --- /dev/null +++ b/node_modules/protocol-buffers-schema/test/fixtures/import.proto @@ -0,0 +1,6 @@ +import "./result.proto"; +import "./other_result.proto"; + +message SearchResponse { + repeated Result result = 1; +} diff --git a/node_modules/protocol-buffers-schema/test/fixtures/map.json b/node_modules/protocol-buffers-schema/test/fixtures/map.json new file mode 100644 index 0000000000000000000000000000000000000000..272f55147519f51a862886f0537100cb8f363cb8 --- /dev/null +++ b/node_modules/protocol-buffers-schema/test/fixtures/map.json @@ -0,0 +1,33 @@ +{ + "syntax": 3, + "package": null, + "imports": [], + "enums": [], + "messages": [ + { + "name": "Data", + "enums": [], + "options": {}, + "extends": [], + "messages": [], + "fields": [ + { + "name": "data", + "type": "map", + "map": { + "from": "string", + "to": "bytes" + }, + "oneof": null, + "tag": 1, + "required": false, + "repeated": false, + "options": {} + } + ], + "extensions": null + } + ], + "options": {}, + "extends": [] +} diff --git a/node_modules/protocol-buffers-schema/test/fixtures/map.proto b/node_modules/protocol-buffers-schema/test/fixtures/map.proto new file mode 100644 index 0000000000000000000000000000000000000000..b08ba7b2f7213b4acacd45484b285c4c5d76a085 --- /dev/null +++ b/node_modules/protocol-buffers-schema/test/fixtures/map.proto @@ -0,0 +1,3 @@ +message Data { + map data = 1; +} \ No newline at end of file diff --git a/node_modules/protocol-buffers-schema/test/fixtures/no-tags.proto b/node_modules/protocol-buffers-schema/test/fixtures/no-tags.proto new file mode 100644 index 0000000000000000000000000000000000000000..c1a0466673dcea2fd5e1348afdc5b4d757d07605 --- /dev/null +++ b/node_modules/protocol-buffers-schema/test/fixtures/no-tags.proto @@ -0,0 +1,8 @@ +message wallet { + optional int32 dollars; + optional int32 pesos; +} + +message traveller { + required wallet wallet; +} diff --git a/node_modules/protocol-buffers-schema/test/fixtures/oneof.json b/node_modules/protocol-buffers-schema/test/fixtures/oneof.json new file mode 100644 index 0000000000000000000000000000000000000000..8a647b31b232deb9621783a8a245481709b6838d --- /dev/null +++ b/node_modules/protocol-buffers-schema/test/fixtures/oneof.json @@ -0,0 +1,41 @@ +{ + "syntax": 3, + "package": null, + "imports": [], + "enums": [], + "messages": [ + { + "name": "SampleMessage", + "enums": [], + "extends": [], + "messages": [], + "options": {}, + "fields": [ + { + "name": "name", + "type": "string", + "tag": 4, + "map": null, + "oneof": "test_oneof", + "required": false, + "repeated": false, + "options": {} + }, + { + "name": "sub_message", + "type": "SubMessage", + "tag": 9, + "map": null, + "oneof": "test_oneof", + "required": false, + "repeated": false, + "options": {} + } + + ], + "extensions": null + } + ], + "options": {}, + "extends": [] +} diff --git a/node_modules/protocol-buffers-schema/test/fixtures/oneof.proto b/node_modules/protocol-buffers-schema/test/fixtures/oneof.proto new file mode 100644 index 0000000000000000000000000000000000000000..4562d79d421dfb01f5246c07dc8008d5cf558e22 --- /dev/null +++ b/node_modules/protocol-buffers-schema/test/fixtures/oneof.proto @@ -0,0 +1,6 @@ +message SampleMessage { + oneof test_oneof { + string name = 4; + SubMessage sub_message = 9; + } +} \ No newline at end of file diff --git a/node_modules/protocol-buffers-schema/test/fixtures/option.json b/node_modules/protocol-buffers-schema/test/fixtures/option.json new file mode 100644 index 0000000000000000000000000000000000000000..e80ca35e07e4aa891e212c4132bbe9f5d4745732 --- /dev/null +++ b/node_modules/protocol-buffers-schema/test/fixtures/option.json @@ -0,0 +1,364 @@ +{ + "syntax": 3, + "package": null, + "imports": [ + "google/protobuf/descriptor.proto" + ], + "enums": [ + { + "name": "MyEnum", + "values": { + "FOO": { + "value": 1, + "options": { + "my_enum_value_option": "321" + } + }, + "BAR": { + "value": 2, + "options": {} + } + }, + "options": { + "my_enum_option": true + } + } + ], + "messages": [ + { + "name": "MyMessage", + "enums": [], + "extends": [], + "messages": [], + "options": { + "my_message_option": "1234" + }, + "fields": [ + { + "name": "foo", + "type": "int32", + "tag": 1, + "map": null, + "oneof": null, + "required": false, + "repeated": false, + "options": { + "my_field_option": "4.5" + } + }, + { + "name": "bar", + "type": "string", + "tag": 2, + "map": null, + "oneof": null, + "required": false, + "repeated": false, + "options": {} + } + ], + "extensions": null + }, + { + "name": "RequestType", + "enums": [], + "extends": [], + "messages": [], + "options": {}, + "fields": [], + "extensions": null + }, + { + "name": "ResponseType", + "enums": [], + "extends": [], + "options": {}, + "messages": [], + "fields": [], + "extensions": null + }, + { + "name": "FooOptions", + "enums": [], + "extends": [], + "options": {}, + "messages": [], + "fields": [ + { + "name": "opt1", + "type": "int32", + "tag": 1, + "map": null, + "oneof": null, + "required": false, + "repeated": false, + "options": {} + }, + { + "name": "opt2", + "type": "string", + "tag": 2, + "map": null, + "oneof": null, + "required": false, + "repeated": false, + "options": {} + } + ], + "extensions": null + }, + { + "name": "Bar", + "enums": [], + "extends": [], + "options": {}, + "messages": [], + "fields": [ + { + "name": "a", + "type": "int32", + "tag": 1, + "map": null, + "oneof": null, + "required": false, + "repeated": false, + "options": { + "foo_options": { + "opt1": "123", + "opt2": "\"baz\"" + } + } + }, + { + "name": "b", + "type": "int32", + "tag": 2, + "map": null, + "oneof": null, + "required": false, + "repeated": false, + "options": { + "foo_options": { + "opt1": "123", + "opt2": "\"baz\"" + } + } + } + ], + "extensions": null + } + ], + "options": { + "my_file_option": "Hello world!" + }, + "extends": [ + { + "name": "google.protobuf.FileOptions", + "message": { + "name": "google.protobuf.FileOptions", + "enums": [], + "extends": [], + "messages": [], + "options": {}, + "fields": [ + { + "name": "my_file_option", + "type": "string", + "tag": 50000, + "map": null, + "oneof": null, + "required": false, + "repeated": false, + "options": {} + } + ], + "extensions": null + } + }, + { + "name": "google.protobuf.MessageOptions", + "message": { + "name": "google.protobuf.MessageOptions", + "enums": [], + "extends": [], + "messages": [], + "options": {}, + "fields": [ + { + "name": "my_message_option", + "type": "int32", + "tag": 50001, + "map": null, + "oneof": null, + "required": false, + "repeated": false, + "options": {} + } + ], + "extensions": null + } + }, + { + "name": "google.protobuf.FieldOptions", + "message": { + "name": "google.protobuf.FieldOptions", + "enums": [], + "extends": [], + "messages": [], + "options": {}, + "fields": [ + { + "name": "my_field_option", + "type": "float", + "tag": 50002, + "map": null, + "oneof": null, + "required": false, + "repeated": false, + "options": {} + } + ], + "extensions": null + } + }, + { + "name": "google.protobuf.EnumOptions", + "message": { + "name": "google.protobuf.EnumOptions", + "enums": [], + "extends": [], + "messages": [], + "options": {}, + "fields": [ + { + "name": "my_enum_option", + "type": "bool", + "tag": 50003, + "map": null, + "oneof": null, + "required": false, + "repeated": false, + "options": {} + } + ], + "extensions": null + } + }, + { + "name": "google.protobuf.EnumValueOptions", + "message": { + "name": "google.protobuf.EnumValueOptions", + "enums": [], + "extends": [], + "messages": [], + "options": {}, + "fields": [ + { + "name": "my_enum_value_option", + "type": "uint32", + "tag": 50004, + "map": null, + "oneof": null, + "required": false, + "repeated": false, + "options": {} + } + ], + "extensions": null + } + }, + { + "name": "google.protobuf.ServiceOptions", + "message": { + "name": "google.protobuf.ServiceOptions", + "enums": [], + "extends": [], + "messages": [], + "options": {}, + "fields": [ + { + "name": "my_service_option", + "type": "MyEnum", + "tag": 50005, + "map": null, + "oneof": null, + "required": false, + "repeated": false, + "options": {} + } + ], + "extensions": null + } + }, + { + "name": "google.protobuf.MethodOptions", + "message": { + "name": "google.protobuf.MethodOptions", + "enums": [], + "extends": [], + "messages": [], + "options": {}, + "fields": [ + { + "name": "my_method_option", + "type": "MyMessage", + "tag": 50006, + "map": null, + "oneof": null, + "required": false, + "repeated": false, + "options": {} + } + ], + "extensions": null + } + }, + { + "name": "google.protobuf.FieldOptions", + "message": { + "name": "google.protobuf.FieldOptions", + "enums": [], + "extends": [], + "messages": [], + "options": {}, + "fields": [ + { + "name": "foo_options", + "type": "FooOptions", + "tag": 1234, + "map": null, + "oneof": null, + "required": false, + "repeated": false, + "options": {} + } + ], + "extensions": null + } + } + ], + "services": [ + { + "name": "MyService", + "methods": [ + { + "name": "MyMethod", + "input_type": "RequestType", + "output_type": "ResponseType", + "client_streaming": false, + "server_streaming": false, + "options": { + "my_method_option.foo": "567", + "my_method_option.bar": "Some string" + } + } + ], + "options": { + "my_service_option": "FOO", + "my_service_option_map": { + "foo": "bar" + } + } + } + ] +} diff --git a/node_modules/protocol-buffers-schema/test/fixtures/option.proto b/node_modules/protocol-buffers-schema/test/fixtures/option.proto new file mode 100644 index 0000000000000000000000000000000000000000..6f833b84000b474359ce5ae6dc32285234c43299 --- /dev/null +++ b/node_modules/protocol-buffers-schema/test/fixtures/option.proto @@ -0,0 +1,72 @@ +import "google/protobuf/descriptor.proto"; + +extend google.protobuf.FileOptions { + optional string my_file_option = 50000; +} +extend google.protobuf.MessageOptions { + optional int32 my_message_option = 50001; +} +extend google.protobuf.FieldOptions { + optional float my_field_option = 50002; +} +extend google.protobuf.EnumOptions { + optional bool my_enum_option = 50003; +} +extend google.protobuf.EnumValueOptions { + optional uint32 my_enum_value_option = 50004; +} +extend google.protobuf.ServiceOptions { + optional MyEnum my_service_option = 50005; +} +extend google.protobuf.MethodOptions { + optional MyMessage my_method_option = 50006; +} + +option (my_file_option) = "Hello world!"; + +message MyMessage { + option (my_message_option) = 1234; + + optional int32 foo = 1 [(my_field_option) = 4.5]; + optional string bar = 2; +} + +enum MyEnum { + option (my_enum_option) = true; + + FOO = 1 [(my_enum_value_option) = 321]; + BAR = 2; +} + +message RequestType {} +message ResponseType {} + +service MyService { + option (my_service_option) = FOO; + option (my_service_option_map) = { + foo: "bar"; + }; + + rpc MyMethod(RequestType) returns(ResponseType) { + // Note: my_method_option has type MyMessage. We can set each field + // within it using a separate "option" line. + option (my_method_option).foo = 567; + option (my_method_option).bar = "Some string"; + } +} + +message FooOptions { + optional int32 opt1 = 1; + optional string opt2 = 2; +} + +extend google.protobuf.FieldOptions { + optional FooOptions foo_options = 1234; +} + +// usage: +message Bar { + optional int32 a = 1 [(foo_options).opt1 = 123, (foo_options).opt2 = "baz"]; + // alternative aggregate syntax (uses TextFormat): + optional int32 b = 2 [(foo_options) = { opt1: 123 opt2: "baz" }]; +} diff --git a/node_modules/protocol-buffers-schema/test/fixtures/options.json b/node_modules/protocol-buffers-schema/test/fixtures/options.json new file mode 100644 index 0000000000000000000000000000000000000000..04a82dbbd30a57e35859f9d8a71adf3d76152dbc --- /dev/null +++ b/node_modules/protocol-buffers-schema/test/fixtures/options.json @@ -0,0 +1,47 @@ +{ + "syntax": 3, + "package": null, + "imports": [], + "enums": [], + "messages": [{ + "name": "OptionFields", + "enums": [], + "extends": [], + "messages": [], + "options": {}, + "fields": [{ + "name": "type", + "type": "string", + "tag": 2, + "map": null, + "oneof": null, + "required": false, + "repeated": false, + "options": { + "mylist": "\"some,values,[here]\"" + } + }], + "extensions": null + }, { + "name": "MoreOptionFields", + "enums": [], + "extends": [], + "messages": [], + "options": {}, + "fields": [{ + "name": "values", + "type": "string", + "tag": 3, + "map": null, + "oneof": null, + "required": false, + "repeated": false, + "options": { + "mylist2": "'[more, values], [here]'" + } + }], + "extensions": null + }], + "options": {}, + "extends": [] +} diff --git a/node_modules/protocol-buffers-schema/test/fixtures/options.proto b/node_modules/protocol-buffers-schema/test/fixtures/options.proto new file mode 100644 index 0000000000000000000000000000000000000000..f3dd84d20a6321c9c9279567abba63fac0ea7a93 --- /dev/null +++ b/node_modules/protocol-buffers-schema/test/fixtures/options.proto @@ -0,0 +1,8 @@ + +message OptionFields { + optional string type = 2 [mylist = "some,values,[here]"]; +} + +message MoreOptionFields { + optional string values = 3 [mylist2 = '[more, values], [here]']; +} diff --git a/node_modules/protocol-buffers-schema/test/fixtures/pheromon-trajectories.proto b/node_modules/protocol-buffers-schema/test/fixtures/pheromon-trajectories.proto new file mode 100644 index 0000000000000000000000000000000000000000..c9af6d1012ed92014149657fdbff848664166dd0 --- /dev/null +++ b/node_modules/protocol-buffers-schema/test/fixtures/pheromon-trajectories.proto @@ -0,0 +1,8 @@ +message deviceTrajectory { + required bytes dates = 1 [packed=true]; + required bytes signal_strengths = 2 [packed=true]; +} + +message trajectories { + repeated deviceTrajectory trajectories = 1 [packed=true]; +} diff --git a/node_modules/protocol-buffers-schema/test/fixtures/reserved.json b/node_modules/protocol-buffers-schema/test/fixtures/reserved.json new file mode 100644 index 0000000000000000000000000000000000000000..6b1e9b3fb1ea86ec98ba44ef249848b38f413076 --- /dev/null +++ b/node_modules/protocol-buffers-schema/test/fixtures/reserved.json @@ -0,0 +1,55 @@ +{ + "syntax": 3, + "package": null, + "imports": [], + "enums": [ + { + "name": "ReservedEnum", + "values": { + "x": { + "value": 1, + "options": [] + }, + "y": { + "value": 10, + "options": [] + } + }, + "options": {} + } + ], + "messages": [ + { + "name": "Reserved", + "extensions": null, + "enums": [], + "extends": [], + "messages": [], + "options": {}, + "fields": [ + { + "name": "x", + "type": "string", + "tag": 1, + "map": null, + "oneof": null, + "required": false, + "repeated": false, + "options": {} + }, + { + "name": "y", + "type": "string", + "tag": 10, + "map": null, + "oneof": null, + "required": false, + "repeated": false, + "options": {} + } + ] + } + ], + "options": {}, + "extends": [] +} diff --git a/node_modules/protocol-buffers-schema/test/fixtures/reserved.proto b/node_modules/protocol-buffers-schema/test/fixtures/reserved.proto new file mode 100644 index 0000000000000000000000000000000000000000..48dde2243ff6588e04d10479c4a127bf7ec3a751 --- /dev/null +++ b/node_modules/protocol-buffers-schema/test/fixtures/reserved.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +message Reserved { + string x = 1; + reserved 2, 3; + reserved 5 to 9; + reserved "foo", "bar"; + string y = 10; +} + +enum ReservedEnum { + x = 1; + reserved 2, 3; + reserved 5 to 9; + reserved "foo", "bar"; + y = 10; +} diff --git a/node_modules/protocol-buffers-schema/test/fixtures/search.json b/node_modules/protocol-buffers-schema/test/fixtures/search.json new file mode 100644 index 0000000000000000000000000000000000000000..d1a37c5b2c3a6616447779d6bba7ffafb92e1e79 --- /dev/null +++ b/node_modules/protocol-buffers-schema/test/fixtures/search.json @@ -0,0 +1,30 @@ +{ + "syntax": 3, + "package": null, + "imports": ["./result.proto"], + "enums": [], + "extends": [], + "messages": [ + { + "name": "SearchResponse", + "extensions": null, + "enums": [], + "extends": [], + "options": {}, + "messages": [], + "fields": [ + { + "name": "result", + "type": "Result", + "tag": 1, + "map": null, + "oneof": null, + "required": false, + "repeated": true, + "options": {} + } + ] + } + ], + "options":{} +} diff --git a/node_modules/protocol-buffers-schema/test/fixtures/search.proto b/node_modules/protocol-buffers-schema/test/fixtures/search.proto new file mode 100644 index 0000000000000000000000000000000000000000..fa2b4af09a77b10b8dfc2322e1f2a3a15de159fd --- /dev/null +++ b/node_modules/protocol-buffers-schema/test/fixtures/search.proto @@ -0,0 +1,5 @@ +import "./result.proto"; + +message SearchResponse { + repeated Result result = 1; +} diff --git a/node_modules/protocol-buffers-schema/test/fixtures/service.json b/node_modules/protocol-buffers-schema/test/fixtures/service.json new file mode 100644 index 0000000000000000000000000000000000000000..41f02f5563821cd27fe98ebb3447bac0a5ab669c --- /dev/null +++ b/node_modules/protocol-buffers-schema/test/fixtures/service.json @@ -0,0 +1,108 @@ +{ + "syntax": 3, + "package": null, + "imports": [], + "enums": [], + "extends": [], + "messages": [ + { + "name": "HelloRequest", + "extensions": null, + "enums": [], + "extends": [], + "options": {}, + "messages": [], + "fields": [ + { + "name": "greeting", + "type": "string", + "tag": 1, + "map": null, + "oneof": null, + "required": false, + "repeated": false, + "options": {} + } + ] + }, + { + "name": "HelloResponse", + "extensions": null, + "enums": [], + "extends": [], + "messages": [], + "options": {}, + "fields": [ + { + "name": "reply", + "type": "string", + "tag": 1, + "map": null, + "oneof": null, + "required": true, + "repeated": false, + "options": {} + } + ] + } + ], + "services": [ + { + "name": "HelloService", + "methods": [ + { + "name": "SayHello", + "input_type": "HelloRequest", + "output_type": "HelloResponse", + "client_streaming": false, + "server_streaming": false, + "options": { + "google.api.http": { + "get": "/v1/say-hello/echo/{greeting}", + "additional_bindings": [ + { + "post": "/v2/say-hello", + "body": "greeting" + }, + { + "get": "/v2/say-hello" + } + ] + } + } + }, + { + "name": "LotsOfReplies", + "input_type": "HelloRequest", + "output_type": "HelloResponse", + "client_streaming": false, + "server_streaming": true, + "options": {} + }, + { + "name": "LotsOfGreetings", + "input_type": "HelloRequest", + "output_type": "HelloResponse", + "client_streaming": true, + "server_streaming": false, + "options": { + "google.api.http": { + "post": "/v1/lots-of-greetings", + "body": "*" + } + } + }, + { + "name": "BidiHello", + "input_type": "HelloRequest", + "output_type": "HelloResponse", + "client_streaming": true, + "server_streaming": true, + "options": {} + } + ], + "options": {} + } + ], + "options": {} +} diff --git a/node_modules/protocol-buffers-schema/test/fixtures/service.proto b/node_modules/protocol-buffers-schema/test/fixtures/service.proto new file mode 100644 index 0000000000000000000000000000000000000000..57881611d57609476fb518bd226bee4bcde0e212 --- /dev/null +++ b/node_modules/protocol-buffers-schema/test/fixtures/service.proto @@ -0,0 +1,30 @@ +message HelloRequest { + optional string greeting = 1; +} + +message HelloResponse { + required string reply = 1; +} + +service HelloService { + rpc SayHello(HelloRequest) returns (HelloResponse) { + option (google.api.http) = { + get: "/v1/say-hello/echo/{greeting}" + additional_bindings { + post: "/v2/say-hello" + body: "greeting" + } + additional_bindings { + get: "/v2/say-hello" + } + }; + } + rpc LotsOfReplies(HelloRequest) returns (stream HelloResponse); + rpc LotsOfGreetings(stream HelloRequest) returns (HelloResponse) { + option (google.api.http) = { + post: "/v1/lots-of-greetings" + body: "*" + }; + } + rpc BidiHello(stream HelloRequest) returns (stream HelloResponse); +} diff --git a/node_modules/protocol-buffers-schema/test/fixtures/valid-packed.proto b/node_modules/protocol-buffers-schema/test/fixtures/valid-packed.proto new file mode 100644 index 0000000000000000000000000000000000000000..89f0bce851ee91bee21615797cd3178ec1342df6 --- /dev/null +++ b/node_modules/protocol-buffers-schema/test/fixtures/valid-packed.proto @@ -0,0 +1,35 @@ +message EnumCarrying{ + enum E{ + A = 0; + B = 1; + } + +} + +message ValidPacked { + // varint wire types + repeated int32 f1 = 1 [packed = true]; + repeated int64 f2 = 2 [packed = true]; + repeated uint32 f3 = 3 [packed = true]; + repeated uint64 f4 = 4 [packed = true]; + repeated sint32 f5 = 5 [packed = true]; + repeated sint64 f6 = 6 [packed = true]; + repeated bool f7 = 7 [packed = true]; + enum Corpus { + UNIVERSAL = 0; + WEB = 1; + } + repeated Corpus f8 = 8 [packed = true]; + repeated EnumCarrying.E f9 = 9 [packed = true]; + + // 64-bit wire types + repeated fixed64 f10 = 10 [packed = true]; + repeated sfixed64 f11 = 11 [packed = true]; + repeated double f12 = 12 [packed = true]; + + // 32-bit wire types + repeated fixed32 f13 = 13 [packed = true]; + repeated sfixed32 f14 = 14 [packed = true]; + repeated float f15 = 15 [packed = true]; +} + \ No newline at end of file diff --git a/node_modules/protocol-buffers-schema/test/fixtures/version.json b/node_modules/protocol-buffers-schema/test/fixtures/version.json new file mode 100644 index 0000000000000000000000000000000000000000..0e774e2718caf68944eb60190be6852944842107 --- /dev/null +++ b/node_modules/protocol-buffers-schema/test/fixtures/version.json @@ -0,0 +1,90 @@ +{ + "syntax": 2, + "package": null, + "imports": [], + "enums": [], + "extends": [], + "messages": [ + { + "name": "Point", + "enums": [], + "extends": [], + "messages": [], + "extensions": null, + "options": {}, + "fields": [ + { + "name": "x", + "type": "int32", + "tag": 1, + "map": null, + "oneof": null, + "required": true, + "repeated": false, + "options": {} + }, + { + "name": "y", + "type": "int32", + "tag": 2, + "map": null, + "oneof": null, + "required": true, + "repeated": false, + "options": {} + }, + { + "name": "label", + "type": "string", + "tag": 3, + "map": null, + "oneof": null, + "required": false, + "repeated": false, + "options": {} + } + ] + }, + { + "name": "Line", + "enums": [], + "extends": [], + "extensions": null, + "options": {}, + "messages": [], + "fields": [ + { + "name": "start", + "type": "Point", + "tag": 1, + "map": null, + "oneof": null, + "required": true, + "repeated": false, + "options": {} + }, + { + "name": "end", + "type": "Point", + "tag": 2, + "map": null, + "oneof": null, + "required": true, + "repeated": false, + "options": {} + }, + { + "name": "label", + "type": "string", + "tag": 3, + "map": null, + "oneof": null, + "required": false, + "repeated": false, + "options": {} + } + ] + } + ], + "options":{} +} diff --git a/node_modules/protocol-buffers-schema/test/fixtures/version.proto b/node_modules/protocol-buffers-schema/test/fixtures/version.proto new file mode 100644 index 0000000000000000000000000000000000000000..93730801b00c728b2f88c907ab00e9afc5deb322 --- /dev/null +++ b/node_modules/protocol-buffers-schema/test/fixtures/version.proto @@ -0,0 +1,13 @@ +syntax = "proto2"; + +message Point { + required int32 x = 1; + required int32 y = 2; + optional string label = 3; +} + +message Line { + required Point start = 1; + required Point end = 2; + optional string label = 3; +} diff --git a/node_modules/protocol-buffers-schema/test/index.js b/node_modules/protocol-buffers-schema/test/index.js new file mode 100644 index 0000000000000000000000000000000000000000..925a5b25971d9bb6dd6ea29edd7fa9fe78426a20 --- /dev/null +++ b/node_modules/protocol-buffers-schema/test/index.js @@ -0,0 +1,157 @@ +var tape = require('tape') +var path = require('path') +var fs = require('fs') +var schema = require('../') + +var fixture = function (name) { + return fs.readFileSync(path.join(__dirname, 'fixtures', name), 'utf-8') +} + +tape('basic parse', function (t) { + t.same(schema.parse(fixture('basic.proto')), require('./fixtures/basic.json')) + t.end() +}) + +tape('basic parse + stringify', function (t) { + var syntax = 'syntax = "proto3";\n\n' + t.same(schema.stringify(schema.parse(fixture('basic.proto'))), syntax + fixture('basic.proto')) + t.end() +}) + +tape('complex parse', function (t) { + t.same(schema.parse(fixture('complex.proto')), require('./fixtures/complex.json')) + t.end() +}) + +tape('complex parse + stringify', function (t) { + var syntax = 'syntax = "proto3";\n\n' + t.same(schema.stringify(schema.parse(fixture('complex.proto'))), syntax + fixture('complex.proto')) + t.end() +}) + +tape('throws on invalid', function (t) { + t.plan(2) + try { + schema.parse('hello world') + } catch (err) { + t.ok(true, 'should fail') + } + try { + schema.parse('message Foo { lol }') + } catch (err) { + t.ok(true, 'should fail') + } +}) + +tape('comments parse', function (t) { + t.same(schema.parse(fixture('comments.proto')), require('./fixtures/comments.json')) + t.end() +}) + +tape('schema with imports', function (t) { + t.same(schema.parse(fixture('search.proto')), require('./fixtures/search.json')) + t.end() +}) + +tape('schema with imports loaded by path', function (t) { + t.same(schema.parse(fixture('search.proto')), require('./fixtures/search.json')) + t.end() +}) + +tape('schema with extends', function (t) { + t.same(schema.parse(fixture('extend.proto')), require('./fixtures/extend.json')) + t.end() +}) + +tape('comparing extended and not extended schema', function (t) { + var sch = schema.parse(fixture('extend.proto')) + t.same(sch.messages.MsgNormal, sch.messages.MsgExtend) + t.end() +}) + +tape('schema with oneof', function (t) { + t.same(schema.parse(fixture('oneof.proto')), require('./fixtures/oneof.json')) + t.end() +}) + +tape('schema with map', function (t) { + t.same(schema.parse(fixture('map.proto')), require('./fixtures/map.json')) + t.end() +}) + +tape('schema with syntax version', function (t) { + t.same(schema.parse(fixture('version.proto')), require('./fixtures/version.json')) + t.end() +}) + +tape('throws on misplaced syntax version', function (t) { + t.plan(1) + try { + schema.parse('message Foo { required int32 a = 1; }\n syntax = "proto3"') + } catch (err) { + t.ok(true, 'should fail') + } +}) + +tape('schema with reserved characters in options', function (t) { + t.same(schema.parse(fixture('options.proto')), require('./fixtures/options.json')) + t.end() +}) + +tape('service parse', function (t) { + t.same(schema.parse(fixture('service.proto')), require('./fixtures/service.json')) + t.end() +}) + +tape('service parse + stringify', function (t) { + var syntax = 'syntax = "proto3";\n\n' + t.same(schema.stringify(schema.parse(fixture('service.proto'))), syntax + fixture('service.proto')) + t.end() +}) + +tape('import parse + stringify', function (t) { + var syntax = 'syntax = "proto3";\n\n' + t.same(schema.stringify(schema.parse(fixture('search.proto'))), syntax + fixture('search.proto')) + t.end() +}) + +tape('enums with options', function (t) { + t.same(schema.parse(fixture('enum.proto')), require('./fixtures/enum.json')) + t.end() +}) + +tape('fail on no tags', function (t) { + t.throws(function () { + schema.parse(fixture('no-tags.proto')) + }) + t.end() +}) + +tape('reserved', function (t) { + t.same(schema.parse(fixture('reserved.proto')), require('./fixtures/reserved.json')) + t.end() +}) + +tape('varint, 64-bit and 32-bit wire types can be packed', function (t) { + t.doesNotThrow(function () { + schema.parse(fixture('valid-packed.proto')) + }, 'should not throw') + t.end() +}) + +tape('non-primitive packed should throw', function (t) { + t.throws(function () { + schema.parse(fixture('pheromon-trajectories.proto')) + }, 'should throw') + t.end() +}) + +tape('custom options parse', function (t) { + t.same(schema.parse(fixture('option.proto')), require('./fixtures/option.json')) + t.end() +}) + +tape('escaped quotes in option value parse', function (t) { + t.same(schema.parse(fixture('escaped-quotes.proto')), require('./fixtures/escaped-quotes.json')) + t.end() +}) diff --git a/node_modules/protocol-buffers-schema/tokenize.js b/node_modules/protocol-buffers-schema/tokenize.js new file mode 100644 index 0000000000000000000000000000000000000000..425d436ce3693054bb737f5d3a50d46fb998e305 --- /dev/null +++ b/node_modules/protocol-buffers-schema/tokenize.js @@ -0,0 +1,56 @@ +module.exports = function (sch) { + var noComments = function (line) { + var i = line.indexOf('//') + return i > -1 ? line.slice(0, i) : line + } + + var noMultilineComments = function () { + var inside = false + return function (token) { + if (token === '/*') { + inside = true + return false + } + if (token === '*/') { + inside = false + return false + } + return !inside + } + } + + var trim = function (line) { + return line.trim() + } + + var removeQuotedLines = function (list) { + return function (str) { + var s = '$' + list.length + '$' + list.push(str) + return s + } + } + + var restoreQuotedLines = function (list) { + var re = /^\$(\d+)\$$/ + return function (line) { + var m = line.match(re) + return m ? list[+m[1]] : line + } + } + + var replacements = [] + return sch + .replace(/"(\\"|[^"\n])*?"|'(\\'|[^'\n])*?'/gm, removeQuotedLines(replacements)) + .replace(/([;,{}()=:[\]<>]|\/\*|\*\/)/g, ' $1 ') + .split(/\n/) + .map(trim) + .filter(Boolean) + .map(noComments) + .map(trim) + .filter(Boolean) + .join('\n') + .split(/\s+|\n+/gm) + .filter(noMultilineComments()) + .map(restoreQuotedLines(replacements)) +} diff --git a/node_modules/proxy-addr/HISTORY.md b/node_modules/proxy-addr/HISTORY.md new file mode 100644 index 0000000000000000000000000000000000000000..8480242a0c43af25ec8d685e941b6a79a65c8fb4 --- /dev/null +++ b/node_modules/proxy-addr/HISTORY.md @@ -0,0 +1,161 @@ +2.0.7 / 2021-05-31 +================== + + * deps: forwarded@0.2.0 + - Use `req.socket` over deprecated `req.connection` + +2.0.6 / 2020-02-24 +================== + + * deps: ipaddr.js@1.9.1 + +2.0.5 / 2019-04-16 +================== + + * deps: ipaddr.js@1.9.0 + +2.0.4 / 2018-07-26 +================== + + * deps: ipaddr.js@1.8.0 + +2.0.3 / 2018-02-19 +================== + + * deps: ipaddr.js@1.6.0 + +2.0.2 / 2017-09-24 +================== + + * deps: forwarded@~0.1.2 + - perf: improve header parsing + - perf: reduce overhead when no `X-Forwarded-For` header + +2.0.1 / 2017-09-10 +================== + + * deps: forwarded@~0.1.1 + - Fix trimming leading / trailing OWS + - perf: hoist regular expression + * deps: ipaddr.js@1.5.2 + +2.0.0 / 2017-08-08 +================== + + * Drop support for Node.js below 0.10 + +1.1.5 / 2017-07-25 +================== + + * Fix array argument being altered + * deps: ipaddr.js@1.4.0 + +1.1.4 / 2017-03-24 +================== + + * deps: ipaddr.js@1.3.0 + +1.1.3 / 2017-01-14 +================== + + * deps: ipaddr.js@1.2.0 + +1.1.2 / 2016-05-29 +================== + + * deps: ipaddr.js@1.1.1 + - Fix IPv6-mapped IPv4 validation edge cases + +1.1.1 / 2016-05-03 +================== + + * Fix regression matching mixed versions against multiple subnets + +1.1.0 / 2016-05-01 +================== + + * Fix accepting various invalid netmasks + - IPv4 netmasks must be contingous + - IPv6 addresses cannot be used as a netmask + * deps: ipaddr.js@1.1.0 + +1.0.10 / 2015-12-09 +=================== + + * deps: ipaddr.js@1.0.5 + - Fix regression in `isValid` with non-string arguments + +1.0.9 / 2015-12-01 +================== + + * deps: ipaddr.js@1.0.4 + - Fix accepting some invalid IPv6 addresses + - Reject CIDRs with negative or overlong masks + * perf: enable strict mode + +1.0.8 / 2015-05-10 +================== + + * deps: ipaddr.js@1.0.1 + +1.0.7 / 2015-03-16 +================== + + * deps: ipaddr.js@0.1.9 + - Fix OOM on certain inputs to `isValid` + +1.0.6 / 2015-02-01 +================== + + * deps: ipaddr.js@0.1.8 + +1.0.5 / 2015-01-08 +================== + + * deps: ipaddr.js@0.1.6 + +1.0.4 / 2014-11-23 +================== + + * deps: ipaddr.js@0.1.5 + - Fix edge cases with `isValid` + +1.0.3 / 2014-09-21 +================== + + * Use `forwarded` npm module + +1.0.2 / 2014-09-18 +================== + + * Fix a global leak when multiple subnets are trusted + * Support Node.js 0.6 + * deps: ipaddr.js@0.1.3 + +1.0.1 / 2014-06-03 +================== + + * Fix links in npm package + +1.0.0 / 2014-05-08 +================== + + * Add `trust` argument to determine proxy trust on + * Accepts custom function + * Accepts IPv4/IPv6 address(es) + * Accepts subnets + * Accepts pre-defined names + * Add optional `trust` argument to `proxyaddr.all` to + stop at first untrusted + * Add `proxyaddr.compile` to pre-compile `trust` function + to make subsequent calls faster + +0.0.1 / 2014-05-04 +================== + + * Fix bad npm publish + +0.0.0 / 2014-05-04 +================== + + * Initial release diff --git a/node_modules/proxy-addr/LICENSE b/node_modules/proxy-addr/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..cab251c2b9a81318267600f68130faa3a290e5fd --- /dev/null +++ b/node_modules/proxy-addr/LICENSE @@ -0,0 +1,22 @@ +(The MIT License) + +Copyright (c) 2014-2016 Douglas Christopher Wilson + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/proxy-addr/README.md b/node_modules/proxy-addr/README.md new file mode 100644 index 0000000000000000000000000000000000000000..69c0b63eab22e32821df374c5e84a37c665c28c3 --- /dev/null +++ b/node_modules/proxy-addr/README.md @@ -0,0 +1,139 @@ +# proxy-addr + +[![NPM Version][npm-version-image]][npm-url] +[![NPM Downloads][npm-downloads-image]][npm-url] +[![Node.js Version][node-image]][node-url] +[![Build Status][ci-image]][ci-url] +[![Test Coverage][coveralls-image]][coveralls-url] + +Determine address of proxied request + +## Install + +This is a [Node.js](https://nodejs.org/en/) module available through the +[npm registry](https://www.npmjs.com/). Installation is done using the +[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally): + +```sh +$ npm install proxy-addr +``` + +## API + +```js +var proxyaddr = require('proxy-addr') +``` + +### proxyaddr(req, trust) + +Return the address of the request, using the given `trust` parameter. + +The `trust` argument is a function that returns `true` if you trust +the address, `false` if you don't. The closest untrusted address is +returned. + +```js +proxyaddr(req, function (addr) { return addr === '127.0.0.1' }) +proxyaddr(req, function (addr, i) { return i < 1 }) +``` + +The `trust` arugment may also be a single IP address string or an +array of trusted addresses, as plain IP addresses, CIDR-formatted +strings, or IP/netmask strings. + +```js +proxyaddr(req, '127.0.0.1') +proxyaddr(req, ['127.0.0.0/8', '10.0.0.0/8']) +proxyaddr(req, ['127.0.0.0/255.0.0.0', '192.168.0.0/255.255.0.0']) +``` + +This module also supports IPv6. Your IPv6 addresses will be normalized +automatically (i.e. `fe80::00ed:1` equals `fe80:0:0:0:0:0:ed:1`). + +```js +proxyaddr(req, '::1') +proxyaddr(req, ['::1/128', 'fe80::/10']) +``` + +This module will automatically work with IPv4-mapped IPv6 addresses +as well to support node.js in IPv6-only mode. This means that you do +not have to specify both `::ffff:a00:1` and `10.0.0.1`. + +As a convenience, this module also takes certain pre-defined names +in addition to IP addresses, which expand into IP addresses: + +```js +proxyaddr(req, 'loopback') +proxyaddr(req, ['loopback', 'fc00:ac:1ab5:fff::1/64']) +``` + + * `loopback`: IPv4 and IPv6 loopback addresses (like `::1` and + `127.0.0.1`). + * `linklocal`: IPv4 and IPv6 link-local addresses (like + `fe80::1:1:1:1` and `169.254.0.1`). + * `uniquelocal`: IPv4 private addresses and IPv6 unique-local + addresses (like `fc00:ac:1ab5:fff::1` and `192.168.0.1`). + +When `trust` is specified as a function, it will be called for each +address to determine if it is a trusted address. The function is +given two arguments: `addr` and `i`, where `addr` is a string of +the address to check and `i` is a number that represents the distance +from the socket address. + +### proxyaddr.all(req, [trust]) + +Return all the addresses of the request, optionally stopping at the +first untrusted. This array is ordered from closest to furthest +(i.e. `arr[0] === req.connection.remoteAddress`). + +```js +proxyaddr.all(req) +``` + +The optional `trust` argument takes the same arguments as `trust` +does in `proxyaddr(req, trust)`. + +```js +proxyaddr.all(req, 'loopback') +``` + +### proxyaddr.compile(val) + +Compiles argument `val` into a `trust` function. This function takes +the same arguments as `trust` does in `proxyaddr(req, trust)` and +returns a function suitable for `proxyaddr(req, trust)`. + +```js +var trust = proxyaddr.compile('loopback') +var addr = proxyaddr(req, trust) +``` + +This function is meant to be optimized for use against every request. +It is recommend to compile a trust function up-front for the trusted +configuration and pass that to `proxyaddr(req, trust)` for each request. + +## Testing + +```sh +$ npm test +``` + +## Benchmarks + +```sh +$ npm run-script bench +``` + +## License + +[MIT](LICENSE) + +[ci-image]: https://badgen.net/github/checks/jshttp/proxy-addr/master?label=ci +[ci-url]: https://github.com/jshttp/proxy-addr/actions?query=workflow%3Aci +[coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/proxy-addr/master +[coveralls-url]: https://coveralls.io/r/jshttp/proxy-addr?branch=master +[node-image]: https://badgen.net/npm/node/proxy-addr +[node-url]: https://nodejs.org/en/download +[npm-downloads-image]: https://badgen.net/npm/dm/proxy-addr +[npm-url]: https://npmjs.org/package/proxy-addr +[npm-version-image]: https://badgen.net/npm/v/proxy-addr diff --git a/node_modules/proxy-addr/index.js b/node_modules/proxy-addr/index.js new file mode 100644 index 0000000000000000000000000000000000000000..a909b05064a377ed49b5aea673d0849970f050e9 --- /dev/null +++ b/node_modules/proxy-addr/index.js @@ -0,0 +1,327 @@ +/*! + * proxy-addr + * Copyright(c) 2014-2016 Douglas Christopher Wilson + * MIT Licensed + */ + +'use strict' + +/** + * Module exports. + * @public + */ + +module.exports = proxyaddr +module.exports.all = alladdrs +module.exports.compile = compile + +/** + * Module dependencies. + * @private + */ + +var forwarded = require('forwarded') +var ipaddr = require('ipaddr.js') + +/** + * Variables. + * @private + */ + +var DIGIT_REGEXP = /^[0-9]+$/ +var isip = ipaddr.isValid +var parseip = ipaddr.parse + +/** + * Pre-defined IP ranges. + * @private + */ + +var IP_RANGES = { + linklocal: ['169.254.0.0/16', 'fe80::/10'], + loopback: ['127.0.0.1/8', '::1/128'], + uniquelocal: ['10.0.0.0/8', '172.16.0.0/12', '192.168.0.0/16', 'fc00::/7'] +} + +/** + * Get all addresses in the request, optionally stopping + * at the first untrusted. + * + * @param {Object} request + * @param {Function|Array|String} [trust] + * @public + */ + +function alladdrs (req, trust) { + // get addresses + var addrs = forwarded(req) + + if (!trust) { + // Return all addresses + return addrs + } + + if (typeof trust !== 'function') { + trust = compile(trust) + } + + for (var i = 0; i < addrs.length - 1; i++) { + if (trust(addrs[i], i)) continue + + addrs.length = i + 1 + } + + return addrs +} + +/** + * Compile argument into trust function. + * + * @param {Array|String} val + * @private + */ + +function compile (val) { + if (!val) { + throw new TypeError('argument is required') + } + + var trust + + if (typeof val === 'string') { + trust = [val] + } else if (Array.isArray(val)) { + trust = val.slice() + } else { + throw new TypeError('unsupported trust argument') + } + + for (var i = 0; i < trust.length; i++) { + val = trust[i] + + if (!Object.prototype.hasOwnProperty.call(IP_RANGES, val)) { + continue + } + + // Splice in pre-defined range + val = IP_RANGES[val] + trust.splice.apply(trust, [i, 1].concat(val)) + i += val.length - 1 + } + + return compileTrust(compileRangeSubnets(trust)) +} + +/** + * Compile `arr` elements into range subnets. + * + * @param {Array} arr + * @private + */ + +function compileRangeSubnets (arr) { + var rangeSubnets = new Array(arr.length) + + for (var i = 0; i < arr.length; i++) { + rangeSubnets[i] = parseipNotation(arr[i]) + } + + return rangeSubnets +} + +/** + * Compile range subnet array into trust function. + * + * @param {Array} rangeSubnets + * @private + */ + +function compileTrust (rangeSubnets) { + // Return optimized function based on length + var len = rangeSubnets.length + return len === 0 + ? trustNone + : len === 1 + ? trustSingle(rangeSubnets[0]) + : trustMulti(rangeSubnets) +} + +/** + * Parse IP notation string into range subnet. + * + * @param {String} note + * @private + */ + +function parseipNotation (note) { + var pos = note.lastIndexOf('/') + var str = pos !== -1 + ? note.substring(0, pos) + : note + + if (!isip(str)) { + throw new TypeError('invalid IP address: ' + str) + } + + var ip = parseip(str) + + if (pos === -1 && ip.kind() === 'ipv6' && ip.isIPv4MappedAddress()) { + // Store as IPv4 + ip = ip.toIPv4Address() + } + + var max = ip.kind() === 'ipv6' + ? 128 + : 32 + + var range = pos !== -1 + ? note.substring(pos + 1, note.length) + : null + + if (range === null) { + range = max + } else if (DIGIT_REGEXP.test(range)) { + range = parseInt(range, 10) + } else if (ip.kind() === 'ipv4' && isip(range)) { + range = parseNetmask(range) + } else { + range = null + } + + if (range <= 0 || range > max) { + throw new TypeError('invalid range on address: ' + note) + } + + return [ip, range] +} + +/** + * Parse netmask string into CIDR range. + * + * @param {String} netmask + * @private + */ + +function parseNetmask (netmask) { + var ip = parseip(netmask) + var kind = ip.kind() + + return kind === 'ipv4' + ? ip.prefixLengthFromSubnetMask() + : null +} + +/** + * Determine address of proxied request. + * + * @param {Object} request + * @param {Function|Array|String} trust + * @public + */ + +function proxyaddr (req, trust) { + if (!req) { + throw new TypeError('req argument is required') + } + + if (!trust) { + throw new TypeError('trust argument is required') + } + + var addrs = alladdrs(req, trust) + var addr = addrs[addrs.length - 1] + + return addr +} + +/** + * Static trust function to trust nothing. + * + * @private + */ + +function trustNone () { + return false +} + +/** + * Compile trust function for multiple subnets. + * + * @param {Array} subnets + * @private + */ + +function trustMulti (subnets) { + return function trust (addr) { + if (!isip(addr)) return false + + var ip = parseip(addr) + var ipconv + var kind = ip.kind() + + for (var i = 0; i < subnets.length; i++) { + var subnet = subnets[i] + var subnetip = subnet[0] + var subnetkind = subnetip.kind() + var subnetrange = subnet[1] + var trusted = ip + + if (kind !== subnetkind) { + if (subnetkind === 'ipv4' && !ip.isIPv4MappedAddress()) { + // Incompatible IP addresses + continue + } + + if (!ipconv) { + // Convert IP to match subnet IP kind + ipconv = subnetkind === 'ipv4' + ? ip.toIPv4Address() + : ip.toIPv4MappedAddress() + } + + trusted = ipconv + } + + if (trusted.match(subnetip, subnetrange)) { + return true + } + } + + return false + } +} + +/** + * Compile trust function for single subnet. + * + * @param {Object} subnet + * @private + */ + +function trustSingle (subnet) { + var subnetip = subnet[0] + var subnetkind = subnetip.kind() + var subnetisipv4 = subnetkind === 'ipv4' + var subnetrange = subnet[1] + + return function trust (addr) { + if (!isip(addr)) return false + + var ip = parseip(addr) + var kind = ip.kind() + + if (kind !== subnetkind) { + if (subnetisipv4 && !ip.isIPv4MappedAddress()) { + // Incompatible IP addresses + return false + } + + // Convert IP to match subnet IP kind + ip = subnetisipv4 + ? ip.toIPv4Address() + : ip.toIPv4MappedAddress() + } + + return ip.match(subnetip, subnetrange) + } +} diff --git a/node_modules/proxy-addr/package.json b/node_modules/proxy-addr/package.json new file mode 100644 index 0000000000000000000000000000000000000000..24ba8f7db3cf17d87cff4bd53977b5239d459f90 --- /dev/null +++ b/node_modules/proxy-addr/package.json @@ -0,0 +1,47 @@ +{ + "name": "proxy-addr", + "description": "Determine address of proxied request", + "version": "2.0.7", + "author": "Douglas Christopher Wilson ", + "license": "MIT", + "keywords": [ + "ip", + "proxy", + "x-forwarded-for" + ], + "repository": "jshttp/proxy-addr", + "dependencies": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + }, + "devDependencies": { + "benchmark": "2.1.4", + "beautify-benchmark": "0.2.4", + "deep-equal": "1.0.1", + "eslint": "7.26.0", + "eslint-config-standard": "14.1.1", + "eslint-plugin-import": "2.23.4", + "eslint-plugin-markdown": "2.2.0", + "eslint-plugin-node": "11.1.0", + "eslint-plugin-promise": "4.3.1", + "eslint-plugin-standard": "4.1.0", + "mocha": "8.4.0", + "nyc": "15.1.0" + }, + "files": [ + "LICENSE", + "HISTORY.md", + "README.md", + "index.js" + ], + "engines": { + "node": ">= 0.10" + }, + "scripts": { + "bench": "node benchmark/index.js", + "lint": "eslint .", + "test": "mocha --reporter spec --bail --check-leaks test/", + "test-ci": "nyc --reporter=lcov --reporter=text npm test", + "test-cov": "nyc --reporter=html --reporter=text npm test" + } +} diff --git a/node_modules/proxy-from-env/LICENSE b/node_modules/proxy-from-env/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..8f25097d09bd0a3dbb721a264d41c3234b9ae368 --- /dev/null +++ b/node_modules/proxy-from-env/LICENSE @@ -0,0 +1,20 @@ +The MIT License + +Copyright (C) 2016-2018 Rob Wu + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/proxy-from-env/README.md b/node_modules/proxy-from-env/README.md new file mode 100644 index 0000000000000000000000000000000000000000..1c00ecfd5c8a8b7c01d77085526a9d396f8980bc --- /dev/null +++ b/node_modules/proxy-from-env/README.md @@ -0,0 +1,163 @@ +# proxy-from-env + +![Build Status](https://github.com/Rob--W/proxy-from-env/actions/workflows/run-tests.yaml/badge.svg?branch=master) +[![Coverage Status](https://coveralls.io/repos/github/Rob--W/proxy-from-env/badge.svg?branch=master)](https://coveralls.io/github/Rob--W/proxy-from-env?branch=master) + +`proxy-from-env` is a Node.js package that exports a function (`getProxyForUrl`) +that takes an input URL (a string, an instance of +[`URL`](https://nodejs.org/docs/latest/api/url.html#the-whatwg-url-api), +or [`url.parse`](https://nodejs.org/docs/latest/api/url.html#url_url_parsing)'s +return value) and returns the desired proxy URL (also a string) based on +standard proxy environment variables. If no proxy is set, an empty string is +returned. + +If your application makes important (security) decisions based on the URL, be +consistent in the mechanism to parse and validate URLs, as differences in URL +parsing behavior can affect the outcome of proxy resolution. +Strings are parsed with the standard `URL` API, as of `proxy-from-env@2.0.0`. +Older versions relied on the (now deprecated) `url.parse` method instead. + +Invalid values in environment variables are not handled by the library +([#41](https://github.com/Rob--W/proxy-from-env/issues/41)). + +It is your responsibility to actually proxy the request using the given URL. + +Installation: + +```sh +npm install proxy-from-env +``` + +## Example +This example shows how the data for a URL can be fetched via the +[`http` module](https://nodejs.org/api/http.html), in a proxy-aware way. + +warning: this simple example works for http requests only. To support https, +you must establish a proxy tunnel via the +[http `connect` method](https://developer.mozilla.org/en-us/docs/web/http/reference/methods/connect). + +```javascript +import http from 'node:test'; +import { getProxyForUrl } from 'proxy-from-env'; +// ^ or: var getProxyForUrl = require('proxy-from-env').getProxyForUrl; + +var some_url = 'http://example.com/something'; + +// // Example, if there is a proxy server at 10.0.0.1:1234, then setting the +// // http_proxy environment variable causes the request to go through a proxy. +// process.env.http_proxy = 'http://10.0.0.1:1234'; +// +// // But if the host to be proxied is listed in NO_PROXY, then the request is +// // not proxied (but a direct request is made). +// process.env.no_proxy = 'example.com'; + +var proxy_url = getProxyForUrl(some_url); // <-- Our magic. +if (proxy_url) { + // Should be proxied through proxy_url. + var parsed_some_url = new URL(some_url); + var parsed_proxy_url = new URL(proxy_url); + // A HTTP proxy is quite simple. It is similar to a normal request, except the + // path is an absolute URL, and the proxied URL's host is put in the header + // instead of the server's actual host. + httpOptions = { + protocol: parsed_proxy_url.protocol, + hostname: parsed_proxy_url.hostname, + port: parsed_proxy_url.port, + path: parsed_some_url.href, + headers: { + Host: parsed_some_url.host, // = host name + optional port. + }, + }; +} else { + // Direct request. + httpOptions = some_url; +} +http.get(httpOptions, function(res) { + var responses = []; + res.on('data', function(chunk) { responses.push(chunk); }); + res.on('end', function() { console.log(responses.join('')); }); +}); +``` + +### Full proxy support +The simple example above works for http requests only. To support https, you +must establish a proxy tunnel via the +[http `connect` method](https://developer.mozilla.org/en-us/docs/web/http/reference/methods/connect). + +An example of that is shown in the +[`https-proxy-agent` npm package](https://www.npmjs.com/package/https-proxy-agent). +The [`proxy-agent` npm package](https://www.npmjs.com/package/proxy-agent) +combines `https-proxy-agent` and `proxy-from-env` to offer a `http.Agent` that +supports proxies from environment variables. + +### Built-in proxy support +Node.js is working on built-in support for proxy environment variables, +currently behind `NODE_USE_ENV_PROXY=1` or `--use-env-proxy`. For details, see: + +- https://github.com/nodejs/node/issues/57872 +- https://nodejs.org/api/http.html#built-in-proxy-support + + +## Environment variables +The environment variables can be specified in all lowercase or all uppercase, +with lowercase taking precedence over the uppercase variant. A variable that is +not set has the same meaning as a variable that is set but has no value. + +### NO\_PROXY + +`NO_PROXY` is a list of host names (optionally with a port). If the input URL +matches any of the entries in `NO_PROXY`, then the input URL should be fetched +by a direct request (i.e. without a proxy). + +Matching follows the following rules: + +- `NO_PROXY=*` disables all proxies. +- Space and commas may be used to separate the entries in the `NO_PROXY` list. +- If `NO_PROXY` does not contain any entries, then proxies are never disabled. +- If a port is added after the host name, then the ports must match. If the URL + does not have an explicit port name, the protocol's default port is used. +- Generally, the proxy is only disabled if the host name is an exact match for + an entry in the `NO_PROXY` list. The only exceptions are entries that start + with a dot or with a wildcard; then the proxy is disabled if the host name + ends with the entry. + +See `test.js` for examples of what should match and what does not. + +### \*\_PROXY + +The environment variable used for the proxy depends on the protocol of the URL. +For example, `https://example.com` uses the "https" protocol, and therefore the +proxy to be used is `HTTPS_PROXY` (_NOT_ `HTTP_PROXY`, which is _only_ used for +http:-URLs). + +The library is not limited to http(s), other schemes such as +`FTP_PROXY` (ftp:), +`WSS_PROXY` (wss:), +`WS_PROXY` (ws:) +are also supported. + +If present, `ALL_PROXY` is used as fallback if there is no other match. + + +## External resources +The exact way of parsing the environment variables is not codified in any +standard. This library is designed to be compatible with formats as expected by +existing software. +The following resources were used to determine the desired behavior: + +- cURL: + https://curl.haxx.se/docs/manpage.html#ENVIRONMENT + https://github.com/curl/curl/blob/4af40b3646d3b09f68e419f7ca866ff395d1f897/lib/url.c#L4446-L4514 + https://github.com/curl/curl/blob/4af40b3646d3b09f68e419f7ca866ff395d1f897/lib/url.c#L4608-L4638 + +- wget: + https://www.gnu.org/software/wget/manual/wget.html#Proxies + http://git.savannah.gnu.org/cgit/wget.git/tree/src/init.c?id=636a5f9a1c508aa39e35a3a8e9e54520a284d93d#n383 + http://git.savannah.gnu.org/cgit/wget.git/tree/src/retr.c?id=93c1517c4071c4288ba5a4b038e7634e4c6b5482#n1278 + +- W3: + https://www.w3.org/Daemon/User/Proxies/ProxyClients.html + +- Python's urllib: + https://github.com/python/cpython/blob/936135bb97fe04223aa30ca6e98eac8f3ed6b349/Lib/urllib/request.py#L755-L782 + https://github.com/python/cpython/blob/936135bb97fe04223aa30ca6e98eac8f3ed6b349/Lib/urllib/request.py#L2444-L2479 diff --git a/node_modules/proxy-from-env/index.cjs b/node_modules/proxy-from-env/index.cjs new file mode 100644 index 0000000000000000000000000000000000000000..ede2a9fdb787222751f8fdeb3f94ef3a11e56707 --- /dev/null +++ b/node_modules/proxy-from-env/index.cjs @@ -0,0 +1,105 @@ +'use strict'; + +var DEFAULT_PORTS = { + ftp: 21, + gopher: 70, + http: 80, + https: 443, + ws: 80, + wss: 443, +}; + +function parseUrl(urlString) { + try { + return new URL(urlString); + } catch { + return null; + } +} + +/** + * @param {string|object|URL} url - The URL as a string or URL instance, or a + * compatible object (such as the result from legacy url.parse). + * @return {string} The URL of the proxy that should handle the request to the + * given URL. If no proxy is set, this will be an empty string. + */ +function getProxyForUrl(url) { + var parsedUrl = (typeof url === 'string' ? parseUrl(url) : url) || {}; + var proto = parsedUrl.protocol; + var hostname = parsedUrl.host; + var port = parsedUrl.port; + if (typeof hostname !== 'string' || !hostname || typeof proto !== 'string') { + return ''; // Don't proxy URLs without a valid scheme or host. + } + + proto = proto.split(':', 1)[0]; + // Stripping ports in this way instead of using parsedUrl.hostname to make + // sure that the brackets around IPv6 addresses are kept. + hostname = hostname.replace(/:\d*$/, ''); + port = parseInt(port) || DEFAULT_PORTS[proto] || 0; + if (!shouldProxy(hostname, port)) { + return ''; // Don't proxy URLs that match NO_PROXY. + } + + var proxy = getEnv(proto + '_proxy') || getEnv('all_proxy'); + if (proxy && proxy.indexOf('://') === -1) { + // Missing scheme in proxy, default to the requested URL's scheme. + proxy = proto + '://' + proxy; + } + return proxy; +} + +/** + * Determines whether a given URL should be proxied. + * + * @param {string} hostname - The host name of the URL. + * @param {number} port - The effective port of the URL. + * @returns {boolean} Whether the given URL should be proxied. + * @private + */ +function shouldProxy(hostname, port) { + var NO_PROXY = getEnv('no_proxy').toLowerCase(); + if (!NO_PROXY) { + return true; // Always proxy if NO_PROXY is not set. + } + if (NO_PROXY === '*') { + return false; // Never proxy if wildcard is set. + } + + return NO_PROXY.split(/[,\s]/).every(function(proxy) { + if (!proxy) { + return true; // Skip zero-length hosts. + } + var parsedProxy = proxy.match(/^(.+):(\d+)$/); + var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy; + var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0; + if (parsedProxyPort && parsedProxyPort !== port) { + return true; // Skip if ports don't match. + } + + if (!/^[.*]/.test(parsedProxyHostname)) { + // No wildcards, so stop proxying if there is an exact match. + return hostname !== parsedProxyHostname; + } + + if (parsedProxyHostname.charAt(0) === '*') { + // Remove leading wildcard. + parsedProxyHostname = parsedProxyHostname.slice(1); + } + // Stop proxying if the hostname ends with the no_proxy host. + return !hostname.endsWith(parsedProxyHostname); + }); +} + +/** + * Get the value for an environment variable. + * + * @param {string} key - The name of the environment variable. + * @return {string} The value of the environment variable. + * @private + */ +function getEnv(key) { + return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || ''; +} + +exports.getProxyForUrl = getProxyForUrl; diff --git a/node_modules/proxy-from-env/index.js b/node_modules/proxy-from-env/index.js new file mode 100644 index 0000000000000000000000000000000000000000..333f45a7295804522d6b25c1fb2efa55600afc0f --- /dev/null +++ b/node_modules/proxy-from-env/index.js @@ -0,0 +1,103 @@ +'use strict'; + +var DEFAULT_PORTS = { + ftp: 21, + gopher: 70, + http: 80, + https: 443, + ws: 80, + wss: 443, +}; + +function parseUrl(urlString) { + try { + return new URL(urlString); + } catch { + return null; + } +} + +/** + * @param {string|object|URL} url - The URL as a string or URL instance, or a + * compatible object (such as the result from legacy url.parse). + * @return {string} The URL of the proxy that should handle the request to the + * given URL. If no proxy is set, this will be an empty string. + */ +export function getProxyForUrl(url) { + var parsedUrl = (typeof url === 'string' ? parseUrl(url) : url) || {}; + var proto = parsedUrl.protocol; + var hostname = parsedUrl.host; + var port = parsedUrl.port; + if (typeof hostname !== 'string' || !hostname || typeof proto !== 'string') { + return ''; // Don't proxy URLs without a valid scheme or host. + } + + proto = proto.split(':', 1)[0]; + // Stripping ports in this way instead of using parsedUrl.hostname to make + // sure that the brackets around IPv6 addresses are kept. + hostname = hostname.replace(/:\d*$/, ''); + port = parseInt(port) || DEFAULT_PORTS[proto] || 0; + if (!shouldProxy(hostname, port)) { + return ''; // Don't proxy URLs that match NO_PROXY. + } + + var proxy = getEnv(proto + '_proxy') || getEnv('all_proxy'); + if (proxy && proxy.indexOf('://') === -1) { + // Missing scheme in proxy, default to the requested URL's scheme. + proxy = proto + '://' + proxy; + } + return proxy; +} + +/** + * Determines whether a given URL should be proxied. + * + * @param {string} hostname - The host name of the URL. + * @param {number} port - The effective port of the URL. + * @returns {boolean} Whether the given URL should be proxied. + * @private + */ +function shouldProxy(hostname, port) { + var NO_PROXY = getEnv('no_proxy').toLowerCase(); + if (!NO_PROXY) { + return true; // Always proxy if NO_PROXY is not set. + } + if (NO_PROXY === '*') { + return false; // Never proxy if wildcard is set. + } + + return NO_PROXY.split(/[,\s]/).every(function(proxy) { + if (!proxy) { + return true; // Skip zero-length hosts. + } + var parsedProxy = proxy.match(/^(.+):(\d+)$/); + var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy; + var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0; + if (parsedProxyPort && parsedProxyPort !== port) { + return true; // Skip if ports don't match. + } + + if (!/^[.*]/.test(parsedProxyHostname)) { + // No wildcards, so stop proxying if there is an exact match. + return hostname !== parsedProxyHostname; + } + + if (parsedProxyHostname.charAt(0) === '*') { + // Remove leading wildcard. + parsedProxyHostname = parsedProxyHostname.slice(1); + } + // Stop proxying if the hostname ends with the no_proxy host. + return !hostname.endsWith(parsedProxyHostname); + }); +} + +/** + * Get the value for an environment variable. + * + * @param {string} key - The name of the environment variable. + * @return {string} The value of the environment variable. + * @private + */ +function getEnv(key) { + return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || ''; +} diff --git a/node_modules/proxy-from-env/package.json b/node_modules/proxy-from-env/package.json new file mode 100644 index 0000000000000000000000000000000000000000..3960f35c553547b72a727b830bc80c0ebd8fa89d --- /dev/null +++ b/node_modules/proxy-from-env/package.json @@ -0,0 +1,43 @@ +{ + "name": "proxy-from-env", + "version": "2.1.0", + "description": "Offers getProxyForUrl to get the proxy URL for a URL, respecting the *_PROXY (e.g. HTTP_PROXY) and NO_PROXY environment variables.", + "main": "index.cjs", + "exports": { + "import": "./index.js", + "require": "./index.cjs" + }, + "files": ["index.js", "index.cjs"], + "scripts": { + "lint": "eslint *.js *.mjs *.cjs", + "test": "node --test ./test.js", + "test-require": "node ./test-require.cjs", + "test-coverage": "node --experimental-test-coverage --test-reporter=lcov --test-reporter-destination=lcov.info ./test.js", + "test-coverage-as-html": "npm run test-coverage && genhtml lcov.info -o coverage/" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Rob--W/proxy-from-env.git" + }, + "keywords": [ + "proxy", + "http_proxy", + "https_proxy", + "no_proxy", + "environment" + ], + "author": "Rob Wu (https://robwu.nl/)", + "license": "MIT", + "bugs": { + "url": "https://github.com/Rob--W/proxy-from-env/issues" + }, + "homepage": "https://github.com/Rob--W/proxy-from-env#readme", + "devDependencies": { + "eslint": "^9.39.2" + }, + "type": "module", + "engines": { + "node": ">=10" + }, + "sideEffects": false +} diff --git a/node_modules/pstree.remy/.travis.yml b/node_modules/pstree.remy/.travis.yml new file mode 100644 index 0000000000000000000000000000000000000000..5bf093eef9cde801cdce8d7df5c31c67d5949deb --- /dev/null +++ b/node_modules/pstree.remy/.travis.yml @@ -0,0 +1,8 @@ +language: node_js +cache: + directories: + - ~/.npm +notifications: + email: false +node_js: + - '8' diff --git a/node_modules/pstree.remy/LICENSE b/node_modules/pstree.remy/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..e83bea65c6c23bd6a0d29ea096b99072ac2ea3e2 --- /dev/null +++ b/node_modules/pstree.remy/LICENSE @@ -0,0 +1,7 @@ +The MIT License (MIT) +Copyright © 2019 Remy Sharp, https://remysharp.com +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/pstree.remy/README.md b/node_modules/pstree.remy/README.md new file mode 100644 index 0000000000000000000000000000000000000000..5f44c6292af24eac89f377302561c1eb71460ed2 --- /dev/null +++ b/node_modules/pstree.remy/README.md @@ -0,0 +1,26 @@ +# pstree.remy + +> Cross platform ps-tree (including unix flavours without ps) + +## Installation + +```shel +npm install pstree.remy +``` + +## Usage + +```js +const psTree = psTree require('pstree.remy'); + +psTree(PID, (err, pids) => { + if (err) { + console.error(err); + } + console.log(pids) +}); + +console.log(psTree.hasPS + ? "This platform has the ps shell command" + : "This platform does not have the ps shell command"); +``` diff --git a/node_modules/pstree.remy/lib/index.js b/node_modules/pstree.remy/lib/index.js new file mode 100644 index 0000000000000000000000000000000000000000..743e9979504edb1ef8e78a38a6d56341c0721657 --- /dev/null +++ b/node_modules/pstree.remy/lib/index.js @@ -0,0 +1,37 @@ +const exec = require('child_process').exec; +const tree = require('./tree'); +const utils = require('./utils'); +var hasPS = true; + +// discover if the OS has `ps`, and therefore can use psTree +exec('ps', (error) => { + module.exports.hasPS = hasPS = !error; +}); + +module.exports = function main(pid, callback) { + if (typeof pid === 'number') { + pid = pid.toString(); + } + + if (hasPS && !process.env.NO_PS) { + return tree(pid, callback); + } + + utils + .getStat() + .then(utils.tree) + .then((tree) => utils.pidsForTree(tree, pid)) + .then((res) => + callback( + null, + res.map((p) => p.PID) + ) + ) + .catch((error) => callback(error)); +}; + +if (!module.parent) { + module.exports(process.argv[2], (e, pids) => console.log(pids)); +} + +module.exports.hasPS = hasPS; diff --git a/node_modules/pstree.remy/lib/tree.js b/node_modules/pstree.remy/lib/tree.js new file mode 100644 index 0000000000000000000000000000000000000000..bac7cce65cda9e39a45af6675853cba8c4414c0d --- /dev/null +++ b/node_modules/pstree.remy/lib/tree.js @@ -0,0 +1,37 @@ +const spawn = require('child_process').spawn; + +module.exports = function (rootPid, callback) { + const pidsOfInterest = new Set([parseInt(rootPid, 10)]); + var output = ''; + + // *nix + const ps = spawn('ps', ['-A', '-o', 'ppid,pid']); + ps.stdout.on('data', (data) => { + output += data.toString('ascii'); + }); + + ps.on('close', () => { + try { + const res = output + .split('\n') + .slice(1) + .map((_) => _.trim()) + .reduce((acc, line) => { + const pids = line.split(/\s+/); + const ppid = parseInt(pids[0], 10); + + if (pidsOfInterest.has(ppid)) { + const pid = parseInt(pids[1], 10); + acc.push(pid); + pidsOfInterest.add(pid); + } + + return acc; + }, []); + + callback(null, res); + } catch (e) { + callback(e, null); + } + }); +}; diff --git a/node_modules/pstree.remy/lib/utils.js b/node_modules/pstree.remy/lib/utils.js new file mode 100644 index 0000000000000000000000000000000000000000..8fa5719e2b714ccaec9f3f5177c0ebcf427d7b13 --- /dev/null +++ b/node_modules/pstree.remy/lib/utils.js @@ -0,0 +1,53 @@ +const spawn = require('child_process').spawn; + +module.exports = { tree, pidsForTree, getStat }; + +function getStat() { + return new Promise((resolve) => { + const command = `ls /proc | grep -E '^[0-9]+$' | xargs -I{} cat /proc/{}/stat`; + const spawned = spawn('sh', ['-c', command], { + stdio: ['pipe', 'pipe', 'pipe'], + }); + + var res = ''; + spawned.stdout.on('data', (data) => (res += data)); + spawned.on('close', () => resolve(res)); + }); +} + +function template(s) { + var stat = null; + // 'pid', 'comm', 'state', 'ppid', 'pgrp' + // %d (%s) %c %d %d + s.replace( + /(\d+) \((.*?)\)\s(.+?)\s(\d+)\s/g, + (all, PID, COMMAND, STAT, PPID) => { + stat = { PID, COMMAND, PPID, STAT }; + } + ); + + return stat; +} + +function tree(stats) { + const processes = stats.split('\n').map(template).filter(Boolean); + + return processes; +} + +function pidsForTree(tree, pid) { + if (typeof pid === 'number') { + pid = pid.toString(); + } + const parents = [pid]; + const pids = []; + + tree.forEach((proc) => { + if (parents.indexOf(proc.PPID) !== -1) { + parents.push(proc.PID); + pids.push(proc); + } + }); + + return pids; +} diff --git a/node_modules/pstree.remy/package.json b/node_modules/pstree.remy/package.json new file mode 100644 index 0000000000000000000000000000000000000000..35c70683d3f5cfaa0b52d7c798b26b33e0bc9503 --- /dev/null +++ b/node_modules/pstree.remy/package.json @@ -0,0 +1,33 @@ +{ + "name": "pstree.remy", + "version": "1.1.8", + "main": "lib/index.js", + "prettier": { + "trailingComma": "es5", + "semi": true, + "singleQuote": true + }, + "scripts": { + "test": "tap tests/*.test.js", + "_prepublish": "npm test" + }, + "keywords": [ + "ps", + "pstree", + "ps tree" + ], + "author": "Remy Sharp", + "license": "MIT", + "repository": { + "type": "git", + "url": "https://github.com/remy/pstree.git" + }, + "devDependencies": { + "tap": "^11.0.0" + }, + "directories": { + "test": "tests" + }, + "dependencies": {}, + "description": "Collects the full tree of processes from /proc" +} diff --git a/node_modules/pstree.remy/tests/fixtures/index.js b/node_modules/pstree.remy/tests/fixtures/index.js new file mode 100644 index 0000000000000000000000000000000000000000..4cdbcb1b324cb2cf85ead43f535b15a2188ae622 --- /dev/null +++ b/node_modules/pstree.remy/tests/fixtures/index.js @@ -0,0 +1,13 @@ +const spawn = require('child_process').spawn; +function run() { + spawn( + 'sh', + ['-c', 'node -e "setInterval(() => console.log(`running`), 200)"'], + { + stdio: 'pipe', + } + ); +} + +var runCallCount = process.argv[2] || 1; +for (var i = 0; i < runCallCount; i++) run(); diff --git a/node_modules/pstree.remy/tests/fixtures/out1 b/node_modules/pstree.remy/tests/fixtures/out1 new file mode 100644 index 0000000000000000000000000000000000000000..abfe5810e063c544d3b525d9243777792ddf5192 --- /dev/null +++ b/node_modules/pstree.remy/tests/fixtures/out1 @@ -0,0 +1,10 @@ +1 (npm) S 0 1 1 34816 1 4210944 11112 0 0 0 45 8 0 0 20 0 10 0 330296 1089871872 11809 18446744073709551615 4194304 29343848 140726436642896 0 0 0 0 4096 2072112895 0 0 0 17 0 0 0 0 0 0 31441000 31537208 37314560 140726436650815 140726436650847 140726436650847 140726436650986 0 +15 (sh) S 1 1 1 34816 1 4210688 115 0 0 0 0 0 0 0 20 0 1 0 330372 4399104 187 18446744073709551615 94374393548800 94374393655428 140722913272992 0 0 0 0 0 65538 0 0 0 17 0 0 0 0 0 0 94374395756424 94374395761184 94374404673536 140722913278928 140722913278959 140722913278959 140722913284080 0 +16 (node) S 15 1 1 34816 1 4210688 6930 103 0 0 32 2 0 0 20 0 10 0 330373 1068478464 8412 18446744073709551615 4194304 29343848 140727228046064 0 0 0 0 4096 134300162 0 0 0 17 1 0 0 1 0 0 31441000 31537208 52584448 140727228050313 140727228050383 140727228050383 140727228055530 0 +27 (sh) S 16 1 1 34816 1 4210688 111 0 0 0 0 0 0 0 20 0 1 0 330410 4399104 193 18446744073709551615 94848235986944 94848236093572 140727019991184 0 0 0 0 0 65538 0 0 0 17 1 0 0 0 0 0 94848238194568 94848238199328 94848261660672 140727019998122 140727019998165 140727019998165 140727020003312 0 +28 (node) S 27 1 1 34816 1 4210688 3576 268 0 0 12 2 0 0 20 0 10 0 330411 930213888 6760 18446744073709551615 4194304 29343848 140726559664992 0 0 0 0 4096 134300162 0 0 0 17 1 0 0 0 0 0 31441000 31537208 32591872 140726559669117 140726559669199 140726559669199 140726559674346 0 +39 (node) S 28 1 1 34816 1 4210688 47517 0 0 0 151 9 0 0 20 0 6 0 330427 985739264 31859 18446744073709551615 4194304 29343848 140737324503920 0 0 0 0 4096 134234626 0 0 0 17 0 0 0 0 0 0 31441000 31537208 51585024 140737324510060 140737324510159 140737324510159 140737324515306 0 +45 (bash) S 0 45 45 34817 50 4210944 752 256 0 0 2 0 0 0 20 0 1 0 331039 18628608 789 18446744073709551615 4194304 5242124 140724425887696 0 0 0 65536 3670020 1266777851 0 0 0 17 1 0 0 0 0 0 7341384 7388228 30310400 140724425891678 140724425891683 140724425891683 140724425891822 0 +cat: /proc/50/stat: No such file or directory +cat: /proc/51/stat: No such file or directory +52 (xargs) S 45 50 45 34817 50 4210688 179 661 0 0 0 0 0 0 20 0 1 0 331544 4608000 346 18446744073709551615 94587588550656 94587588614028 140735223856048 0 0 0 0 0 2560 0 0 0 17 1 0 0 0 0 0 94587590711464 94587590713504 94587603169280 140735223861006 140735223861035 140735223861035 140735223861225 0 diff --git a/node_modules/pstree.remy/tests/fixtures/out2 b/node_modules/pstree.remy/tests/fixtures/out2 new file mode 100644 index 0000000000000000000000000000000000000000..3b31137db22a9886f20d2a7a1e7e2a14f64722a3 --- /dev/null +++ b/node_modules/pstree.remy/tests/fixtures/out2 @@ -0,0 +1,29 @@ +cat: /proc/4087/stat: No such file or directory +cat: /proc/4088/stat: No such file or directory +1 (init) S 0 1 1 0 -1 4210944 9227 55994 29 319 7 5 68 16 20 0 1 0 1286281 33660928 855 18446744073709551615 1 1 0 0 0 0 0 4096 536962595 0 0 0 17 4 0 0 3 0 0 0 0 0 0 0 0 0 0 +1032 (ntpd) S 1 1032 1032 0 -1 4211008 178 0 1 0 0 0 0 0 20 0 1 0 1287033 25743360 1058 18446744073709551615 1 1 0 0 0 0 0 4096 27207 0 0 0 17 4 0 0 0 0 0 0 0 0 0 0 0 0 0 +126 (irqbalance) S 1 126 126 0 -1 1077952832 1217 0 0 0 1 6 0 0 20 0 1 0 1286749 20189184 647 18446744073709551615 1 1 0 0 0 0 0 0 3 0 0 0 17 4 0 0 0 0 0 0 0 0 0 0 0 0 0 +181 (mysqld) S 1 181 181 0 -1 4210944 6399 0 46 0 8 6 0 0 20 0 22 0 1286761 748453888 14476 18446744073709551615 1 1 0 0 0 0 552967 4096 26345 0 0 0 17 4 0 0 10 0 0 0 0 0 0 0 0 0 0 +194 (memcached) S 1 187 187 0 -1 4210944 252 0 4 0 0 0 0 0 20 0 6 0 1286766 333221888 648 18446744073709551615 1 1 0 0 0 0 0 4096 2 0 0 0 17 4 0 0 0 0 0 0 0 0 0 0 0 0 0 +243 (dbus-daemon) S 1 243 243 0 -1 4211008 67 0 0 0 0 0 0 0 20 0 1 0 1286779 40087552 598 18446744073709551615 1 1 0 0 0 0 0 0 16385 0 0 0 17 4 0 0 0 0 0 0 0 0 0 0 0 0 0 +254 (rsyslogd) S 1 254 254 0 -1 4211008 107 0 0 0 2 2 0 0 20 0 3 0 1286782 186601472 696 18446744073709551615 1 1 0 0 0 0 0 16781830 1133601 0 0 0 17 5 0 0 0 0 0 0 0 0 0 0 0 0 0 +265 (systemd-logind) S 1 265 265 0 -1 4210944 276 0 2 0 0 0 0 0 20 0 1 0 1286786 35880960 720 18446744073709551615 1 1 0 0 0 0 0 0 0 0 0 0 17 4 0 0 0 0 0 0 0 0 0 0 0 0 0 +333 (postgres) S 1 303 303 0 -1 4210688 3169 3466 15 18 0 1 1 1 20 0 1 0 1286817 156073984 5002 18446744073709551615 1 1 0 0 0 0 0 19935232 84487 0 0 0 17 5 0 0 1 0 0 0 0 0 0 0 0 0 0 +359 (postgres) S 333 359 359 0 -1 4210752 90 0 0 0 0 0 0 0 20 0 1 0 1286822 156073984 827 18446744073709551615 1 1 0 0 0 0 0 16805888 2567 0 0 0 17 4 0 0 0 0 0 0 0 0 0 0 0 0 0 +360 (postgres) S 333 360 360 0 -1 4210752 119 0 0 0 0 0 0 0 20 0 1 0 1286822 156073984 827 18446744073709551615 1 1 0 0 0 0 0 16791554 16901 0 0 0 17 4 0 0 0 0 0 0 0 0 0 0 0 0 0 +361 (postgres) S 333 361 361 0 -1 4210752 87 0 0 0 0 0 0 0 20 0 1 0 1286822 156073984 827 18446744073709551615 1 1 0 0 0 0 0 16791552 16903 0 0 0 17 4 0 0 0 0 0 0 0 0 0 0 0 0 0 +362 (postgres) S 333 362 362 0 -1 4210752 292 0 3 0 0 0 0 0 20 0 1 0 1286822 156930048 1373 18446744073709551615 1 1 0 0 0 0 0 19927040 27271 0 0 0 17 5 0 0 0 0 0 0 0 0 0 0 0 0 0 +363 (postgres) S 333 363 363 0 -1 4210752 82 0 0 0 0 0 0 0 20 0 1 0 1286822 115924992 887 18446744073709551615 1 1 0 0 0 0 0 16808450 5 0 0 0 17 5 0 0 0 0 0 0 0 0 0 0 0 0 0 +4050 (npm) S 50 50 50 34817 50 4210688 5109 0 0 0 36 3 0 0 20 0 10 0 1292968 738025472 10051 18446744073709551615 4194304 33165900 140723623956256 0 0 0 0 4096 134300162 0 0 0 17 4 0 0 0 0 0 35263056 35370992 48369664 140723623964237 140723623964294 140723623964294 140723623968712 0 +4060 (sh) S 4050 50 50 34817 50 4210688 121 0 0 0 0 0 0 0 20 0 1 0 1293007 4579328 174 18446744073709551615 94347643936768 94347644049516 140735136055088 0 0 0 0 0 65538 1 0 0 17 5 0 0 0 0 0 94347646148008 94347646153216 94347660038144 140735136063095 140735136063129 140735136063129 140735136071664 0 +4061 (node) S 4060 50 50 34817 50 4210688 6501 0 0 0 42 2 0 0 20 0 6 0 1293008 705769472 10211 18446744073709551615 4194304 33165900 140730532686288 0 0 0 0 4096 2072111671 0 0 0 17 5 0 0 0 0 0 35263056 35370992 45867008 140730532695579 140730532695657 140730532695657 140730532704200 0 +4067 (node) S 4061 50 50 34817 50 4210688 6746 221 0 0 38 3 0 0 20 0 10 0 1293051 738910208 10527 18446744073709551615 4194304 33165900 140724824971632 0 0 0 0 4096 2072111671 0 0 0 17 4 0 0 0 0 0 35263056 35370992 68595712 140724824980995 140724824981063 140724824981063 140724824989640 0 +4079 (sh) S 4067 50 50 34817 50 4210688 118 0 0 0 0 0 0 0 20 0 1 0 1293092 4579328 194 18446744073709551615 94573702131712 94573702244460 140724712357120 0 0 0 0 0 65538 1 0 0 17 4 0 0 0 0 0 94573704342952 94573704348160 94573718511616 140724712361487 140724712361583 140724712361583 140724712370160 0 +4080 (node) S 4079 50 50 34817 50 4210688 2428 0 0 0 8 1 0 0 20 0 6 0 1293093 693059584 7251 18446744073709551615 4194304 33165900 140726023392816 0 0 0 0 4096 134234626 0 0 0 17 5 0 0 0 0 0 35263056 35370992 55226368 140726023396847 140726023396935 140726023396935 140726023405512 0 +4086 (sh) S 4067 50 50 34817 50 4210688 131 244 0 0 0 0 0 0 20 0 1 0 1293143 4579328 200 18446744073709551615 94347550273536 94347550386284 140737219399136 0 0 0 0 0 65538 1 0 0 17 5 0 0 0 0 0 94347552484776 94347552489984 94347554299904 140737219403308 140737219403375 140737219403375 140737219411952 0 +4089 (xargs) S 4086 50 50 34817 50 4210688 333 1924 0 0 0 0 0 0 20 0 1 0 1293143 17600512 477 18446744073709551615 4194304 4232732 140721633759248 0 0 0 0 0 0 1 0 0 17 5 0 0 0 0 0 6331920 6332980 32182272 140721633762891 140721633762920 140721633762920 140721633771497 0 +50 (bash) S 0 50 50 34817 50 4210944 43914 1032463 9 705 44 21 4213 818 20 0 1 0 1286336 42266624 3599 18446744073709551615 4194304 5173404 140732749083280 0 0 0 65536 4 1132560123 1 0 0 17 4 0 0 410 0 0 7273968 7310504 21196800 140732749086490 140732749086517 140732749086517 140732749086702 0 +79 (acpid) S 1 79 79 0 -1 4210752 46 0 0 0 0 0 0 0 20 0 1 0 1286717 4493312 407 18446744073709551615 1 1 0 0 0 0 0 4096 16391 0 0 0 17 5 0 0 0 0 0 0 0 0 0 0 0 0 0 +83 (sshd) S 1 83 83 0 -1 4210944 354 0 27 0 0 0 0 0 20 0 1 0 1286718 62873600 1290 18446744073709551615 1 1 0 0 0 0 0 4096 81925 0 0 0 17 4 0 0 30 0 0 0 0 0 0 0 0 0 0 +94 (cron) S 1 94 94 0 -1 1077952576 103 449 0 1 0 0 0 0 20 0 1 0 1286743 24240128 559 18446744073709551615 1 1 0 0 0 0 0 0 65537 0 0 0 17 4 0 0 0 0 0 0 0 0 0 0 0 0 0 +95 (atd) S 1 95 95 0 -1 1077952576 28 0 0 0 0 0 0 0 20 0 1 0 1286743 19615744 41 18446744073709551615 1 1 0 0 0 0 0 0 81923 0 0 0 17 4 0 0 0 0 0 0 0 0 0 0 0 0 0 diff --git a/node_modules/pstree.remy/tests/index.test.js b/node_modules/pstree.remy/tests/index.test.js new file mode 100644 index 0000000000000000000000000000000000000000..50096b95a34b87e9848417a02ce6e79ba08ddce4 --- /dev/null +++ b/node_modules/pstree.remy/tests/index.test.js @@ -0,0 +1,51 @@ +const tap = require('tap'); +const test = tap.test; +const readFile = require('fs').readFileSync; +const spawn = require('child_process').spawn; +const pstree = require('../'); +const { tree, pidsForTree, getStat } = require('../lib/utils'); + +if (process.platform !== 'darwin') { + test('reads from /proc', async (t) => { + const ps = await getStat(); + t.ok(ps.split('\n').length > 1); + }); +} + +test('tree for live env', async (t) => { + const pid = 4079; + const fixture = readFile(__dirname + '/fixtures/out2', 'utf8'); + const ps = await tree(fixture); + t.deepEqual( + pidsForTree(ps, pid).map((_) => _.PID), + ['4080'] + ); +}); + +function testTree(t, runCallCount) { + const sub = spawn('node', [`${__dirname}/fixtures/index.js`, runCallCount], { + stdio: 'pipe', + }); + setTimeout(() => { + const pid = sub.pid; + + pstree(pid, (error, pids) => { + pids.concat([pid]).forEach((p) => { + spawn('kill', ['-s', 'SIGTERM', p]); + }); + + // the fixture launches `sh` which launches node which is why we + // are looking for two processes. + // Important: IDKW but MacOS seems to skip the `sh` process. no idea. + t.equal(pids.length, runCallCount * 2); + t.end(); + }); + }, 1000); +} + +test('can read full process tree', (t) => { + testTree(t, 1); +}); +test('can read full process tree with multiple processes', (t) => { + testTree(t, 2); +}); diff --git a/node_modules/pump/.github/FUNDING.yml b/node_modules/pump/.github/FUNDING.yml new file mode 100644 index 0000000000000000000000000000000000000000..f6c9139aa778c5271f41462b95973ea0186490b5 --- /dev/null +++ b/node_modules/pump/.github/FUNDING.yml @@ -0,0 +1,2 @@ +github: mafintosh +tidelift: "npm/pump" diff --git a/node_modules/pump/.travis.yml b/node_modules/pump/.travis.yml new file mode 100644 index 0000000000000000000000000000000000000000..17f94330e70bc85f8a53e57c92b1d1bc0846aa79 --- /dev/null +++ b/node_modules/pump/.travis.yml @@ -0,0 +1,5 @@ +language: node_js +node_js: + - "0.10" + +script: "npm test" diff --git a/node_modules/pump/LICENSE b/node_modules/pump/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..757562ec59276bff35792501d88fe83b34acca9a --- /dev/null +++ b/node_modules/pump/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2014 Mathias Buus + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. \ No newline at end of file diff --git a/node_modules/pump/README.md b/node_modules/pump/README.md new file mode 100644 index 0000000000000000000000000000000000000000..5dcd8a52268e0c0a1a385ac513f5d732d842becd --- /dev/null +++ b/node_modules/pump/README.md @@ -0,0 +1,74 @@ +# pump + +pump is a small node module that pipes streams together and destroys all of them if one of them closes. + +``` +npm install pump +``` + +[![build status](http://img.shields.io/travis/mafintosh/pump.svg?style=flat)](http://travis-ci.org/mafintosh/pump) + +## What problem does it solve? + +When using standard `source.pipe(dest)` source will _not_ be destroyed if dest emits close or an error. +You are also not able to provide a callback to tell when then pipe has finished. + +pump does these two things for you + +## Usage + +Simply pass the streams you want to pipe together to pump and add an optional callback + +``` js +var pump = require('pump') +var fs = require('fs') + +var source = fs.createReadStream('/dev/random') +var dest = fs.createWriteStream('/dev/null') + +pump(source, dest, function(err) { + console.log('pipe finished', err) +}) + +setTimeout(function() { + dest.destroy() // when dest is closed pump will destroy source +}, 1000) +``` + +You can use pump to pipe more than two streams together as well + +``` js +var transform = someTransformStream() + +pump(source, transform, anotherTransform, dest, function(err) { + console.log('pipe finished', err) +}) +``` + +If `source`, `transform`, `anotherTransform` or `dest` closes all of them will be destroyed. + +Similarly to `stream.pipe()`, `pump()` returns the last stream passed in, so you can do: + +``` +return pump(s1, s2) // returns s2 +``` + +Note that `pump` attaches error handlers to the streams to do internal error handling, so if `s2` emits an +error in the above scenario, it will not trigger a `proccess.on('uncaughtException')` if you do not listen for it. + +If you want to return a stream that combines *both* s1 and s2 to a single stream use +[pumpify](https://github.com/mafintosh/pumpify) instead. + +## License + +MIT + +## Related + +`pump` is part of the [mississippi stream utility collection](https://github.com/maxogden/mississippi) which includes more useful stream modules similar to this one. + +## For enterprise + +Available as part of the Tidelift Subscription. + +The maintainers of pump and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-pump?utm_source=npm-pump&utm_medium=referral&utm_campaign=enterprise) diff --git a/node_modules/pump/SECURITY.md b/node_modules/pump/SECURITY.md new file mode 100644 index 0000000000000000000000000000000000000000..da9c516dd744b6c88dd8c91f58f7bcf8f7e8341b --- /dev/null +++ b/node_modules/pump/SECURITY.md @@ -0,0 +1,5 @@ +## Security contact information + +To report a security vulnerability, please use the +[Tidelift security contact](https://tidelift.com/security). +Tidelift will coordinate the fix and disclosure. diff --git a/node_modules/pump/empty.js b/node_modules/pump/empty.js new file mode 100644 index 0000000000000000000000000000000000000000..7209432a9522ed4556fe8a90cabf8ec626c17620 --- /dev/null +++ b/node_modules/pump/empty.js @@ -0,0 +1 @@ +module.exports = null diff --git a/node_modules/pump/index.js b/node_modules/pump/index.js new file mode 100644 index 0000000000000000000000000000000000000000..712c076aad825b386b12731089c3ef246dd21b1c --- /dev/null +++ b/node_modules/pump/index.js @@ -0,0 +1,86 @@ +var once = require('once') +var eos = require('end-of-stream') +var fs + +try { + fs = require('fs') // we only need fs to get the ReadStream and WriteStream prototypes +} catch (e) {} + +var noop = function () {} +var ancient = typeof process === 'undefined' ? false : /^v?\.0/.test(process.version) + +var isFn = function (fn) { + return typeof fn === 'function' +} + +var isFS = function (stream) { + if (!ancient) return false // newer node version do not need to care about fs is a special way + if (!fs) return false // browser + return (stream instanceof (fs.ReadStream || noop) || stream instanceof (fs.WriteStream || noop)) && isFn(stream.close) +} + +var isRequest = function (stream) { + return stream.setHeader && isFn(stream.abort) +} + +var destroyer = function (stream, reading, writing, callback) { + callback = once(callback) + + var closed = false + stream.on('close', function () { + closed = true + }) + + eos(stream, {readable: reading, writable: writing}, function (err) { + if (err) return callback(err) + closed = true + callback() + }) + + var destroyed = false + return function (err) { + if (closed) return + if (destroyed) return + destroyed = true + + if (isFS(stream)) return stream.close(noop) // use close for fs streams to avoid fd leaks + if (isRequest(stream)) return stream.abort() // request.destroy just do .end - .abort is what we want + + if (isFn(stream.destroy)) return stream.destroy() + + callback(err || new Error('stream was destroyed')) + } +} + +var call = function (fn) { + fn() +} + +var pipe = function (from, to) { + return from.pipe(to) +} + +var pump = function () { + var streams = Array.prototype.slice.call(arguments) + var callback = isFn(streams[streams.length - 1] || noop) && streams.pop() || noop + + if (Array.isArray(streams[0])) streams = streams[0] + if (streams.length < 2) throw new Error('pump requires two streams per minimum') + + var error + var destroys = streams.map(function (stream, i) { + var reading = i < streams.length - 1 + var writing = i > 0 + return destroyer(stream, reading, writing, function (err) { + if (!error) error = err + if (err) destroys.forEach(call) + if (reading) return + destroys.forEach(call) + callback(error) + }) + }) + + return streams.reduce(pipe) +} + +module.exports = pump diff --git a/node_modules/pump/package.json b/node_modules/pump/package.json new file mode 100644 index 0000000000000000000000000000000000000000..8d4795e1739042e0c91baa451daaa463a22978e5 --- /dev/null +++ b/node_modules/pump/package.json @@ -0,0 +1,30 @@ +{ + "name": "pump", + "version": "3.0.4", + "repository": "git://github.com/mafintosh/pump.git", + "license": "MIT", + "description": "pipe streams together and close all of them if one of them closes", + "browser": { + "fs": false + }, + "imports": { + "fs": { + "bare": "./empty.js", + "default": "fs" + } + }, + "keywords": [ + "streams", + "pipe", + "destroy", + "callback" + ], + "author": "Mathias Buus Madsen ", + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + }, + "scripts": { + "test": "node test-browser.js && node test-node.js" + } +} diff --git a/node_modules/pump/test-browser.js b/node_modules/pump/test-browser.js new file mode 100644 index 0000000000000000000000000000000000000000..9a06c8a4ccb58cb2b8c51f25aeee8fedfe513c37 --- /dev/null +++ b/node_modules/pump/test-browser.js @@ -0,0 +1,66 @@ +var stream = require('stream') +var pump = require('./index') + +var rs = new stream.Readable() +var ws = new stream.Writable() + +rs._read = function (size) { + this.push(Buffer(size).fill('abc')) +} + +ws._write = function (chunk, encoding, cb) { + setTimeout(function () { + cb() + }, 100) +} + +var toHex = function () { + var reverse = new (require('stream').Transform)() + + reverse._transform = function (chunk, enc, callback) { + reverse.push(chunk.toString('hex')) + callback() + } + + return reverse +} + +var wsClosed = false +var rsClosed = false +var callbackCalled = false + +var check = function () { + if (wsClosed && rsClosed && callbackCalled) { + console.log('test-browser.js passes') + clearTimeout(timeout) + } +} + +ws.on('finish', function () { + wsClosed = true + check() +}) + +rs.on('end', function () { + rsClosed = true + check() +}) + +var res = pump(rs, toHex(), toHex(), toHex(), ws, function () { + callbackCalled = true + check() +}) + +if (res !== ws) { + throw new Error('should return last stream') +} + +setTimeout(function () { + rs.push(null) + rs.emit('close') +}, 1000) + +var timeout = setTimeout(function () { + check() + throw new Error('timeout') +}, 5000) diff --git a/node_modules/pump/test-node.js b/node_modules/pump/test-node.js new file mode 100644 index 0000000000000000000000000000000000000000..561251a0826c712b11e04f583c955e9aeff85023 --- /dev/null +++ b/node_modules/pump/test-node.js @@ -0,0 +1,53 @@ +var pump = require('./index') + +var rs = require('fs').createReadStream('/dev/random') +var ws = require('fs').createWriteStream('/dev/null') + +var toHex = function () { + var reverse = new (require('stream').Transform)() + + reverse._transform = function (chunk, enc, callback) { + reverse.push(chunk.toString('hex')) + callback() + } + + return reverse +} + +var wsClosed = false +var rsClosed = false +var callbackCalled = false + +var check = function () { + if (wsClosed && rsClosed && callbackCalled) { + console.log('test-node.js passes') + clearTimeout(timeout) + } +} + +ws.on('close', function () { + wsClosed = true + check() +}) + +rs.on('close', function () { + rsClosed = true + check() +}) + +var res = pump(rs, toHex(), toHex(), toHex(), ws, function () { + callbackCalled = true + check() +}) + +if (res !== ws) { + throw new Error('should return last stream') +} + +setTimeout(function () { + rs.destroy() +}, 1000) + +var timeout = setTimeout(function () { + throw new Error('timeout') +}, 5000) diff --git a/node_modules/punycode/LICENSE-MIT.txt b/node_modules/punycode/LICENSE-MIT.txt new file mode 100644 index 0000000000000000000000000000000000000000..a41e0a7ef970ecdd83d82cd99bda97b22077bc62 --- /dev/null +++ b/node_modules/punycode/LICENSE-MIT.txt @@ -0,0 +1,20 @@ +Copyright Mathias Bynens + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/punycode/README.md b/node_modules/punycode/README.md new file mode 100644 index 0000000000000000000000000000000000000000..f611016b01a27ad709e837880d4ddc2f19331ff2 --- /dev/null +++ b/node_modules/punycode/README.md @@ -0,0 +1,148 @@ +# Punycode.js [![punycode on npm](https://img.shields.io/npm/v/punycode)](https://www.npmjs.com/package/punycode) [![](https://data.jsdelivr.com/v1/package/npm/punycode/badge)](https://www.jsdelivr.com/package/npm/punycode) + +Punycode.js is a robust Punycode converter that fully complies to [RFC 3492](https://tools.ietf.org/html/rfc3492) and [RFC 5891](https://tools.ietf.org/html/rfc5891). + +This JavaScript library is the result of comparing, optimizing and documenting different open-source implementations of the Punycode algorithm: + +* [The C example code from RFC 3492](https://tools.ietf.org/html/rfc3492#appendix-C) +* [`punycode.c` by _Markus W. Scherer_ (IBM)](http://opensource.apple.com/source/ICU/ICU-400.42/icuSources/common/punycode.c) +* [`punycode.c` by _Ben Noordhuis_](https://github.com/bnoordhuis/punycode/blob/master/punycode.c) +* [JavaScript implementation by _some_](http://stackoverflow.com/questions/183485/can-anyone-recommend-a-good-free-javascript-for-punycode-to-unicode-conversion/301287#301287) +* [`punycode.js` by _Ben Noordhuis_](https://github.com/joyent/node/blob/426298c8c1c0d5b5224ac3658c41e7c2a3fe9377/lib/punycode.js) (note: [not fully compliant](https://github.com/joyent/node/issues/2072)) + +This project was [bundled](https://github.com/joyent/node/blob/master/lib/punycode.js) with Node.js from [v0.6.2+](https://github.com/joyent/node/compare/975f1930b1...61e796decc) until [v7](https://github.com/nodejs/node/pull/7941) (soft-deprecated). + +This project provides a CommonJS module that uses ES2015+ features and JavaScript module, which work in modern Node.js versions and browsers. For the old Punycode.js version that offers the same functionality in a UMD build with support for older pre-ES2015 runtimes, including Rhino, Ringo, and Narwhal, see [v1.4.1](https://github.com/mathiasbynens/punycode.js/releases/tag/v1.4.1). + +## Installation + +Via [npm](https://www.npmjs.com/): + +```bash +npm install punycode --save +``` + +In [Node.js](https://nodejs.org/): + +> ⚠️ Note that userland modules don't hide core modules. +> For example, `require('punycode')` still imports the deprecated core module even if you executed `npm install punycode`. +> Use `require('punycode/')` to import userland modules rather than core modules. + +```js +const punycode = require('punycode/'); +``` + +## API + +### `punycode.decode(string)` + +Converts a Punycode string of ASCII symbols to a string of Unicode symbols. + +```js +// decode domain name parts +punycode.decode('maana-pta'); // 'mañana' +punycode.decode('--dqo34k'); // '☃-⌘' +``` + +### `punycode.encode(string)` + +Converts a string of Unicode symbols to a Punycode string of ASCII symbols. + +```js +// encode domain name parts +punycode.encode('mañana'); // 'maana-pta' +punycode.encode('☃-⌘'); // '--dqo34k' +``` + +### `punycode.toUnicode(input)` + +Converts a Punycode string representing a domain name or an email address to Unicode. Only the Punycoded parts of the input will be converted, i.e. it doesn’t matter if you call it on a string that has already been converted to Unicode. + +```js +// decode domain names +punycode.toUnicode('xn--maana-pta.com'); +// → 'mañana.com' +punycode.toUnicode('xn----dqo34k.com'); +// → '☃-⌘.com' + +// decode email addresses +punycode.toUnicode('джумла@xn--p-8sbkgc5ag7bhce.xn--ba-lmcq'); +// → 'джумла@джpумлатест.bрфa' +``` + +### `punycode.toASCII(input)` + +Converts a lowercased Unicode string representing a domain name or an email address to Punycode. Only the non-ASCII parts of the input will be converted, i.e. it doesn’t matter if you call it with a domain that’s already in ASCII. + +```js +// encode domain names +punycode.toASCII('mañana.com'); +// → 'xn--maana-pta.com' +punycode.toASCII('☃-⌘.com'); +// → 'xn----dqo34k.com' + +// encode email addresses +punycode.toASCII('джумла@джpумлатест.bрфa'); +// → 'джумла@xn--p-8sbkgc5ag7bhce.xn--ba-lmcq' +``` + +### `punycode.ucs2` + +#### `punycode.ucs2.decode(string)` + +Creates an array containing the numeric code point values of each Unicode symbol in the string. While [JavaScript uses UCS-2 internally](https://mathiasbynens.be/notes/javascript-encoding), this function will convert a pair of surrogate halves (each of which UCS-2 exposes as separate characters) into a single code point, matching UTF-16. + +```js +punycode.ucs2.decode('abc'); +// → [0x61, 0x62, 0x63] +// surrogate pair for U+1D306 TETRAGRAM FOR CENTRE: +punycode.ucs2.decode('\uD834\uDF06'); +// → [0x1D306] +``` + +#### `punycode.ucs2.encode(codePoints)` + +Creates a string based on an array of numeric code point values. + +```js +punycode.ucs2.encode([0x61, 0x62, 0x63]); +// → 'abc' +punycode.ucs2.encode([0x1D306]); +// → '\uD834\uDF06' +``` + +### `punycode.version` + +A string representing the current Punycode.js version number. + +## For maintainers + +### How to publish a new release + +1. On the `main` branch, bump the version number in `package.json`: + + ```sh + npm version patch -m 'Release v%s' + ``` + + Instead of `patch`, use `minor` or `major` [as needed](https://semver.org/). + + Note that this produces a Git commit + tag. + +1. Push the release commit and tag: + + ```sh + git push && git push --tags + ``` + + Our CI then automatically publishes the new release to npm, under both the [`punycode`](https://www.npmjs.com/package/punycode) and [`punycode.js`](https://www.npmjs.com/package/punycode.js) names. + +## Author + +| [![twitter/mathias](https://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias "Follow @mathias on Twitter") | +|---| +| [Mathias Bynens](https://mathiasbynens.be/) | + +## License + +Punycode.js is available under the [MIT](https://mths.be/mit) license. diff --git a/node_modules/punycode/package.json b/node_modules/punycode/package.json new file mode 100644 index 0000000000000000000000000000000000000000..b8b76fc76c2162104f066c6f2330a7cacdee4a72 --- /dev/null +++ b/node_modules/punycode/package.json @@ -0,0 +1,58 @@ +{ + "name": "punycode", + "version": "2.3.1", + "description": "A robust Punycode converter that fully complies to RFC 3492 and RFC 5891, and works on nearly all JavaScript platforms.", + "homepage": "https://mths.be/punycode", + "main": "punycode.js", + "jsnext:main": "punycode.es6.js", + "module": "punycode.es6.js", + "engines": { + "node": ">=6" + }, + "keywords": [ + "punycode", + "unicode", + "idn", + "idna", + "dns", + "url", + "domain" + ], + "license": "MIT", + "author": { + "name": "Mathias Bynens", + "url": "https://mathiasbynens.be/" + }, + "contributors": [ + { + "name": "Mathias Bynens", + "url": "https://mathiasbynens.be/" + } + ], + "repository": { + "type": "git", + "url": "https://github.com/mathiasbynens/punycode.js.git" + }, + "bugs": "https://github.com/mathiasbynens/punycode.js/issues", + "files": [ + "LICENSE-MIT.txt", + "punycode.js", + "punycode.es6.js" + ], + "scripts": { + "test": "mocha tests", + "build": "node scripts/prepublish.js" + }, + "devDependencies": { + "codecov": "^3.8.3", + "nyc": "^15.1.0", + "mocha": "^10.2.0" + }, + "jspm": { + "map": { + "./punycode.js": { + "node": "@node/punycode" + } + } + } +} diff --git a/node_modules/punycode/punycode.es6.js b/node_modules/punycode/punycode.es6.js new file mode 100644 index 0000000000000000000000000000000000000000..dadece25b35f595d717ec52adfc94d23d3b1edda --- /dev/null +++ b/node_modules/punycode/punycode.es6.js @@ -0,0 +1,444 @@ +'use strict'; + +/** Highest positive signed 32-bit float value */ +const maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1 + +/** Bootstring parameters */ +const base = 36; +const tMin = 1; +const tMax = 26; +const skew = 38; +const damp = 700; +const initialBias = 72; +const initialN = 128; // 0x80 +const delimiter = '-'; // '\x2D' + +/** Regular expressions */ +const regexPunycode = /^xn--/; +const regexNonASCII = /[^\0-\x7F]/; // Note: U+007F DEL is excluded too. +const regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g; // RFC 3490 separators + +/** Error messages */ +const errors = { + 'overflow': 'Overflow: input needs wider integers to process', + 'not-basic': 'Illegal input >= 0x80 (not a basic code point)', + 'invalid-input': 'Invalid input' +}; + +/** Convenience shortcuts */ +const baseMinusTMin = base - tMin; +const floor = Math.floor; +const stringFromCharCode = String.fromCharCode; + +/*--------------------------------------------------------------------------*/ + +/** + * A generic error utility function. + * @private + * @param {String} type The error type. + * @returns {Error} Throws a `RangeError` with the applicable error message. + */ +function error(type) { + throw new RangeError(errors[type]); +} + +/** + * A generic `Array#map` utility function. + * @private + * @param {Array} array The array to iterate over. + * @param {Function} callback The function that gets called for every array + * item. + * @returns {Array} A new array of values returned by the callback function. + */ +function map(array, callback) { + const result = []; + let length = array.length; + while (length--) { + result[length] = callback(array[length]); + } + return result; +} + +/** + * A simple `Array#map`-like wrapper to work with domain name strings or email + * addresses. + * @private + * @param {String} domain The domain name or email address. + * @param {Function} callback The function that gets called for every + * character. + * @returns {String} A new string of characters returned by the callback + * function. + */ +function mapDomain(domain, callback) { + const parts = domain.split('@'); + let result = ''; + if (parts.length > 1) { + // In email addresses, only the domain name should be punycoded. Leave + // the local part (i.e. everything up to `@`) intact. + result = parts[0] + '@'; + domain = parts[1]; + } + // Avoid `split(regex)` for IE8 compatibility. See #17. + domain = domain.replace(regexSeparators, '\x2E'); + const labels = domain.split('.'); + const encoded = map(labels, callback).join('.'); + return result + encoded; +} + +/** + * Creates an array containing the numeric code points of each Unicode + * character in the string. While JavaScript uses UCS-2 internally, + * this function will convert a pair of surrogate halves (each of which + * UCS-2 exposes as separate characters) into a single code point, + * matching UTF-16. + * @see `punycode.ucs2.encode` + * @see + * @memberOf punycode.ucs2 + * @name decode + * @param {String} string The Unicode input string (UCS-2). + * @returns {Array} The new array of code points. + */ +function ucs2decode(string) { + const output = []; + let counter = 0; + const length = string.length; + while (counter < length) { + const value = string.charCodeAt(counter++); + if (value >= 0xD800 && value <= 0xDBFF && counter < length) { + // It's a high surrogate, and there is a next character. + const extra = string.charCodeAt(counter++); + if ((extra & 0xFC00) == 0xDC00) { // Low surrogate. + output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000); + } else { + // It's an unmatched surrogate; only append this code unit, in case the + // next code unit is the high surrogate of a surrogate pair. + output.push(value); + counter--; + } + } else { + output.push(value); + } + } + return output; +} + +/** + * Creates a string based on an array of numeric code points. + * @see `punycode.ucs2.decode` + * @memberOf punycode.ucs2 + * @name encode + * @param {Array} codePoints The array of numeric code points. + * @returns {String} The new Unicode string (UCS-2). + */ +const ucs2encode = codePoints => String.fromCodePoint(...codePoints); + +/** + * Converts a basic code point into a digit/integer. + * @see `digitToBasic()` + * @private + * @param {Number} codePoint The basic numeric code point value. + * @returns {Number} The numeric value of a basic code point (for use in + * representing integers) in the range `0` to `base - 1`, or `base` if + * the code point does not represent a value. + */ +const basicToDigit = function(codePoint) { + if (codePoint >= 0x30 && codePoint < 0x3A) { + return 26 + (codePoint - 0x30); + } + if (codePoint >= 0x41 && codePoint < 0x5B) { + return codePoint - 0x41; + } + if (codePoint >= 0x61 && codePoint < 0x7B) { + return codePoint - 0x61; + } + return base; +}; + +/** + * Converts a digit/integer into a basic code point. + * @see `basicToDigit()` + * @private + * @param {Number} digit The numeric value of a basic code point. + * @returns {Number} The basic code point whose value (when used for + * representing integers) is `digit`, which needs to be in the range + * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is + * used; else, the lowercase form is used. The behavior is undefined + * if `flag` is non-zero and `digit` has no uppercase form. + */ +const digitToBasic = function(digit, flag) { + // 0..25 map to ASCII a..z or A..Z + // 26..35 map to ASCII 0..9 + return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5); +}; + +/** + * Bias adaptation function as per section 3.4 of RFC 3492. + * https://tools.ietf.org/html/rfc3492#section-3.4 + * @private + */ +const adapt = function(delta, numPoints, firstTime) { + let k = 0; + delta = firstTime ? floor(delta / damp) : delta >> 1; + delta += floor(delta / numPoints); + for (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) { + delta = floor(delta / baseMinusTMin); + } + return floor(k + (baseMinusTMin + 1) * delta / (delta + skew)); +}; + +/** + * Converts a Punycode string of ASCII-only symbols to a string of Unicode + * symbols. + * @memberOf punycode + * @param {String} input The Punycode string of ASCII-only symbols. + * @returns {String} The resulting string of Unicode symbols. + */ +const decode = function(input) { + // Don't use UCS-2. + const output = []; + const inputLength = input.length; + let i = 0; + let n = initialN; + let bias = initialBias; + + // Handle the basic code points: let `basic` be the number of input code + // points before the last delimiter, or `0` if there is none, then copy + // the first basic code points to the output. + + let basic = input.lastIndexOf(delimiter); + if (basic < 0) { + basic = 0; + } + + for (let j = 0; j < basic; ++j) { + // if it's not a basic code point + if (input.charCodeAt(j) >= 0x80) { + error('not-basic'); + } + output.push(input.charCodeAt(j)); + } + + // Main decoding loop: start just after the last delimiter if any basic code + // points were copied; start at the beginning otherwise. + + for (let index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) { + + // `index` is the index of the next character to be consumed. + // Decode a generalized variable-length integer into `delta`, + // which gets added to `i`. The overflow checking is easier + // if we increase `i` as we go, then subtract off its starting + // value at the end to obtain `delta`. + const oldi = i; + for (let w = 1, k = base; /* no condition */; k += base) { + + if (index >= inputLength) { + error('invalid-input'); + } + + const digit = basicToDigit(input.charCodeAt(index++)); + + if (digit >= base) { + error('invalid-input'); + } + if (digit > floor((maxInt - i) / w)) { + error('overflow'); + } + + i += digit * w; + const t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias); + + if (digit < t) { + break; + } + + const baseMinusT = base - t; + if (w > floor(maxInt / baseMinusT)) { + error('overflow'); + } + + w *= baseMinusT; + + } + + const out = output.length + 1; + bias = adapt(i - oldi, out, oldi == 0); + + // `i` was supposed to wrap around from `out` to `0`, + // incrementing `n` each time, so we'll fix that now: + if (floor(i / out) > maxInt - n) { + error('overflow'); + } + + n += floor(i / out); + i %= out; + + // Insert `n` at position `i` of the output. + output.splice(i++, 0, n); + + } + + return String.fromCodePoint(...output); +}; + +/** + * Converts a string of Unicode symbols (e.g. a domain name label) to a + * Punycode string of ASCII-only symbols. + * @memberOf punycode + * @param {String} input The string of Unicode symbols. + * @returns {String} The resulting Punycode string of ASCII-only symbols. + */ +const encode = function(input) { + const output = []; + + // Convert the input in UCS-2 to an array of Unicode code points. + input = ucs2decode(input); + + // Cache the length. + const inputLength = input.length; + + // Initialize the state. + let n = initialN; + let delta = 0; + let bias = initialBias; + + // Handle the basic code points. + for (const currentValue of input) { + if (currentValue < 0x80) { + output.push(stringFromCharCode(currentValue)); + } + } + + const basicLength = output.length; + let handledCPCount = basicLength; + + // `handledCPCount` is the number of code points that have been handled; + // `basicLength` is the number of basic code points. + + // Finish the basic string with a delimiter unless it's empty. + if (basicLength) { + output.push(delimiter); + } + + // Main encoding loop: + while (handledCPCount < inputLength) { + + // All non-basic code points < n have been handled already. Find the next + // larger one: + let m = maxInt; + for (const currentValue of input) { + if (currentValue >= n && currentValue < m) { + m = currentValue; + } + } + + // Increase `delta` enough to advance the decoder's state to , + // but guard against overflow. + const handledCPCountPlusOne = handledCPCount + 1; + if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) { + error('overflow'); + } + + delta += (m - n) * handledCPCountPlusOne; + n = m; + + for (const currentValue of input) { + if (currentValue < n && ++delta > maxInt) { + error('overflow'); + } + if (currentValue === n) { + // Represent delta as a generalized variable-length integer. + let q = delta; + for (let k = base; /* no condition */; k += base) { + const t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias); + if (q < t) { + break; + } + const qMinusT = q - t; + const baseMinusT = base - t; + output.push( + stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0)) + ); + q = floor(qMinusT / baseMinusT); + } + + output.push(stringFromCharCode(digitToBasic(q, 0))); + bias = adapt(delta, handledCPCountPlusOne, handledCPCount === basicLength); + delta = 0; + ++handledCPCount; + } + } + + ++delta; + ++n; + + } + return output.join(''); +}; + +/** + * Converts a Punycode string representing a domain name or an email address + * to Unicode. Only the Punycoded parts of the input will be converted, i.e. + * it doesn't matter if you call it on a string that has already been + * converted to Unicode. + * @memberOf punycode + * @param {String} input The Punycoded domain name or email address to + * convert to Unicode. + * @returns {String} The Unicode representation of the given Punycode + * string. + */ +const toUnicode = function(input) { + return mapDomain(input, function(string) { + return regexPunycode.test(string) + ? decode(string.slice(4).toLowerCase()) + : string; + }); +}; + +/** + * Converts a Unicode string representing a domain name or an email address to + * Punycode. Only the non-ASCII parts of the domain name will be converted, + * i.e. it doesn't matter if you call it with a domain that's already in + * ASCII. + * @memberOf punycode + * @param {String} input The domain name or email address to convert, as a + * Unicode string. + * @returns {String} The Punycode representation of the given domain name or + * email address. + */ +const toASCII = function(input) { + return mapDomain(input, function(string) { + return regexNonASCII.test(string) + ? 'xn--' + encode(string) + : string; + }); +}; + +/*--------------------------------------------------------------------------*/ + +/** Define the public API */ +const punycode = { + /** + * A string representing the current Punycode.js version number. + * @memberOf punycode + * @type String + */ + 'version': '2.3.1', + /** + * An object of methods to convert from JavaScript's internal character + * representation (UCS-2) to Unicode code points, and back. + * @see + * @memberOf punycode + * @type Object + */ + 'ucs2': { + 'decode': ucs2decode, + 'encode': ucs2encode + }, + 'decode': decode, + 'encode': encode, + 'toASCII': toASCII, + 'toUnicode': toUnicode +}; + +export { ucs2decode, ucs2encode, decode, encode, toASCII, toUnicode }; +export default punycode; diff --git a/node_modules/punycode/punycode.js b/node_modules/punycode/punycode.js new file mode 100644 index 0000000000000000000000000000000000000000..a1ef251924c81e2cf620132f7765058c690eeb6e --- /dev/null +++ b/node_modules/punycode/punycode.js @@ -0,0 +1,443 @@ +'use strict'; + +/** Highest positive signed 32-bit float value */ +const maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1 + +/** Bootstring parameters */ +const base = 36; +const tMin = 1; +const tMax = 26; +const skew = 38; +const damp = 700; +const initialBias = 72; +const initialN = 128; // 0x80 +const delimiter = '-'; // '\x2D' + +/** Regular expressions */ +const regexPunycode = /^xn--/; +const regexNonASCII = /[^\0-\x7F]/; // Note: U+007F DEL is excluded too. +const regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g; // RFC 3490 separators + +/** Error messages */ +const errors = { + 'overflow': 'Overflow: input needs wider integers to process', + 'not-basic': 'Illegal input >= 0x80 (not a basic code point)', + 'invalid-input': 'Invalid input' +}; + +/** Convenience shortcuts */ +const baseMinusTMin = base - tMin; +const floor = Math.floor; +const stringFromCharCode = String.fromCharCode; + +/*--------------------------------------------------------------------------*/ + +/** + * A generic error utility function. + * @private + * @param {String} type The error type. + * @returns {Error} Throws a `RangeError` with the applicable error message. + */ +function error(type) { + throw new RangeError(errors[type]); +} + +/** + * A generic `Array#map` utility function. + * @private + * @param {Array} array The array to iterate over. + * @param {Function} callback The function that gets called for every array + * item. + * @returns {Array} A new array of values returned by the callback function. + */ +function map(array, callback) { + const result = []; + let length = array.length; + while (length--) { + result[length] = callback(array[length]); + } + return result; +} + +/** + * A simple `Array#map`-like wrapper to work with domain name strings or email + * addresses. + * @private + * @param {String} domain The domain name or email address. + * @param {Function} callback The function that gets called for every + * character. + * @returns {String} A new string of characters returned by the callback + * function. + */ +function mapDomain(domain, callback) { + const parts = domain.split('@'); + let result = ''; + if (parts.length > 1) { + // In email addresses, only the domain name should be punycoded. Leave + // the local part (i.e. everything up to `@`) intact. + result = parts[0] + '@'; + domain = parts[1]; + } + // Avoid `split(regex)` for IE8 compatibility. See #17. + domain = domain.replace(regexSeparators, '\x2E'); + const labels = domain.split('.'); + const encoded = map(labels, callback).join('.'); + return result + encoded; +} + +/** + * Creates an array containing the numeric code points of each Unicode + * character in the string. While JavaScript uses UCS-2 internally, + * this function will convert a pair of surrogate halves (each of which + * UCS-2 exposes as separate characters) into a single code point, + * matching UTF-16. + * @see `punycode.ucs2.encode` + * @see + * @memberOf punycode.ucs2 + * @name decode + * @param {String} string The Unicode input string (UCS-2). + * @returns {Array} The new array of code points. + */ +function ucs2decode(string) { + const output = []; + let counter = 0; + const length = string.length; + while (counter < length) { + const value = string.charCodeAt(counter++); + if (value >= 0xD800 && value <= 0xDBFF && counter < length) { + // It's a high surrogate, and there is a next character. + const extra = string.charCodeAt(counter++); + if ((extra & 0xFC00) == 0xDC00) { // Low surrogate. + output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000); + } else { + // It's an unmatched surrogate; only append this code unit, in case the + // next code unit is the high surrogate of a surrogate pair. + output.push(value); + counter--; + } + } else { + output.push(value); + } + } + return output; +} + +/** + * Creates a string based on an array of numeric code points. + * @see `punycode.ucs2.decode` + * @memberOf punycode.ucs2 + * @name encode + * @param {Array} codePoints The array of numeric code points. + * @returns {String} The new Unicode string (UCS-2). + */ +const ucs2encode = codePoints => String.fromCodePoint(...codePoints); + +/** + * Converts a basic code point into a digit/integer. + * @see `digitToBasic()` + * @private + * @param {Number} codePoint The basic numeric code point value. + * @returns {Number} The numeric value of a basic code point (for use in + * representing integers) in the range `0` to `base - 1`, or `base` if + * the code point does not represent a value. + */ +const basicToDigit = function(codePoint) { + if (codePoint >= 0x30 && codePoint < 0x3A) { + return 26 + (codePoint - 0x30); + } + if (codePoint >= 0x41 && codePoint < 0x5B) { + return codePoint - 0x41; + } + if (codePoint >= 0x61 && codePoint < 0x7B) { + return codePoint - 0x61; + } + return base; +}; + +/** + * Converts a digit/integer into a basic code point. + * @see `basicToDigit()` + * @private + * @param {Number} digit The numeric value of a basic code point. + * @returns {Number} The basic code point whose value (when used for + * representing integers) is `digit`, which needs to be in the range + * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is + * used; else, the lowercase form is used. The behavior is undefined + * if `flag` is non-zero and `digit` has no uppercase form. + */ +const digitToBasic = function(digit, flag) { + // 0..25 map to ASCII a..z or A..Z + // 26..35 map to ASCII 0..9 + return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5); +}; + +/** + * Bias adaptation function as per section 3.4 of RFC 3492. + * https://tools.ietf.org/html/rfc3492#section-3.4 + * @private + */ +const adapt = function(delta, numPoints, firstTime) { + let k = 0; + delta = firstTime ? floor(delta / damp) : delta >> 1; + delta += floor(delta / numPoints); + for (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) { + delta = floor(delta / baseMinusTMin); + } + return floor(k + (baseMinusTMin + 1) * delta / (delta + skew)); +}; + +/** + * Converts a Punycode string of ASCII-only symbols to a string of Unicode + * symbols. + * @memberOf punycode + * @param {String} input The Punycode string of ASCII-only symbols. + * @returns {String} The resulting string of Unicode symbols. + */ +const decode = function(input) { + // Don't use UCS-2. + const output = []; + const inputLength = input.length; + let i = 0; + let n = initialN; + let bias = initialBias; + + // Handle the basic code points: let `basic` be the number of input code + // points before the last delimiter, or `0` if there is none, then copy + // the first basic code points to the output. + + let basic = input.lastIndexOf(delimiter); + if (basic < 0) { + basic = 0; + } + + for (let j = 0; j < basic; ++j) { + // if it's not a basic code point + if (input.charCodeAt(j) >= 0x80) { + error('not-basic'); + } + output.push(input.charCodeAt(j)); + } + + // Main decoding loop: start just after the last delimiter if any basic code + // points were copied; start at the beginning otherwise. + + for (let index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) { + + // `index` is the index of the next character to be consumed. + // Decode a generalized variable-length integer into `delta`, + // which gets added to `i`. The overflow checking is easier + // if we increase `i` as we go, then subtract off its starting + // value at the end to obtain `delta`. + const oldi = i; + for (let w = 1, k = base; /* no condition */; k += base) { + + if (index >= inputLength) { + error('invalid-input'); + } + + const digit = basicToDigit(input.charCodeAt(index++)); + + if (digit >= base) { + error('invalid-input'); + } + if (digit > floor((maxInt - i) / w)) { + error('overflow'); + } + + i += digit * w; + const t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias); + + if (digit < t) { + break; + } + + const baseMinusT = base - t; + if (w > floor(maxInt / baseMinusT)) { + error('overflow'); + } + + w *= baseMinusT; + + } + + const out = output.length + 1; + bias = adapt(i - oldi, out, oldi == 0); + + // `i` was supposed to wrap around from `out` to `0`, + // incrementing `n` each time, so we'll fix that now: + if (floor(i / out) > maxInt - n) { + error('overflow'); + } + + n += floor(i / out); + i %= out; + + // Insert `n` at position `i` of the output. + output.splice(i++, 0, n); + + } + + return String.fromCodePoint(...output); +}; + +/** + * Converts a string of Unicode symbols (e.g. a domain name label) to a + * Punycode string of ASCII-only symbols. + * @memberOf punycode + * @param {String} input The string of Unicode symbols. + * @returns {String} The resulting Punycode string of ASCII-only symbols. + */ +const encode = function(input) { + const output = []; + + // Convert the input in UCS-2 to an array of Unicode code points. + input = ucs2decode(input); + + // Cache the length. + const inputLength = input.length; + + // Initialize the state. + let n = initialN; + let delta = 0; + let bias = initialBias; + + // Handle the basic code points. + for (const currentValue of input) { + if (currentValue < 0x80) { + output.push(stringFromCharCode(currentValue)); + } + } + + const basicLength = output.length; + let handledCPCount = basicLength; + + // `handledCPCount` is the number of code points that have been handled; + // `basicLength` is the number of basic code points. + + // Finish the basic string with a delimiter unless it's empty. + if (basicLength) { + output.push(delimiter); + } + + // Main encoding loop: + while (handledCPCount < inputLength) { + + // All non-basic code points < n have been handled already. Find the next + // larger one: + let m = maxInt; + for (const currentValue of input) { + if (currentValue >= n && currentValue < m) { + m = currentValue; + } + } + + // Increase `delta` enough to advance the decoder's state to , + // but guard against overflow. + const handledCPCountPlusOne = handledCPCount + 1; + if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) { + error('overflow'); + } + + delta += (m - n) * handledCPCountPlusOne; + n = m; + + for (const currentValue of input) { + if (currentValue < n && ++delta > maxInt) { + error('overflow'); + } + if (currentValue === n) { + // Represent delta as a generalized variable-length integer. + let q = delta; + for (let k = base; /* no condition */; k += base) { + const t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias); + if (q < t) { + break; + } + const qMinusT = q - t; + const baseMinusT = base - t; + output.push( + stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0)) + ); + q = floor(qMinusT / baseMinusT); + } + + output.push(stringFromCharCode(digitToBasic(q, 0))); + bias = adapt(delta, handledCPCountPlusOne, handledCPCount === basicLength); + delta = 0; + ++handledCPCount; + } + } + + ++delta; + ++n; + + } + return output.join(''); +}; + +/** + * Converts a Punycode string representing a domain name or an email address + * to Unicode. Only the Punycoded parts of the input will be converted, i.e. + * it doesn't matter if you call it on a string that has already been + * converted to Unicode. + * @memberOf punycode + * @param {String} input The Punycoded domain name or email address to + * convert to Unicode. + * @returns {String} The Unicode representation of the given Punycode + * string. + */ +const toUnicode = function(input) { + return mapDomain(input, function(string) { + return regexPunycode.test(string) + ? decode(string.slice(4).toLowerCase()) + : string; + }); +}; + +/** + * Converts a Unicode string representing a domain name or an email address to + * Punycode. Only the non-ASCII parts of the domain name will be converted, + * i.e. it doesn't matter if you call it with a domain that's already in + * ASCII. + * @memberOf punycode + * @param {String} input The domain name or email address to convert, as a + * Unicode string. + * @returns {String} The Punycode representation of the given domain name or + * email address. + */ +const toASCII = function(input) { + return mapDomain(input, function(string) { + return regexNonASCII.test(string) + ? 'xn--' + encode(string) + : string; + }); +}; + +/*--------------------------------------------------------------------------*/ + +/** Define the public API */ +const punycode = { + /** + * A string representing the current Punycode.js version number. + * @memberOf punycode + * @type String + */ + 'version': '2.3.1', + /** + * An object of methods to convert from JavaScript's internal character + * representation (UCS-2) to Unicode code points, and back. + * @see + * @memberOf punycode + * @type Object + */ + 'ucs2': { + 'decode': ucs2decode, + 'encode': ucs2encode + }, + 'decode': decode, + 'encode': encode, + 'toASCII': toASCII, + 'toUnicode': toUnicode +}; + +module.exports = punycode; diff --git a/node_modules/pvtsutils/LICENSE b/node_modules/pvtsutils/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..d9f227a51b4849445e57c326fa56f86efc88edb4 --- /dev/null +++ b/node_modules/pvtsutils/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2017-2024 Peculiar Ventures, LLC + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/node_modules/pvtsutils/README.md b/node_modules/pvtsutils/README.md new file mode 100644 index 0000000000000000000000000000000000000000..2cc606affa2b24b9026c1d57bb2c2db4523331b1 --- /dev/null +++ b/node_modules/pvtsutils/README.md @@ -0,0 +1,80 @@ +[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT) +[![Coverage Status](https://coveralls.io/repos/github/PeculiarVentures/pvtsutils/badge.svg?branch=master)](https://coveralls.io/github/PeculiarVentures/pvtsutils?branch=master) +[![Test](https://github.com/PeculiarVentures/pvtsutils/actions/workflows/test.yml/badge.svg)](https://github.com/PeculiarVentures/pvtsutils/actions/workflows/test.yml) + +# pvtsutils +pvtsutils is a set of common utility functions used in various Peculiar Ventures TypeScript based projects. + +## Install + +``` +npm install pvtsutils +``` + +## Using + +```javascript +const utils = require("pvtsutils"); +``` + +The `pvtsutils` namespace will always be available globally and also supports AMD loaders. + +## Types + +There is an [index.d.ts](./index.d.ts) file which makes easy to use current module as external + +## Helpers + +### Convert + +Helps to convert `string` to `ArrayBuffer` and back + +Convert support next encoding types `hex`, `utf8`, `binary`, `base64`, `base64url`. `utf8` is default. + +#### Examples + +Converts string to buffer + +```javascript +const buf = Convert.FromString("some string", "hex"); +``` + +Converts buffer to string + +```javascript +const str = Convert.ToString(buf, "utf8"); +``` + +### assign + +Copies properties from objects to a target object. [More info](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Object/assign) + +#### Example + +```javascript +const obj = assign({}, {name: "Bob"}, {age: 12}); // {name: "Bob", age: 12} +``` + +### isEqual + +Returns `true` if 2 ArrayBuffers are equal + +### combine + +Combines some `ArrayBuffer` values + +#### Example + +```javascript +const buf1 = new Uint8Array([1, 2, 3]); +const buf2 = new Uint8Array([4, 5, 6]); +const buf = combine(buf1, buf2); // [1, 2, 3, 4, 5, 6] +``` + +Some example capabilities included in pvtsutils include: + +- Converting values to adn from hex, +- Converting values to and from base64, +- Working with base64 url, +- Working with binary data. +- And more... diff --git a/node_modules/pvtsutils/build/index.d.ts b/node_modules/pvtsutils/build/index.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e6bdd8a3e90c947d02cf4751bf6b36636175a818 --- /dev/null +++ b/node_modules/pvtsutils/build/index.d.ts @@ -0,0 +1,208 @@ +/*! + * MIT License + * + * Copyright (c) 2017-2024 Peculiar Ventures, LLC + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */ + +type BufferSource = ArrayBuffer | ArrayBufferView; +interface ArrayBufferViewConstructor { + readonly prototype: T; + new (length: number): T; + new (array: ArrayLike | ArrayBufferLike): T; + new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): T; +} +declare class BufferSourceConverter { + /** + * Checks if incoming data is ArrayBuffer + * @param data Data to be checked + * @returns Returns `true` if incoming data is ArrayBuffer, otherwise `false` + */ + static isArrayBuffer(data: any): data is ArrayBuffer; + /** + * Converts incoming buffer source into ArrayBuffer + * @param data Buffer source + * @returns ArrayBuffer representation of data + * @remarks If incoming data is ArrayBuffer then it returns it without copying, + * otherwise it copies data into new ArrayBuffer because incoming data can be + * ArrayBufferView with offset and length which is not equal to buffer length + */ + static toArrayBuffer(data: BufferSource): ArrayBuffer; + /** + * Converts incoming buffer source into Uint8Array + * @param data Buffer source + * @returns Uint8Array representation of data + */ + static toUint8Array(data: BufferSource): Uint8Array; + /** + * Converts a given `BufferSource` to the specified `ArrayBufferView` type. + * @param data The `BufferSource` to convert. + * @param type The `ArrayBufferView` constructor to use for the conversion. + * @returns The converted `ArrayBufferView`. + * @throws {TypeError} If the provided value is not of type `(ArrayBuffer or ArrayBufferView)`. + * @remarks If incoming data is ArrayBufferView and it's type is equal to specified type + * then it returns it without copying, otherwise it copies data into new ArrayBufferView + * because incoming data can be ArrayBufferView with offset and length which is not equal + * to buffer length + */ + static toView(data: BufferSource, type: ArrayBufferViewConstructor): T; + /** + * Checks if incoming data is BufferSource + * @param data Data to be checked + * @returns Returns `true` if incoming data is BufferSource, otherwise `false` + */ + static isBufferSource(data: any): data is BufferSource; + /** + * Checks if incoming data is ArraybufferView + * @param data Data to be checked + * @returns Returns `true` if incoming data is ArraybufferView, otherwise `false` + */ + static isArrayBufferView(data: any): data is ArrayBufferView; + /** + * Checks if buffers are equal + * @param a Buffer source + * @param b Buffer source + * @returns Returns `true` if buffers are equal, otherwise `false` + */ + static isEqual(a: BufferSource, b: BufferSource): boolean; + /** + * Concatenates buffers + * @param buffers List of buffers + * @returns Concatenated buffer + */ + static concat(...buffers: BufferSource[]): ArrayBuffer; + /** + * Concatenates buffers + * @param buffers List of buffers + * @returns Concatenated buffer + */ + static concat(buffers: BufferSource[]): ArrayBuffer; + /** + * Concatenates buffers and converts it into specified ArrayBufferView + * @param buffers List of buffers + * @param type ArrayBufferView constructor + * @returns Concatenated buffer of specified type + */ + static concat(buffers: BufferSource[], type: ArrayBufferViewConstructor): T; +} + +type BufferEncoding = "utf8" | "binary" | "base64" | "base64url" | "hex" | string; +type TextEncoding = "ascii" | "utf8" | "utf16" | "utf16be" | "utf16le" | "usc2"; +declare class Convert { + static isHex(data: any): data is string; + static isBase64(data: any): data is string; + static isBase64Url(data: any): data is string; + static ToString(buffer: BufferSource, enc?: BufferEncoding): string; + static FromString(str: string, enc?: BufferEncoding): ArrayBuffer; + /** + * Converts byte array to Base64 encoded string. + * @param buffer - Byte array to encode. + * @returns Base64 string. + */ + static ToBase64(buffer: BufferSource): string; + /** + * Converts byte array to Base64 encoded string. + * @param base64 - Base64 encoded string. + * @returns Byte array. + */ + static FromBase64(base64: string): ArrayBuffer; + /** + * Converts Base64Url encoded string to byte array. + * @param base64url - Base64Url encoded string. + * @returns Byte array. + */ + static FromBase64Url(base64url: string): ArrayBuffer; + /** + * Converts byte array to Base64Url encoded string. + * @param data - Byte array to encode. + * @returns Base64Url encoded string. + */ + static ToBase64Url(data: BufferSource): string; + protected static DEFAULT_UTF8_ENCODING: TextEncoding; + /** + * Converts JavaScript string to ArrayBuffer using specified encoding. + * @param text - JavaScript string to convert. + * @param encoding - Encoding to use. Default is 'utf8'. + * @returns ArrayBuffer representing input string. + */ + static FromUtf8String(text: string, encoding?: TextEncoding): ArrayBuffer; + /** + * Converts ArrayBuffer to JavaScript string using specified encoding. + * @param buffer - Buffer to convert. + * @param encoding - Encoding to use. Default is 'utf8'. + * @returns JavaScript string derived from input buffer. + */ + static ToUtf8String(buffer: BufferSource, encoding?: TextEncoding): string; + /** + * Converts binary string to ArrayBuffer. + * @param text - Binary string. + * @returns Byte array. + */ + static FromBinary(text: string): ArrayBuffer; + /** + * Converts buffer to binary string. + * @param buffer - Input buffer. + * @returns Binary string. + */ + static ToBinary(buffer: BufferSource): string; + /** + * Converts buffer to HEX string + * @param {BufferSource} buffer Incoming buffer + * @returns string + */ + static ToHex(buffer: BufferSource): string; + /** + * Converts HEX string to buffer + * + * @static + * @param {string} formatted + * @returns {Uint8Array} + * + * @memberOf Convert + */ + static FromHex(hexString: string): ArrayBuffer; + /** + * Converts UTF-16 encoded buffer to UTF-8 string + * @param buffer UTF-16 encoded buffer + * @param littleEndian Indicates whether the char code is stored in little- or big-endian format + * @returns UTF-8 string + */ + static ToUtf16String(buffer: BufferSource, littleEndian?: boolean): string; + /** + * Converts UTF-8 string to UTF-16 encoded buffer + * @param text UTF-8 string + * @param littleEndian Indicates whether the char code is stored in little- or big-endian format + * @returns UTF-16 encoded buffer + */ + static FromUtf16String(text: string, littleEndian?: boolean): ArrayBuffer; + protected static Base64Padding(base64: string): string; + /** + * Removes odd chars from string data + * @param data String data + */ + static formatString(data: string): string; +} + +declare function assign(target: any, ...sources: any[]): any; +declare function combine(...buf: ArrayBuffer[]): ArrayBufferLike; +declare function isEqual(bytes1: ArrayBuffer, bytes2: ArrayBuffer): boolean; + +export { type ArrayBufferViewConstructor, type BufferEncoding, type BufferSource, BufferSourceConverter, Convert, type TextEncoding, assign, combine, isEqual }; diff --git a/node_modules/pvtsutils/build/index.es.js b/node_modules/pvtsutils/build/index.es.js new file mode 100644 index 0000000000000000000000000000000000000000..38c9cf7541e939af78af695905e628f4cacd3890 --- /dev/null +++ b/node_modules/pvtsutils/build/index.es.js @@ -0,0 +1,393 @@ +/*! + * MIT License + * + * Copyright (c) 2017-2024 Peculiar Ventures, LLC + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */ + +const ARRAY_BUFFER_NAME = "[object ArrayBuffer]"; +class BufferSourceConverter { + static isArrayBuffer(data) { + return Object.prototype.toString.call(data) === ARRAY_BUFFER_NAME; + } + static toArrayBuffer(data) { + if (this.isArrayBuffer(data)) { + return data; + } + if (data.byteLength === data.buffer.byteLength) { + return data.buffer; + } + if (data.byteOffset === 0 && data.byteLength === data.buffer.byteLength) { + return data.buffer; + } + return this.toUint8Array(data.buffer) + .slice(data.byteOffset, data.byteOffset + data.byteLength) + .buffer; + } + static toUint8Array(data) { + return this.toView(data, Uint8Array); + } + static toView(data, type) { + if (data.constructor === type) { + return data; + } + if (this.isArrayBuffer(data)) { + return new type(data); + } + if (this.isArrayBufferView(data)) { + return new type(data.buffer, data.byteOffset, data.byteLength); + } + throw new TypeError("The provided value is not of type '(ArrayBuffer or ArrayBufferView)'"); + } + static isBufferSource(data) { + return this.isArrayBufferView(data) + || this.isArrayBuffer(data); + } + static isArrayBufferView(data) { + return ArrayBuffer.isView(data) + || (data && this.isArrayBuffer(data.buffer)); + } + static isEqual(a, b) { + const aView = BufferSourceConverter.toUint8Array(a); + const bView = BufferSourceConverter.toUint8Array(b); + if (aView.length !== bView.byteLength) { + return false; + } + for (let i = 0; i < aView.length; i++) { + if (aView[i] !== bView[i]) { + return false; + } + } + return true; + } + static concat(...args) { + let buffers; + if (Array.isArray(args[0]) && !(args[1] instanceof Function)) { + buffers = args[0]; + } + else if (Array.isArray(args[0]) && args[1] instanceof Function) { + buffers = args[0]; + } + else { + if (args[args.length - 1] instanceof Function) { + buffers = args.slice(0, args.length - 1); + } + else { + buffers = args; + } + } + let size = 0; + for (const buffer of buffers) { + size += buffer.byteLength; + } + const res = new Uint8Array(size); + let offset = 0; + for (const buffer of buffers) { + const view = this.toUint8Array(buffer); + res.set(view, offset); + offset += view.length; + } + if (args[args.length - 1] instanceof Function) { + return this.toView(res, args[args.length - 1]); + } + return res.buffer; + } +} + +const STRING_TYPE = "string"; +const HEX_REGEX = /^[0-9a-f\s]+$/i; +const BASE64_REGEX = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/; +const BASE64URL_REGEX = /^[a-zA-Z0-9-_]+$/; +class Utf8Converter { + static fromString(text) { + const s = unescape(encodeURIComponent(text)); + const uintArray = new Uint8Array(s.length); + for (let i = 0; i < s.length; i++) { + uintArray[i] = s.charCodeAt(i); + } + return uintArray.buffer; + } + static toString(buffer) { + const buf = BufferSourceConverter.toUint8Array(buffer); + let encodedString = ""; + for (let i = 0; i < buf.length; i++) { + encodedString += String.fromCharCode(buf[i]); + } + const decodedString = decodeURIComponent(escape(encodedString)); + return decodedString; + } +} +class Utf16Converter { + static toString(buffer, littleEndian = false) { + const arrayBuffer = BufferSourceConverter.toArrayBuffer(buffer); + const dataView = new DataView(arrayBuffer); + let res = ""; + for (let i = 0; i < arrayBuffer.byteLength; i += 2) { + const code = dataView.getUint16(i, littleEndian); + res += String.fromCharCode(code); + } + return res; + } + static fromString(text, littleEndian = false) { + const res = new ArrayBuffer(text.length * 2); + const dataView = new DataView(res); + for (let i = 0; i < text.length; i++) { + dataView.setUint16(i * 2, text.charCodeAt(i), littleEndian); + } + return res; + } +} +class Convert { + static isHex(data) { + return typeof data === STRING_TYPE + && HEX_REGEX.test(data); + } + static isBase64(data) { + return typeof data === STRING_TYPE + && BASE64_REGEX.test(data); + } + static isBase64Url(data) { + return typeof data === STRING_TYPE + && BASE64URL_REGEX.test(data); + } + static ToString(buffer, enc = "utf8") { + const buf = BufferSourceConverter.toUint8Array(buffer); + switch (enc.toLowerCase()) { + case "utf8": + return this.ToUtf8String(buf); + case "binary": + return this.ToBinary(buf); + case "hex": + return this.ToHex(buf); + case "base64": + return this.ToBase64(buf); + case "base64url": + return this.ToBase64Url(buf); + case "utf16le": + return Utf16Converter.toString(buf, true); + case "utf16": + case "utf16be": + return Utf16Converter.toString(buf); + default: + throw new Error(`Unknown type of encoding '${enc}'`); + } + } + static FromString(str, enc = "utf8") { + if (!str) { + return new ArrayBuffer(0); + } + switch (enc.toLowerCase()) { + case "utf8": + return this.FromUtf8String(str); + case "binary": + return this.FromBinary(str); + case "hex": + return this.FromHex(str); + case "base64": + return this.FromBase64(str); + case "base64url": + return this.FromBase64Url(str); + case "utf16le": + return Utf16Converter.fromString(str, true); + case "utf16": + case "utf16be": + return Utf16Converter.fromString(str); + default: + throw new Error(`Unknown type of encoding '${enc}'`); + } + } + static ToBase64(buffer) { + const buf = BufferSourceConverter.toUint8Array(buffer); + if (typeof btoa !== "undefined") { + const binary = this.ToString(buf, "binary"); + return btoa(binary); + } + else { + return Buffer.from(buf).toString("base64"); + } + } + static FromBase64(base64) { + const formatted = this.formatString(base64); + if (!formatted) { + return new ArrayBuffer(0); + } + if (!Convert.isBase64(formatted)) { + throw new TypeError("Argument 'base64Text' is not Base64 encoded"); + } + if (typeof atob !== "undefined") { + return this.FromBinary(atob(formatted)); + } + else { + return new Uint8Array(Buffer.from(formatted, "base64")).buffer; + } + } + static FromBase64Url(base64url) { + const formatted = this.formatString(base64url); + if (!formatted) { + return new ArrayBuffer(0); + } + if (!Convert.isBase64Url(formatted)) { + throw new TypeError("Argument 'base64url' is not Base64Url encoded"); + } + return this.FromBase64(this.Base64Padding(formatted.replace(/\-/g, "+").replace(/\_/g, "/"))); + } + static ToBase64Url(data) { + return this.ToBase64(data).replace(/\+/g, "-").replace(/\//g, "_").replace(/\=/g, ""); + } + static FromUtf8String(text, encoding = Convert.DEFAULT_UTF8_ENCODING) { + switch (encoding) { + case "ascii": + return this.FromBinary(text); + case "utf8": + return Utf8Converter.fromString(text); + case "utf16": + case "utf16be": + return Utf16Converter.fromString(text); + case "utf16le": + case "usc2": + return Utf16Converter.fromString(text, true); + default: + throw new Error(`Unknown type of encoding '${encoding}'`); + } + } + static ToUtf8String(buffer, encoding = Convert.DEFAULT_UTF8_ENCODING) { + switch (encoding) { + case "ascii": + return this.ToBinary(buffer); + case "utf8": + return Utf8Converter.toString(buffer); + case "utf16": + case "utf16be": + return Utf16Converter.toString(buffer); + case "utf16le": + case "usc2": + return Utf16Converter.toString(buffer, true); + default: + throw new Error(`Unknown type of encoding '${encoding}'`); + } + } + static FromBinary(text) { + const stringLength = text.length; + const resultView = new Uint8Array(stringLength); + for (let i = 0; i < stringLength; i++) { + resultView[i] = text.charCodeAt(i); + } + return resultView.buffer; + } + static ToBinary(buffer) { + const buf = BufferSourceConverter.toUint8Array(buffer); + let res = ""; + for (let i = 0; i < buf.length; i++) { + res += String.fromCharCode(buf[i]); + } + return res; + } + static ToHex(buffer) { + const buf = BufferSourceConverter.toUint8Array(buffer); + let result = ""; + const len = buf.length; + for (let i = 0; i < len; i++) { + const byte = buf[i]; + if (byte < 16) { + result += "0"; + } + result += byte.toString(16); + } + return result; + } + static FromHex(hexString) { + let formatted = this.formatString(hexString); + if (!formatted) { + return new ArrayBuffer(0); + } + if (!Convert.isHex(formatted)) { + throw new TypeError("Argument 'hexString' is not HEX encoded"); + } + if (formatted.length % 2) { + formatted = `0${formatted}`; + } + const res = new Uint8Array(formatted.length / 2); + for (let i = 0; i < formatted.length; i = i + 2) { + const c = formatted.slice(i, i + 2); + res[i / 2] = parseInt(c, 16); + } + return res.buffer; + } + static ToUtf16String(buffer, littleEndian = false) { + return Utf16Converter.toString(buffer, littleEndian); + } + static FromUtf16String(text, littleEndian = false) { + return Utf16Converter.fromString(text, littleEndian); + } + static Base64Padding(base64) { + const padCount = 4 - (base64.length % 4); + if (padCount < 4) { + for (let i = 0; i < padCount; i++) { + base64 += "="; + } + } + return base64; + } + static formatString(data) { + return (data === null || data === void 0 ? void 0 : data.replace(/[\n\r\t ]/g, "")) || ""; + } +} +Convert.DEFAULT_UTF8_ENCODING = "utf8"; + +function assign(target, ...sources) { + const res = arguments[0]; + for (let i = 1; i < arguments.length; i++) { + const obj = arguments[i]; + for (const prop in obj) { + res[prop] = obj[prop]; + } + } + return res; +} +function combine(...buf) { + const totalByteLength = buf.map((item) => item.byteLength).reduce((prev, cur) => prev + cur); + const res = new Uint8Array(totalByteLength); + let currentPos = 0; + buf.map((item) => new Uint8Array(item)).forEach((arr) => { + for (const item2 of arr) { + res[currentPos++] = item2; + } + }); + return res.buffer; +} +function isEqual(bytes1, bytes2) { + if (!(bytes1 && bytes2)) { + return false; + } + if (bytes1.byteLength !== bytes2.byteLength) { + return false; + } + const b1 = new Uint8Array(bytes1); + const b2 = new Uint8Array(bytes2); + for (let i = 0; i < bytes1.byteLength; i++) { + if (b1[i] !== b2[i]) { + return false; + } + } + return true; +} + +export { BufferSourceConverter, Convert, assign, combine, isEqual }; diff --git a/node_modules/pvtsutils/build/index.js b/node_modules/pvtsutils/build/index.js new file mode 100644 index 0000000000000000000000000000000000000000..b4d99b9b8d3a7a03b92d10f9e001b8a7e745ff84 --- /dev/null +++ b/node_modules/pvtsutils/build/index.js @@ -0,0 +1,399 @@ +/*! + * MIT License + * + * Copyright (c) 2017-2024 Peculiar Ventures, LLC + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */ + +'use strict'; + +const ARRAY_BUFFER_NAME = "[object ArrayBuffer]"; +class BufferSourceConverter { + static isArrayBuffer(data) { + return Object.prototype.toString.call(data) === ARRAY_BUFFER_NAME; + } + static toArrayBuffer(data) { + if (this.isArrayBuffer(data)) { + return data; + } + if (data.byteLength === data.buffer.byteLength) { + return data.buffer; + } + if (data.byteOffset === 0 && data.byteLength === data.buffer.byteLength) { + return data.buffer; + } + return this.toUint8Array(data.buffer) + .slice(data.byteOffset, data.byteOffset + data.byteLength) + .buffer; + } + static toUint8Array(data) { + return this.toView(data, Uint8Array); + } + static toView(data, type) { + if (data.constructor === type) { + return data; + } + if (this.isArrayBuffer(data)) { + return new type(data); + } + if (this.isArrayBufferView(data)) { + return new type(data.buffer, data.byteOffset, data.byteLength); + } + throw new TypeError("The provided value is not of type '(ArrayBuffer or ArrayBufferView)'"); + } + static isBufferSource(data) { + return this.isArrayBufferView(data) + || this.isArrayBuffer(data); + } + static isArrayBufferView(data) { + return ArrayBuffer.isView(data) + || (data && this.isArrayBuffer(data.buffer)); + } + static isEqual(a, b) { + const aView = BufferSourceConverter.toUint8Array(a); + const bView = BufferSourceConverter.toUint8Array(b); + if (aView.length !== bView.byteLength) { + return false; + } + for (let i = 0; i < aView.length; i++) { + if (aView[i] !== bView[i]) { + return false; + } + } + return true; + } + static concat(...args) { + let buffers; + if (Array.isArray(args[0]) && !(args[1] instanceof Function)) { + buffers = args[0]; + } + else if (Array.isArray(args[0]) && args[1] instanceof Function) { + buffers = args[0]; + } + else { + if (args[args.length - 1] instanceof Function) { + buffers = args.slice(0, args.length - 1); + } + else { + buffers = args; + } + } + let size = 0; + for (const buffer of buffers) { + size += buffer.byteLength; + } + const res = new Uint8Array(size); + let offset = 0; + for (const buffer of buffers) { + const view = this.toUint8Array(buffer); + res.set(view, offset); + offset += view.length; + } + if (args[args.length - 1] instanceof Function) { + return this.toView(res, args[args.length - 1]); + } + return res.buffer; + } +} + +const STRING_TYPE = "string"; +const HEX_REGEX = /^[0-9a-f\s]+$/i; +const BASE64_REGEX = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/; +const BASE64URL_REGEX = /^[a-zA-Z0-9-_]+$/; +class Utf8Converter { + static fromString(text) { + const s = unescape(encodeURIComponent(text)); + const uintArray = new Uint8Array(s.length); + for (let i = 0; i < s.length; i++) { + uintArray[i] = s.charCodeAt(i); + } + return uintArray.buffer; + } + static toString(buffer) { + const buf = BufferSourceConverter.toUint8Array(buffer); + let encodedString = ""; + for (let i = 0; i < buf.length; i++) { + encodedString += String.fromCharCode(buf[i]); + } + const decodedString = decodeURIComponent(escape(encodedString)); + return decodedString; + } +} +class Utf16Converter { + static toString(buffer, littleEndian = false) { + const arrayBuffer = BufferSourceConverter.toArrayBuffer(buffer); + const dataView = new DataView(arrayBuffer); + let res = ""; + for (let i = 0; i < arrayBuffer.byteLength; i += 2) { + const code = dataView.getUint16(i, littleEndian); + res += String.fromCharCode(code); + } + return res; + } + static fromString(text, littleEndian = false) { + const res = new ArrayBuffer(text.length * 2); + const dataView = new DataView(res); + for (let i = 0; i < text.length; i++) { + dataView.setUint16(i * 2, text.charCodeAt(i), littleEndian); + } + return res; + } +} +class Convert { + static isHex(data) { + return typeof data === STRING_TYPE + && HEX_REGEX.test(data); + } + static isBase64(data) { + return typeof data === STRING_TYPE + && BASE64_REGEX.test(data); + } + static isBase64Url(data) { + return typeof data === STRING_TYPE + && BASE64URL_REGEX.test(data); + } + static ToString(buffer, enc = "utf8") { + const buf = BufferSourceConverter.toUint8Array(buffer); + switch (enc.toLowerCase()) { + case "utf8": + return this.ToUtf8String(buf); + case "binary": + return this.ToBinary(buf); + case "hex": + return this.ToHex(buf); + case "base64": + return this.ToBase64(buf); + case "base64url": + return this.ToBase64Url(buf); + case "utf16le": + return Utf16Converter.toString(buf, true); + case "utf16": + case "utf16be": + return Utf16Converter.toString(buf); + default: + throw new Error(`Unknown type of encoding '${enc}'`); + } + } + static FromString(str, enc = "utf8") { + if (!str) { + return new ArrayBuffer(0); + } + switch (enc.toLowerCase()) { + case "utf8": + return this.FromUtf8String(str); + case "binary": + return this.FromBinary(str); + case "hex": + return this.FromHex(str); + case "base64": + return this.FromBase64(str); + case "base64url": + return this.FromBase64Url(str); + case "utf16le": + return Utf16Converter.fromString(str, true); + case "utf16": + case "utf16be": + return Utf16Converter.fromString(str); + default: + throw new Error(`Unknown type of encoding '${enc}'`); + } + } + static ToBase64(buffer) { + const buf = BufferSourceConverter.toUint8Array(buffer); + if (typeof btoa !== "undefined") { + const binary = this.ToString(buf, "binary"); + return btoa(binary); + } + else { + return Buffer.from(buf).toString("base64"); + } + } + static FromBase64(base64) { + const formatted = this.formatString(base64); + if (!formatted) { + return new ArrayBuffer(0); + } + if (!Convert.isBase64(formatted)) { + throw new TypeError("Argument 'base64Text' is not Base64 encoded"); + } + if (typeof atob !== "undefined") { + return this.FromBinary(atob(formatted)); + } + else { + return new Uint8Array(Buffer.from(formatted, "base64")).buffer; + } + } + static FromBase64Url(base64url) { + const formatted = this.formatString(base64url); + if (!formatted) { + return new ArrayBuffer(0); + } + if (!Convert.isBase64Url(formatted)) { + throw new TypeError("Argument 'base64url' is not Base64Url encoded"); + } + return this.FromBase64(this.Base64Padding(formatted.replace(/\-/g, "+").replace(/\_/g, "/"))); + } + static ToBase64Url(data) { + return this.ToBase64(data).replace(/\+/g, "-").replace(/\//g, "_").replace(/\=/g, ""); + } + static FromUtf8String(text, encoding = Convert.DEFAULT_UTF8_ENCODING) { + switch (encoding) { + case "ascii": + return this.FromBinary(text); + case "utf8": + return Utf8Converter.fromString(text); + case "utf16": + case "utf16be": + return Utf16Converter.fromString(text); + case "utf16le": + case "usc2": + return Utf16Converter.fromString(text, true); + default: + throw new Error(`Unknown type of encoding '${encoding}'`); + } + } + static ToUtf8String(buffer, encoding = Convert.DEFAULT_UTF8_ENCODING) { + switch (encoding) { + case "ascii": + return this.ToBinary(buffer); + case "utf8": + return Utf8Converter.toString(buffer); + case "utf16": + case "utf16be": + return Utf16Converter.toString(buffer); + case "utf16le": + case "usc2": + return Utf16Converter.toString(buffer, true); + default: + throw new Error(`Unknown type of encoding '${encoding}'`); + } + } + static FromBinary(text) { + const stringLength = text.length; + const resultView = new Uint8Array(stringLength); + for (let i = 0; i < stringLength; i++) { + resultView[i] = text.charCodeAt(i); + } + return resultView.buffer; + } + static ToBinary(buffer) { + const buf = BufferSourceConverter.toUint8Array(buffer); + let res = ""; + for (let i = 0; i < buf.length; i++) { + res += String.fromCharCode(buf[i]); + } + return res; + } + static ToHex(buffer) { + const buf = BufferSourceConverter.toUint8Array(buffer); + let result = ""; + const len = buf.length; + for (let i = 0; i < len; i++) { + const byte = buf[i]; + if (byte < 16) { + result += "0"; + } + result += byte.toString(16); + } + return result; + } + static FromHex(hexString) { + let formatted = this.formatString(hexString); + if (!formatted) { + return new ArrayBuffer(0); + } + if (!Convert.isHex(formatted)) { + throw new TypeError("Argument 'hexString' is not HEX encoded"); + } + if (formatted.length % 2) { + formatted = `0${formatted}`; + } + const res = new Uint8Array(formatted.length / 2); + for (let i = 0; i < formatted.length; i = i + 2) { + const c = formatted.slice(i, i + 2); + res[i / 2] = parseInt(c, 16); + } + return res.buffer; + } + static ToUtf16String(buffer, littleEndian = false) { + return Utf16Converter.toString(buffer, littleEndian); + } + static FromUtf16String(text, littleEndian = false) { + return Utf16Converter.fromString(text, littleEndian); + } + static Base64Padding(base64) { + const padCount = 4 - (base64.length % 4); + if (padCount < 4) { + for (let i = 0; i < padCount; i++) { + base64 += "="; + } + } + return base64; + } + static formatString(data) { + return (data === null || data === void 0 ? void 0 : data.replace(/[\n\r\t ]/g, "")) || ""; + } +} +Convert.DEFAULT_UTF8_ENCODING = "utf8"; + +function assign(target, ...sources) { + const res = arguments[0]; + for (let i = 1; i < arguments.length; i++) { + const obj = arguments[i]; + for (const prop in obj) { + res[prop] = obj[prop]; + } + } + return res; +} +function combine(...buf) { + const totalByteLength = buf.map((item) => item.byteLength).reduce((prev, cur) => prev + cur); + const res = new Uint8Array(totalByteLength); + let currentPos = 0; + buf.map((item) => new Uint8Array(item)).forEach((arr) => { + for (const item2 of arr) { + res[currentPos++] = item2; + } + }); + return res.buffer; +} +function isEqual(bytes1, bytes2) { + if (!(bytes1 && bytes2)) { + return false; + } + if (bytes1.byteLength !== bytes2.byteLength) { + return false; + } + const b1 = new Uint8Array(bytes1); + const b2 = new Uint8Array(bytes2); + for (let i = 0; i < bytes1.byteLength; i++) { + if (b1[i] !== b2[i]) { + return false; + } + } + return true; +} + +exports.BufferSourceConverter = BufferSourceConverter; +exports.Convert = Convert; +exports.assign = assign; +exports.combine = combine; +exports.isEqual = isEqual; diff --git a/node_modules/pvtsutils/package.json b/node_modules/pvtsutils/package.json new file mode 100644 index 0000000000000000000000000000000000000000..6c55ab90ea8d05cee0008a54493d81e3c227f132 --- /dev/null +++ b/node_modules/pvtsutils/package.json @@ -0,0 +1,76 @@ +{ + "name": "pvtsutils", + "version": "1.3.6", + "description": "pvtsutils is a set of common utility functions used in various Peculiar Ventures TypeScript based projects.", + "main": "build/index.js", + "module": "build/index.es.js", + "browser": "build/index.js", + "types": "build/index.d.ts", + "files": [ + "build/**/*.{ts,js}", + "README.md", + "LICENSE" + ], + "scripts": { + "test": "mocha", + "clear": "rimraf build/*", + "rebuild": "npm run clear && npm run build", + "build": "rollup -c", + "lint": "tslint -p .", + "lint:fix": "tslint --fix -p .", + "prepub": "npm run lint && npm run rebuild", + "pub": "npm version patch && npm publish", + "postpub": "git push && git push --tags origin master", + "prepub:next": "npm run lint && npm run rebuild", + "pub:next": "npm version prerelease --preid=next && npm publish --tag next", + "postpub:next": "git push", + "coverage": "nyc npm test", + "coveralls": "nyc report --reporter=text-lcov | coveralls" + }, + "keywords": [ + "typescript", + "helper", + "util", + "convert", + "hex", + "utf8", + "utf16", + "base64", + "base64url", + "binary", + "assign" + ], + "author": "PeculiarVentures", + "contributors": [ + "Miroshin Stepan" + ], + "license": "MIT", + "repository": { + "type": "git", + "url": "git+https://github.com/PeculiarVentures/pvtsutils" + }, + "bugs": { + "url": "https://github.com/PeculiarVentures/pvtsutils/issues" + }, + "homepage": "https://github.com/PeculiarVentures/pvtsutils#readme", + "dependencies": { + "tslib": "^2.8.1" + }, + "devDependencies": { + "@types/mocha": "^10.0.10", + "@types/node": "^22.9.1", + "mocha": "^10.8.2", + "nyc": "^17.1.0", + "rimraf": "^6.0.1", + "rollup": "^4.27.3", + "rollup-plugin-dts": "^6.1.1", + "rollup-plugin-typescript2": "^0.36.0", + "ts-node": "^10.9.2", + "tslint": "^6.1.3", + "typescript": "^5.6.3" + }, + "resolutions": { + "braces": "^3.0.3", + "cross-spawn": "^7.0.6" + } +} diff --git a/node_modules/pvutils/LICENSE b/node_modules/pvutils/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..e57a35048c577f5a87fe93faf3c1ec209d172b95 --- /dev/null +++ b/node_modules/pvutils/LICENSE @@ -0,0 +1,24 @@ +MIT License + +Copyright (c) 2016-2019, Peculiar Ventures +All rights reserved. + +Author 2016-2019, Yury Strozhevsky + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/node_modules/pvutils/README.md b/node_modules/pvutils/README.md new file mode 100644 index 0000000000000000000000000000000000000000..271738ce71e642c6f75b179af3105acc5e2f0422 --- /dev/null +++ b/node_modules/pvutils/README.md @@ -0,0 +1,23 @@ +

+ pvutils +

+ +
+ +![NPM License](https://img.shields.io/npm/l/pvutils) +![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/PeculiarVentures/pvutils/test.yml?label=test) +[![npm version](https://img.shields.io/npm/v/pvutils.svg)](https://www.npmjs.com/package/pvutils) +![Coveralls](https://img.shields.io/coverallsCoverage/github/PeculiarVentures/pvutils) +[![npm downloads](https://img.shields.io/npm/dm/pvutils.svg)](https://www.npmjs.com/package/pvutils) + +
+ +`pvutils` is a set of common utility functions used in various Peculiar Ventures Javascript based projects. + +Some example capabilities included in `pvutils` include: +- Converting dates into UTC, +- Converting an "ArrayBuffer" into a hexdecimal string, +- Converting a number from 2^base to 2^10, +- Converting a number from 2^10 to 2^base, +- Concatenate two ArrayBuffers, +- And more... diff --git a/node_modules/pvutils/build/index.d.ts b/node_modules/pvutils/build/index.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..5b2624ccd5822a8e09f5e96d88311a053494bb1c --- /dev/null +++ b/node_modules/pvutils/build/index.d.ts @@ -0,0 +1,115 @@ +/*! + Copyright (c) Peculiar Ventures, LLC +*/ + +/** + * Making UTC date from local date + * @params date Date to convert from + */ +declare function getUTCDate(date: Date): Date; +/** + * Get value for input parameters, or set a default value + * @param parameters + * @param name + * @param defaultValue + */ +declare function getParametersValue(parameters: Record, name: string, defaultValue: T): T; +/** + * Converts "ArrayBuffer" into a hexadecimal string + * @param inputBuffer + * @param inputOffset + * @param inputLength + * @param insertSpace + */ +declare function bufferToHexCodes(inputBuffer: ArrayBuffer, inputOffset?: number, inputLength?: number, insertSpace?: boolean): string; +interface LocalBaseBlock { + error?: string; +} +/** + * Check input "ArrayBuffer" for common functions + * @param {LocalBaseBlock} baseBlock + * @param {ArrayBuffer} inputBuffer + * @param {number} inputOffset + * @param {number} inputLength + * @returns {boolean} + */ +declare function checkBufferParams(baseBlock: LocalBaseBlock, inputBuffer: ArrayBuffer, inputOffset: number, inputLength: number): boolean; +/** + * Convert number from 2^base to 2^10 + * @param inputBuffer + * @param inputBase + */ +declare function utilFromBase(inputBuffer: Uint8Array, inputBase: number): number; +/** + * Convert number from 2^10 to 2^base + * @param value The number to convert + * @param base The base for 2^base + * @param reserved Pre-defined number of bytes in output array (-1 = limited by function itself) + */ +declare function utilToBase(value: number, base: number, reserved?: number): ArrayBuffer; +/** + * Concatenate two ArrayBuffers + * @param buffers Set of ArrayBuffer + */ +declare function utilConcatBuf(...buffers: ArrayBuffer[]): ArrayBuffer; +/** + * Concatenate two Uint8Array + * @param views Set of Uint8Array + */ +declare function utilConcatView(...views: Uint8Array[]): Uint8Array; +interface HexBlock { + valueHex: ArrayBuffer; + warnings: string[]; +} +/** + * Decoding of "two complement" values + * The function must be called in scope of instance of "hexBlock" class ("valueHex" and "warnings" properties must be present) + */ +declare function utilDecodeTC(this: HexBlock): number; +/** + * Encode integer value to "two complement" format + * @param value Value to encode + */ +declare function utilEncodeTC(value: number): ArrayBuffer; +/** + * Compare two array buffers + * @param inputBuffer1 + * @param inputBuffer2 + */ +declare function isEqualBuffer(inputBuffer1: ArrayBuffer, inputBuffer2: ArrayBuffer): boolean; +/** + * Pad input number with leaded "0" if needed + * @param inputNumber + * @param fullLength + */ +declare function padNumber(inputNumber: number, fullLength: number): string; +/** + * Encode string into BASE64 (or "base64url") + * @param input + * @param useUrlTemplate If "true" then output would be encoded using "base64url" + * @param skipPadding Skip BASE-64 padding or not + * @param skipLeadingZeros Skip leading zeros in input data or not + */ +declare function toBase64(input: string, useUrlTemplate?: boolean, skipPadding?: boolean, skipLeadingZeros?: boolean): string; +/** + * Decode string from BASE64 (or "base64url") + * @param input + * @param useUrlTemplate If "true" then output would be encoded using "base64url" + * @param cutTailZeros If "true" then cut tailing zeros from function result + */ +declare function fromBase64(input: string, useUrlTemplate?: boolean, cutTailZeros?: boolean): string; +declare function arrayBufferToString(buffer: ArrayBuffer): string; +declare function stringToArrayBuffer(str: string): ArrayBuffer; +/** + * Get nearest to input length power of 2 + * @param length Current length of existing array + */ +declare function nearestPowerOf2(length: number): number; +/** + * Delete properties by name from specified object + * @param object Object to delete properties from + * @param propsArray Array of properties names + */ +declare function clearProps(object: Record, propsArray: string[]): void; + +export { HexBlock, LocalBaseBlock, arrayBufferToString, bufferToHexCodes, checkBufferParams, clearProps, fromBase64, getParametersValue, getUTCDate, isEqualBuffer, nearestPowerOf2, padNumber, stringToArrayBuffer, toBase64, utilConcatBuf, utilConcatView, utilDecodeTC, utilEncodeTC, utilFromBase, utilToBase }; diff --git a/node_modules/pvutils/build/utils.es.js b/node_modules/pvutils/build/utils.es.js new file mode 100644 index 0000000000000000000000000000000000000000..d04c61d8bdec20bf1b5130d5fd54d70b75b1fc18 --- /dev/null +++ b/node_modules/pvutils/build/utils.es.js @@ -0,0 +1,339 @@ +/*! + Copyright (c) Peculiar Ventures, LLC +*/ + +function getUTCDate(date) { + return new Date(date.getTime() + (date.getTimezoneOffset() * 60000)); +} +function getParametersValue(parameters, name, defaultValue) { + var _a; + if ((parameters instanceof Object) === false) { + return defaultValue; + } + return (_a = parameters[name]) !== null && _a !== void 0 ? _a : defaultValue; +} +function bufferToHexCodes(inputBuffer, inputOffset = 0, inputLength = (inputBuffer.byteLength - inputOffset), insertSpace = false) { + let result = ""; + for (const item of (new Uint8Array(inputBuffer, inputOffset, inputLength))) { + const str = item.toString(16).toUpperCase(); + if (str.length === 1) { + result += "0"; + } + result += str; + if (insertSpace) { + result += " "; + } + } + return result.trim(); +} +function checkBufferParams(baseBlock, inputBuffer, inputOffset, inputLength) { + if (!(inputBuffer instanceof ArrayBuffer)) { + baseBlock.error = "Wrong parameter: inputBuffer must be \"ArrayBuffer\""; + return false; + } + if (!inputBuffer.byteLength) { + baseBlock.error = "Wrong parameter: inputBuffer has zero length"; + return false; + } + if (inputOffset < 0) { + baseBlock.error = "Wrong parameter: inputOffset less than zero"; + return false; + } + if (inputLength < 0) { + baseBlock.error = "Wrong parameter: inputLength less than zero"; + return false; + } + if ((inputBuffer.byteLength - inputOffset - inputLength) < 0) { + baseBlock.error = "End of input reached before message was fully decoded (inconsistent offset and length values)"; + return false; + } + return true; +} +function utilFromBase(inputBuffer, inputBase) { + let result = 0; + if (inputBuffer.length === 1) { + return inputBuffer[0]; + } + for (let i = (inputBuffer.length - 1); i >= 0; i--) { + result += inputBuffer[(inputBuffer.length - 1) - i] * Math.pow(2, inputBase * i); + } + return result; +} +function utilToBase(value, base, reserved = (-1)) { + const internalReserved = reserved; + let internalValue = value; + let result = 0; + let biggest = Math.pow(2, base); + for (let i = 1; i < 8; i++) { + if (value < biggest) { + let retBuf; + if (internalReserved < 0) { + retBuf = new ArrayBuffer(i); + result = i; + } + else { + if (internalReserved < i) { + return (new ArrayBuffer(0)); + } + retBuf = new ArrayBuffer(internalReserved); + result = internalReserved; + } + const retView = new Uint8Array(retBuf); + for (let j = (i - 1); j >= 0; j--) { + const basis = Math.pow(2, j * base); + retView[result - j - 1] = Math.floor(internalValue / basis); + internalValue -= (retView[result - j - 1]) * basis; + } + return retBuf; + } + biggest *= Math.pow(2, base); + } + return new ArrayBuffer(0); +} +function utilConcatBuf(...buffers) { + let outputLength = 0; + let prevLength = 0; + for (const buffer of buffers) { + outputLength += buffer.byteLength; + } + const retBuf = new ArrayBuffer(outputLength); + const retView = new Uint8Array(retBuf); + for (const buffer of buffers) { + retView.set(new Uint8Array(buffer), prevLength); + prevLength += buffer.byteLength; + } + return retBuf; +} +function utilConcatView(...views) { + let outputLength = 0; + let prevLength = 0; + for (const view of views) { + outputLength += view.length; + } + const retBuf = new ArrayBuffer(outputLength); + const retView = new Uint8Array(retBuf); + for (const view of views) { + retView.set(view, prevLength); + prevLength += view.length; + } + return retView; +} +function utilDecodeTC() { + const buf = new Uint8Array(this.valueHex); + if (this.valueHex.byteLength >= 2) { + const condition1 = (buf[0] === 0xFF) && (buf[1] & 0x80); + const condition2 = (buf[0] === 0x00) && ((buf[1] & 0x80) === 0x00); + if (condition1 || condition2) { + this.warnings.push("Needlessly long format"); + } + } + const bigIntBuffer = new ArrayBuffer(this.valueHex.byteLength); + const bigIntView = new Uint8Array(bigIntBuffer); + for (let i = 0; i < this.valueHex.byteLength; i++) { + bigIntView[i] = 0; + } + bigIntView[0] = (buf[0] & 0x80); + const bigInt = utilFromBase(bigIntView, 8); + const smallIntBuffer = new ArrayBuffer(this.valueHex.byteLength); + const smallIntView = new Uint8Array(smallIntBuffer); + for (let j = 0; j < this.valueHex.byteLength; j++) { + smallIntView[j] = buf[j]; + } + smallIntView[0] &= 0x7F; + const smallInt = utilFromBase(smallIntView, 8); + return (smallInt - bigInt); +} +function utilEncodeTC(value) { + const modValue = (value < 0) ? (value * (-1)) : value; + let bigInt = 128; + for (let i = 1; i < 8; i++) { + if (modValue <= bigInt) { + if (value < 0) { + const smallInt = bigInt - modValue; + const retBuf = utilToBase(smallInt, 8, i); + const retView = new Uint8Array(retBuf); + retView[0] |= 0x80; + return retBuf; + } + let retBuf = utilToBase(modValue, 8, i); + let retView = new Uint8Array(retBuf); + if (retView[0] & 0x80) { + const tempBuf = retBuf.slice(0); + const tempView = new Uint8Array(tempBuf); + retBuf = new ArrayBuffer(retBuf.byteLength + 1); + retView = new Uint8Array(retBuf); + for (let k = 0; k < tempBuf.byteLength; k++) { + retView[k + 1] = tempView[k]; + } + retView[0] = 0x00; + } + return retBuf; + } + bigInt *= Math.pow(2, 8); + } + return (new ArrayBuffer(0)); +} +function isEqualBuffer(inputBuffer1, inputBuffer2) { + if (inputBuffer1.byteLength !== inputBuffer2.byteLength) { + return false; + } + const view1 = new Uint8Array(inputBuffer1); + const view2 = new Uint8Array(inputBuffer2); + for (let i = 0; i < view1.length; i++) { + if (view1[i] !== view2[i]) { + return false; + } + } + return true; +} +function padNumber(inputNumber, fullLength) { + const str = inputNumber.toString(10); + if (fullLength < str.length) { + return ""; + } + const dif = fullLength - str.length; + const padding = new Array(dif); + for (let i = 0; i < dif; i++) { + padding[i] = "0"; + } + const paddingString = padding.join(""); + return paddingString.concat(str); +} +const base64Template = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; +const base64UrlTemplate = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="; +function toBase64(input, useUrlTemplate = false, skipPadding = false, skipLeadingZeros = false) { + let i = 0; + let flag1 = 0; + let flag2 = 0; + let output = ""; + const template = (useUrlTemplate) ? base64UrlTemplate : base64Template; + if (skipLeadingZeros) { + let nonZeroPosition = 0; + for (let i = 0; i < input.length; i++) { + if (input.charCodeAt(i) !== 0) { + nonZeroPosition = i; + break; + } + } + input = input.slice(nonZeroPosition); + } + while (i < input.length) { + const chr1 = input.charCodeAt(i++); + if (i >= input.length) { + flag1 = 1; + } + const chr2 = input.charCodeAt(i++); + if (i >= input.length) { + flag2 = 1; + } + const chr3 = input.charCodeAt(i++); + const enc1 = chr1 >> 2; + const enc2 = ((chr1 & 0x03) << 4) | (chr2 >> 4); + let enc3 = ((chr2 & 0x0F) << 2) | (chr3 >> 6); + let enc4 = chr3 & 0x3F; + if (flag1 === 1) { + enc3 = enc4 = 64; + } + else { + if (flag2 === 1) { + enc4 = 64; + } + } + if (skipPadding) { + if (enc3 === 64) { + output += `${template.charAt(enc1)}${template.charAt(enc2)}`; + } + else { + if (enc4 === 64) { + output += `${template.charAt(enc1)}${template.charAt(enc2)}${template.charAt(enc3)}`; + } + else { + output += `${template.charAt(enc1)}${template.charAt(enc2)}${template.charAt(enc3)}${template.charAt(enc4)}`; + } + } + } + else { + output += `${template.charAt(enc1)}${template.charAt(enc2)}${template.charAt(enc3)}${template.charAt(enc4)}`; + } + } + return output; +} +function fromBase64(input, useUrlTemplate = false, cutTailZeros = false) { + const template = (useUrlTemplate) ? base64UrlTemplate : base64Template; + function indexOf(toSearch) { + for (let i = 0; i < 64; i++) { + if (template.charAt(i) === toSearch) + return i; + } + return 64; + } + function test(incoming) { + return ((incoming === 64) ? 0x00 : incoming); + } + let i = 0; + let output = ""; + while (i < input.length) { + const enc1 = indexOf(input.charAt(i++)); + const enc2 = (i >= input.length) ? 0x00 : indexOf(input.charAt(i++)); + const enc3 = (i >= input.length) ? 0x00 : indexOf(input.charAt(i++)); + const enc4 = (i >= input.length) ? 0x00 : indexOf(input.charAt(i++)); + const chr1 = (test(enc1) << 2) | (test(enc2) >> 4); + const chr2 = ((test(enc2) & 0x0F) << 4) | (test(enc3) >> 2); + const chr3 = ((test(enc3) & 0x03) << 6) | test(enc4); + output += String.fromCharCode(chr1); + if (enc3 !== 64) { + output += String.fromCharCode(chr2); + } + if (enc4 !== 64) { + output += String.fromCharCode(chr3); + } + } + if (cutTailZeros) { + const outputLength = output.length; + let nonZeroStart = (-1); + for (let i = (outputLength - 1); i >= 0; i--) { + if (output.charCodeAt(i) !== 0) { + nonZeroStart = i; + break; + } + } + if (nonZeroStart !== (-1)) { + output = output.slice(0, nonZeroStart + 1); + } + else { + output = ""; + } + } + return output; +} +function arrayBufferToString(buffer) { + let resultString = ""; + const view = new Uint8Array(buffer); + for (const element of view) { + resultString += String.fromCharCode(element); + } + return resultString; +} +function stringToArrayBuffer(str) { + const stringLength = str.length; + const resultBuffer = new ArrayBuffer(stringLength); + const resultView = new Uint8Array(resultBuffer); + for (let i = 0; i < stringLength; i++) { + resultView[i] = str.charCodeAt(i); + } + return resultBuffer; +} +const log2 = Math.log(2); +function nearestPowerOf2(length) { + const base = (Math.log(length) / log2); + const floor = Math.floor(base); + const round = Math.round(base); + return ((floor === round) ? floor : round); +} +function clearProps(object, propsArray) { + for (const prop of propsArray) { + delete object[prop]; + } +} + +export { arrayBufferToString, bufferToHexCodes, checkBufferParams, clearProps, fromBase64, getParametersValue, getUTCDate, isEqualBuffer, nearestPowerOf2, padNumber, stringToArrayBuffer, toBase64, utilConcatBuf, utilConcatView, utilDecodeTC, utilEncodeTC, utilFromBase, utilToBase }; diff --git a/node_modules/pvutils/build/utils.js b/node_modules/pvutils/build/utils.js new file mode 100644 index 0000000000000000000000000000000000000000..4dbce7438f094a4a5f530429be50b699f7bbd3ea --- /dev/null +++ b/node_modules/pvutils/build/utils.js @@ -0,0 +1,360 @@ +/*! + Copyright (c) Peculiar Ventures, LLC +*/ + +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +function getUTCDate(date) { + return new Date(date.getTime() + (date.getTimezoneOffset() * 60000)); +} +function getParametersValue(parameters, name, defaultValue) { + var _a; + if ((parameters instanceof Object) === false) { + return defaultValue; + } + return (_a = parameters[name]) !== null && _a !== void 0 ? _a : defaultValue; +} +function bufferToHexCodes(inputBuffer, inputOffset = 0, inputLength = (inputBuffer.byteLength - inputOffset), insertSpace = false) { + let result = ""; + for (const item of (new Uint8Array(inputBuffer, inputOffset, inputLength))) { + const str = item.toString(16).toUpperCase(); + if (str.length === 1) { + result += "0"; + } + result += str; + if (insertSpace) { + result += " "; + } + } + return result.trim(); +} +function checkBufferParams(baseBlock, inputBuffer, inputOffset, inputLength) { + if (!(inputBuffer instanceof ArrayBuffer)) { + baseBlock.error = "Wrong parameter: inputBuffer must be \"ArrayBuffer\""; + return false; + } + if (!inputBuffer.byteLength) { + baseBlock.error = "Wrong parameter: inputBuffer has zero length"; + return false; + } + if (inputOffset < 0) { + baseBlock.error = "Wrong parameter: inputOffset less than zero"; + return false; + } + if (inputLength < 0) { + baseBlock.error = "Wrong parameter: inputLength less than zero"; + return false; + } + if ((inputBuffer.byteLength - inputOffset - inputLength) < 0) { + baseBlock.error = "End of input reached before message was fully decoded (inconsistent offset and length values)"; + return false; + } + return true; +} +function utilFromBase(inputBuffer, inputBase) { + let result = 0; + if (inputBuffer.length === 1) { + return inputBuffer[0]; + } + for (let i = (inputBuffer.length - 1); i >= 0; i--) { + result += inputBuffer[(inputBuffer.length - 1) - i] * Math.pow(2, inputBase * i); + } + return result; +} +function utilToBase(value, base, reserved = (-1)) { + const internalReserved = reserved; + let internalValue = value; + let result = 0; + let biggest = Math.pow(2, base); + for (let i = 1; i < 8; i++) { + if (value < biggest) { + let retBuf; + if (internalReserved < 0) { + retBuf = new ArrayBuffer(i); + result = i; + } + else { + if (internalReserved < i) { + return (new ArrayBuffer(0)); + } + retBuf = new ArrayBuffer(internalReserved); + result = internalReserved; + } + const retView = new Uint8Array(retBuf); + for (let j = (i - 1); j >= 0; j--) { + const basis = Math.pow(2, j * base); + retView[result - j - 1] = Math.floor(internalValue / basis); + internalValue -= (retView[result - j - 1]) * basis; + } + return retBuf; + } + biggest *= Math.pow(2, base); + } + return new ArrayBuffer(0); +} +function utilConcatBuf(...buffers) { + let outputLength = 0; + let prevLength = 0; + for (const buffer of buffers) { + outputLength += buffer.byteLength; + } + const retBuf = new ArrayBuffer(outputLength); + const retView = new Uint8Array(retBuf); + for (const buffer of buffers) { + retView.set(new Uint8Array(buffer), prevLength); + prevLength += buffer.byteLength; + } + return retBuf; +} +function utilConcatView(...views) { + let outputLength = 0; + let prevLength = 0; + for (const view of views) { + outputLength += view.length; + } + const retBuf = new ArrayBuffer(outputLength); + const retView = new Uint8Array(retBuf); + for (const view of views) { + retView.set(view, prevLength); + prevLength += view.length; + } + return retView; +} +function utilDecodeTC() { + const buf = new Uint8Array(this.valueHex); + if (this.valueHex.byteLength >= 2) { + const condition1 = (buf[0] === 0xFF) && (buf[1] & 0x80); + const condition2 = (buf[0] === 0x00) && ((buf[1] & 0x80) === 0x00); + if (condition1 || condition2) { + this.warnings.push("Needlessly long format"); + } + } + const bigIntBuffer = new ArrayBuffer(this.valueHex.byteLength); + const bigIntView = new Uint8Array(bigIntBuffer); + for (let i = 0; i < this.valueHex.byteLength; i++) { + bigIntView[i] = 0; + } + bigIntView[0] = (buf[0] & 0x80); + const bigInt = utilFromBase(bigIntView, 8); + const smallIntBuffer = new ArrayBuffer(this.valueHex.byteLength); + const smallIntView = new Uint8Array(smallIntBuffer); + for (let j = 0; j < this.valueHex.byteLength; j++) { + smallIntView[j] = buf[j]; + } + smallIntView[0] &= 0x7F; + const smallInt = utilFromBase(smallIntView, 8); + return (smallInt - bigInt); +} +function utilEncodeTC(value) { + const modValue = (value < 0) ? (value * (-1)) : value; + let bigInt = 128; + for (let i = 1; i < 8; i++) { + if (modValue <= bigInt) { + if (value < 0) { + const smallInt = bigInt - modValue; + const retBuf = utilToBase(smallInt, 8, i); + const retView = new Uint8Array(retBuf); + retView[0] |= 0x80; + return retBuf; + } + let retBuf = utilToBase(modValue, 8, i); + let retView = new Uint8Array(retBuf); + if (retView[0] & 0x80) { + const tempBuf = retBuf.slice(0); + const tempView = new Uint8Array(tempBuf); + retBuf = new ArrayBuffer(retBuf.byteLength + 1); + retView = new Uint8Array(retBuf); + for (let k = 0; k < tempBuf.byteLength; k++) { + retView[k + 1] = tempView[k]; + } + retView[0] = 0x00; + } + return retBuf; + } + bigInt *= Math.pow(2, 8); + } + return (new ArrayBuffer(0)); +} +function isEqualBuffer(inputBuffer1, inputBuffer2) { + if (inputBuffer1.byteLength !== inputBuffer2.byteLength) { + return false; + } + const view1 = new Uint8Array(inputBuffer1); + const view2 = new Uint8Array(inputBuffer2); + for (let i = 0; i < view1.length; i++) { + if (view1[i] !== view2[i]) { + return false; + } + } + return true; +} +function padNumber(inputNumber, fullLength) { + const str = inputNumber.toString(10); + if (fullLength < str.length) { + return ""; + } + const dif = fullLength - str.length; + const padding = new Array(dif); + for (let i = 0; i < dif; i++) { + padding[i] = "0"; + } + const paddingString = padding.join(""); + return paddingString.concat(str); +} +const base64Template = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; +const base64UrlTemplate = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="; +function toBase64(input, useUrlTemplate = false, skipPadding = false, skipLeadingZeros = false) { + let i = 0; + let flag1 = 0; + let flag2 = 0; + let output = ""; + const template = (useUrlTemplate) ? base64UrlTemplate : base64Template; + if (skipLeadingZeros) { + let nonZeroPosition = 0; + for (let i = 0; i < input.length; i++) { + if (input.charCodeAt(i) !== 0) { + nonZeroPosition = i; + break; + } + } + input = input.slice(nonZeroPosition); + } + while (i < input.length) { + const chr1 = input.charCodeAt(i++); + if (i >= input.length) { + flag1 = 1; + } + const chr2 = input.charCodeAt(i++); + if (i >= input.length) { + flag2 = 1; + } + const chr3 = input.charCodeAt(i++); + const enc1 = chr1 >> 2; + const enc2 = ((chr1 & 0x03) << 4) | (chr2 >> 4); + let enc3 = ((chr2 & 0x0F) << 2) | (chr3 >> 6); + let enc4 = chr3 & 0x3F; + if (flag1 === 1) { + enc3 = enc4 = 64; + } + else { + if (flag2 === 1) { + enc4 = 64; + } + } + if (skipPadding) { + if (enc3 === 64) { + output += `${template.charAt(enc1)}${template.charAt(enc2)}`; + } + else { + if (enc4 === 64) { + output += `${template.charAt(enc1)}${template.charAt(enc2)}${template.charAt(enc3)}`; + } + else { + output += `${template.charAt(enc1)}${template.charAt(enc2)}${template.charAt(enc3)}${template.charAt(enc4)}`; + } + } + } + else { + output += `${template.charAt(enc1)}${template.charAt(enc2)}${template.charAt(enc3)}${template.charAt(enc4)}`; + } + } + return output; +} +function fromBase64(input, useUrlTemplate = false, cutTailZeros = false) { + const template = (useUrlTemplate) ? base64UrlTemplate : base64Template; + function indexOf(toSearch) { + for (let i = 0; i < 64; i++) { + if (template.charAt(i) === toSearch) + return i; + } + return 64; + } + function test(incoming) { + return ((incoming === 64) ? 0x00 : incoming); + } + let i = 0; + let output = ""; + while (i < input.length) { + const enc1 = indexOf(input.charAt(i++)); + const enc2 = (i >= input.length) ? 0x00 : indexOf(input.charAt(i++)); + const enc3 = (i >= input.length) ? 0x00 : indexOf(input.charAt(i++)); + const enc4 = (i >= input.length) ? 0x00 : indexOf(input.charAt(i++)); + const chr1 = (test(enc1) << 2) | (test(enc2) >> 4); + const chr2 = ((test(enc2) & 0x0F) << 4) | (test(enc3) >> 2); + const chr3 = ((test(enc3) & 0x03) << 6) | test(enc4); + output += String.fromCharCode(chr1); + if (enc3 !== 64) { + output += String.fromCharCode(chr2); + } + if (enc4 !== 64) { + output += String.fromCharCode(chr3); + } + } + if (cutTailZeros) { + const outputLength = output.length; + let nonZeroStart = (-1); + for (let i = (outputLength - 1); i >= 0; i--) { + if (output.charCodeAt(i) !== 0) { + nonZeroStart = i; + break; + } + } + if (nonZeroStart !== (-1)) { + output = output.slice(0, nonZeroStart + 1); + } + else { + output = ""; + } + } + return output; +} +function arrayBufferToString(buffer) { + let resultString = ""; + const view = new Uint8Array(buffer); + for (const element of view) { + resultString += String.fromCharCode(element); + } + return resultString; +} +function stringToArrayBuffer(str) { + const stringLength = str.length; + const resultBuffer = new ArrayBuffer(stringLength); + const resultView = new Uint8Array(resultBuffer); + for (let i = 0; i < stringLength; i++) { + resultView[i] = str.charCodeAt(i); + } + return resultBuffer; +} +const log2 = Math.log(2); +function nearestPowerOf2(length) { + const base = (Math.log(length) / log2); + const floor = Math.floor(base); + const round = Math.round(base); + return ((floor === round) ? floor : round); +} +function clearProps(object, propsArray) { + for (const prop of propsArray) { + delete object[prop]; + } +} + +exports.arrayBufferToString = arrayBufferToString; +exports.bufferToHexCodes = bufferToHexCodes; +exports.checkBufferParams = checkBufferParams; +exports.clearProps = clearProps; +exports.fromBase64 = fromBase64; +exports.getParametersValue = getParametersValue; +exports.getUTCDate = getUTCDate; +exports.isEqualBuffer = isEqualBuffer; +exports.nearestPowerOf2 = nearestPowerOf2; +exports.padNumber = padNumber; +exports.stringToArrayBuffer = stringToArrayBuffer; +exports.toBase64 = toBase64; +exports.utilConcatBuf = utilConcatBuf; +exports.utilConcatView = utilConcatView; +exports.utilDecodeTC = utilDecodeTC; +exports.utilEncodeTC = utilEncodeTC; +exports.utilFromBase = utilFromBase; +exports.utilToBase = utilToBase; diff --git a/node_modules/pvutils/package.json b/node_modules/pvutils/package.json new file mode 100644 index 0000000000000000000000000000000000000000..79e0f95e9f0731ed043ffcbbc35d41a94a7f2112 --- /dev/null +++ b/node_modules/pvutils/package.json @@ -0,0 +1,68 @@ +{ + "author": { + "email": "yury@strozhevsky.com", + "name": "Yury Strozhevsky" + }, + "contributors": [ + { + "email": "rmh@unmitigatedrisk.com", + "name": "Ryan Hurst" + }, + { + "email": "microshine@mail.ru", + "name": "Miroshin Stepan" + } + ], + "repository": { + "type": "git", + "url": "https://github.com/PeculiarVentures/pvutils.git" + }, + "description": "Common utilities for products from Peculiar Ventures", + "scripts": { + "prepare": "npm run build", + "test": "mocha", + "lint": "eslint . --ext .ts", + "lint:fix": "eslint --fix . --ext .ts", + "build": "rollup -c", + "coverage": "nyc npm test", + "coveralls": "nyc report --reporter=text-lcov | coveralls", + "release": "standard-version" + }, + "files": [ + "build", + "README.md", + "LICENSE" + ], + "module": "./build/utils.es.js", + "main": "./build/utils.js", + "types": "./build/index.d.ts", + "devDependencies": { + "@types/mocha": "^10.0.10", + "@types/node": "^17.0.19", + "@typescript-eslint/eslint-plugin": "^5.12.1", + "@typescript-eslint/parser": "^5.12.1", + "eslint": "^8.9.0", + "eslint-plugin-import": "^2.25.4", + "mocha": "^11.7.4", + "nyc": "^15.1.0", + "rollup": "2.79.2", + "rollup-plugin-dts": "^4.1.0", + "rollup-plugin-typescript2": "^0.31.2", + "standard-version": "^9.5.0", + "ts-node": "^10.5.0", + "typescript": "^4.5.5" + }, + "name": "pvutils", + "version": "1.1.5", + "license": "MIT", + "engines": { + "node": ">=16.0.0" + }, + "devEngines": { + "packageManager": { + "name": "npm", + "version": ">=10", + "onFail": "error" + } + } +} diff --git a/node_modules/qrcode/README.md b/node_modules/qrcode/README.md new file mode 100644 index 0000000000000000000000000000000000000000..510e6b9f7f16e4f1503d2364e4c178af90e64dc2 --- /dev/null +++ b/node_modules/qrcode/README.md @@ -0,0 +1,770 @@ +# node-qrcode +> QR code/2d barcode generator. + +[![Travis](https://img.shields.io/travis/soldair/node-qrcode.svg?style=flat-square)](http://travis-ci.org/soldair/node-qrcode) +[![npm](https://img.shields.io/npm/v/qrcode.svg?style=flat-square)](https://www.npmjs.com/package/qrcode) +[![npm](https://img.shields.io/npm/dt/qrcode.svg?style=flat-square)](https://www.npmjs.com/package/qrcode) +[![npm](https://img.shields.io/npm/l/qrcode.svg?style=flat-square)](https://github.com/soldair/node-qrcode/blob/master/license) + +- [Highlights](#highlights) +- [Installation](#installation) +- [Usage](#usage) +- [Error correction level](#error-correction-level) +- [QR Code capacity](#qr-code-capacity) +- [Encoding Modes](#encoding-modes) +- [Binary data](#binary-data) +- [Multibyte characters](#multibyte-characters) +- [API](#api) +- [GS1 QR Codes](#gs1-qr-codes) +- [Credits](#credits) +- [License](#license) + +## Highlights +- Works on server and client (and react native with svg) +- CLI utility +- Save QR code as image +- Support for Numeric, Alphanumeric, Kanji and Byte mode +- Support for mixed modes +- Support for chinese, cyrillic, greek and japanese characters +- Support for multibyte characters (like emojis :smile:) +- Auto generates optimized segments for best data compression and smallest QR Code size +- App agnostic readability, QR Codes by definition are app agnostic + +## Installation +Inside your project folder do: + +```shell +npm install --save qrcode +``` + +or, install it globally to use `qrcode` from the command line to save qrcode images or generate ones you can view in your terminal. + +```shell +npm install -g qrcode +``` + +## Usage +### CLI + +``` +Usage: qrcode [options] + +QR Code options: + -v, --qversion QR Code symbol version (1 - 40) [number] + -e, --error Error correction level [choices: "L", "M", "Q", "H"] + -m, --mask Mask pattern (0 - 7) [number] + +Renderer options: + -t, --type Output type [choices: "png", "svg", "utf8"] + -w, --width Image width (px) [number] + -s, --scale Scale factor [number] + -q, --qzone Quiet zone size [number] + -l, --lightcolor Light RGBA hex color + -d, --darkcolor Dark RGBA hex color + --small Output smaller QR code to terminal [boolean] + +Options: + -o, --output Output file + -h, --help Show help [boolean] + --version Show version number [boolean] + +Examples: + qrcode "some text" Draw in terminal window + qrcode -o out.png "some text" Save as png image + qrcode -d F00 -o out.png "some text" Use red as foreground color +``` +If not specified, output type is guessed from file extension.
+Recognized extensions are `png`, `svg` and `txt`. + +### Browser +`node-qrcode` can be used in browser through module bundlers like [Browserify](https://github.com/substack/node-browserify) and [Webpack](https://github.com/webpack/webpack) or by including the precompiled bundle present in `build/` folder. + +#### Module bundlers +```html + + + + + + + +``` + +```javascript +// index.js -> bundle.js +var QRCode = require('qrcode') +var canvas = document.getElementById('canvas') + +QRCode.toCanvas(canvas, 'sample text', function (error) { + if (error) console.error(error) + console.log('success!'); +}) +``` + +#### Precompiled bundle +```html + + + + +``` + +If you install through `npm`, precompiled files will be available in `node_modules/qrcode/build/` folder. + +The precompiled bundle have support for [Internet Explorer 10+, Safari 5.1+, and all evergreen browsers](https://browserl.ist/?q=defaults%2C+IE+%3E%3D+10%2C+Safari+%3E%3D+5.1). + +### NodeJS +Require the module `qrcode` + +```javascript +var QRCode = require('qrcode') + +QRCode.toDataURL('I am a pony!', function (err, url) { + console.log(url) +}) +``` + +render a qrcode for the terminal +```js +var QRCode = require('qrcode') + +QRCode.toString('I am a pony!',{type:'terminal'}, function (err, url) { + console.log(url) +}) +``` + +### ES6/ES7 +Promises and Async/Await can be used in place of callback function. + +```javascript +import QRCode from 'qrcode' + +// With promises +QRCode.toDataURL('I am a pony!') + .then(url => { + console.log(url) + }) + .catch(err => { + console.error(err) + }) + +// With async/await +const generateQR = async text => { + try { + console.log(await QRCode.toDataURL(text)) + } catch (err) { + console.error(err) + } +} +``` + +## Error correction level +Error correction capability allows to successfully scan a QR Code even if the symbol is dirty or damaged. +Four levels are available to choose according to the operating environment. + +Higher levels offer a better error resistance but reduce the symbol's capacity.
+If the chances that the QR Code symbol may be corrupted are low (for example if it is showed through a monitor) +is possible to safely use a low error level such as `Low` or `Medium`. + +Possible levels are shown below: + +| Level | Error resistance | +|------------------|:----------------:| +| **L** (Low) | **~7%** | +| **M** (Medium) | **~15%** | +| **Q** (Quartile) | **~25%** | +| **H** (High) | **~30%** | + +The percentage indicates the maximum amount of damaged surface after which the symbol becomes unreadable. + +Error level can be set through `options.errorCorrectionLevel` property.
+If not specified, the default value is `M`. + +```javascript +QRCode.toDataURL('some text', { errorCorrectionLevel: 'H' }, function (err, url) { + console.log(url) +}) +``` + +## QR Code capacity +Capacity depends on symbol version and error correction level. Also encoding modes may influence the amount of storable data. + +The QR Code versions range from version **1** to version **40**.
+Each version has a different number of modules (black and white dots), which define the symbol's size. +For version 1 they are `21x21`, for version 2 `25x25` e so on. +Higher is the version, more are the storable data, and of course bigger will be the QR Code symbol. + +The table below shows the maximum number of storable characters in each encoding mode and for each error correction level. + +| Mode | L | M | Q | H | +|--------------|------|------|------|------| +| Numeric | 7089 | 5596 | 3993 | 3057 | +| Alphanumeric | 4296 | 3391 | 2420 | 1852 | +| Byte | 2953 | 2331 | 1663 | 1273 | +| Kanji | 1817 | 1435 | 1024 | 784 | + +**Note:** Maximum characters number can be different when using [Mixed modes](#mixed-modes). + +QR Code version can be set through `options.version` property.
+If no version is specified, the more suitable value will be used. Unless a specific version is required, this option is not needed. + +```javascript +QRCode.toDataURL('some text', { version: 2 }, function (err, url) { + console.log(url) +}) +``` + +## Encoding modes +Modes can be used to encode a string in a more efficient way.
+A mode may be more suitable than others depending on the string content. +A list of supported modes are shown in the table below: + +| Mode | Characters | Compression | +|--------------|-----------------------------------------------------------|-------------------------------------------| +| Numeric | 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 | 3 characters are represented by 10 bits | +| Alphanumeric | 0–9, A–Z (upper-case only), space, $, %, *, +, -, ., /, : | 2 characters are represented by 11 bits | +| Kanji | Characters from the Shift JIS system based on JIS X 0208 | 2 kanji are represented by 13 bits | +| Byte | Characters from the ISO/IEC 8859-1 character set | Each characters are represented by 8 bits | + +Choose the right mode may be tricky if the input text is unknown.
+In these cases **Byte** mode is the best choice since all characters can be encoded with it. (See [Multibyte characters](#multibyte-characters))
+However, if the QR Code reader supports mixed modes, using [Auto mode](#auto-mode) may produce better results. + +### Mixed modes +Mixed modes are also possible. A QR code can be generated from a series of segments having different encoding modes to optimize the data compression.
+However, switching from a mode to another has a cost which may lead to a worst result if it's not taken into account. +See [Manual mode](#manual-mode) for an example of how to specify segments with different encoding modes. + +### Auto mode +By **default**, automatic mode selection is used.
+The input string is automatically splitted in various segments optimized to produce the shortest possible bitstream using mixed modes.
+This is the preferred way to generate the QR Code. + +For example, the string **ABCDE12345678?A1A** will be splitted in 3 segments with the following modes: + +| Segment | Mode | +|----------|--------------| +| ABCDE | Alphanumeric | +| 12345678 | Numeric | +| ?A1A | Byte | + +Any other combinations of segments and modes will result in a longer bitstream.
+If you need to keep the QR Code size small, this mode will produce the best results. + +### Manual mode +If auto mode doesn't work for you or you have specific needs, is also possible to manually specify each segment with the relative mode. +In this way no segment optimizations will be applied under the hood.
+Segments list can be passed as an array of object: + +```javascript + var QRCode = require('qrcode') + + var segs = [ + { data: 'ABCDEFG', mode: 'alphanumeric' }, + { data: '0123456', mode: 'numeric' } + ] + + QRCode.toDataURL(segs, function (err, url) { + console.log(url) + }) +``` + +### Kanji mode +With kanji mode is possible to encode characters from the Shift JIS system in an optimized way.
+Unfortunately, there isn't a way to calculate a Shifted JIS values from, for example, a character encoded in UTF-8, for this reason a conversion table from the input characters to the SJIS values is needed.
+This table is not included by default in the bundle to keep the size as small as possible. + +If your application requires kanji support, you will need to pass a function that will take care of converting the input characters to appropriate values. + +An helper method is provided by the lib through an optional file that you can include as shown in the example below. + +**Note:** Support for Kanji mode is only needed if you want to benefit of the data compression, otherwise is still possible to encode kanji using Byte mode (See [Multibyte characters](#multibyte-characters)). + +```javascript + var QRCode = require('qrcode') + var toSJIS = require('qrcode/helper/to-sjis') + + QRCode.toDataURL(kanjiString, { toSJISFunc: toSJIS }, function (err, url) { + console.log(url) + }) +``` + +With precompiled bundle: + +```html + + + + + +``` + +## Binary data +QR Codes can hold arbitrary byte-based binary data. If you attempt to create a binary QR Code by first converting the data to a JavaScript string, it will fail to encode propery because string encoding adds additional bytes. Instead, you must pass a [`Uint8ClampedArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray) or compatible array, or a Node [Buffer](https://nodejs.org/api/buffer.html), as follows: + +```javascript +// Regular array example +// WARNING: Element values will be clamped to 0-255 even if your data contains higher values. +const QRCode = require('qrcode') +QRCode.toFile( + 'foo.png', + [{ data: [253,254,255], mode: 'byte' }], + ...options..., + ...callback... +) +``` + +```javascript +// Uint8ClampedArray example +const QRCode = require('qrcode') + +QRCode.toFile( + 'foo.png', + [{ data: new Uint8ClampedArray([253,254,255]), mode: 'byte' }], + ...options..., + ...callback... +) +``` + +```javascript +// Node Buffer example +// WARNING: Element values will be clamped to 0-255 even if your data contains higher values. +const QRCode = require('qrcode') + +QRCode.toFile( + 'foo.png', + [{ data: Buffer.from([253,254,255]), mode: 'byte' }], + ...options..., + ...callback... +) +``` + +TypeScript users: if you are using [@types/qrcode](https://www.npmjs.com/package/@types/qrcode), you will need to add a `// @ts-ignore` above the data segment because it expects `data: string`. + +## Multibyte characters +Support for multibyte characters isn't present in the initial QR Code standard, but is possible to encode UTF-8 characters in Byte mode. + +QR Codes provide a way to specify a different type of character set through ECI (Extended Channel Interpretation), but it's not fully implemented in this lib yet. + +Most QR Code readers, however, are able to recognize multibyte characters even without ECI. + +Note that a single Kanji/Kana or Emoji can take up to 4 bytes. + +## API +Browser: +- [create()](#createtext-options) +- [toCanvas()](#tocanvascanvaselement-text-options-cberror) +- [toDataURL()](#todataurltext-options-cberror-url) +- [toString()](#tostringtext-options-cberror-string) + +Server: +- [create()](#createtext-options) +- [toCanvas()](#tocanvascanvas-text-options-cberror) +- [toDataURL()](#todataurltext-options-cberror-url-1) +- [toString()](#tostringtext-options-cberror-string-1) +- [toFile()](#tofilepath-text-options-cberror) +- [toFileStream()](#tofilestreamstream-text-options) + +### Browser API +#### `create(text, [options])` +Creates QR Code symbol and returns a qrcode object. + +##### `text` +Type: `String|Array` + +Text to encode or a list of objects describing segments. + +##### `options` +See [QR Code options](#qr-code-options). + +##### `returns` +Type: `Object` + +```javascript +// QRCode object +{ + modules, // Bitmatrix class with modules data + version, // Calculated QR Code version + errorCorrectionLevel, // Error Correction Level + maskPattern, // Calculated Mask pattern + segments // Generated segments +} +``` + +
+ +#### `toCanvas(canvasElement, text, [options], [cb(error)])` +#### `toCanvas(text, [options], [cb(error, canvas)])` +Draws qr code symbol to canvas.
+If `canvasElement` is omitted a new canvas is returned. + +##### `canvasElement` +Type: `DOMElement` + +Canvas where to draw QR Code. + +##### `text` +Type: `String|Array` + +Text to encode or a list of objects describing segments. + +##### `options` +See [Options](#options). + +##### `cb` +Type: `Function` + +Callback function called on finish. + +##### Example +```javascript +QRCode.toCanvas('text', { errorCorrectionLevel: 'H' }, function (err, canvas) { + if (err) throw err + + var container = document.getElementById('container') + container.appendChild(canvas) +}) +``` + +
+ +#### `toDataURL(text, [options], [cb(error, url)])` +#### `toDataURL(canvasElement, text, [options], [cb(error, url)])` +Returns a Data URI containing a representation of the QR Code image.
+If provided, `canvasElement` will be used as canvas to generate the data URI. + +##### `canvasElement` +Type: `DOMElement` + +Canvas where to draw QR Code. + +##### `text` +Type: `String|Array` + +Text to encode or a list of objects describing segments. + +##### `options` +- ###### `type` + Type: `String`
+ Default: `image/png` + + Data URI format.
+ Possible values are: `image/png`, `image/jpeg`, `image/webp`.
+ +- ###### `rendererOpts.quality` + Type: `Number`
+ Default: `0.92` + + A Number between `0` and `1` indicating image quality if the requested type is `image/jpeg` or `image/webp`. + +See [Options](#options) for other settings. + +##### `cb` +Type: `Function` + +Callback function called on finish. + +##### Example +```javascript +var opts = { + errorCorrectionLevel: 'H', + type: 'image/jpeg', + quality: 0.3, + margin: 1, + color: { + dark:"#010599FF", + light:"#FFBF60FF" + } +} + +QRCode.toDataURL('text', opts, function (err, url) { + if (err) throw err + + var img = document.getElementById('image') + img.src = url +}) +``` +
+ +#### `toString(text, [options], [cb(error, string)])` + +Returns a string representation of the QR Code.
+ + +##### `text` +Type: `String|Array` + +Text to encode or a list of objects describing segments. + +##### `options` +- ###### `type` + Type: `String`
+ Default: `utf8` + + Output format.
+ Possible values are: `terminal`,`utf8`, and `svg`. + +See [Options](#options) for other settings. + +##### `cb` +Type: `Function` + +Callback function called on finish. + +##### Example +```javascript +QRCode.toString('http://www.google.com', function (err, string) { + if (err) throw err + console.log(string) +}) +``` + +
+ + +### Server API +#### `create(text, [options])` +See [create](#createtext-options). + +
+ +#### `toCanvas(canvas, text, [options], [cb(error)])` +Draws qr code symbol to [node canvas](https://github.com/Automattic/node-canvas). + +##### `text` +Type: `String|Array` + +Text to encode or a list of objects describing segments. + +##### `options` +See [Options](#options). + +##### `cb` +Type: `Function` + +Callback function called on finish. + +
+ +#### `toDataURL(text, [options], [cb(error, url)])` +Returns a Data URI containing a representation of the QR Code image.
+Only works with `image/png` type for now. + +##### `text` +Type: `String|Array` + +Text to encode or a list of objects describing segments. + +##### `options` +See [Options](#options) for other settings. + +##### `cb` +Type: `Function` + +Callback function called on finish. + +
+ +#### `toString(text, [options], [cb(error, string)])` +Returns a string representation of the QR Code.
+If choosen output format is `svg` it will returns a string containing xml code. + +##### `text` +Type: `String|Array` + +Text to encode or a list of objects describing segments. + +##### `options` +- ###### `type` + Type: `String`
+ Default: `utf8` + + Output format.
+ Possible values are: `utf8`, `svg`, `terminal`. + +See [Options](#options) for other settings. + +##### `cb` +Type: `Function` + +Callback function called on finish. + +##### Example +```javascript +QRCode.toString('http://www.google.com', function (err, string) { + if (err) throw err + console.log(string) +}) +``` + +
+ +#### `toFile(path, text, [options], [cb(error)])` +Saves QR Code to image file.
+If `options.type` is not specified, the format will be guessed from file extension.
+Recognized extensions are `png`, `svg`, `txt`. + +##### `path` +Type: `String` + +Path where to save the file. + +##### `text` +Type: `String|Array` + +Text to encode or a list of objects describing segments. + +##### `options` +- ###### `type` + Type: `String`
+ Default: `png` + + Output format.
+ Possible values are: `png`, `svg`, `utf8`. + +- ###### `rendererOpts.deflateLevel` **(png only)** + Type: `Number`
+ Default: `9` + + Compression level for deflate. + +- ###### `rendererOpts.deflateStrategy` **(png only)** + Type: `Number`
+ Default: `3` + + Compression strategy for deflate. + +See [Options](#options) for other settings. + +##### `cb` +Type: `Function` + +Callback function called on finish. + +##### Example +```javascript +QRCode.toFile('path/to/filename.png', 'Some text', { + color: { + dark: '#00F', // Blue dots + light: '#0000' // Transparent background + } +}, function (err) { + if (err) throw err + console.log('done') +}) +``` + +
+ +#### `toFileStream(stream, text, [options])` +Writes QR Code image to stream. Only works with `png` format for now. + +##### `stream` +Type: `stream.Writable` + +Node stream. + +##### `text` +Type: `String|Array` + +Text to encode or a list of objects describing segments. + +##### `options` +See [Options](#options). + +
+ +### Options + +#### QR Code options +##### `version` + Type: `Number`
+ + QR Code version. If not specified the more suitable value will be calculated. + +##### `errorCorrectionLevel` + Type: `String`
+ Default: `M` + + Error correction level.
+ Possible values are `low, medium, quartile, high` or `L, M, Q, H`. + +##### `maskPattern` + Type: `Number`
+ + Mask pattern used to mask the symbol.
+ Possible values are `0`, `1`, `2`, `3`, `4`, `5`, `6`, `7`.
+ If not specified the more suitable value will be calculated. + +##### `toSJISFunc` + Type: `Function`
+ + Helper function used internally to convert a kanji to its Shift JIS value.
+ Provide this function if you need support for Kanji mode. + +#### Renderers options +##### `margin` + Type: `Number`
+ Default: `4` + + Define how much wide the quiet zone should be. + +##### `scale` + Type: `Number`
+ Default: `4` + + Scale factor. A value of `1` means 1px per modules (black dots). + +##### `small` + Type: `Boolean`
+ Default: `false` + + Relevant only for terminal renderer. Outputs smaller QR code. + +##### `width` + Type: `Number`
+ + Forces a specific width for the output image.
+ If width is too small to contain the qr symbol, this option will be ignored.
+ Takes precedence over `scale`. + +##### `color.dark` +Type: `String`
+Default: `#000000ff` + +Color of dark module. Value must be in hex format (RGBA).
+Note: dark color should always be darker than `color.light`. + +##### `color.light` +Type: `String`
+Default: `#ffffffff` + +Color of light module. Value must be in hex format (RGBA).
+ +
+ +## GS1 QR Codes +There was a real good discussion here about them. but in short any qrcode generator will make gs1 compatible qrcodes, but what defines a gs1 qrcode is a header with metadata that describes your gs1 information. + +https://github.com/soldair/node-qrcode/issues/45 + + +## Credits +This lib is based on "QRCode for JavaScript" which Kazuhiko Arase thankfully MIT licensed. + +## License +[MIT](https://github.com/soldair/node-qrcode/blob/master/license) + +The word "QR Code" is registered trademark of:
+DENSO WAVE INCORPORATED diff --git a/node_modules/qrcode/bin/qrcode b/node_modules/qrcode/bin/qrcode new file mode 100644 index 0000000000000000000000000000000000000000..dd990b63cdbfcb266263496363f47ac8f86601d7 --- /dev/null +++ b/node_modules/qrcode/bin/qrcode @@ -0,0 +1,159 @@ +#!/usr/bin/env node +var yargs = require('yargs') +var qr = require('../lib') + +function save (file, text, options) { + qr.toFile(file, text, options, function (err, data) { + if (err) { + console.error('Error:', err.message) + process.exit(1) + } + + console.log('saved qrcode to: ' + file + '\n') + }) +} + +function print (text, options) { + options.type = 'terminal' + qr.toString(text, options, function (err, text) { + if (err) { + console.error('Error:', err.message) + process.exit(1) + } + + console.log(text) + }) +} + +function parseOptions (args) { + return { + version: args.qversion, + errorCorrectionLevel: args.error, + type: args.type, + small: !!args.small, + inverse: !!args.inverse, + maskPattern: args.mask, + margin: args.qzone, + width: args.width, + scale: args.scale, + color: { + light: args.lightcolor, + dark: args.darkcolor + } + } +} + +function processInputs (text, opts) { + if (!text.length) { + yargs.showHelp() + process.exit(1) + } + + if (opts.output) { + save(opts.output, text, parseOptions(opts)) + } else { + print(text, parseOptions(opts)) + } +} + +var argv = yargs + .detectLocale(false) + .usage('Usage: $0 [options] ') + .option('v', { + alias: 'qversion', + description: 'QR Code symbol version (1 - 40)', + group: 'QR Code options:', + type: 'number' + }) + .option('e', { + alias: 'error', + description: 'Error correction level', + choices: ['L', 'M', 'Q', 'H'], + group: 'QR Code options:' + }) + .option('m', { + alias: 'mask', + description: 'Mask pattern (0 - 7)', + group: 'QR Code options:', + type: 'number' + }) + .option('t', { + alias: 'type', + description: 'Output type', + choices: ['png', 'svg', 'utf8'], + implies: 'output', + group: 'Renderer options:' + }) + .option('i', { + alias: 'inverse', + type: 'boolean', + description: 'Invert colors', + group: 'Renderer options:' + }) + .option('w', { + alias: 'width', + description: 'Image width (px)', + conflicts: 'scale', + group: 'Renderer options:', + type: 'number' + }) + .option('s', { + alias: 'scale', + description: 'Scale factor', + conflicts: 'width', + group: 'Renderer options:', + type: 'number' + }) + .option('q', { + alias: 'qzone', + description: 'Quiet zone size', + group: 'Renderer options:', + type: 'number' + }) + .option('l', { + alias: 'lightcolor', + description: 'Light RGBA hex color', + group: 'Renderer options:' + }) + .option('d', { + alias: 'darkcolor', + description: 'Dark RGBA hex color', + group: 'Renderer options:' + }) + .option('small', { + type: 'boolean', + description: 'Output smaller QR code to terminal', + conflicts: 'type', + group: 'Renderer options:' + }) + .option('o', { + alias: 'output', + description: 'Output file' + }) + .help('h') + .alias('h', 'help') + .version() + .example('$0 "some text"', 'Draw in terminal window') + .example('$0 -o out.png "some text"', 'Save as png image') + .example('$0 -d F00 -o out.png "some text"', 'Use red as foreground color') + .parserConfiguration({'parse-numbers': false}) + .argv + +if (process.stdin.isTTY) { + processInputs(argv._.join(' '), argv) +} else { + var text = '' + process.stdin.setEncoding('utf8') + process.stdin.on('readable', function () { + var chunk = process.stdin.read() + if (chunk !== null) { + text += chunk + } + }) + + process.stdin.on('end', function () { + // this process can be run as a command outside of a tty so if there was no + // data on stdin read from argv + processInputs(text.length?text:argv._.join(' '), argv) + }) +} diff --git a/node_modules/qrcode/helper/to-sjis-browser.js b/node_modules/qrcode/helper/to-sjis-browser.js new file mode 100644 index 0000000000000000000000000000000000000000..1c9b3aa73c25e9e06c9f1e654bbb5103c31b2b66 --- /dev/null +++ b/node_modules/qrcode/helper/to-sjis-browser.js @@ -0,0 +1,2 @@ +/* global QRCode */ +QRCode.toSJIS = require('./to-sjis') diff --git a/node_modules/qrcode/helper/to-sjis.js b/node_modules/qrcode/helper/to-sjis.js new file mode 100644 index 0000000000000000000000000000000000000000..594c6f7cf295f665f58373c44e68c04f6430f5cb --- /dev/null +++ b/node_modules/qrcode/helper/to-sjis.js @@ -0,0 +1,105 @@ +const SJIS_UTF8 = [ + [0x8140, ' 、。,.・:;?!゛゜´`¨^ ̄_ヽヾゝゞ〃仝々〆〇ー―‐/\~∥|…‥‘’“”()〔〕[]{}〈〉《》「」『』【】+-±×'], + [0x8180, '÷=≠<>≦≧∞∴♂♀°′″℃'], + [0x818f, '¥$¢£%#&*@§☆★○●◎◇◆□■△▲▽▼'], + [0x81a6, '※〒→←↑↓〓'], + [0x81b8, '∈∋⊆⊇⊂⊃∪∩'], + [0x81c8, '∧∨¬⇒⇔∀∃'], + [0x81da, '∠⊥⌒∂∇≡≒≪≫√∽∝∵∫∬'], + [0x81f0, 'ʼn♯♭♪†‡¶'], + [0x824f, '0123456789'], + [0x8260, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'], + [0x8281, 'abcdefghijklmnopqrstuvwxyz'], + [0x829f, 'ぁあぃいぅうぇえぉおかがきぎくぐけげこごさざしじすずせぜそぞただちぢっつづてでとどなにぬねのはばぱひびぴふぶぷへべぺほぼぽまみむめもゃやゅゆょよらりるれろゎわゐゑをん'], + [0x8340, 'ァアィイゥウェエォオカガキギクグケゲコゴサザシジスズセゼソゾタダチヂッツヅテデトドナニヌネノハバパヒビピフブプヘベペホボポマミ'], + [0x8380, 'ムメモャヤュユョヨラリルレロヮワヰヱヲンヴヵヶ'], + [0x839f, 'ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ'], + [0x83bf, 'αβγδεζηθικλμνξοπρστυφχψω'], + [0x8440, 'АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ'], + [0x8470, 'абвгдеёжзийклмн'], + [0x8480, 'опрстуфхцчшщъыьэюя'], + [0x8780, '〝〟'], + [0x889f, '亜唖娃阿哀愛挨姶逢葵茜穐悪握渥旭葦芦鯵梓圧斡扱宛姐虻飴絢綾鮎或粟袷安庵按暗案闇鞍杏以伊位依偉囲夷委威尉惟意慰易椅為畏異移維緯胃萎衣'], + [0x88e0, '謂違遺医井亥域育郁磯一壱溢逸稲茨芋鰯允印咽員因姻引飲淫胤蔭'], + [0x8940, '院陰隠韻吋右宇烏羽迂雨卯鵜窺丑碓臼渦嘘唄欝蔚鰻姥厩浦瓜閏噂云運雲荏餌叡営嬰影映曳栄永泳洩瑛盈穎頴英衛詠鋭液疫益駅悦謁越閲榎厭円'], + [0x8980, '園堰奄宴延怨掩援沿演炎焔煙燕猿縁艶苑薗遠鉛鴛塩於汚甥凹央奥往応押旺横欧殴王翁襖鴬鴎黄岡沖荻億屋憶臆桶牡乙俺卸恩温穏音下化仮何伽価佳加可嘉夏嫁家寡科暇果架歌河火珂禍禾稼箇花苛茄荷華菓蝦課嘩貨迦過霞蚊俄峨我牙画臥芽蛾賀雅餓駕介会解回塊壊廻快怪悔恢懐戒拐改'], + [0x8a40, '魁晦械海灰界皆絵芥蟹開階貝凱劾外咳害崖慨概涯碍蓋街該鎧骸浬馨蛙垣柿蛎鈎劃嚇各廓拡撹格核殻獲確穫覚角赫較郭閣隔革学岳楽額顎掛笠樫'], + [0x8a80, '橿梶鰍潟割喝恰括活渇滑葛褐轄且鰹叶椛樺鞄株兜竃蒲釜鎌噛鴨栢茅萱粥刈苅瓦乾侃冠寒刊勘勧巻喚堪姦完官寛干幹患感慣憾換敢柑桓棺款歓汗漢澗潅環甘監看竿管簡緩缶翰肝艦莞観諌貫還鑑間閑関陥韓館舘丸含岸巌玩癌眼岩翫贋雁頑顔願企伎危喜器基奇嬉寄岐希幾忌揮机旗既期棋棄'], + [0x8b40, '機帰毅気汽畿祈季稀紀徽規記貴起軌輝飢騎鬼亀偽儀妓宜戯技擬欺犠疑祇義蟻誼議掬菊鞠吉吃喫桔橘詰砧杵黍却客脚虐逆丘久仇休及吸宮弓急救'], + [0x8b80, '朽求汲泣灸球究窮笈級糾給旧牛去居巨拒拠挙渠虚許距鋸漁禦魚亨享京供侠僑兇競共凶協匡卿叫喬境峡強彊怯恐恭挟教橋況狂狭矯胸脅興蕎郷鏡響饗驚仰凝尭暁業局曲極玉桐粁僅勤均巾錦斤欣欽琴禁禽筋緊芹菌衿襟謹近金吟銀九倶句区狗玖矩苦躯駆駈駒具愚虞喰空偶寓遇隅串櫛釧屑屈'], + [0x8c40, '掘窟沓靴轡窪熊隈粂栗繰桑鍬勲君薫訓群軍郡卦袈祁係傾刑兄啓圭珪型契形径恵慶慧憩掲携敬景桂渓畦稽系経継繋罫茎荊蛍計詣警軽頚鶏芸迎鯨'], + [0x8c80, '劇戟撃激隙桁傑欠決潔穴結血訣月件倹倦健兼券剣喧圏堅嫌建憲懸拳捲検権牽犬献研硯絹県肩見謙賢軒遣鍵険顕験鹸元原厳幻弦減源玄現絃舷言諺限乎個古呼固姑孤己庫弧戸故枯湖狐糊袴股胡菰虎誇跨鈷雇顧鼓五互伍午呉吾娯後御悟梧檎瑚碁語誤護醐乞鯉交佼侯候倖光公功効勾厚口向'], + [0x8d40, '后喉坑垢好孔孝宏工巧巷幸広庚康弘恒慌抗拘控攻昂晃更杭校梗構江洪浩港溝甲皇硬稿糠紅紘絞綱耕考肯肱腔膏航荒行衡講貢購郊酵鉱砿鋼閤降'], + [0x8d80, '項香高鴻剛劫号合壕拷濠豪轟麹克刻告国穀酷鵠黒獄漉腰甑忽惚骨狛込此頃今困坤墾婚恨懇昏昆根梱混痕紺艮魂些佐叉唆嵯左差査沙瑳砂詐鎖裟坐座挫債催再最哉塞妻宰彩才採栽歳済災采犀砕砦祭斎細菜裁載際剤在材罪財冴坂阪堺榊肴咲崎埼碕鷺作削咋搾昨朔柵窄策索錯桜鮭笹匙冊刷'], + [0x8e40, '察拶撮擦札殺薩雑皐鯖捌錆鮫皿晒三傘参山惨撒散桟燦珊産算纂蚕讃賛酸餐斬暫残仕仔伺使刺司史嗣四士始姉姿子屍市師志思指支孜斯施旨枝止'], + [0x8e80, '死氏獅祉私糸紙紫肢脂至視詞詩試誌諮資賜雌飼歯事似侍児字寺慈持時次滋治爾璽痔磁示而耳自蒔辞汐鹿式識鴫竺軸宍雫七叱執失嫉室悉湿漆疾質実蔀篠偲柴芝屡蕊縞舎写射捨赦斜煮社紗者謝車遮蛇邪借勺尺杓灼爵酌釈錫若寂弱惹主取守手朱殊狩珠種腫趣酒首儒受呪寿授樹綬需囚収周'], + [0x8f40, '宗就州修愁拾洲秀秋終繍習臭舟蒐衆襲讐蹴輯週酋酬集醜什住充十従戎柔汁渋獣縦重銃叔夙宿淑祝縮粛塾熟出術述俊峻春瞬竣舜駿准循旬楯殉淳'], + [0x8f80, '準潤盾純巡遵醇順処初所暑曙渚庶緒署書薯藷諸助叙女序徐恕鋤除傷償勝匠升召哨商唱嘗奨妾娼宵将小少尚庄床廠彰承抄招掌捷昇昌昭晶松梢樟樵沼消渉湘焼焦照症省硝礁祥称章笑粧紹肖菖蒋蕉衝裳訟証詔詳象賞醤鉦鍾鐘障鞘上丈丞乗冗剰城場壌嬢常情擾条杖浄状畳穣蒸譲醸錠嘱埴飾'], + [0x9040, '拭植殖燭織職色触食蝕辱尻伸信侵唇娠寝審心慎振新晋森榛浸深申疹真神秦紳臣芯薪親診身辛進針震人仁刃塵壬尋甚尽腎訊迅陣靭笥諏須酢図厨'], + [0x9080, '逗吹垂帥推水炊睡粋翠衰遂酔錐錘随瑞髄崇嵩数枢趨雛据杉椙菅頗雀裾澄摺寸世瀬畝是凄制勢姓征性成政整星晴棲栖正清牲生盛精聖声製西誠誓請逝醒青静斉税脆隻席惜戚斥昔析石積籍績脊責赤跡蹟碩切拙接摂折設窃節説雪絶舌蝉仙先千占宣専尖川戦扇撰栓栴泉浅洗染潜煎煽旋穿箭線'], + [0x9140, '繊羨腺舛船薦詮賎践選遷銭銑閃鮮前善漸然全禅繕膳糎噌塑岨措曾曽楚狙疏疎礎祖租粗素組蘇訴阻遡鼠僧創双叢倉喪壮奏爽宋層匝惣想捜掃挿掻'], + [0x9180, '操早曹巣槍槽漕燥争痩相窓糟総綜聡草荘葬蒼藻装走送遭鎗霜騒像増憎臓蔵贈造促側則即息捉束測足速俗属賊族続卒袖其揃存孫尊損村遜他多太汰詑唾堕妥惰打柁舵楕陀駄騨体堆対耐岱帯待怠態戴替泰滞胎腿苔袋貸退逮隊黛鯛代台大第醍題鷹滝瀧卓啄宅托択拓沢濯琢託鐸濁諾茸凧蛸只'], + [0x9240, '叩但達辰奪脱巽竪辿棚谷狸鱈樽誰丹単嘆坦担探旦歎淡湛炭短端箪綻耽胆蛋誕鍛団壇弾断暖檀段男談値知地弛恥智池痴稚置致蜘遅馳築畜竹筑蓄'], + [0x9280, '逐秩窒茶嫡着中仲宙忠抽昼柱注虫衷註酎鋳駐樗瀦猪苧著貯丁兆凋喋寵帖帳庁弔張彫徴懲挑暢朝潮牒町眺聴脹腸蝶調諜超跳銚長頂鳥勅捗直朕沈珍賃鎮陳津墜椎槌追鎚痛通塚栂掴槻佃漬柘辻蔦綴鍔椿潰坪壷嬬紬爪吊釣鶴亭低停偵剃貞呈堤定帝底庭廷弟悌抵挺提梯汀碇禎程締艇訂諦蹄逓'], + [0x9340, '邸鄭釘鼎泥摘擢敵滴的笛適鏑溺哲徹撤轍迭鉄典填天展店添纏甜貼転顛点伝殿澱田電兎吐堵塗妬屠徒斗杜渡登菟賭途都鍍砥砺努度土奴怒倒党冬'], + [0x9380, '凍刀唐塔塘套宕島嶋悼投搭東桃梼棟盗淘湯涛灯燈当痘祷等答筒糖統到董蕩藤討謄豆踏逃透鐙陶頭騰闘働動同堂導憧撞洞瞳童胴萄道銅峠鴇匿得徳涜特督禿篤毒独読栃橡凸突椴届鳶苫寅酉瀞噸屯惇敦沌豚遁頓呑曇鈍奈那内乍凪薙謎灘捺鍋楢馴縄畷南楠軟難汝二尼弐迩匂賑肉虹廿日乳入'], + [0x9440, '如尿韮任妊忍認濡禰祢寧葱猫熱年念捻撚燃粘乃廼之埜嚢悩濃納能脳膿農覗蚤巴把播覇杷波派琶破婆罵芭馬俳廃拝排敗杯盃牌背肺輩配倍培媒梅'], + [0x9480, '楳煤狽買売賠陪這蝿秤矧萩伯剥博拍柏泊白箔粕舶薄迫曝漠爆縛莫駁麦函箱硲箸肇筈櫨幡肌畑畠八鉢溌発醗髪伐罰抜筏閥鳩噺塙蛤隼伴判半反叛帆搬斑板氾汎版犯班畔繁般藩販範釆煩頒飯挽晩番盤磐蕃蛮匪卑否妃庇彼悲扉批披斐比泌疲皮碑秘緋罷肥被誹費避非飛樋簸備尾微枇毘琵眉美'], + [0x9540, '鼻柊稗匹疋髭彦膝菱肘弼必畢筆逼桧姫媛紐百謬俵彪標氷漂瓢票表評豹廟描病秒苗錨鋲蒜蛭鰭品彬斌浜瀕貧賓頻敏瓶不付埠夫婦富冨布府怖扶敷'], + [0x9580, '斧普浮父符腐膚芙譜負賦赴阜附侮撫武舞葡蕪部封楓風葺蕗伏副復幅服福腹複覆淵弗払沸仏物鮒分吻噴墳憤扮焚奮粉糞紛雰文聞丙併兵塀幣平弊柄並蔽閉陛米頁僻壁癖碧別瞥蔑箆偏変片篇編辺返遍便勉娩弁鞭保舗鋪圃捕歩甫補輔穂募墓慕戊暮母簿菩倣俸包呆報奉宝峰峯崩庖抱捧放方朋'], + [0x9640, '法泡烹砲縫胞芳萌蓬蜂褒訪豊邦鋒飽鳳鵬乏亡傍剖坊妨帽忘忙房暴望某棒冒紡肪膨謀貌貿鉾防吠頬北僕卜墨撲朴牧睦穆釦勃没殆堀幌奔本翻凡盆'], + [0x9680, '摩磨魔麻埋妹昧枚毎哩槙幕膜枕鮪柾鱒桝亦俣又抹末沫迄侭繭麿万慢満漫蔓味未魅巳箕岬密蜜湊蓑稔脈妙粍民眠務夢無牟矛霧鵡椋婿娘冥名命明盟迷銘鳴姪牝滅免棉綿緬面麺摸模茂妄孟毛猛盲網耗蒙儲木黙目杢勿餅尤戻籾貰問悶紋門匁也冶夜爺耶野弥矢厄役約薬訳躍靖柳薮鑓愉愈油癒'], + [0x9740, '諭輸唯佑優勇友宥幽悠憂揖有柚湧涌猶猷由祐裕誘遊邑郵雄融夕予余与誉輿預傭幼妖容庸揚揺擁曜楊様洋溶熔用窯羊耀葉蓉要謡踊遥陽養慾抑欲'], + [0x9780, '沃浴翌翼淀羅螺裸来莱頼雷洛絡落酪乱卵嵐欄濫藍蘭覧利吏履李梨理璃痢裏裡里離陸律率立葎掠略劉流溜琉留硫粒隆竜龍侶慮旅虜了亮僚両凌寮料梁涼猟療瞭稜糧良諒遼量陵領力緑倫厘林淋燐琳臨輪隣鱗麟瑠塁涙累類令伶例冷励嶺怜玲礼苓鈴隷零霊麗齢暦歴列劣烈裂廉恋憐漣煉簾練聯'], + [0x9840, '蓮連錬呂魯櫓炉賂路露労婁廊弄朗楼榔浪漏牢狼篭老聾蝋郎六麓禄肋録論倭和話歪賄脇惑枠鷲亙亘鰐詫藁蕨椀湾碗腕'], + [0x989f, '弌丐丕个丱丶丼丿乂乖乘亂亅豫亊舒弍于亞亟亠亢亰亳亶从仍仄仆仂仗仞仭仟价伉佚估佛佝佗佇佶侈侏侘佻佩佰侑佯來侖儘俔俟俎俘俛俑俚俐俤俥倚倨倔倪倥倅伜俶倡倩倬俾俯們倆偃假會偕偐偈做偖偬偸傀傚傅傴傲'], + [0x9940, '僉僊傳僂僖僞僥僭僣僮價僵儉儁儂儖儕儔儚儡儺儷儼儻儿兀兒兌兔兢竸兩兪兮冀冂囘册冉冏冑冓冕冖冤冦冢冩冪冫决冱冲冰况冽凅凉凛几處凩凭'], + [0x9980, '凰凵凾刄刋刔刎刧刪刮刳刹剏剄剋剌剞剔剪剴剩剳剿剽劍劔劒剱劈劑辨辧劬劭劼劵勁勍勗勞勣勦飭勠勳勵勸勹匆匈甸匍匐匏匕匚匣匯匱匳匸區卆卅丗卉卍凖卞卩卮夘卻卷厂厖厠厦厥厮厰厶參簒雙叟曼燮叮叨叭叺吁吽呀听吭吼吮吶吩吝呎咏呵咎呟呱呷呰咒呻咀呶咄咐咆哇咢咸咥咬哄哈咨'], + [0x9a40, '咫哂咤咾咼哘哥哦唏唔哽哮哭哺哢唹啀啣啌售啜啅啖啗唸唳啝喙喀咯喊喟啻啾喘喞單啼喃喩喇喨嗚嗅嗟嗄嗜嗤嗔嘔嗷嘖嗾嗽嘛嗹噎噐營嘴嘶嘲嘸'], + [0x9a80, '噫噤嘯噬噪嚆嚀嚊嚠嚔嚏嚥嚮嚶嚴囂嚼囁囃囀囈囎囑囓囗囮囹圀囿圄圉圈國圍圓團圖嗇圜圦圷圸坎圻址坏坩埀垈坡坿垉垓垠垳垤垪垰埃埆埔埒埓堊埖埣堋堙堝塲堡塢塋塰毀塒堽塹墅墹墟墫墺壞墻墸墮壅壓壑壗壙壘壥壜壤壟壯壺壹壻壼壽夂夊夐夛梦夥夬夭夲夸夾竒奕奐奎奚奘奢奠奧奬奩'], + [0x9b40, '奸妁妝佞侫妣妲姆姨姜妍姙姚娥娟娑娜娉娚婀婬婉娵娶婢婪媚媼媾嫋嫂媽嫣嫗嫦嫩嫖嫺嫻嬌嬋嬖嬲嫐嬪嬶嬾孃孅孀孑孕孚孛孥孩孰孳孵學斈孺宀'], + [0x9b80, '它宦宸寃寇寉寔寐寤實寢寞寥寫寰寶寳尅將專對尓尠尢尨尸尹屁屆屎屓屐屏孱屬屮乢屶屹岌岑岔妛岫岻岶岼岷峅岾峇峙峩峽峺峭嶌峪崋崕崗嵜崟崛崑崔崢崚崙崘嵌嵒嵎嵋嵬嵳嵶嶇嶄嶂嶢嶝嶬嶮嶽嶐嶷嶼巉巍巓巒巖巛巫已巵帋帚帙帑帛帶帷幄幃幀幎幗幔幟幢幤幇幵并幺麼广庠廁廂廈廐廏'], + [0x9c40, '廖廣廝廚廛廢廡廨廩廬廱廳廰廴廸廾弃弉彝彜弋弑弖弩弭弸彁彈彌彎弯彑彖彗彙彡彭彳彷徃徂彿徊很徑徇從徙徘徠徨徭徼忖忻忤忸忱忝悳忿怡恠'], + [0x9c80, '怙怐怩怎怱怛怕怫怦怏怺恚恁恪恷恟恊恆恍恣恃恤恂恬恫恙悁悍惧悃悚悄悛悖悗悒悧悋惡悸惠惓悴忰悽惆悵惘慍愕愆惶惷愀惴惺愃愡惻惱愍愎慇愾愨愧慊愿愼愬愴愽慂慄慳慷慘慙慚慫慴慯慥慱慟慝慓慵憙憖憇憬憔憚憊憑憫憮懌懊應懷懈懃懆憺懋罹懍懦懣懶懺懴懿懽懼懾戀戈戉戍戌戔戛'], + [0x9d40, '戞戡截戮戰戲戳扁扎扞扣扛扠扨扼抂抉找抒抓抖拔抃抔拗拑抻拏拿拆擔拈拜拌拊拂拇抛拉挌拮拱挧挂挈拯拵捐挾捍搜捏掖掎掀掫捶掣掏掉掟掵捫'], + [0x9d80, '捩掾揩揀揆揣揉插揶揄搖搴搆搓搦搶攝搗搨搏摧摯摶摎攪撕撓撥撩撈撼據擒擅擇撻擘擂擱擧舉擠擡抬擣擯攬擶擴擲擺攀擽攘攜攅攤攣攫攴攵攷收攸畋效敖敕敍敘敞敝敲數斂斃變斛斟斫斷旃旆旁旄旌旒旛旙无旡旱杲昊昃旻杳昵昶昴昜晏晄晉晁晞晝晤晧晨晟晢晰暃暈暎暉暄暘暝曁暹曉暾暼'], + [0x9e40, '曄暸曖曚曠昿曦曩曰曵曷朏朖朞朦朧霸朮朿朶杁朸朷杆杞杠杙杣杤枉杰枩杼杪枌枋枦枡枅枷柯枴柬枳柩枸柤柞柝柢柮枹柎柆柧檜栞框栩桀桍栲桎'], + [0x9e80, '梳栫桙档桷桿梟梏梭梔條梛梃檮梹桴梵梠梺椏梍桾椁棊椈棘椢椦棡椌棍棔棧棕椶椒椄棗棣椥棹棠棯椨椪椚椣椡棆楹楷楜楸楫楔楾楮椹楴椽楙椰楡楞楝榁楪榲榮槐榿槁槓榾槎寨槊槝榻槃榧樮榑榠榜榕榴槞槨樂樛槿權槹槲槧樅榱樞槭樔槫樊樒櫁樣樓橄樌橲樶橸橇橢橙橦橈樸樢檐檍檠檄檢檣'], + [0x9f40, '檗蘗檻櫃櫂檸檳檬櫞櫑櫟檪櫚櫪櫻欅蘖櫺欒欖鬱欟欸欷盜欹飮歇歃歉歐歙歔歛歟歡歸歹歿殀殄殃殍殘殕殞殤殪殫殯殲殱殳殷殼毆毋毓毟毬毫毳毯'], + [0x9f80, '麾氈氓气氛氤氣汞汕汢汪沂沍沚沁沛汾汨汳沒沐泄泱泓沽泗泅泝沮沱沾沺泛泯泙泪洟衍洶洫洽洸洙洵洳洒洌浣涓浤浚浹浙涎涕濤涅淹渕渊涵淇淦涸淆淬淞淌淨淒淅淺淙淤淕淪淮渭湮渮渙湲湟渾渣湫渫湶湍渟湃渺湎渤滿渝游溂溪溘滉溷滓溽溯滄溲滔滕溏溥滂溟潁漑灌滬滸滾漿滲漱滯漲滌'], + [0xe040, '漾漓滷澆潺潸澁澀潯潛濳潭澂潼潘澎澑濂潦澳澣澡澤澹濆澪濟濕濬濔濘濱濮濛瀉瀋濺瀑瀁瀏濾瀛瀚潴瀝瀘瀟瀰瀾瀲灑灣炙炒炯烱炬炸炳炮烟烋烝'], + [0xe080, '烙焉烽焜焙煥煕熈煦煢煌煖煬熏燻熄熕熨熬燗熹熾燒燉燔燎燠燬燧燵燼燹燿爍爐爛爨爭爬爰爲爻爼爿牀牆牋牘牴牾犂犁犇犒犖犢犧犹犲狃狆狄狎狒狢狠狡狹狷倏猗猊猜猖猝猴猯猩猥猾獎獏默獗獪獨獰獸獵獻獺珈玳珎玻珀珥珮珞璢琅瑯琥珸琲琺瑕琿瑟瑙瑁瑜瑩瑰瑣瑪瑶瑾璋璞璧瓊瓏瓔珱'], + [0xe140, '瓠瓣瓧瓩瓮瓲瓰瓱瓸瓷甄甃甅甌甎甍甕甓甞甦甬甼畄畍畊畉畛畆畚畩畤畧畫畭畸當疆疇畴疊疉疂疔疚疝疥疣痂疳痃疵疽疸疼疱痍痊痒痙痣痞痾痿'], + [0xe180, '痼瘁痰痺痲痳瘋瘍瘉瘟瘧瘠瘡瘢瘤瘴瘰瘻癇癈癆癜癘癡癢癨癩癪癧癬癰癲癶癸發皀皃皈皋皎皖皓皙皚皰皴皸皹皺盂盍盖盒盞盡盥盧盪蘯盻眈眇眄眩眤眞眥眦眛眷眸睇睚睨睫睛睥睿睾睹瞎瞋瞑瞠瞞瞰瞶瞹瞿瞼瞽瞻矇矍矗矚矜矣矮矼砌砒礦砠礪硅碎硴碆硼碚碌碣碵碪碯磑磆磋磔碾碼磅磊磬'], + [0xe240, '磧磚磽磴礇礒礑礙礬礫祀祠祗祟祚祕祓祺祿禊禝禧齋禪禮禳禹禺秉秕秧秬秡秣稈稍稘稙稠稟禀稱稻稾稷穃穗穉穡穢穩龝穰穹穽窈窗窕窘窖窩竈窰'], + [0xe280, '窶竅竄窿邃竇竊竍竏竕竓站竚竝竡竢竦竭竰笂笏笊笆笳笘笙笞笵笨笶筐筺笄筍笋筌筅筵筥筴筧筰筱筬筮箝箘箟箍箜箚箋箒箏筝箙篋篁篌篏箴篆篝篩簑簔篦篥籠簀簇簓篳篷簗簍篶簣簧簪簟簷簫簽籌籃籔籏籀籐籘籟籤籖籥籬籵粃粐粤粭粢粫粡粨粳粲粱粮粹粽糀糅糂糘糒糜糢鬻糯糲糴糶糺紆'], + [0xe340, '紂紜紕紊絅絋紮紲紿紵絆絳絖絎絲絨絮絏絣經綉絛綏絽綛綺綮綣綵緇綽綫總綢綯緜綸綟綰緘緝緤緞緻緲緡縅縊縣縡縒縱縟縉縋縢繆繦縻縵縹繃縷'], + [0xe380, '縲縺繧繝繖繞繙繚繹繪繩繼繻纃緕繽辮繿纈纉續纒纐纓纔纖纎纛纜缸缺罅罌罍罎罐网罕罔罘罟罠罨罩罧罸羂羆羃羈羇羌羔羞羝羚羣羯羲羹羮羶羸譱翅翆翊翕翔翡翦翩翳翹飜耆耄耋耒耘耙耜耡耨耿耻聊聆聒聘聚聟聢聨聳聲聰聶聹聽聿肄肆肅肛肓肚肭冐肬胛胥胙胝胄胚胖脉胯胱脛脩脣脯腋'], + [0xe440, '隋腆脾腓腑胼腱腮腥腦腴膃膈膊膀膂膠膕膤膣腟膓膩膰膵膾膸膽臀臂膺臉臍臑臙臘臈臚臟臠臧臺臻臾舁舂舅與舊舍舐舖舩舫舸舳艀艙艘艝艚艟艤'], + [0xe480, '艢艨艪艫舮艱艷艸艾芍芒芫芟芻芬苡苣苟苒苴苳苺莓范苻苹苞茆苜茉苙茵茴茖茲茱荀茹荐荅茯茫茗茘莅莚莪莟莢莖茣莎莇莊荼莵荳荵莠莉莨菴萓菫菎菽萃菘萋菁菷萇菠菲萍萢萠莽萸蔆菻葭萪萼蕚蒄葷葫蒭葮蒂葩葆萬葯葹萵蓊葢蒹蒿蒟蓙蓍蒻蓚蓐蓁蓆蓖蒡蔡蓿蓴蔗蔘蔬蔟蔕蔔蓼蕀蕣蕘蕈'], + [0xe540, '蕁蘂蕋蕕薀薤薈薑薊薨蕭薔薛藪薇薜蕷蕾薐藉薺藏薹藐藕藝藥藜藹蘊蘓蘋藾藺蘆蘢蘚蘰蘿虍乕虔號虧虱蚓蚣蚩蚪蚋蚌蚶蚯蛄蛆蚰蛉蠣蚫蛔蛞蛩蛬'], + [0xe580, '蛟蛛蛯蜒蜆蜈蜀蜃蛻蜑蜉蜍蛹蜊蜴蜿蜷蜻蜥蜩蜚蝠蝟蝸蝌蝎蝴蝗蝨蝮蝙蝓蝣蝪蠅螢螟螂螯蟋螽蟀蟐雖螫蟄螳蟇蟆螻蟯蟲蟠蠏蠍蟾蟶蟷蠎蟒蠑蠖蠕蠢蠡蠱蠶蠹蠧蠻衄衂衒衙衞衢衫袁衾袞衵衽袵衲袂袗袒袮袙袢袍袤袰袿袱裃裄裔裘裙裝裹褂裼裴裨裲褄褌褊褓襃褞褥褪褫襁襄褻褶褸襌褝襠襞'], + [0xe640, '襦襤襭襪襯襴襷襾覃覈覊覓覘覡覩覦覬覯覲覺覽覿觀觚觜觝觧觴觸訃訖訐訌訛訝訥訶詁詛詒詆詈詼詭詬詢誅誂誄誨誡誑誥誦誚誣諄諍諂諚諫諳諧'], + [0xe680, '諤諱謔諠諢諷諞諛謌謇謚諡謖謐謗謠謳鞫謦謫謾謨譁譌譏譎證譖譛譚譫譟譬譯譴譽讀讌讎讒讓讖讙讚谺豁谿豈豌豎豐豕豢豬豸豺貂貉貅貊貍貎貔豼貘戝貭貪貽貲貳貮貶賈賁賤賣賚賽賺賻贄贅贊贇贏贍贐齎贓賍贔贖赧赭赱赳趁趙跂趾趺跏跚跖跌跛跋跪跫跟跣跼踈踉跿踝踞踐踟蹂踵踰踴蹊'], + [0xe740, '蹇蹉蹌蹐蹈蹙蹤蹠踪蹣蹕蹶蹲蹼躁躇躅躄躋躊躓躑躔躙躪躡躬躰軆躱躾軅軈軋軛軣軼軻軫軾輊輅輕輒輙輓輜輟輛輌輦輳輻輹轅轂輾轌轉轆轎轗轜'], + [0xe780, '轢轣轤辜辟辣辭辯辷迚迥迢迪迯邇迴逅迹迺逑逕逡逍逞逖逋逧逶逵逹迸遏遐遑遒逎遉逾遖遘遞遨遯遶隨遲邂遽邁邀邊邉邏邨邯邱邵郢郤扈郛鄂鄒鄙鄲鄰酊酖酘酣酥酩酳酲醋醉醂醢醫醯醪醵醴醺釀釁釉釋釐釖釟釡釛釼釵釶鈞釿鈔鈬鈕鈑鉞鉗鉅鉉鉤鉈銕鈿鉋鉐銜銖銓銛鉚鋏銹銷鋩錏鋺鍄錮'], + [0xe840, '錙錢錚錣錺錵錻鍜鍠鍼鍮鍖鎰鎬鎭鎔鎹鏖鏗鏨鏥鏘鏃鏝鏐鏈鏤鐚鐔鐓鐃鐇鐐鐶鐫鐵鐡鐺鑁鑒鑄鑛鑠鑢鑞鑪鈩鑰鑵鑷鑽鑚鑼鑾钁鑿閂閇閊閔閖閘閙'], + [0xe880, '閠閨閧閭閼閻閹閾闊濶闃闍闌闕闔闖關闡闥闢阡阨阮阯陂陌陏陋陷陜陞陝陟陦陲陬隍隘隕隗險隧隱隲隰隴隶隸隹雎雋雉雍襍雜霍雕雹霄霆霈霓霎霑霏霖霙霤霪霰霹霽霾靄靆靈靂靉靜靠靤靦靨勒靫靱靹鞅靼鞁靺鞆鞋鞏鞐鞜鞨鞦鞣鞳鞴韃韆韈韋韜韭齏韲竟韶韵頏頌頸頤頡頷頽顆顏顋顫顯顰'], + [0xe940, '顱顴顳颪颯颱颶飄飃飆飩飫餃餉餒餔餘餡餝餞餤餠餬餮餽餾饂饉饅饐饋饑饒饌饕馗馘馥馭馮馼駟駛駝駘駑駭駮駱駲駻駸騁騏騅駢騙騫騷驅驂驀驃'], + [0xe980, '騾驕驍驛驗驟驢驥驤驩驫驪骭骰骼髀髏髑髓體髞髟髢髣髦髯髫髮髴髱髷髻鬆鬘鬚鬟鬢鬣鬥鬧鬨鬩鬪鬮鬯鬲魄魃魏魍魎魑魘魴鮓鮃鮑鮖鮗鮟鮠鮨鮴鯀鯊鮹鯆鯏鯑鯒鯣鯢鯤鯔鯡鰺鯲鯱鯰鰕鰔鰉鰓鰌鰆鰈鰒鰊鰄鰮鰛鰥鰤鰡鰰鱇鰲鱆鰾鱚鱠鱧鱶鱸鳧鳬鳰鴉鴈鳫鴃鴆鴪鴦鶯鴣鴟鵄鴕鴒鵁鴿鴾鵆鵈'], + [0xea40, '鵝鵞鵤鵑鵐鵙鵲鶉鶇鶫鵯鵺鶚鶤鶩鶲鷄鷁鶻鶸鶺鷆鷏鷂鷙鷓鷸鷦鷭鷯鷽鸚鸛鸞鹵鹹鹽麁麈麋麌麒麕麑麝麥麩麸麪麭靡黌黎黏黐黔黜點黝黠黥黨黯'], + [0xea80, '黴黶黷黹黻黼黽鼇鼈皷鼕鼡鼬鼾齊齒齔齣齟齠齡齦齧齬齪齷齲齶龕龜龠堯槇遙瑤凜熙'] +] + +module.exports = function toSJIS (utf8Char) { + if (!utf8Char || utf8Char === '') return + + for (let i = 0; i < SJIS_UTF8.length; i++) { + const kanji = SJIS_UTF8[i][1] + + const posIndex = kanji.indexOf(utf8Char) + if (posIndex >= 0) { + return SJIS_UTF8[i][0] + posIndex + } + } +} diff --git a/node_modules/qrcode/lib/browser.js b/node_modules/qrcode/lib/browser.js new file mode 100644 index 0000000000000000000000000000000000000000..dc8a9998249e4d8814b38732190c7ed2bbc3b6aa --- /dev/null +++ b/node_modules/qrcode/lib/browser.js @@ -0,0 +1,76 @@ + +const canPromise = require('./can-promise') + +const QRCode = require('./core/qrcode') +const CanvasRenderer = require('./renderer/canvas') +const SvgRenderer = require('./renderer/svg-tag.js') + +function renderCanvas (renderFunc, canvas, text, opts, cb) { + const args = [].slice.call(arguments, 1) + const argsNum = args.length + const isLastArgCb = typeof args[argsNum - 1] === 'function' + + if (!isLastArgCb && !canPromise()) { + throw new Error('Callback required as last argument') + } + + if (isLastArgCb) { + if (argsNum < 2) { + throw new Error('Too few arguments provided') + } + + if (argsNum === 2) { + cb = text + text = canvas + canvas = opts = undefined + } else if (argsNum === 3) { + if (canvas.getContext && typeof cb === 'undefined') { + cb = opts + opts = undefined + } else { + cb = opts + opts = text + text = canvas + canvas = undefined + } + } + } else { + if (argsNum < 1) { + throw new Error('Too few arguments provided') + } + + if (argsNum === 1) { + text = canvas + canvas = opts = undefined + } else if (argsNum === 2 && !canvas.getContext) { + opts = text + text = canvas + canvas = undefined + } + + return new Promise(function (resolve, reject) { + try { + const data = QRCode.create(text, opts) + resolve(renderFunc(data, canvas, opts)) + } catch (e) { + reject(e) + } + }) + } + + try { + const data = QRCode.create(text, opts) + cb(null, renderFunc(data, canvas, opts)) + } catch (e) { + cb(e) + } +} + +exports.create = QRCode.create +exports.toCanvas = renderCanvas.bind(null, CanvasRenderer.render) +exports.toDataURL = renderCanvas.bind(null, CanvasRenderer.renderToDataURL) + +// only svg for now. +exports.toString = renderCanvas.bind(null, function (data, _, opts) { + return SvgRenderer.render(data, opts) +}) diff --git a/node_modules/qrcode/lib/can-promise.js b/node_modules/qrcode/lib/can-promise.js new file mode 100644 index 0000000000000000000000000000000000000000..77267f159f74300e1f884996e18dd67ef0b430c2 --- /dev/null +++ b/node_modules/qrcode/lib/can-promise.js @@ -0,0 +1,7 @@ +// can-promise has a crash in some versions of react native that dont have +// standard global objects +// https://github.com/soldair/node-qrcode/issues/157 + +module.exports = function () { + return typeof Promise === 'function' && Promise.prototype && Promise.prototype.then +} diff --git a/node_modules/qrcode/lib/core/alignment-pattern.js b/node_modules/qrcode/lib/core/alignment-pattern.js new file mode 100644 index 0000000000000000000000000000000000000000..63c3154e976ca3894f16ebe60e9ead0f448c7ee1 --- /dev/null +++ b/node_modules/qrcode/lib/core/alignment-pattern.js @@ -0,0 +1,83 @@ +/** + * Alignment pattern are fixed reference pattern in defined positions + * in a matrix symbology, which enables the decode software to re-synchronise + * the coordinate mapping of the image modules in the event of moderate amounts + * of distortion of the image. + * + * Alignment patterns are present only in QR Code symbols of version 2 or larger + * and their number depends on the symbol version. + */ + +const getSymbolSize = require('./utils').getSymbolSize + +/** + * Calculate the row/column coordinates of the center module of each alignment pattern + * for the specified QR Code version. + * + * The alignment patterns are positioned symmetrically on either side of the diagonal + * running from the top left corner of the symbol to the bottom right corner. + * + * Since positions are simmetrical only half of the coordinates are returned. + * Each item of the array will represent in turn the x and y coordinate. + * @see {@link getPositions} + * + * @param {Number} version QR Code version + * @return {Array} Array of coordinate + */ +exports.getRowColCoords = function getRowColCoords (version) { + if (version === 1) return [] + + const posCount = Math.floor(version / 7) + 2 + const size = getSymbolSize(version) + const intervals = size === 145 ? 26 : Math.ceil((size - 13) / (2 * posCount - 2)) * 2 + const positions = [size - 7] // Last coord is always (size - 7) + + for (let i = 1; i < posCount - 1; i++) { + positions[i] = positions[i - 1] - intervals + } + + positions.push(6) // First coord is always 6 + + return positions.reverse() +} + +/** + * Returns an array containing the positions of each alignment pattern. + * Each array's element represent the center point of the pattern as (x, y) coordinates + * + * Coordinates are calculated expanding the row/column coordinates returned by {@link getRowColCoords} + * and filtering out the items that overlaps with finder pattern + * + * @example + * For a Version 7 symbol {@link getRowColCoords} returns values 6, 22 and 38. + * The alignment patterns, therefore, are to be centered on (row, column) + * positions (6,22), (22,6), (22,22), (22,38), (38,22), (38,38). + * Note that the coordinates (6,6), (6,38), (38,6) are occupied by finder patterns + * and are not therefore used for alignment patterns. + * + * let pos = getPositions(7) + * // [[6,22], [22,6], [22,22], [22,38], [38,22], [38,38]] + * + * @param {Number} version QR Code version + * @return {Array} Array of coordinates + */ +exports.getPositions = function getPositions (version) { + const coords = [] + const pos = exports.getRowColCoords(version) + const posLength = pos.length + + for (let i = 0; i < posLength; i++) { + for (let j = 0; j < posLength; j++) { + // Skip if position is occupied by finder patterns + if ((i === 0 && j === 0) || // top-left + (i === 0 && j === posLength - 1) || // bottom-left + (i === posLength - 1 && j === 0)) { // top-right + continue + } + + coords.push([pos[i], pos[j]]) + } + } + + return coords +} diff --git a/node_modules/qrcode/lib/core/alphanumeric-data.js b/node_modules/qrcode/lib/core/alphanumeric-data.js new file mode 100644 index 0000000000000000000000000000000000000000..29ddf50c3ad1f02beb0f8dc79f6b10e3d207ea36 --- /dev/null +++ b/node_modules/qrcode/lib/core/alphanumeric-data.js @@ -0,0 +1,59 @@ +const Mode = require('./mode') + +/** + * Array of characters available in alphanumeric mode + * + * As per QR Code specification, to each character + * is assigned a value from 0 to 44 which in this case coincides + * with the array index + * + * @type {Array} + */ +const ALPHA_NUM_CHARS = [ + '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', + 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', + 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', + ' ', '$', '%', '*', '+', '-', '.', '/', ':' +] + +function AlphanumericData (data) { + this.mode = Mode.ALPHANUMERIC + this.data = data +} + +AlphanumericData.getBitsLength = function getBitsLength (length) { + return 11 * Math.floor(length / 2) + 6 * (length % 2) +} + +AlphanumericData.prototype.getLength = function getLength () { + return this.data.length +} + +AlphanumericData.prototype.getBitsLength = function getBitsLength () { + return AlphanumericData.getBitsLength(this.data.length) +} + +AlphanumericData.prototype.write = function write (bitBuffer) { + let i + + // Input data characters are divided into groups of two characters + // and encoded as 11-bit binary codes. + for (i = 0; i + 2 <= this.data.length; i += 2) { + // The character value of the first character is multiplied by 45 + let value = ALPHA_NUM_CHARS.indexOf(this.data[i]) * 45 + + // The character value of the second digit is added to the product + value += ALPHA_NUM_CHARS.indexOf(this.data[i + 1]) + + // The sum is then stored as 11-bit binary number + bitBuffer.put(value, 11) + } + + // If the number of input data characters is not a multiple of two, + // the character value of the final character is encoded as a 6-bit binary number. + if (this.data.length % 2) { + bitBuffer.put(ALPHA_NUM_CHARS.indexOf(this.data[i]), 6) + } +} + +module.exports = AlphanumericData diff --git a/node_modules/qrcode/lib/core/bit-buffer.js b/node_modules/qrcode/lib/core/bit-buffer.js new file mode 100644 index 0000000000000000000000000000000000000000..5b41d3d920ed97d04aabdc7d115302709ca42ae5 --- /dev/null +++ b/node_modules/qrcode/lib/core/bit-buffer.js @@ -0,0 +1,37 @@ +function BitBuffer () { + this.buffer = [] + this.length = 0 +} + +BitBuffer.prototype = { + + get: function (index) { + const bufIndex = Math.floor(index / 8) + return ((this.buffer[bufIndex] >>> (7 - index % 8)) & 1) === 1 + }, + + put: function (num, length) { + for (let i = 0; i < length; i++) { + this.putBit(((num >>> (length - i - 1)) & 1) === 1) + } + }, + + getLengthInBits: function () { + return this.length + }, + + putBit: function (bit) { + const bufIndex = Math.floor(this.length / 8) + if (this.buffer.length <= bufIndex) { + this.buffer.push(0) + } + + if (bit) { + this.buffer[bufIndex] |= (0x80 >>> (this.length % 8)) + } + + this.length++ + } +} + +module.exports = BitBuffer diff --git a/node_modules/qrcode/lib/core/bit-matrix.js b/node_modules/qrcode/lib/core/bit-matrix.js new file mode 100644 index 0000000000000000000000000000000000000000..439138b99a746c0f22b432c7bfad608965fea3e9 --- /dev/null +++ b/node_modules/qrcode/lib/core/bit-matrix.js @@ -0,0 +1,65 @@ +/** + * Helper class to handle QR Code symbol modules + * + * @param {Number} size Symbol size + */ +function BitMatrix (size) { + if (!size || size < 1) { + throw new Error('BitMatrix size must be defined and greater than 0') + } + + this.size = size + this.data = new Uint8Array(size * size) + this.reservedBit = new Uint8Array(size * size) +} + +/** + * Set bit value at specified location + * If reserved flag is set, this bit will be ignored during masking process + * + * @param {Number} row + * @param {Number} col + * @param {Boolean} value + * @param {Boolean} reserved + */ +BitMatrix.prototype.set = function (row, col, value, reserved) { + const index = row * this.size + col + this.data[index] = value + if (reserved) this.reservedBit[index] = true +} + +/** + * Returns bit value at specified location + * + * @param {Number} row + * @param {Number} col + * @return {Boolean} + */ +BitMatrix.prototype.get = function (row, col) { + return this.data[row * this.size + col] +} + +/** + * Applies xor operator at specified location + * (used during masking process) + * + * @param {Number} row + * @param {Number} col + * @param {Boolean} value + */ +BitMatrix.prototype.xor = function (row, col, value) { + this.data[row * this.size + col] ^= value +} + +/** + * Check if bit at specified location is reserved + * + * @param {Number} row + * @param {Number} col + * @return {Boolean} + */ +BitMatrix.prototype.isReserved = function (row, col) { + return this.reservedBit[row * this.size + col] +} + +module.exports = BitMatrix diff --git a/node_modules/qrcode/lib/core/byte-data.js b/node_modules/qrcode/lib/core/byte-data.js new file mode 100644 index 0000000000000000000000000000000000000000..d562fcc951d2fa177eef55f5c071bf742235acf6 --- /dev/null +++ b/node_modules/qrcode/lib/core/byte-data.js @@ -0,0 +1,30 @@ +const Mode = require('./mode') + +function ByteData (data) { + this.mode = Mode.BYTE + if (typeof (data) === 'string') { + this.data = new TextEncoder().encode(data) + } else { + this.data = new Uint8Array(data) + } +} + +ByteData.getBitsLength = function getBitsLength (length) { + return length * 8 +} + +ByteData.prototype.getLength = function getLength () { + return this.data.length +} + +ByteData.prototype.getBitsLength = function getBitsLength () { + return ByteData.getBitsLength(this.data.length) +} + +ByteData.prototype.write = function (bitBuffer) { + for (let i = 0, l = this.data.length; i < l; i++) { + bitBuffer.put(this.data[i], 8) + } +} + +module.exports = ByteData diff --git a/node_modules/qrcode/lib/core/error-correction-code.js b/node_modules/qrcode/lib/core/error-correction-code.js new file mode 100644 index 0000000000000000000000000000000000000000..7a4aeae92af8819c272370434d614b8e086ea8bc --- /dev/null +++ b/node_modules/qrcode/lib/core/error-correction-code.js @@ -0,0 +1,135 @@ +const ECLevel = require('./error-correction-level') + +const EC_BLOCKS_TABLE = [ +// L M Q H + 1, 1, 1, 1, + 1, 1, 1, 1, + 1, 1, 2, 2, + 1, 2, 2, 4, + 1, 2, 4, 4, + 2, 4, 4, 4, + 2, 4, 6, 5, + 2, 4, 6, 6, + 2, 5, 8, 8, + 4, 5, 8, 8, + 4, 5, 8, 11, + 4, 8, 10, 11, + 4, 9, 12, 16, + 4, 9, 16, 16, + 6, 10, 12, 18, + 6, 10, 17, 16, + 6, 11, 16, 19, + 6, 13, 18, 21, + 7, 14, 21, 25, + 8, 16, 20, 25, + 8, 17, 23, 25, + 9, 17, 23, 34, + 9, 18, 25, 30, + 10, 20, 27, 32, + 12, 21, 29, 35, + 12, 23, 34, 37, + 12, 25, 34, 40, + 13, 26, 35, 42, + 14, 28, 38, 45, + 15, 29, 40, 48, + 16, 31, 43, 51, + 17, 33, 45, 54, + 18, 35, 48, 57, + 19, 37, 51, 60, + 19, 38, 53, 63, + 20, 40, 56, 66, + 21, 43, 59, 70, + 22, 45, 62, 74, + 24, 47, 65, 77, + 25, 49, 68, 81 +] + +const EC_CODEWORDS_TABLE = [ +// L M Q H + 7, 10, 13, 17, + 10, 16, 22, 28, + 15, 26, 36, 44, + 20, 36, 52, 64, + 26, 48, 72, 88, + 36, 64, 96, 112, + 40, 72, 108, 130, + 48, 88, 132, 156, + 60, 110, 160, 192, + 72, 130, 192, 224, + 80, 150, 224, 264, + 96, 176, 260, 308, + 104, 198, 288, 352, + 120, 216, 320, 384, + 132, 240, 360, 432, + 144, 280, 408, 480, + 168, 308, 448, 532, + 180, 338, 504, 588, + 196, 364, 546, 650, + 224, 416, 600, 700, + 224, 442, 644, 750, + 252, 476, 690, 816, + 270, 504, 750, 900, + 300, 560, 810, 960, + 312, 588, 870, 1050, + 336, 644, 952, 1110, + 360, 700, 1020, 1200, + 390, 728, 1050, 1260, + 420, 784, 1140, 1350, + 450, 812, 1200, 1440, + 480, 868, 1290, 1530, + 510, 924, 1350, 1620, + 540, 980, 1440, 1710, + 570, 1036, 1530, 1800, + 570, 1064, 1590, 1890, + 600, 1120, 1680, 1980, + 630, 1204, 1770, 2100, + 660, 1260, 1860, 2220, + 720, 1316, 1950, 2310, + 750, 1372, 2040, 2430 +] + +/** + * Returns the number of error correction block that the QR Code should contain + * for the specified version and error correction level. + * + * @param {Number} version QR Code version + * @param {Number} errorCorrectionLevel Error correction level + * @return {Number} Number of error correction blocks + */ +exports.getBlocksCount = function getBlocksCount (version, errorCorrectionLevel) { + switch (errorCorrectionLevel) { + case ECLevel.L: + return EC_BLOCKS_TABLE[(version - 1) * 4 + 0] + case ECLevel.M: + return EC_BLOCKS_TABLE[(version - 1) * 4 + 1] + case ECLevel.Q: + return EC_BLOCKS_TABLE[(version - 1) * 4 + 2] + case ECLevel.H: + return EC_BLOCKS_TABLE[(version - 1) * 4 + 3] + default: + return undefined + } +} + +/** + * Returns the number of error correction codewords to use for the specified + * version and error correction level. + * + * @param {Number} version QR Code version + * @param {Number} errorCorrectionLevel Error correction level + * @return {Number} Number of error correction codewords + */ +exports.getTotalCodewordsCount = function getTotalCodewordsCount (version, errorCorrectionLevel) { + switch (errorCorrectionLevel) { + case ECLevel.L: + return EC_CODEWORDS_TABLE[(version - 1) * 4 + 0] + case ECLevel.M: + return EC_CODEWORDS_TABLE[(version - 1) * 4 + 1] + case ECLevel.Q: + return EC_CODEWORDS_TABLE[(version - 1) * 4 + 2] + case ECLevel.H: + return EC_CODEWORDS_TABLE[(version - 1) * 4 + 3] + default: + return undefined + } +} diff --git a/node_modules/qrcode/lib/core/error-correction-level.js b/node_modules/qrcode/lib/core/error-correction-level.js new file mode 100644 index 0000000000000000000000000000000000000000..07433d6bff7692d37f5747976545150a8893f0da --- /dev/null +++ b/node_modules/qrcode/lib/core/error-correction-level.js @@ -0,0 +1,50 @@ +exports.L = { bit: 1 } +exports.M = { bit: 0 } +exports.Q = { bit: 3 } +exports.H = { bit: 2 } + +function fromString (string) { + if (typeof string !== 'string') { + throw new Error('Param is not a string') + } + + const lcStr = string.toLowerCase() + + switch (lcStr) { + case 'l': + case 'low': + return exports.L + + case 'm': + case 'medium': + return exports.M + + case 'q': + case 'quartile': + return exports.Q + + case 'h': + case 'high': + return exports.H + + default: + throw new Error('Unknown EC Level: ' + string) + } +} + +exports.isValid = function isValid (level) { + return level && typeof level.bit !== 'undefined' && + level.bit >= 0 && level.bit < 4 +} + +exports.from = function from (value, defaultValue) { + if (exports.isValid(value)) { + return value + } + + try { + return fromString(value) + } catch (e) { + return defaultValue + } +} diff --git a/node_modules/qrcode/lib/core/finder-pattern.js b/node_modules/qrcode/lib/core/finder-pattern.js new file mode 100644 index 0000000000000000000000000000000000000000..4613c041a972ea603b56deda6b85488c44ba1443 --- /dev/null +++ b/node_modules/qrcode/lib/core/finder-pattern.js @@ -0,0 +1,22 @@ +const getSymbolSize = require('./utils').getSymbolSize +const FINDER_PATTERN_SIZE = 7 + +/** + * Returns an array containing the positions of each finder pattern. + * Each array's element represent the top-left point of the pattern as (x, y) coordinates + * + * @param {Number} version QR Code version + * @return {Array} Array of coordinates + */ +exports.getPositions = function getPositions (version) { + const size = getSymbolSize(version) + + return [ + // top-left + [0, 0], + // top-right + [size - FINDER_PATTERN_SIZE, 0], + // bottom-left + [0, size - FINDER_PATTERN_SIZE] + ] +} diff --git a/node_modules/qrcode/lib/core/format-info.js b/node_modules/qrcode/lib/core/format-info.js new file mode 100644 index 0000000000000000000000000000000000000000..11fe9efaacdd292fb39698e341e0df3ef8fe95e7 --- /dev/null +++ b/node_modules/qrcode/lib/core/format-info.js @@ -0,0 +1,29 @@ +const Utils = require('./utils') + +const G15 = (1 << 10) | (1 << 8) | (1 << 5) | (1 << 4) | (1 << 2) | (1 << 1) | (1 << 0) +const G15_MASK = (1 << 14) | (1 << 12) | (1 << 10) | (1 << 4) | (1 << 1) +const G15_BCH = Utils.getBCHDigit(G15) + +/** + * Returns format information with relative error correction bits + * + * The format information is a 15-bit sequence containing 5 data bits, + * with 10 error correction bits calculated using the (15, 5) BCH code. + * + * @param {Number} errorCorrectionLevel Error correction level + * @param {Number} mask Mask pattern + * @return {Number} Encoded format information bits + */ +exports.getEncodedBits = function getEncodedBits (errorCorrectionLevel, mask) { + const data = ((errorCorrectionLevel.bit << 3) | mask) + let d = data << 10 + + while (Utils.getBCHDigit(d) - G15_BCH >= 0) { + d ^= (G15 << (Utils.getBCHDigit(d) - G15_BCH)) + } + + // xor final data with mask pattern in order to ensure that + // no combination of Error Correction Level and data mask pattern + // will result in an all-zero data string + return ((data << 10) | d) ^ G15_MASK +} diff --git a/node_modules/qrcode/lib/core/galois-field.js b/node_modules/qrcode/lib/core/galois-field.js new file mode 100644 index 0000000000000000000000000000000000000000..8125179c058e1b130c551dc04c12e3292311e751 --- /dev/null +++ b/node_modules/qrcode/lib/core/galois-field.js @@ -0,0 +1,69 @@ +const EXP_TABLE = new Uint8Array(512) +const LOG_TABLE = new Uint8Array(256) +/** + * Precompute the log and anti-log tables for faster computation later + * + * For each possible value in the galois field 2^8, we will pre-compute + * the logarithm and anti-logarithm (exponential) of this value + * + * ref {@link https://en.wikiversity.org/wiki/Reed%E2%80%93Solomon_codes_for_coders#Introduction_to_mathematical_fields} + */ +;(function initTables () { + let x = 1 + for (let i = 0; i < 255; i++) { + EXP_TABLE[i] = x + LOG_TABLE[x] = i + + x <<= 1 // multiply by 2 + + // The QR code specification says to use byte-wise modulo 100011101 arithmetic. + // This means that when a number is 256 or larger, it should be XORed with 0x11D. + if (x & 0x100) { // similar to x >= 256, but a lot faster (because 0x100 == 256) + x ^= 0x11D + } + } + + // Optimization: double the size of the anti-log table so that we don't need to mod 255 to + // stay inside the bounds (because we will mainly use this table for the multiplication of + // two GF numbers, no more). + // @see {@link mul} + for (let i = 255; i < 512; i++) { + EXP_TABLE[i] = EXP_TABLE[i - 255] + } +}()) + +/** + * Returns log value of n inside Galois Field + * + * @param {Number} n + * @return {Number} + */ +exports.log = function log (n) { + if (n < 1) throw new Error('log(' + n + ')') + return LOG_TABLE[n] +} + +/** + * Returns anti-log value of n inside Galois Field + * + * @param {Number} n + * @return {Number} + */ +exports.exp = function exp (n) { + return EXP_TABLE[n] +} + +/** + * Multiplies two number inside Galois Field + * + * @param {Number} x + * @param {Number} y + * @return {Number} + */ +exports.mul = function mul (x, y) { + if (x === 0 || y === 0) return 0 + + // should be EXP_TABLE[(LOG_TABLE[x] + LOG_TABLE[y]) % 255] if EXP_TABLE wasn't oversized + // @see {@link initTables} + return EXP_TABLE[LOG_TABLE[x] + LOG_TABLE[y]] +} diff --git a/node_modules/qrcode/lib/core/kanji-data.js b/node_modules/qrcode/lib/core/kanji-data.js new file mode 100644 index 0000000000000000000000000000000000000000..a1d9a6922d8e91cd90d89ea301d2531145b129f2 --- /dev/null +++ b/node_modules/qrcode/lib/core/kanji-data.js @@ -0,0 +1,54 @@ +const Mode = require('./mode') +const Utils = require('./utils') + +function KanjiData (data) { + this.mode = Mode.KANJI + this.data = data +} + +KanjiData.getBitsLength = function getBitsLength (length) { + return length * 13 +} + +KanjiData.prototype.getLength = function getLength () { + return this.data.length +} + +KanjiData.prototype.getBitsLength = function getBitsLength () { + return KanjiData.getBitsLength(this.data.length) +} + +KanjiData.prototype.write = function (bitBuffer) { + let i + + // In the Shift JIS system, Kanji characters are represented by a two byte combination. + // These byte values are shifted from the JIS X 0208 values. + // JIS X 0208 gives details of the shift coded representation. + for (i = 0; i < this.data.length; i++) { + let value = Utils.toSJIS(this.data[i]) + + // For characters with Shift JIS values from 0x8140 to 0x9FFC: + if (value >= 0x8140 && value <= 0x9FFC) { + // Subtract 0x8140 from Shift JIS value + value -= 0x8140 + + // For characters with Shift JIS values from 0xE040 to 0xEBBF + } else if (value >= 0xE040 && value <= 0xEBBF) { + // Subtract 0xC140 from Shift JIS value + value -= 0xC140 + } else { + throw new Error( + 'Invalid SJIS character: ' + this.data[i] + '\n' + + 'Make sure your charset is UTF-8') + } + + // Multiply most significant byte of result by 0xC0 + // and add least significant byte to product + value = (((value >>> 8) & 0xff) * 0xC0) + (value & 0xff) + + // Convert result to a 13-bit binary string + bitBuffer.put(value, 13) + } +} + +module.exports = KanjiData diff --git a/node_modules/qrcode/lib/core/mask-pattern.js b/node_modules/qrcode/lib/core/mask-pattern.js new file mode 100644 index 0000000000000000000000000000000000000000..f5f8900eb19c94a30b74d795177f1d3fa32184d9 --- /dev/null +++ b/node_modules/qrcode/lib/core/mask-pattern.js @@ -0,0 +1,234 @@ +/** + * Data mask pattern reference + * @type {Object} + */ +exports.Patterns = { + PATTERN000: 0, + PATTERN001: 1, + PATTERN010: 2, + PATTERN011: 3, + PATTERN100: 4, + PATTERN101: 5, + PATTERN110: 6, + PATTERN111: 7 +} + +/** + * Weighted penalty scores for the undesirable features + * @type {Object} + */ +const PenaltyScores = { + N1: 3, + N2: 3, + N3: 40, + N4: 10 +} + +/** + * Check if mask pattern value is valid + * + * @param {Number} mask Mask pattern + * @return {Boolean} true if valid, false otherwise + */ +exports.isValid = function isValid (mask) { + return mask != null && mask !== '' && !isNaN(mask) && mask >= 0 && mask <= 7 +} + +/** + * Returns mask pattern from a value. + * If value is not valid, returns undefined + * + * @param {Number|String} value Mask pattern value + * @return {Number} Valid mask pattern or undefined + */ +exports.from = function from (value) { + return exports.isValid(value) ? parseInt(value, 10) : undefined +} + +/** +* Find adjacent modules in row/column with the same color +* and assign a penalty value. +* +* Points: N1 + i +* i is the amount by which the number of adjacent modules of the same color exceeds 5 +*/ +exports.getPenaltyN1 = function getPenaltyN1 (data) { + const size = data.size + let points = 0 + let sameCountCol = 0 + let sameCountRow = 0 + let lastCol = null + let lastRow = null + + for (let row = 0; row < size; row++) { + sameCountCol = sameCountRow = 0 + lastCol = lastRow = null + + for (let col = 0; col < size; col++) { + let module = data.get(row, col) + if (module === lastCol) { + sameCountCol++ + } else { + if (sameCountCol >= 5) points += PenaltyScores.N1 + (sameCountCol - 5) + lastCol = module + sameCountCol = 1 + } + + module = data.get(col, row) + if (module === lastRow) { + sameCountRow++ + } else { + if (sameCountRow >= 5) points += PenaltyScores.N1 + (sameCountRow - 5) + lastRow = module + sameCountRow = 1 + } + } + + if (sameCountCol >= 5) points += PenaltyScores.N1 + (sameCountCol - 5) + if (sameCountRow >= 5) points += PenaltyScores.N1 + (sameCountRow - 5) + } + + return points +} + +/** + * Find 2x2 blocks with the same color and assign a penalty value + * + * Points: N2 * (m - 1) * (n - 1) + */ +exports.getPenaltyN2 = function getPenaltyN2 (data) { + const size = data.size + let points = 0 + + for (let row = 0; row < size - 1; row++) { + for (let col = 0; col < size - 1; col++) { + const last = data.get(row, col) + + data.get(row, col + 1) + + data.get(row + 1, col) + + data.get(row + 1, col + 1) + + if (last === 4 || last === 0) points++ + } + } + + return points * PenaltyScores.N2 +} + +/** + * Find 1:1:3:1:1 ratio (dark:light:dark:light:dark) pattern in row/column, + * preceded or followed by light area 4 modules wide + * + * Points: N3 * number of pattern found + */ +exports.getPenaltyN3 = function getPenaltyN3 (data) { + const size = data.size + let points = 0 + let bitsCol = 0 + let bitsRow = 0 + + for (let row = 0; row < size; row++) { + bitsCol = bitsRow = 0 + for (let col = 0; col < size; col++) { + bitsCol = ((bitsCol << 1) & 0x7FF) | data.get(row, col) + if (col >= 10 && (bitsCol === 0x5D0 || bitsCol === 0x05D)) points++ + + bitsRow = ((bitsRow << 1) & 0x7FF) | data.get(col, row) + if (col >= 10 && (bitsRow === 0x5D0 || bitsRow === 0x05D)) points++ + } + } + + return points * PenaltyScores.N3 +} + +/** + * Calculate proportion of dark modules in entire symbol + * + * Points: N4 * k + * + * k is the rating of the deviation of the proportion of dark modules + * in the symbol from 50% in steps of 5% + */ +exports.getPenaltyN4 = function getPenaltyN4 (data) { + let darkCount = 0 + const modulesCount = data.data.length + + for (let i = 0; i < modulesCount; i++) darkCount += data.data[i] + + const k = Math.abs(Math.ceil((darkCount * 100 / modulesCount) / 5) - 10) + + return k * PenaltyScores.N4 +} + +/** + * Return mask value at given position + * + * @param {Number} maskPattern Pattern reference value + * @param {Number} i Row + * @param {Number} j Column + * @return {Boolean} Mask value + */ +function getMaskAt (maskPattern, i, j) { + switch (maskPattern) { + case exports.Patterns.PATTERN000: return (i + j) % 2 === 0 + case exports.Patterns.PATTERN001: return i % 2 === 0 + case exports.Patterns.PATTERN010: return j % 3 === 0 + case exports.Patterns.PATTERN011: return (i + j) % 3 === 0 + case exports.Patterns.PATTERN100: return (Math.floor(i / 2) + Math.floor(j / 3)) % 2 === 0 + case exports.Patterns.PATTERN101: return (i * j) % 2 + (i * j) % 3 === 0 + case exports.Patterns.PATTERN110: return ((i * j) % 2 + (i * j) % 3) % 2 === 0 + case exports.Patterns.PATTERN111: return ((i * j) % 3 + (i + j) % 2) % 2 === 0 + + default: throw new Error('bad maskPattern:' + maskPattern) + } +} + +/** + * Apply a mask pattern to a BitMatrix + * + * @param {Number} pattern Pattern reference number + * @param {BitMatrix} data BitMatrix data + */ +exports.applyMask = function applyMask (pattern, data) { + const size = data.size + + for (let col = 0; col < size; col++) { + for (let row = 0; row < size; row++) { + if (data.isReserved(row, col)) continue + data.xor(row, col, getMaskAt(pattern, row, col)) + } + } +} + +/** + * Returns the best mask pattern for data + * + * @param {BitMatrix} data + * @return {Number} Mask pattern reference number + */ +exports.getBestMask = function getBestMask (data, setupFormatFunc) { + const numPatterns = Object.keys(exports.Patterns).length + let bestPattern = 0 + let lowerPenalty = Infinity + + for (let p = 0; p < numPatterns; p++) { + setupFormatFunc(p) + exports.applyMask(p, data) + + // Calculate penalty + const penalty = + exports.getPenaltyN1(data) + + exports.getPenaltyN2(data) + + exports.getPenaltyN3(data) + + exports.getPenaltyN4(data) + + // Undo previously applied mask + exports.applyMask(p, data) + + if (penalty < lowerPenalty) { + lowerPenalty = penalty + bestPattern = p + } + } + + return bestPattern +} diff --git a/node_modules/qrcode/lib/core/mode.js b/node_modules/qrcode/lib/core/mode.js new file mode 100644 index 0000000000000000000000000000000000000000..fd95a6ef72b2414042cb9cf73fd7f4fe7ce054fe --- /dev/null +++ b/node_modules/qrcode/lib/core/mode.js @@ -0,0 +1,167 @@ +const VersionCheck = require('./version-check') +const Regex = require('./regex') + +/** + * Numeric mode encodes data from the decimal digit set (0 - 9) + * (byte values 30HEX to 39HEX). + * Normally, 3 data characters are represented by 10 bits. + * + * @type {Object} + */ +exports.NUMERIC = { + id: 'Numeric', + bit: 1 << 0, + ccBits: [10, 12, 14] +} + +/** + * Alphanumeric mode encodes data from a set of 45 characters, + * i.e. 10 numeric digits (0 - 9), + * 26 alphabetic characters (A - Z), + * and 9 symbols (SP, $, %, *, +, -, ., /, :). + * Normally, two input characters are represented by 11 bits. + * + * @type {Object} + */ +exports.ALPHANUMERIC = { + id: 'Alphanumeric', + bit: 1 << 1, + ccBits: [9, 11, 13] +} + +/** + * In byte mode, data is encoded at 8 bits per character. + * + * @type {Object} + */ +exports.BYTE = { + id: 'Byte', + bit: 1 << 2, + ccBits: [8, 16, 16] +} + +/** + * The Kanji mode efficiently encodes Kanji characters in accordance with + * the Shift JIS system based on JIS X 0208. + * The Shift JIS values are shifted from the JIS X 0208 values. + * JIS X 0208 gives details of the shift coded representation. + * Each two-byte character value is compacted to a 13-bit binary codeword. + * + * @type {Object} + */ +exports.KANJI = { + id: 'Kanji', + bit: 1 << 3, + ccBits: [8, 10, 12] +} + +/** + * Mixed mode will contain a sequences of data in a combination of any of + * the modes described above + * + * @type {Object} + */ +exports.MIXED = { + bit: -1 +} + +/** + * Returns the number of bits needed to store the data length + * according to QR Code specifications. + * + * @param {Mode} mode Data mode + * @param {Number} version QR Code version + * @return {Number} Number of bits + */ +exports.getCharCountIndicator = function getCharCountIndicator (mode, version) { + if (!mode.ccBits) throw new Error('Invalid mode: ' + mode) + + if (!VersionCheck.isValid(version)) { + throw new Error('Invalid version: ' + version) + } + + if (version >= 1 && version < 10) return mode.ccBits[0] + else if (version < 27) return mode.ccBits[1] + return mode.ccBits[2] +} + +/** + * Returns the most efficient mode to store the specified data + * + * @param {String} dataStr Input data string + * @return {Mode} Best mode + */ +exports.getBestModeForData = function getBestModeForData (dataStr) { + if (Regex.testNumeric(dataStr)) return exports.NUMERIC + else if (Regex.testAlphanumeric(dataStr)) return exports.ALPHANUMERIC + else if (Regex.testKanji(dataStr)) return exports.KANJI + else return exports.BYTE +} + +/** + * Return mode name as string + * + * @param {Mode} mode Mode object + * @returns {String} Mode name + */ +exports.toString = function toString (mode) { + if (mode && mode.id) return mode.id + throw new Error('Invalid mode') +} + +/** + * Check if input param is a valid mode object + * + * @param {Mode} mode Mode object + * @returns {Boolean} True if valid mode, false otherwise + */ +exports.isValid = function isValid (mode) { + return mode && mode.bit && mode.ccBits +} + +/** + * Get mode object from its name + * + * @param {String} string Mode name + * @returns {Mode} Mode object + */ +function fromString (string) { + if (typeof string !== 'string') { + throw new Error('Param is not a string') + } + + const lcStr = string.toLowerCase() + + switch (lcStr) { + case 'numeric': + return exports.NUMERIC + case 'alphanumeric': + return exports.ALPHANUMERIC + case 'kanji': + return exports.KANJI + case 'byte': + return exports.BYTE + default: + throw new Error('Unknown mode: ' + string) + } +} + +/** + * Returns mode from a value. + * If value is not a valid mode, returns defaultValue + * + * @param {Mode|String} value Encoding mode + * @param {Mode} defaultValue Fallback value + * @return {Mode} Encoding mode + */ +exports.from = function from (value, defaultValue) { + if (exports.isValid(value)) { + return value + } + + try { + return fromString(value) + } catch (e) { + return defaultValue + } +} diff --git a/node_modules/qrcode/lib/core/numeric-data.js b/node_modules/qrcode/lib/core/numeric-data.js new file mode 100644 index 0000000000000000000000000000000000000000..5223991c6a7378509b5ab9701fb31e28c68c6faf --- /dev/null +++ b/node_modules/qrcode/lib/core/numeric-data.js @@ -0,0 +1,43 @@ +const Mode = require('./mode') + +function NumericData (data) { + this.mode = Mode.NUMERIC + this.data = data.toString() +} + +NumericData.getBitsLength = function getBitsLength (length) { + return 10 * Math.floor(length / 3) + ((length % 3) ? ((length % 3) * 3 + 1) : 0) +} + +NumericData.prototype.getLength = function getLength () { + return this.data.length +} + +NumericData.prototype.getBitsLength = function getBitsLength () { + return NumericData.getBitsLength(this.data.length) +} + +NumericData.prototype.write = function write (bitBuffer) { + let i, group, value + + // The input data string is divided into groups of three digits, + // and each group is converted to its 10-bit binary equivalent. + for (i = 0; i + 3 <= this.data.length; i += 3) { + group = this.data.substr(i, 3) + value = parseInt(group, 10) + + bitBuffer.put(value, 10) + } + + // If the number of input digits is not an exact multiple of three, + // the final one or two digits are converted to 4 or 7 bits respectively. + const remainingNum = this.data.length - i + if (remainingNum > 0) { + group = this.data.substr(i) + value = parseInt(group, 10) + + bitBuffer.put(value, remainingNum * 3 + 1) + } +} + +module.exports = NumericData diff --git a/node_modules/qrcode/lib/core/polynomial.js b/node_modules/qrcode/lib/core/polynomial.js new file mode 100644 index 0000000000000000000000000000000000000000..c6ed9c2e9173b5e494d488e99b72e03eb55fcd2f --- /dev/null +++ b/node_modules/qrcode/lib/core/polynomial.js @@ -0,0 +1,62 @@ +const GF = require('./galois-field') + +/** + * Multiplies two polynomials inside Galois Field + * + * @param {Uint8Array} p1 Polynomial + * @param {Uint8Array} p2 Polynomial + * @return {Uint8Array} Product of p1 and p2 + */ +exports.mul = function mul (p1, p2) { + const coeff = new Uint8Array(p1.length + p2.length - 1) + + for (let i = 0; i < p1.length; i++) { + for (let j = 0; j < p2.length; j++) { + coeff[i + j] ^= GF.mul(p1[i], p2[j]) + } + } + + return coeff +} + +/** + * Calculate the remainder of polynomials division + * + * @param {Uint8Array} divident Polynomial + * @param {Uint8Array} divisor Polynomial + * @return {Uint8Array} Remainder + */ +exports.mod = function mod (divident, divisor) { + let result = new Uint8Array(divident) + + while ((result.length - divisor.length) >= 0) { + const coeff = result[0] + + for (let i = 0; i < divisor.length; i++) { + result[i] ^= GF.mul(divisor[i], coeff) + } + + // remove all zeros from buffer head + let offset = 0 + while (offset < result.length && result[offset] === 0) offset++ + result = result.slice(offset) + } + + return result +} + +/** + * Generate an irreducible generator polynomial of specified degree + * (used by Reed-Solomon encoder) + * + * @param {Number} degree Degree of the generator polynomial + * @return {Uint8Array} Buffer containing polynomial coefficients + */ +exports.generateECPolynomial = function generateECPolynomial (degree) { + let poly = new Uint8Array([1]) + for (let i = 0; i < degree; i++) { + poly = exports.mul(poly, new Uint8Array([1, GF.exp(i)])) + } + + return poly +} diff --git a/node_modules/qrcode/lib/core/qrcode.js b/node_modules/qrcode/lib/core/qrcode.js new file mode 100644 index 0000000000000000000000000000000000000000..f76df54b3c595e831d70c189e446479dbe8ac75a --- /dev/null +++ b/node_modules/qrcode/lib/core/qrcode.js @@ -0,0 +1,495 @@ +const Utils = require('./utils') +const ECLevel = require('./error-correction-level') +const BitBuffer = require('./bit-buffer') +const BitMatrix = require('./bit-matrix') +const AlignmentPattern = require('./alignment-pattern') +const FinderPattern = require('./finder-pattern') +const MaskPattern = require('./mask-pattern') +const ECCode = require('./error-correction-code') +const ReedSolomonEncoder = require('./reed-solomon-encoder') +const Version = require('./version') +const FormatInfo = require('./format-info') +const Mode = require('./mode') +const Segments = require('./segments') + +/** + * QRCode for JavaScript + * + * modified by Ryan Day for nodejs support + * Copyright (c) 2011 Ryan Day + * + * Licensed under the MIT license: + * http://www.opensource.org/licenses/mit-license.php + * +//--------------------------------------------------------------------- +// QRCode for JavaScript +// +// Copyright (c) 2009 Kazuhiko Arase +// +// URL: http://www.d-project.com/ +// +// Licensed under the MIT license: +// http://www.opensource.org/licenses/mit-license.php +// +// The word "QR Code" is registered trademark of +// DENSO WAVE INCORPORATED +// http://www.denso-wave.com/qrcode/faqpatent-e.html +// +//--------------------------------------------------------------------- +*/ + +/** + * Add finder patterns bits to matrix + * + * @param {BitMatrix} matrix Modules matrix + * @param {Number} version QR Code version + */ +function setupFinderPattern (matrix, version) { + const size = matrix.size + const pos = FinderPattern.getPositions(version) + + for (let i = 0; i < pos.length; i++) { + const row = pos[i][0] + const col = pos[i][1] + + for (let r = -1; r <= 7; r++) { + if (row + r <= -1 || size <= row + r) continue + + for (let c = -1; c <= 7; c++) { + if (col + c <= -1 || size <= col + c) continue + + if ((r >= 0 && r <= 6 && (c === 0 || c === 6)) || + (c >= 0 && c <= 6 && (r === 0 || r === 6)) || + (r >= 2 && r <= 4 && c >= 2 && c <= 4)) { + matrix.set(row + r, col + c, true, true) + } else { + matrix.set(row + r, col + c, false, true) + } + } + } + } +} + +/** + * Add timing pattern bits to matrix + * + * Note: this function must be called before {@link setupAlignmentPattern} + * + * @param {BitMatrix} matrix Modules matrix + */ +function setupTimingPattern (matrix) { + const size = matrix.size + + for (let r = 8; r < size - 8; r++) { + const value = r % 2 === 0 + matrix.set(r, 6, value, true) + matrix.set(6, r, value, true) + } +} + +/** + * Add alignment patterns bits to matrix + * + * Note: this function must be called after {@link setupTimingPattern} + * + * @param {BitMatrix} matrix Modules matrix + * @param {Number} version QR Code version + */ +function setupAlignmentPattern (matrix, version) { + const pos = AlignmentPattern.getPositions(version) + + for (let i = 0; i < pos.length; i++) { + const row = pos[i][0] + const col = pos[i][1] + + for (let r = -2; r <= 2; r++) { + for (let c = -2; c <= 2; c++) { + if (r === -2 || r === 2 || c === -2 || c === 2 || + (r === 0 && c === 0)) { + matrix.set(row + r, col + c, true, true) + } else { + matrix.set(row + r, col + c, false, true) + } + } + } + } +} + +/** + * Add version info bits to matrix + * + * @param {BitMatrix} matrix Modules matrix + * @param {Number} version QR Code version + */ +function setupVersionInfo (matrix, version) { + const size = matrix.size + const bits = Version.getEncodedBits(version) + let row, col, mod + + for (let i = 0; i < 18; i++) { + row = Math.floor(i / 3) + col = i % 3 + size - 8 - 3 + mod = ((bits >> i) & 1) === 1 + + matrix.set(row, col, mod, true) + matrix.set(col, row, mod, true) + } +} + +/** + * Add format info bits to matrix + * + * @param {BitMatrix} matrix Modules matrix + * @param {ErrorCorrectionLevel} errorCorrectionLevel Error correction level + * @param {Number} maskPattern Mask pattern reference value + */ +function setupFormatInfo (matrix, errorCorrectionLevel, maskPattern) { + const size = matrix.size + const bits = FormatInfo.getEncodedBits(errorCorrectionLevel, maskPattern) + let i, mod + + for (i = 0; i < 15; i++) { + mod = ((bits >> i) & 1) === 1 + + // vertical + if (i < 6) { + matrix.set(i, 8, mod, true) + } else if (i < 8) { + matrix.set(i + 1, 8, mod, true) + } else { + matrix.set(size - 15 + i, 8, mod, true) + } + + // horizontal + if (i < 8) { + matrix.set(8, size - i - 1, mod, true) + } else if (i < 9) { + matrix.set(8, 15 - i - 1 + 1, mod, true) + } else { + matrix.set(8, 15 - i - 1, mod, true) + } + } + + // fixed module + matrix.set(size - 8, 8, 1, true) +} + +/** + * Add encoded data bits to matrix + * + * @param {BitMatrix} matrix Modules matrix + * @param {Uint8Array} data Data codewords + */ +function setupData (matrix, data) { + const size = matrix.size + let inc = -1 + let row = size - 1 + let bitIndex = 7 + let byteIndex = 0 + + for (let col = size - 1; col > 0; col -= 2) { + if (col === 6) col-- + + while (true) { + for (let c = 0; c < 2; c++) { + if (!matrix.isReserved(row, col - c)) { + let dark = false + + if (byteIndex < data.length) { + dark = (((data[byteIndex] >>> bitIndex) & 1) === 1) + } + + matrix.set(row, col - c, dark) + bitIndex-- + + if (bitIndex === -1) { + byteIndex++ + bitIndex = 7 + } + } + } + + row += inc + + if (row < 0 || size <= row) { + row -= inc + inc = -inc + break + } + } + } +} + +/** + * Create encoded codewords from data input + * + * @param {Number} version QR Code version + * @param {ErrorCorrectionLevel} errorCorrectionLevel Error correction level + * @param {ByteData} data Data input + * @return {Uint8Array} Buffer containing encoded codewords + */ +function createData (version, errorCorrectionLevel, segments) { + // Prepare data buffer + const buffer = new BitBuffer() + + segments.forEach(function (data) { + // prefix data with mode indicator (4 bits) + buffer.put(data.mode.bit, 4) + + // Prefix data with character count indicator. + // The character count indicator is a string of bits that represents the + // number of characters that are being encoded. + // The character count indicator must be placed after the mode indicator + // and must be a certain number of bits long, depending on the QR version + // and data mode + // @see {@link Mode.getCharCountIndicator}. + buffer.put(data.getLength(), Mode.getCharCountIndicator(data.mode, version)) + + // add binary data sequence to buffer + data.write(buffer) + }) + + // Calculate required number of bits + const totalCodewords = Utils.getSymbolTotalCodewords(version) + const ecTotalCodewords = ECCode.getTotalCodewordsCount(version, errorCorrectionLevel) + const dataTotalCodewordsBits = (totalCodewords - ecTotalCodewords) * 8 + + // Add a terminator. + // If the bit string is shorter than the total number of required bits, + // a terminator of up to four 0s must be added to the right side of the string. + // If the bit string is more than four bits shorter than the required number of bits, + // add four 0s to the end. + if (buffer.getLengthInBits() + 4 <= dataTotalCodewordsBits) { + buffer.put(0, 4) + } + + // If the bit string is fewer than four bits shorter, add only the number of 0s that + // are needed to reach the required number of bits. + + // After adding the terminator, if the number of bits in the string is not a multiple of 8, + // pad the string on the right with 0s to make the string's length a multiple of 8. + while (buffer.getLengthInBits() % 8 !== 0) { + buffer.putBit(0) + } + + // Add pad bytes if the string is still shorter than the total number of required bits. + // Extend the buffer to fill the data capacity of the symbol corresponding to + // the Version and Error Correction Level by adding the Pad Codewords 11101100 (0xEC) + // and 00010001 (0x11) alternately. + const remainingByte = (dataTotalCodewordsBits - buffer.getLengthInBits()) / 8 + for (let i = 0; i < remainingByte; i++) { + buffer.put(i % 2 ? 0x11 : 0xEC, 8) + } + + return createCodewords(buffer, version, errorCorrectionLevel) +} + +/** + * Encode input data with Reed-Solomon and return codewords with + * relative error correction bits + * + * @param {BitBuffer} bitBuffer Data to encode + * @param {Number} version QR Code version + * @param {ErrorCorrectionLevel} errorCorrectionLevel Error correction level + * @return {Uint8Array} Buffer containing encoded codewords + */ +function createCodewords (bitBuffer, version, errorCorrectionLevel) { + // Total codewords for this QR code version (Data + Error correction) + const totalCodewords = Utils.getSymbolTotalCodewords(version) + + // Total number of error correction codewords + const ecTotalCodewords = ECCode.getTotalCodewordsCount(version, errorCorrectionLevel) + + // Total number of data codewords + const dataTotalCodewords = totalCodewords - ecTotalCodewords + + // Total number of blocks + const ecTotalBlocks = ECCode.getBlocksCount(version, errorCorrectionLevel) + + // Calculate how many blocks each group should contain + const blocksInGroup2 = totalCodewords % ecTotalBlocks + const blocksInGroup1 = ecTotalBlocks - blocksInGroup2 + + const totalCodewordsInGroup1 = Math.floor(totalCodewords / ecTotalBlocks) + + const dataCodewordsInGroup1 = Math.floor(dataTotalCodewords / ecTotalBlocks) + const dataCodewordsInGroup2 = dataCodewordsInGroup1 + 1 + + // Number of EC codewords is the same for both groups + const ecCount = totalCodewordsInGroup1 - dataCodewordsInGroup1 + + // Initialize a Reed-Solomon encoder with a generator polynomial of degree ecCount + const rs = new ReedSolomonEncoder(ecCount) + + let offset = 0 + const dcData = new Array(ecTotalBlocks) + const ecData = new Array(ecTotalBlocks) + let maxDataSize = 0 + const buffer = new Uint8Array(bitBuffer.buffer) + + // Divide the buffer into the required number of blocks + for (let b = 0; b < ecTotalBlocks; b++) { + const dataSize = b < blocksInGroup1 ? dataCodewordsInGroup1 : dataCodewordsInGroup2 + + // extract a block of data from buffer + dcData[b] = buffer.slice(offset, offset + dataSize) + + // Calculate EC codewords for this data block + ecData[b] = rs.encode(dcData[b]) + + offset += dataSize + maxDataSize = Math.max(maxDataSize, dataSize) + } + + // Create final data + // Interleave the data and error correction codewords from each block + const data = new Uint8Array(totalCodewords) + let index = 0 + let i, r + + // Add data codewords + for (i = 0; i < maxDataSize; i++) { + for (r = 0; r < ecTotalBlocks; r++) { + if (i < dcData[r].length) { + data[index++] = dcData[r][i] + } + } + } + + // Apped EC codewords + for (i = 0; i < ecCount; i++) { + for (r = 0; r < ecTotalBlocks; r++) { + data[index++] = ecData[r][i] + } + } + + return data +} + +/** + * Build QR Code symbol + * + * @param {String} data Input string + * @param {Number} version QR Code version + * @param {ErrorCorretionLevel} errorCorrectionLevel Error level + * @param {MaskPattern} maskPattern Mask pattern + * @return {Object} Object containing symbol data + */ +function createSymbol (data, version, errorCorrectionLevel, maskPattern) { + let segments + + if (Array.isArray(data)) { + segments = Segments.fromArray(data) + } else if (typeof data === 'string') { + let estimatedVersion = version + + if (!estimatedVersion) { + const rawSegments = Segments.rawSplit(data) + + // Estimate best version that can contain raw splitted segments + estimatedVersion = Version.getBestVersionForData(rawSegments, errorCorrectionLevel) + } + + // Build optimized segments + // If estimated version is undefined, try with the highest version + segments = Segments.fromString(data, estimatedVersion || 40) + } else { + throw new Error('Invalid data') + } + + // Get the min version that can contain data + const bestVersion = Version.getBestVersionForData(segments, errorCorrectionLevel) + + // If no version is found, data cannot be stored + if (!bestVersion) { + throw new Error('The amount of data is too big to be stored in a QR Code') + } + + // If not specified, use min version as default + if (!version) { + version = bestVersion + + // Check if the specified version can contain the data + } else if (version < bestVersion) { + throw new Error('\n' + + 'The chosen QR Code version cannot contain this amount of data.\n' + + 'Minimum version required to store current data is: ' + bestVersion + '.\n' + ) + } + + const dataBits = createData(version, errorCorrectionLevel, segments) + + // Allocate matrix buffer + const moduleCount = Utils.getSymbolSize(version) + const modules = new BitMatrix(moduleCount) + + // Add function modules + setupFinderPattern(modules, version) + setupTimingPattern(modules) + setupAlignmentPattern(modules, version) + + // Add temporary dummy bits for format info just to set them as reserved. + // This is needed to prevent these bits from being masked by {@link MaskPattern.applyMask} + // since the masking operation must be performed only on the encoding region. + // These blocks will be replaced with correct values later in code. + setupFormatInfo(modules, errorCorrectionLevel, 0) + + if (version >= 7) { + setupVersionInfo(modules, version) + } + + // Add data codewords + setupData(modules, dataBits) + + if (isNaN(maskPattern)) { + // Find best mask pattern + maskPattern = MaskPattern.getBestMask(modules, + setupFormatInfo.bind(null, modules, errorCorrectionLevel)) + } + + // Apply mask pattern + MaskPattern.applyMask(maskPattern, modules) + + // Replace format info bits with correct values + setupFormatInfo(modules, errorCorrectionLevel, maskPattern) + + return { + modules: modules, + version: version, + errorCorrectionLevel: errorCorrectionLevel, + maskPattern: maskPattern, + segments: segments + } +} + +/** + * QR Code + * + * @param {String | Array} data Input data + * @param {Object} options Optional configurations + * @param {Number} options.version QR Code version + * @param {String} options.errorCorrectionLevel Error correction level + * @param {Function} options.toSJISFunc Helper func to convert utf8 to sjis + */ +exports.create = function create (data, options) { + if (typeof data === 'undefined' || data === '') { + throw new Error('No input text') + } + + let errorCorrectionLevel = ECLevel.M + let version + let mask + + if (typeof options !== 'undefined') { + // Use higher error correction level as default + errorCorrectionLevel = ECLevel.from(options.errorCorrectionLevel, ECLevel.M) + version = Version.from(options.version) + mask = MaskPattern.from(options.maskPattern) + + if (options.toSJISFunc) { + Utils.setToSJISFunction(options.toSJISFunc) + } + } + + return createSymbol(data, version, errorCorrectionLevel, mask) +} diff --git a/node_modules/qrcode/lib/core/reed-solomon-encoder.js b/node_modules/qrcode/lib/core/reed-solomon-encoder.js new file mode 100644 index 0000000000000000000000000000000000000000..c19842279cd54c8a09cd821aaeb36ff2c1229101 --- /dev/null +++ b/node_modules/qrcode/lib/core/reed-solomon-encoder.js @@ -0,0 +1,56 @@ +const Polynomial = require('./polynomial') + +function ReedSolomonEncoder (degree) { + this.genPoly = undefined + this.degree = degree + + if (this.degree) this.initialize(this.degree) +} + +/** + * Initialize the encoder. + * The input param should correspond to the number of error correction codewords. + * + * @param {Number} degree + */ +ReedSolomonEncoder.prototype.initialize = function initialize (degree) { + // create an irreducible generator polynomial + this.degree = degree + this.genPoly = Polynomial.generateECPolynomial(this.degree) +} + +/** + * Encodes a chunk of data + * + * @param {Uint8Array} data Buffer containing input data + * @return {Uint8Array} Buffer containing encoded data + */ +ReedSolomonEncoder.prototype.encode = function encode (data) { + if (!this.genPoly) { + throw new Error('Encoder not initialized') + } + + // Calculate EC for this data block + // extends data size to data+genPoly size + const paddedData = new Uint8Array(data.length + this.degree) + paddedData.set(data) + + // The error correction codewords are the remainder after dividing the data codewords + // by a generator polynomial + const remainder = Polynomial.mod(paddedData, this.genPoly) + + // return EC data blocks (last n byte, where n is the degree of genPoly) + // If coefficients number in remainder are less than genPoly degree, + // pad with 0s to the left to reach the needed number of coefficients + const start = this.degree - remainder.length + if (start > 0) { + const buff = new Uint8Array(this.degree) + buff.set(remainder, start) + + return buff + } + + return remainder +} + +module.exports = ReedSolomonEncoder diff --git a/node_modules/qrcode/lib/core/regex.js b/node_modules/qrcode/lib/core/regex.js new file mode 100644 index 0000000000000000000000000000000000000000..9dd13a4231a1a88d66652ac1249a316c0265c9d8 --- /dev/null +++ b/node_modules/qrcode/lib/core/regex.js @@ -0,0 +1,31 @@ +const numeric = '[0-9]+' +const alphanumeric = '[A-Z $%*+\\-./:]+' +let kanji = '(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|' + + '[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|' + + '[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|' + + '[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+' +kanji = kanji.replace(/u/g, '\\u') + +const byte = '(?:(?![A-Z0-9 $%*+\\-./:]|' + kanji + ')(?:.|[\r\n]))+' + +exports.KANJI = new RegExp(kanji, 'g') +exports.BYTE_KANJI = new RegExp('[^A-Z0-9 $%*+\\-./:]+', 'g') +exports.BYTE = new RegExp(byte, 'g') +exports.NUMERIC = new RegExp(numeric, 'g') +exports.ALPHANUMERIC = new RegExp(alphanumeric, 'g') + +const TEST_KANJI = new RegExp('^' + kanji + '$') +const TEST_NUMERIC = new RegExp('^' + numeric + '$') +const TEST_ALPHANUMERIC = new RegExp('^[A-Z0-9 $%*+\\-./:]+$') + +exports.testKanji = function testKanji (str) { + return TEST_KANJI.test(str) +} + +exports.testNumeric = function testNumeric (str) { + return TEST_NUMERIC.test(str) +} + +exports.testAlphanumeric = function testAlphanumeric (str) { + return TEST_ALPHANUMERIC.test(str) +} diff --git a/node_modules/qrcode/lib/core/segments.js b/node_modules/qrcode/lib/core/segments.js new file mode 100644 index 0000000000000000000000000000000000000000..ba8be1788cca0671a160d008e68cfa415f1e1c30 --- /dev/null +++ b/node_modules/qrcode/lib/core/segments.js @@ -0,0 +1,330 @@ +const Mode = require('./mode') +const NumericData = require('./numeric-data') +const AlphanumericData = require('./alphanumeric-data') +const ByteData = require('./byte-data') +const KanjiData = require('./kanji-data') +const Regex = require('./regex') +const Utils = require('./utils') +const dijkstra = require('dijkstrajs') + +/** + * Returns UTF8 byte length + * + * @param {String} str Input string + * @return {Number} Number of byte + */ +function getStringByteLength (str) { + return unescape(encodeURIComponent(str)).length +} + +/** + * Get a list of segments of the specified mode + * from a string + * + * @param {Mode} mode Segment mode + * @param {String} str String to process + * @return {Array} Array of object with segments data + */ +function getSegments (regex, mode, str) { + const segments = [] + let result + + while ((result = regex.exec(str)) !== null) { + segments.push({ + data: result[0], + index: result.index, + mode: mode, + length: result[0].length + }) + } + + return segments +} + +/** + * Extracts a series of segments with the appropriate + * modes from a string + * + * @param {String} dataStr Input string + * @return {Array} Array of object with segments data + */ +function getSegmentsFromString (dataStr) { + const numSegs = getSegments(Regex.NUMERIC, Mode.NUMERIC, dataStr) + const alphaNumSegs = getSegments(Regex.ALPHANUMERIC, Mode.ALPHANUMERIC, dataStr) + let byteSegs + let kanjiSegs + + if (Utils.isKanjiModeEnabled()) { + byteSegs = getSegments(Regex.BYTE, Mode.BYTE, dataStr) + kanjiSegs = getSegments(Regex.KANJI, Mode.KANJI, dataStr) + } else { + byteSegs = getSegments(Regex.BYTE_KANJI, Mode.BYTE, dataStr) + kanjiSegs = [] + } + + const segs = numSegs.concat(alphaNumSegs, byteSegs, kanjiSegs) + + return segs + .sort(function (s1, s2) { + return s1.index - s2.index + }) + .map(function (obj) { + return { + data: obj.data, + mode: obj.mode, + length: obj.length + } + }) +} + +/** + * Returns how many bits are needed to encode a string of + * specified length with the specified mode + * + * @param {Number} length String length + * @param {Mode} mode Segment mode + * @return {Number} Bit length + */ +function getSegmentBitsLength (length, mode) { + switch (mode) { + case Mode.NUMERIC: + return NumericData.getBitsLength(length) + case Mode.ALPHANUMERIC: + return AlphanumericData.getBitsLength(length) + case Mode.KANJI: + return KanjiData.getBitsLength(length) + case Mode.BYTE: + return ByteData.getBitsLength(length) + } +} + +/** + * Merges adjacent segments which have the same mode + * + * @param {Array} segs Array of object with segments data + * @return {Array} Array of object with segments data + */ +function mergeSegments (segs) { + return segs.reduce(function (acc, curr) { + const prevSeg = acc.length - 1 >= 0 ? acc[acc.length - 1] : null + if (prevSeg && prevSeg.mode === curr.mode) { + acc[acc.length - 1].data += curr.data + return acc + } + + acc.push(curr) + return acc + }, []) +} + +/** + * Generates a list of all possible nodes combination which + * will be used to build a segments graph. + * + * Nodes are divided by groups. Each group will contain a list of all the modes + * in which is possible to encode the given text. + * + * For example the text '12345' can be encoded as Numeric, Alphanumeric or Byte. + * The group for '12345' will contain then 3 objects, one for each + * possible encoding mode. + * + * Each node represents a possible segment. + * + * @param {Array} segs Array of object with segments data + * @return {Array} Array of object with segments data + */ +function buildNodes (segs) { + const nodes = [] + for (let i = 0; i < segs.length; i++) { + const seg = segs[i] + + switch (seg.mode) { + case Mode.NUMERIC: + nodes.push([seg, + { data: seg.data, mode: Mode.ALPHANUMERIC, length: seg.length }, + { data: seg.data, mode: Mode.BYTE, length: seg.length } + ]) + break + case Mode.ALPHANUMERIC: + nodes.push([seg, + { data: seg.data, mode: Mode.BYTE, length: seg.length } + ]) + break + case Mode.KANJI: + nodes.push([seg, + { data: seg.data, mode: Mode.BYTE, length: getStringByteLength(seg.data) } + ]) + break + case Mode.BYTE: + nodes.push([ + { data: seg.data, mode: Mode.BYTE, length: getStringByteLength(seg.data) } + ]) + } + } + + return nodes +} + +/** + * Builds a graph from a list of nodes. + * All segments in each node group will be connected with all the segments of + * the next group and so on. + * + * At each connection will be assigned a weight depending on the + * segment's byte length. + * + * @param {Array} nodes Array of object with segments data + * @param {Number} version QR Code version + * @return {Object} Graph of all possible segments + */ +function buildGraph (nodes, version) { + const table = {} + const graph = { start: {} } + let prevNodeIds = ['start'] + + for (let i = 0; i < nodes.length; i++) { + const nodeGroup = nodes[i] + const currentNodeIds = [] + + for (let j = 0; j < nodeGroup.length; j++) { + const node = nodeGroup[j] + const key = '' + i + j + + currentNodeIds.push(key) + table[key] = { node: node, lastCount: 0 } + graph[key] = {} + + for (let n = 0; n < prevNodeIds.length; n++) { + const prevNodeId = prevNodeIds[n] + + if (table[prevNodeId] && table[prevNodeId].node.mode === node.mode) { + graph[prevNodeId][key] = + getSegmentBitsLength(table[prevNodeId].lastCount + node.length, node.mode) - + getSegmentBitsLength(table[prevNodeId].lastCount, node.mode) + + table[prevNodeId].lastCount += node.length + } else { + if (table[prevNodeId]) table[prevNodeId].lastCount = node.length + + graph[prevNodeId][key] = getSegmentBitsLength(node.length, node.mode) + + 4 + Mode.getCharCountIndicator(node.mode, version) // switch cost + } + } + } + + prevNodeIds = currentNodeIds + } + + for (let n = 0; n < prevNodeIds.length; n++) { + graph[prevNodeIds[n]].end = 0 + } + + return { map: graph, table: table } +} + +/** + * Builds a segment from a specified data and mode. + * If a mode is not specified, the more suitable will be used. + * + * @param {String} data Input data + * @param {Mode | String} modesHint Data mode + * @return {Segment} Segment + */ +function buildSingleSegment (data, modesHint) { + let mode + const bestMode = Mode.getBestModeForData(data) + + mode = Mode.from(modesHint, bestMode) + + // Make sure data can be encoded + if (mode !== Mode.BYTE && mode.bit < bestMode.bit) { + throw new Error('"' + data + '"' + + ' cannot be encoded with mode ' + Mode.toString(mode) + + '.\n Suggested mode is: ' + Mode.toString(bestMode)) + } + + // Use Mode.BYTE if Kanji support is disabled + if (mode === Mode.KANJI && !Utils.isKanjiModeEnabled()) { + mode = Mode.BYTE + } + + switch (mode) { + case Mode.NUMERIC: + return new NumericData(data) + + case Mode.ALPHANUMERIC: + return new AlphanumericData(data) + + case Mode.KANJI: + return new KanjiData(data) + + case Mode.BYTE: + return new ByteData(data) + } +} + +/** + * Builds a list of segments from an array. + * Array can contain Strings or Objects with segment's info. + * + * For each item which is a string, will be generated a segment with the given + * string and the more appropriate encoding mode. + * + * For each item which is an object, will be generated a segment with the given + * data and mode. + * Objects must contain at least the property "data". + * If property "mode" is not present, the more suitable mode will be used. + * + * @param {Array} array Array of objects with segments data + * @return {Array} Array of Segments + */ +exports.fromArray = function fromArray (array) { + return array.reduce(function (acc, seg) { + if (typeof seg === 'string') { + acc.push(buildSingleSegment(seg, null)) + } else if (seg.data) { + acc.push(buildSingleSegment(seg.data, seg.mode)) + } + + return acc + }, []) +} + +/** + * Builds an optimized sequence of segments from a string, + * which will produce the shortest possible bitstream. + * + * @param {String} data Input string + * @param {Number} version QR Code version + * @return {Array} Array of segments + */ +exports.fromString = function fromString (data, version) { + const segs = getSegmentsFromString(data, Utils.isKanjiModeEnabled()) + + const nodes = buildNodes(segs) + const graph = buildGraph(nodes, version) + const path = dijkstra.find_path(graph.map, 'start', 'end') + + const optimizedSegs = [] + for (let i = 1; i < path.length - 1; i++) { + optimizedSegs.push(graph.table[path[i]].node) + } + + return exports.fromArray(mergeSegments(optimizedSegs)) +} + +/** + * Splits a string in various segments with the modes which + * best represent their content. + * The produced segments are far from being optimized. + * The output of this function is only used to estimate a QR Code version + * which may contain the data. + * + * @param {string} data Input string + * @return {Array} Array of segments + */ +exports.rawSplit = function rawSplit (data) { + return exports.fromArray( + getSegmentsFromString(data, Utils.isKanjiModeEnabled()) + ) +} diff --git a/node_modules/qrcode/lib/core/utils.js b/node_modules/qrcode/lib/core/utils.js new file mode 100644 index 0000000000000000000000000000000000000000..8a0b87ba5ad14a058d81ebc9d9439f87f271a2e7 --- /dev/null +++ b/node_modules/qrcode/lib/core/utils.js @@ -0,0 +1,63 @@ +let toSJISFunction +const CODEWORDS_COUNT = [ + 0, // Not used + 26, 44, 70, 100, 134, 172, 196, 242, 292, 346, + 404, 466, 532, 581, 655, 733, 815, 901, 991, 1085, + 1156, 1258, 1364, 1474, 1588, 1706, 1828, 1921, 2051, 2185, + 2323, 2465, 2611, 2761, 2876, 3034, 3196, 3362, 3532, 3706 +] + +/** + * Returns the QR Code size for the specified version + * + * @param {Number} version QR Code version + * @return {Number} size of QR code + */ +exports.getSymbolSize = function getSymbolSize (version) { + if (!version) throw new Error('"version" cannot be null or undefined') + if (version < 1 || version > 40) throw new Error('"version" should be in range from 1 to 40') + return version * 4 + 17 +} + +/** + * Returns the total number of codewords used to store data and EC information. + * + * @param {Number} version QR Code version + * @return {Number} Data length in bits + */ +exports.getSymbolTotalCodewords = function getSymbolTotalCodewords (version) { + return CODEWORDS_COUNT[version] +} + +/** + * Encode data with Bose-Chaudhuri-Hocquenghem + * + * @param {Number} data Value to encode + * @return {Number} Encoded value + */ +exports.getBCHDigit = function (data) { + let digit = 0 + + while (data !== 0) { + digit++ + data >>>= 1 + } + + return digit +} + +exports.setToSJISFunction = function setToSJISFunction (f) { + if (typeof f !== 'function') { + throw new Error('"toSJISFunc" is not a valid function.') + } + + toSJISFunction = f +} + +exports.isKanjiModeEnabled = function () { + return typeof toSJISFunction !== 'undefined' +} + +exports.toSJIS = function toSJIS (kanji) { + return toSJISFunction(kanji) +} diff --git a/node_modules/qrcode/lib/core/version-check.js b/node_modules/qrcode/lib/core/version-check.js new file mode 100644 index 0000000000000000000000000000000000000000..dd32b5aced810559e5ef974d483cb0660996737e --- /dev/null +++ b/node_modules/qrcode/lib/core/version-check.js @@ -0,0 +1,9 @@ +/** + * Check if QR Code version is valid + * + * @param {Number} version QR Code version + * @return {Boolean} true if valid version, false otherwise + */ +exports.isValid = function isValid (version) { + return !isNaN(version) && version >= 1 && version <= 40 +} diff --git a/node_modules/qrcode/lib/core/version.js b/node_modules/qrcode/lib/core/version.js new file mode 100644 index 0000000000000000000000000000000000000000..32b846615722615db5b68f422bb46eae885246c6 --- /dev/null +++ b/node_modules/qrcode/lib/core/version.js @@ -0,0 +1,163 @@ +const Utils = require('./utils') +const ECCode = require('./error-correction-code') +const ECLevel = require('./error-correction-level') +const Mode = require('./mode') +const VersionCheck = require('./version-check') + +// Generator polynomial used to encode version information +const G18 = (1 << 12) | (1 << 11) | (1 << 10) | (1 << 9) | (1 << 8) | (1 << 5) | (1 << 2) | (1 << 0) +const G18_BCH = Utils.getBCHDigit(G18) + +function getBestVersionForDataLength (mode, length, errorCorrectionLevel) { + for (let currentVersion = 1; currentVersion <= 40; currentVersion++) { + if (length <= exports.getCapacity(currentVersion, errorCorrectionLevel, mode)) { + return currentVersion + } + } + + return undefined +} + +function getReservedBitsCount (mode, version) { + // Character count indicator + mode indicator bits + return Mode.getCharCountIndicator(mode, version) + 4 +} + +function getTotalBitsFromDataArray (segments, version) { + let totalBits = 0 + + segments.forEach(function (data) { + const reservedBits = getReservedBitsCount(data.mode, version) + totalBits += reservedBits + data.getBitsLength() + }) + + return totalBits +} + +function getBestVersionForMixedData (segments, errorCorrectionLevel) { + for (let currentVersion = 1; currentVersion <= 40; currentVersion++) { + const length = getTotalBitsFromDataArray(segments, currentVersion) + if (length <= exports.getCapacity(currentVersion, errorCorrectionLevel, Mode.MIXED)) { + return currentVersion + } + } + + return undefined +} + +/** + * Returns version number from a value. + * If value is not a valid version, returns defaultValue + * + * @param {Number|String} value QR Code version + * @param {Number} defaultValue Fallback value + * @return {Number} QR Code version number + */ +exports.from = function from (value, defaultValue) { + if (VersionCheck.isValid(value)) { + return parseInt(value, 10) + } + + return defaultValue +} + +/** + * Returns how much data can be stored with the specified QR code version + * and error correction level + * + * @param {Number} version QR Code version (1-40) + * @param {Number} errorCorrectionLevel Error correction level + * @param {Mode} mode Data mode + * @return {Number} Quantity of storable data + */ +exports.getCapacity = function getCapacity (version, errorCorrectionLevel, mode) { + if (!VersionCheck.isValid(version)) { + throw new Error('Invalid QR Code version') + } + + // Use Byte mode as default + if (typeof mode === 'undefined') mode = Mode.BYTE + + // Total codewords for this QR code version (Data + Error correction) + const totalCodewords = Utils.getSymbolTotalCodewords(version) + + // Total number of error correction codewords + const ecTotalCodewords = ECCode.getTotalCodewordsCount(version, errorCorrectionLevel) + + // Total number of data codewords + const dataTotalCodewordsBits = (totalCodewords - ecTotalCodewords) * 8 + + if (mode === Mode.MIXED) return dataTotalCodewordsBits + + const usableBits = dataTotalCodewordsBits - getReservedBitsCount(mode, version) + + // Return max number of storable codewords + switch (mode) { + case Mode.NUMERIC: + return Math.floor((usableBits / 10) * 3) + + case Mode.ALPHANUMERIC: + return Math.floor((usableBits / 11) * 2) + + case Mode.KANJI: + return Math.floor(usableBits / 13) + + case Mode.BYTE: + default: + return Math.floor(usableBits / 8) + } +} + +/** + * Returns the minimum version needed to contain the amount of data + * + * @param {Segment} data Segment of data + * @param {Number} [errorCorrectionLevel=H] Error correction level + * @param {Mode} mode Data mode + * @return {Number} QR Code version + */ +exports.getBestVersionForData = function getBestVersionForData (data, errorCorrectionLevel) { + let seg + + const ecl = ECLevel.from(errorCorrectionLevel, ECLevel.M) + + if (Array.isArray(data)) { + if (data.length > 1) { + return getBestVersionForMixedData(data, ecl) + } + + if (data.length === 0) { + return 1 + } + + seg = data[0] + } else { + seg = data + } + + return getBestVersionForDataLength(seg.mode, seg.getLength(), ecl) +} + +/** + * Returns version information with relative error correction bits + * + * The version information is included in QR Code symbols of version 7 or larger. + * It consists of an 18-bit sequence containing 6 data bits, + * with 12 error correction bits calculated using the (18, 6) Golay code. + * + * @param {Number} version QR Code version + * @return {Number} Encoded version info bits + */ +exports.getEncodedBits = function getEncodedBits (version) { + if (!VersionCheck.isValid(version) || version < 7) { + throw new Error('Invalid QR Code version') + } + + let d = version << 12 + + while (Utils.getBCHDigit(d) - G18_BCH >= 0) { + d ^= (G18 << (Utils.getBCHDigit(d) - G18_BCH)) + } + + return (version << 12) | d +} diff --git a/node_modules/qrcode/lib/index.js b/node_modules/qrcode/lib/index.js new file mode 100644 index 0000000000000000000000000000000000000000..57c8f7036f69241990558816f2466c1a17eacd0b --- /dev/null +++ b/node_modules/qrcode/lib/index.js @@ -0,0 +1,12 @@ +/* +*copyright Ryan Day 2012 +* +* Licensed under the MIT license: +* http://www.opensource.org/licenses/mit-license.php +* +* this is the main server side application file for node-qrcode. +* these exports use serverside canvas api methods for file IO and buffers +* +*/ + +module.exports = require('./server') diff --git a/node_modules/qrcode/lib/renderer/canvas.js b/node_modules/qrcode/lib/renderer/canvas.js new file mode 100644 index 0000000000000000000000000000000000000000..42050cf5214571dcb2cf589bbf9dfa80d189b94c --- /dev/null +++ b/node_modules/qrcode/lib/renderer/canvas.js @@ -0,0 +1,63 @@ +const Utils = require('./utils') + +function clearCanvas (ctx, canvas, size) { + ctx.clearRect(0, 0, canvas.width, canvas.height) + + if (!canvas.style) canvas.style = {} + canvas.height = size + canvas.width = size + canvas.style.height = size + 'px' + canvas.style.width = size + 'px' +} + +function getCanvasElement () { + try { + return document.createElement('canvas') + } catch (e) { + throw new Error('You need to specify a canvas element') + } +} + +exports.render = function render (qrData, canvas, options) { + let opts = options + let canvasEl = canvas + + if (typeof opts === 'undefined' && (!canvas || !canvas.getContext)) { + opts = canvas + canvas = undefined + } + + if (!canvas) { + canvasEl = getCanvasElement() + } + + opts = Utils.getOptions(opts) + const size = Utils.getImageWidth(qrData.modules.size, opts) + + const ctx = canvasEl.getContext('2d') + const image = ctx.createImageData(size, size) + Utils.qrToImageData(image.data, qrData, opts) + + clearCanvas(ctx, canvasEl, size) + ctx.putImageData(image, 0, 0) + + return canvasEl +} + +exports.renderToDataURL = function renderToDataURL (qrData, canvas, options) { + let opts = options + + if (typeof opts === 'undefined' && (!canvas || !canvas.getContext)) { + opts = canvas + canvas = undefined + } + + if (!opts) opts = {} + + const canvasEl = exports.render(qrData, canvas, opts) + + const type = opts.type || 'image/png' + const rendererOpts = opts.rendererOpts || {} + + return canvasEl.toDataURL(type, rendererOpts.quality) +} diff --git a/node_modules/qrcode/lib/renderer/png.js b/node_modules/qrcode/lib/renderer/png.js new file mode 100644 index 0000000000000000000000000000000000000000..27421608dfb4505bb881213fc406dfd6455c316d --- /dev/null +++ b/node_modules/qrcode/lib/renderer/png.js @@ -0,0 +1,78 @@ +const fs = require('fs') +const PNG = require('pngjs').PNG +const Utils = require('./utils') + +exports.render = function render (qrData, options) { + const opts = Utils.getOptions(options) + const pngOpts = opts.rendererOpts + const size = Utils.getImageWidth(qrData.modules.size, opts) + + pngOpts.width = size + pngOpts.height = size + + const pngImage = new PNG(pngOpts) + Utils.qrToImageData(pngImage.data, qrData, opts) + + return pngImage +} + +exports.renderToDataURL = function renderToDataURL (qrData, options, cb) { + if (typeof cb === 'undefined') { + cb = options + options = undefined + } + + exports.renderToBuffer(qrData, options, function (err, output) { + if (err) cb(err) + let url = 'data:image/png;base64,' + url += output.toString('base64') + cb(null, url) + }) +} + +exports.renderToBuffer = function renderToBuffer (qrData, options, cb) { + if (typeof cb === 'undefined') { + cb = options + options = undefined + } + + const png = exports.render(qrData, options) + const buffer = [] + + png.on('error', cb) + + png.on('data', function (data) { + buffer.push(data) + }) + + png.on('end', function () { + cb(null, Buffer.concat(buffer)) + }) + + png.pack() +} + +exports.renderToFile = function renderToFile (path, qrData, options, cb) { + if (typeof cb === 'undefined') { + cb = options + options = undefined + } + + let called = false + const done = (...args) => { + if (called) return + called = true + cb.apply(null, args) + } + const stream = fs.createWriteStream(path) + + stream.on('error', done) + stream.on('close', done) + + exports.renderToFileStream(stream, qrData, options) +} + +exports.renderToFileStream = function renderToFileStream (stream, qrData, options) { + const png = exports.render(qrData, options) + png.pack().pipe(stream) +} diff --git a/node_modules/qrcode/lib/renderer/svg-tag.js b/node_modules/qrcode/lib/renderer/svg-tag.js new file mode 100644 index 0000000000000000000000000000000000000000..d0839fe06985b3a2f93966e650157a83e0ce5892 --- /dev/null +++ b/node_modules/qrcode/lib/renderer/svg-tag.js @@ -0,0 +1,81 @@ +const Utils = require('./utils') + +function getColorAttrib (color, attrib) { + const alpha = color.a / 255 + const str = attrib + '="' + color.hex + '"' + + return alpha < 1 + ? str + ' ' + attrib + '-opacity="' + alpha.toFixed(2).slice(1) + '"' + : str +} + +function svgCmd (cmd, x, y) { + let str = cmd + x + if (typeof y !== 'undefined') str += ' ' + y + + return str +} + +function qrToPath (data, size, margin) { + let path = '' + let moveBy = 0 + let newRow = false + let lineLength = 0 + + for (let i = 0; i < data.length; i++) { + const col = Math.floor(i % size) + const row = Math.floor(i / size) + + if (!col && !newRow) newRow = true + + if (data[i]) { + lineLength++ + + if (!(i > 0 && col > 0 && data[i - 1])) { + path += newRow + ? svgCmd('M', col + margin, 0.5 + row + margin) + : svgCmd('m', moveBy, 0) + + moveBy = 0 + newRow = false + } + + if (!(col + 1 < size && data[i + 1])) { + path += svgCmd('h', lineLength) + lineLength = 0 + } + } else { + moveBy++ + } + } + + return path +} + +exports.render = function render (qrData, options, cb) { + const opts = Utils.getOptions(options) + const size = qrData.modules.size + const data = qrData.modules.data + const qrcodesize = size + opts.margin * 2 + + const bg = !opts.color.light.a + ? '' + : '' + + const path = + '' + + const viewBox = 'viewBox="' + '0 0 ' + qrcodesize + ' ' + qrcodesize + '"' + + const width = !opts.width ? '' : 'width="' + opts.width + '" height="' + opts.width + '" ' + + const svgTag = '' + bg + path + '\n' + + if (typeof cb === 'function') { + cb(null, svgTag) + } + + return svgTag +} diff --git a/node_modules/qrcode/lib/renderer/svg.js b/node_modules/qrcode/lib/renderer/svg.js new file mode 100644 index 0000000000000000000000000000000000000000..ba99d14cd162a5fbe4b361a84aecfb6faf0e81a3 --- /dev/null +++ b/node_modules/qrcode/lib/renderer/svg.js @@ -0,0 +1,19 @@ +const svgTagRenderer = require('./svg-tag') + +exports.render = svgTagRenderer.render + +exports.renderToFile = function renderToFile (path, qrData, options, cb) { + if (typeof cb === 'undefined') { + cb = options + options = undefined + } + + const fs = require('fs') + const svgTag = exports.render(qrData, options) + + const xmlStr = '' + + '' + + svgTag + + fs.writeFile(path, xmlStr, cb) +} diff --git a/node_modules/qrcode/lib/renderer/terminal.js b/node_modules/qrcode/lib/renderer/terminal.js new file mode 100644 index 0000000000000000000000000000000000000000..36ddfde78c3a66029d56b367fe612aafd17ab459 --- /dev/null +++ b/node_modules/qrcode/lib/renderer/terminal.js @@ -0,0 +1,9 @@ +const big = require('./terminal/terminal') +const small = require('./terminal/terminal-small') + +exports.render = function (qrData, options, cb) { + if (options && options.small) { + return small.render(qrData, options, cb) + } + return big.render(qrData, options, cb) +} diff --git a/node_modules/qrcode/lib/renderer/terminal/terminal-small.js b/node_modules/qrcode/lib/renderer/terminal/terminal-small.js new file mode 100644 index 0000000000000000000000000000000000000000..9810d4e1510f3ce52afcf85a740dd133511cbde3 --- /dev/null +++ b/node_modules/qrcode/lib/renderer/terminal/terminal-small.js @@ -0,0 +1,85 @@ +const backgroundWhite = '\x1b[47m' +const backgroundBlack = '\x1b[40m' +const foregroundWhite = '\x1b[37m' +const foregroundBlack = '\x1b[30m' +const reset = '\x1b[0m' +const lineSetupNormal = backgroundWhite + foregroundBlack // setup colors +const lineSetupInverse = backgroundBlack + foregroundWhite // setup colors + +const createPalette = function (lineSetup, foregroundWhite, foregroundBlack) { + return { + // 1 ... white, 2 ... black, 0 ... transparent (default) + + '00': reset + ' ' + lineSetup, + '01': reset + foregroundWhite + '▄' + lineSetup, + '02': reset + foregroundBlack + '▄' + lineSetup, + 10: reset + foregroundWhite + '▀' + lineSetup, + 11: ' ', + 12: '▄', + 20: reset + foregroundBlack + '▀' + lineSetup, + 21: '▀', + 22: '█' + } +} + +/** + * Returns code for QR pixel + * @param {boolean[][]} modules + * @param {number} size + * @param {number} x + * @param {number} y + * @return {'0' | '1' | '2'} + */ +const mkCodePixel = function (modules, size, x, y) { + const sizePlus = size + 1 + if ((x >= sizePlus) || (y >= sizePlus) || (y < -1) || (x < -1)) return '0' + if ((x >= size) || (y >= size) || (y < 0) || (x < 0)) return '1' + const idx = (y * size) + x + return modules[idx] ? '2' : '1' +} + +/** + * Returns code for four QR pixels. Suitable as key in palette. + * @param {boolean[][]} modules + * @param {number} size + * @param {number} x + * @param {number} y + * @return {keyof palette} + */ +const mkCode = function (modules, size, x, y) { + return ( + mkCodePixel(modules, size, x, y) + + mkCodePixel(modules, size, x, y + 1) + ) +} + +exports.render = function (qrData, options, cb) { + const size = qrData.modules.size + const data = qrData.modules.data + + const inverse = !!(options && options.inverse) + const lineSetup = options && options.inverse ? lineSetupInverse : lineSetupNormal + const white = inverse ? foregroundBlack : foregroundWhite + const black = inverse ? foregroundWhite : foregroundBlack + + const palette = createPalette(lineSetup, white, black) + const newLine = reset + '\n' + lineSetup + + let output = lineSetup // setup colors + + for (let y = -1; y < size + 1; y += 2) { + for (let x = -1; x < size; x++) { + output += palette[mkCode(data, size, x, y)] + } + + output += palette[mkCode(data, size, size, y)] + newLine + } + + output += reset + + if (typeof cb === 'function') { + cb(null, output) + } + + return output +} diff --git a/node_modules/qrcode/lib/renderer/terminal/terminal.js b/node_modules/qrcode/lib/renderer/terminal/terminal.js new file mode 100644 index 0000000000000000000000000000000000000000..f15610b5510b649c96497548a20104220e17da19 --- /dev/null +++ b/node_modules/qrcode/lib/renderer/terminal/terminal.js @@ -0,0 +1,49 @@ +// let Utils = require('./utils') + +exports.render = function (qrData, options, cb) { + const size = qrData.modules.size + const data = qrData.modules.data + + // let opts = Utils.getOptions(options) + + // use same scheme as https://github.com/gtanner/qrcode-terminal because it actually works! =) + const black = '\x1b[40m \x1b[0m' + const white = '\x1b[47m \x1b[0m' + + let output = '' + const hMargin = Array(size + 3).join(white) + const vMargin = Array(2).join(white) + + output += hMargin + '\n' + for (let i = 0; i < size; ++i) { + output += white + for (let j = 0; j < size; j++) { + // let topModule = data[i * size + j] + // let bottomModule = data[(i + 1) * size + j] + + output += data[i * size + j] ? black : white// getBlockChar(topModule, bottomModule) + } + // output += white+'\n' + output += vMargin + '\n' + } + + output += hMargin + '\n' + + if (typeof cb === 'function') { + cb(null, output) + } + + return output +} +/* +exports.renderToFile = function renderToFile (path, qrData, options, cb) { + if (typeof cb === 'undefined') { + cb = options + options = undefined + } + + let fs = require('fs') + let utf8 = exports.render(qrData, options) + fs.writeFile(path, utf8, cb) +} +*/ diff --git a/node_modules/qrcode/lib/renderer/utf8.js b/node_modules/qrcode/lib/renderer/utf8.js new file mode 100644 index 0000000000000000000000000000000000000000..d76116e58d1b54ba88a9479ff813a71f7557fbee --- /dev/null +++ b/node_modules/qrcode/lib/renderer/utf8.js @@ -0,0 +1,71 @@ +const Utils = require('./utils') + +const BLOCK_CHAR = { + WW: ' ', + WB: '▄', + BB: '█', + BW: '▀' +} + +const INVERTED_BLOCK_CHAR = { + BB: ' ', + BW: '▄', + WW: '█', + WB: '▀' +} + +function getBlockChar (top, bottom, blocks) { + if (top && bottom) return blocks.BB + if (top && !bottom) return blocks.BW + if (!top && bottom) return blocks.WB + return blocks.WW +} + +exports.render = function (qrData, options, cb) { + const opts = Utils.getOptions(options) + let blocks = BLOCK_CHAR + if (opts.color.dark.hex === '#ffffff' || opts.color.light.hex === '#000000') { + blocks = INVERTED_BLOCK_CHAR + } + + const size = qrData.modules.size + const data = qrData.modules.data + + let output = '' + let hMargin = Array(size + (opts.margin * 2) + 1).join(blocks.WW) + hMargin = Array((opts.margin / 2) + 1).join(hMargin + '\n') + + const vMargin = Array(opts.margin + 1).join(blocks.WW) + + output += hMargin + for (let i = 0; i < size; i += 2) { + output += vMargin + for (let j = 0; j < size; j++) { + const topModule = data[i * size + j] + const bottomModule = data[(i + 1) * size + j] + + output += getBlockChar(topModule, bottomModule, blocks) + } + + output += vMargin + '\n' + } + + output += hMargin.slice(0, -1) + + if (typeof cb === 'function') { + cb(null, output) + } + + return output +} + +exports.renderToFile = function renderToFile (path, qrData, options, cb) { + if (typeof cb === 'undefined') { + cb = options + options = undefined + } + + const fs = require('fs') + const utf8 = exports.render(qrData, options) + fs.writeFile(path, utf8, cb) +} diff --git a/node_modules/qrcode/lib/renderer/utils.js b/node_modules/qrcode/lib/renderer/utils.js new file mode 100644 index 0000000000000000000000000000000000000000..87239dc517462881abb3597bcaa3d25cde2ab56f --- /dev/null +++ b/node_modules/qrcode/lib/renderer/utils.js @@ -0,0 +1,99 @@ +function hex2rgba (hex) { + if (typeof hex === 'number') { + hex = hex.toString() + } + + if (typeof hex !== 'string') { + throw new Error('Color should be defined as hex string') + } + + let hexCode = hex.slice().replace('#', '').split('') + if (hexCode.length < 3 || hexCode.length === 5 || hexCode.length > 8) { + throw new Error('Invalid hex color: ' + hex) + } + + // Convert from short to long form (fff -> ffffff) + if (hexCode.length === 3 || hexCode.length === 4) { + hexCode = Array.prototype.concat.apply([], hexCode.map(function (c) { + return [c, c] + })) + } + + // Add default alpha value + if (hexCode.length === 6) hexCode.push('F', 'F') + + const hexValue = parseInt(hexCode.join(''), 16) + + return { + r: (hexValue >> 24) & 255, + g: (hexValue >> 16) & 255, + b: (hexValue >> 8) & 255, + a: hexValue & 255, + hex: '#' + hexCode.slice(0, 6).join('') + } +} + +exports.getOptions = function getOptions (options) { + if (!options) options = {} + if (!options.color) options.color = {} + + const margin = typeof options.margin === 'undefined' || + options.margin === null || + options.margin < 0 + ? 4 + : options.margin + + const width = options.width && options.width >= 21 ? options.width : undefined + const scale = options.scale || 4 + + return { + width: width, + scale: width ? 4 : scale, + margin: margin, + color: { + dark: hex2rgba(options.color.dark || '#000000ff'), + light: hex2rgba(options.color.light || '#ffffffff') + }, + type: options.type, + rendererOpts: options.rendererOpts || {} + } +} + +exports.getScale = function getScale (qrSize, opts) { + return opts.width && opts.width >= qrSize + opts.margin * 2 + ? opts.width / (qrSize + opts.margin * 2) + : opts.scale +} + +exports.getImageWidth = function getImageWidth (qrSize, opts) { + const scale = exports.getScale(qrSize, opts) + return Math.floor((qrSize + opts.margin * 2) * scale) +} + +exports.qrToImageData = function qrToImageData (imgData, qr, opts) { + const size = qr.modules.size + const data = qr.modules.data + const scale = exports.getScale(size, opts) + const symbolSize = Math.floor((size + opts.margin * 2) * scale) + const scaledMargin = opts.margin * scale + const palette = [opts.color.light, opts.color.dark] + + for (let i = 0; i < symbolSize; i++) { + for (let j = 0; j < symbolSize; j++) { + let posDst = (i * symbolSize + j) * 4 + let pxColor = opts.color.light + + if (i >= scaledMargin && j >= scaledMargin && + i < symbolSize - scaledMargin && j < symbolSize - scaledMargin) { + const iSrc = Math.floor((i - scaledMargin) / scale) + const jSrc = Math.floor((j - scaledMargin) / scale) + pxColor = palette[data[iSrc * size + jSrc] ? 1 : 0] + } + + imgData[posDst++] = pxColor.r + imgData[posDst++] = pxColor.g + imgData[posDst++] = pxColor.b + imgData[posDst] = pxColor.a + } + } +} diff --git a/node_modules/qrcode/lib/server.js b/node_modules/qrcode/lib/server.js new file mode 100644 index 0000000000000000000000000000000000000000..619e398ed653c91ff39ff708180d531344924c97 --- /dev/null +++ b/node_modules/qrcode/lib/server.js @@ -0,0 +1,138 @@ +const canPromise = require('./can-promise') +const QRCode = require('./core/qrcode') +const PngRenderer = require('./renderer/png') +const Utf8Renderer = require('./renderer/utf8') +const TerminalRenderer = require('./renderer/terminal') +const SvgRenderer = require('./renderer/svg') + +function checkParams (text, opts, cb) { + if (typeof text === 'undefined') { + throw new Error('String required as first argument') + } + + if (typeof cb === 'undefined') { + cb = opts + opts = {} + } + + if (typeof cb !== 'function') { + if (!canPromise()) { + throw new Error('Callback required as last argument') + } else { + opts = cb || {} + cb = null + } + } + + return { + opts: opts, + cb: cb + } +} + +function getTypeFromFilename (path) { + return path.slice((path.lastIndexOf('.') - 1 >>> 0) + 2).toLowerCase() +} + +function getRendererFromType (type) { + switch (type) { + case 'svg': + return SvgRenderer + + case 'txt': + case 'utf8': + return Utf8Renderer + + case 'png': + case 'image/png': + default: + return PngRenderer + } +} + +function getStringRendererFromType (type) { + switch (type) { + case 'svg': + return SvgRenderer + + case 'terminal': + return TerminalRenderer + + case 'utf8': + default: + return Utf8Renderer + } +} + +function render (renderFunc, text, params) { + if (!params.cb) { + return new Promise(function (resolve, reject) { + try { + const data = QRCode.create(text, params.opts) + return renderFunc(data, params.opts, function (err, data) { + return err ? reject(err) : resolve(data) + }) + } catch (e) { + reject(e) + } + }) + } + + try { + const data = QRCode.create(text, params.opts) + return renderFunc(data, params.opts, params.cb) + } catch (e) { + params.cb(e) + } +} + +exports.create = QRCode.create + +exports.toCanvas = require('./browser').toCanvas + +exports.toString = function toString (text, opts, cb) { + const params = checkParams(text, opts, cb) + const type = params.opts ? params.opts.type : undefined + const renderer = getStringRendererFromType(type) + return render(renderer.render, text, params) +} + +exports.toDataURL = function toDataURL (text, opts, cb) { + const params = checkParams(text, opts, cb) + const renderer = getRendererFromType(params.opts.type) + return render(renderer.renderToDataURL, text, params) +} + +exports.toBuffer = function toBuffer (text, opts, cb) { + const params = checkParams(text, opts, cb) + const renderer = getRendererFromType(params.opts.type) + return render(renderer.renderToBuffer, text, params) +} + +exports.toFile = function toFile (path, text, opts, cb) { + if (typeof path !== 'string' || !(typeof text === 'string' || typeof text === 'object')) { + throw new Error('Invalid argument') + } + + if ((arguments.length < 3) && !canPromise()) { + throw new Error('Too few arguments provided') + } + + const params = checkParams(text, opts, cb) + const type = params.opts.type || getTypeFromFilename(path) + const renderer = getRendererFromType(type) + const renderToFile = renderer.renderToFile.bind(null, path) + + return render(renderToFile, text, params) +} + +exports.toFileStream = function toFileStream (stream, text, opts) { + if (arguments.length < 2) { + throw new Error('Too few arguments provided') + } + + const params = checkParams(text, opts, stream.emit.bind(stream, 'error')) + const renderer = getRendererFromType('png') // Only png support for now + const renderToFileStream = renderer.renderToFileStream.bind(null, stream) + render(renderToFileStream, text, params) +} diff --git a/node_modules/qrcode/license b/node_modules/qrcode/license new file mode 100644 index 0000000000000000000000000000000000000000..4e2b3b93334b6d872ff336f8b680e1bc59f2a4ff --- /dev/null +++ b/node_modules/qrcode/license @@ -0,0 +1,10 @@ +The MIT License (MIT) + +Copyright (c) 2012 Ryan Day + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + diff --git a/node_modules/qrcode/package.json b/node_modules/qrcode/package.json new file mode 100644 index 0000000000000000000000000000000000000000..6c9ab00d0c92ac9d2970d246d93d3b37e33cb552 --- /dev/null +++ b/node_modules/qrcode/package.json @@ -0,0 +1,77 @@ +{ + "name": "qrcode", + "description": "QRCode / 2d Barcode api with both server side and client side support using canvas", + "version": "1.5.4", + "author": "Ryan Day ", + "contributors": [ + "Vincenzo Greco ", + "Linus Unnebäck " + ], + "keywords": [ + "qr", + "code", + "canvas", + "qrcode" + ], + "main": "./lib/index.js", + "browser": { + "./lib/index.js": "./lib/browser.js", + "fs": false + }, + "files": [ + "bin", + "build", + "lib", + "helper" + ], + "homepage": "http://github.com/soldair/node-qrcode", + "license": "MIT", + "scripts": { + "lint": "standard", + "pretest": "npm run lint", + "test": "node --throw-deprecation test.js", + "build": "rollup -c", + "prepublish": "npm run build", + "browser": "node examples/clientsideserver.js" + }, + "bin": { + "qrcode": "./bin/qrcode" + }, + "dependencies": { + "dijkstrajs": "^1.0.1", + "pngjs": "^5.0.0", + "yargs": "^15.3.1" + }, + "devDependencies": { + "@babel/core": "^7.9.0", + "@babel/preset-env": "^7.9.5", + "@rollup/plugin-commonjs": "^11.1.0", + "@rollup/plugin-node-resolve": "^7.1.3", + "browserify": "^16.5.1", + "canvas": "^2.8.0", + "canvasutil": "0.0.4", + "colors": "^1.4.0", + "express": "^4.17.1", + "htmlparser2": "^4.1.0", + "rollup": "^2.6.1", + "rollup-plugin-babel": "^4.4.0", + "rollup-plugin-terser": "^5.3.0", + "sinon": "^9.0.2", + "standard": "^16.0.4", + "tap": "^16.2.0" + }, + "repository": { + "type": "git", + "url": "git://github.com/soldair/node-qrcode.git" + }, + "engines": { + "node": ">=10.13.0" + }, + "standard": { + "ignore": [ + "build/", + "examples/vendors/", + "lib/core/regex.js" + ] + } +} diff --git a/node_modules/qs/.editorconfig b/node_modules/qs/.editorconfig new file mode 100644 index 0000000000000000000000000000000000000000..dd5a8d84edd6e772556838cde9ad95cf13099551 --- /dev/null +++ b/node_modules/qs/.editorconfig @@ -0,0 +1,46 @@ +root = true + +[*] +indent_style = space +indent_size = 4 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true +max_line_length = 180 +quote_type = single + +[test/*] +max_line_length = off + +[LICENSE.md] +indent_size = off + +[*.md] +max_line_length = off + +[*.json] +max_line_length = off + +[Makefile] +max_line_length = off + +[CHANGELOG.md] +indent_style = space +indent_size = 2 + +[LICENSE] +indent_size = 2 +max_line_length = off + +[coverage/**/*] +indent_size = off +indent_style = off +indent = off +max_line_length = off + +[.nycrc] +indent_style = tab + +[tea.yaml] +indent_size = 2 diff --git a/node_modules/qs/.github/FUNDING.yml b/node_modules/qs/.github/FUNDING.yml new file mode 100644 index 0000000000000000000000000000000000000000..0355f4f5fbecd763def967aca1130cd2dfbb3479 --- /dev/null +++ b/node_modules/qs/.github/FUNDING.yml @@ -0,0 +1,12 @@ +# These are supported funding model platforms + +github: [ljharb] +patreon: # Replace with a single Patreon username +open_collective: # Replace with a single Open Collective username +ko_fi: # Replace with a single Ko-fi username +tidelift: npm/qs +community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry +liberapay: # Replace with a single Liberapay username +issuehunt: # Replace with a single IssueHunt username +otechie: # Replace with a single Otechie username +custom: # Replace with a single custom sponsorship URL diff --git a/node_modules/qs/.github/SECURITY.md b/node_modules/qs/.github/SECURITY.md new file mode 100644 index 0000000000000000000000000000000000000000..b499cb6861f226e5f975ba814e3849f193b9dc1f --- /dev/null +++ b/node_modules/qs/.github/SECURITY.md @@ -0,0 +1,11 @@ +# Security + +Please file a private vulnerability report via GitHub, email [@ljharb](https://github.com/ljharb), or see https://tidelift.com/security if you have a potential security vulnerability to report. + +## Incident Response Plan + +Please see our [Incident Response Plan](https://github.com/ljharb/.github/blob/main/INCIDENT_RESPONSE_PLAN.md). + +## Threat Model + +Please see [THREAT_MODEL.md](./THREAT_MODEL.md). diff --git a/node_modules/qs/.github/THREAT_MODEL.md b/node_modules/qs/.github/THREAT_MODEL.md new file mode 100644 index 0000000000000000000000000000000000000000..7e6fef1a55b1069d9629237cd2f35a9bb89d6dfa --- /dev/null +++ b/node_modules/qs/.github/THREAT_MODEL.md @@ -0,0 +1,78 @@ +## Threat Model for qs (querystring parsing library) + +### 1. Library Overview + +- **Library Name:** qs +- **Brief Description:** A JavaScript library for parsing and stringifying URL query strings, supporting nested objects and arrays. It is widely used in Node.js and web applications for processing query parameters[2][6][8]. +- **Key Public APIs/Functions:** `qs.parse()`, `qs.stringify()` + +### 2. Define Scope + +This threat model focuses on the core parsing and stringifying functionality, specifically the handling of nested objects and arrays, option validation, and cycle management in stringification. + +### 3. Conceptual System Diagram + +``` +Caller Application → qs.parse(input, options) → Parsing Engine → Output Object + │ + └→ Options Handling + +Caller Application → qs.stringify(obj, options) → Stringifying Engine → Output String + │ + └→ Options Handling + └→ Cycle Tracking +``` + +**Trust Boundaries:** +- **Input string (parse):** May come from untrusted sources (e.g., user input, network requests) +- **Input object (stringify):** May contain cycles, which can lead to infinite loops during stringification +- **Options:** Provided by the caller +- **Cycle Tracking:** Used only during stringification to detect and handle circular references + +### 4. Identify Assets + +- **Integrity of parsed output:** Prevent malicious manipulation of the output object structure, especially ensuring builtins/globals are not modified as a result of parse[3][4][8]. +- **Confidentiality of processed data:** Avoid leaking sensitive information through errors or output. +- **Availability/performance for host application:** Prevent crashes or resource exhaustion in the consuming application. +- **Security of host application:** Prevent the library from being a vector for attacks (e.g., prototype pollution, DoS). +- **Reputation of library:** Maintain trust by avoiding supply chain attacks and vulnerabilities[1]. + +### 5. Identify Threats + +| Component / API / Interaction | S | T | R | I | D | E | +|---------------------------------------|----|----|----|----|----|----| +| Public API Call (`parse`) | – | ✓ | – | ✓ | ✓ | ✓ | +| Public API Call (`stringify`) | – | ✓ | – | ✓ | ✓ | – | +| Options Handling | ✓ | ✓ | – | ✓ | – | ✓ | +| Dependency Interaction | – | – | – | – | ✓ | – | + +**Key Threats:** +- **Tampering:** Malicious input can, if not prevented, alter parsed output (e.g., prototype pollution via `__proto__`, modification of builtins/globals)[3][4][8]. +- **Information Disclosure:** Error messages may expose internal details or sensitive data. +- **Denial of Service:** Large or malformed input can exhaust memory or CPU. +- **Elevation of Privilege:** Prototype pollution can lead to unintended privilege escalation in the host application[3][4][8]. + +### 6. Mitigation/Countermeasures + +| Threat Identified | Proposed Mitigation | +|---------------------------------------------------|---------------------| +| Tampering (malicious input, prototype pollution) | Strict input validation; keep `allowPrototypes: false` by default; use `plainObjects` for output; ensure builtins/globals are never modified by parse[4][8]. | +| Information Disclosure (error messages) | Generic error messages without stack traces or internal paths. | +| Denial of Service (memory/CPU exhaustion) | Enforce `arrayLimit` and `parameterLimit` with safe defaults; enable `throwOnLimitExceeded`; limit nesting depth[7]. | +| Elevation of Privilege (prototype pollution) | Keep `allowPrototypes: false`; validate options against allowlist; use `plainObjects` to avoid prototype pollution[4][8]. | + +### 7. Risk Ranking + +- **High:** Denial of Service via array parsing or malformed input (historical vulnerability) +- **Medium:** Prototype pollution via options or input (if `allowPrototypes` enabled) +- **Low:** Information disclosure in errors + +### 8. Next Steps & Review + +1. **Audit option validation logic.** +2. **Add depth limiting to nested parsing and stringification.** +3. **Implement fuzz testing for parser and stringifier edge cases.** +4. **Regularly review dependencies for vulnerabilities.** +5. **Keep documentation and threat model up to date.** +6. **Ensure builtins/globals are never modified as a result of parse.** +7. **Support round-trip consistency between parse and stringify as a non-security goal, with the right options[5][9].** diff --git a/node_modules/qs/.nycrc b/node_modules/qs/.nycrc new file mode 100644 index 0000000000000000000000000000000000000000..1d57cabe1b647c742d82f896933bf4af5dfcdc0d --- /dev/null +++ b/node_modules/qs/.nycrc @@ -0,0 +1,13 @@ +{ + "all": true, + "check-coverage": false, + "reporter": ["text-summary", "text", "html", "json"], + "lines": 86, + "statements": 85.93, + "functions": 82.43, + "branches": 76.06, + "exclude": [ + "coverage", + "dist" + ] +} diff --git a/node_modules/qs/CHANGELOG.md b/node_modules/qs/CHANGELOG.md new file mode 100644 index 0000000000000000000000000000000000000000..d92ec43a93329ba3aa2c3fc79ef8d8a1ee70dd66 --- /dev/null +++ b/node_modules/qs/CHANGELOG.md @@ -0,0 +1,822 @@ +## **6.15.2** +- [Fix] `stringify`: skip null/undefined entries in `arrayFormat: 'comma'` + `encodeValuesOnly` instead of crashing in `encoder` +- [Fix] `stringify`: use configured `delimiter` after `charsetSentinel` (#555) +- [Fix] `stringify`: apply `formatter` to encoded key under `strictNullHandling` (#554) +- [Fix] `stringify`: skip null/undefined filter-array entries instead of crashing in `encoder` (#551) +- [Fix] `parse`: handle nested bracket groups and add regression tests (#530) +- [readme] fix grammar (#550) +- [Dev Deps] update `@ljharb/eslint-config` +- [Tests] add regression tests for keys containing percent-encoded bracket text + +## **6.15.1** +- [Fix] `parse`: `parameterLimit: Infinity` with `throwOnLimitExceeded: true` silently drops all parameters +- [Deps] update `@ljharb/eslint-config` +- [Dev Deps] update `@ljharb/eslint-config`, `iconv-lite` +- [Tests] increase coverage + +## **6.15.0** +- [New] `parse`: add `strictMerge` option to wrap object/primitive conflicts in an array (#425, #122) +- [Fix] `duplicates` option should not apply to bracket notation keys (#514) + +## **6.14.2** +- [Fix] `parse`: mark overflow objects for indexed notation exceeding `arrayLimit` (#546) +- [Fix] `arrayLimit` means max count, not max index, in `combine`/`merge`/`parseArrayValue` +- [Fix] `parse`: throw on `arrayLimit` exceeded with indexed notation when `throwOnLimitExceeded` is true (#529) +- [Fix] `parse`: enforce `arrayLimit` on `comma`-parsed values +- [Fix] `parse`: fix error message to reflect arrayLimit as max index; remove extraneous comments (#545) +- [Robustness] avoid `.push`, use `void` +- [readme] document that `addQueryPrefix` does not add `?` to empty output (#418) +- [readme] clarify `parseArrays` and `arrayLimit` documentation (#543) +- [readme] replace runkit CI badge with shields.io check-runs badge +- [meta] fix changelog typo (`arrayLength` → `arrayLimit`) +- [actions] fix rebase workflow permissions + +## **6.14.1** +- [Fix] ensure `arrayLimit` applies to `[]` notation as well +- [Fix] `parse`: when a custom decoder returns `null` for a key, ignore that key +- [Refactor] `parse`: extract key segment splitting helper +- [meta] add threat model +- [actions] add workflow permissions +- [Tests] `stringify`: increase coverage +- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `npmignore`, `es-value-fixtures`, `for-each`, `object-inspect` + +## **6.14.0** +- [New] `parse`: add `throwOnParameterLimitExceeded` option (#517) +- [Refactor] `parse`: use `utils.combine` more +- [patch] `parse`: add explicit `throwOnLimitExceeded` default +- [actions] use shared action; re-add finishers +- [meta] Fix changelog formatting bug +- [Deps] update `side-channel` +- [Dev Deps] update `es-value-fixtures`, `has-bigints`, `has-proto`, `has-symbols` +- [Tests] increase coverage + +## **6.13.3** +[Fix] fix regressions from robustness refactor +[actions] update reusable workflows + +## **6.13.2** +- [Robustness] avoid `.push`, use `void` +- [readme] clarify `parseArrays` and `arrayLimit` documentation (#543) +- [readme] document that `addQueryPrefix` does not add `?` to empty output (#418) +- [readme] replace runkit CI badge with shields.io check-runs badge +- [actions] fix rebase workflow permissions + +## **6.13.1** +- [Fix] `stringify`: avoid a crash when a `filter` key is `null` +- [Fix] `utils.merge`: functions should not be stringified into keys +- [Fix] `parse`: avoid a crash with interpretNumericEntities: true, comma: true, and iso charset +- [Fix] `stringify`: ensure a non-string `filter` does not crash +- [Refactor] use `__proto__` syntax instead of `Object.create` for null objects +- [Refactor] misc cleanup +- [Tests] `utils.merge`: add some coverage +- [Tests] fix a test case +- [actions] split out node 10-20, and 20+ +- [Dev Deps] update `es-value-fixtures`, `mock-property`, `object-inspect`, `tape` + +## **6.13.0** +- [New] `parse`: add `strictDepth` option (#511) +- [Tests] use `npm audit` instead of `aud` + +## **6.12.5** +- [Fix] fix regressions from robustness refactor +- [actions] update reusable workflows + +## **6.12.4** +- [Robustness] avoid `.push`, use `void` +- [readme] clarify `parseArrays` and `arrayLimit` documentation (#543) +- [readme] document that `addQueryPrefix` does not add `?` to empty output (#418) +- [readme] replace runkit CI badge with shields.io check-runs badge +- [actions] fix rebase workflow permissions + +## **6.12.3** +- [Fix] `parse`: properly account for `strictNullHandling` when `allowEmptyArrays` +- [meta] fix changelog indentation + +## **6.12.2** +- [Fix] `parse`: parse encoded square brackets (#506) +- [readme] add CII best practices badge + +## **6.12.1** +- [Fix] `parse`: Disable `decodeDotInKeys` by default to restore previous behavior (#501) +- [Performance] `utils`: Optimize performance under large data volumes, reduce memory usage, and speed up processing (#502) +- [Refactor] `utils`: use `+=` +- [Tests] increase coverage + +## **6.12.0** + +- [New] `parse`/`stringify`: add `decodeDotInKeys`/`encodeDotKeys` options (#488) +- [New] `parse`: add `duplicates` option +- [New] `parse`/`stringify`: add `allowEmptyArrays` option to allow [] in object values (#487) +- [Refactor] `parse`/`stringify`: move allowDots config logic to its own variable +- [Refactor] `stringify`: move option-handling code into `normalizeStringifyOptions` +- [readme] update readme, add logos (#484) +- [readme] `stringify`: clarify default `arrayFormat` behavior +- [readme] fix line wrapping +- [readme] remove dead badges +- [Deps] update `side-channel` +- [meta] make the dist build 50% smaller +- [meta] add `sideEffects` flag +- [meta] run build in prepack, not prepublish +- [Tests] `parse`: remove useless tests; add coverage +- [Tests] `stringify`: increase coverage +- [Tests] use `mock-property` +- [Tests] `stringify`: improve coverage +- [Dev Deps] update `@ljharb/eslint-config `, `aud`, `has-override-mistake`, `has-property-descriptors`, `mock-property`, `npmignore`, `object-inspect`, `tape` +- [Dev Deps] pin `glob`, since v10.3.8+ requires a broken `jackspeak` +- [Dev Deps] pin `jackspeak` since 2.1.2+ depends on npm aliases, which kill the install process in npm < 6 + +## **6.11.4** +- [Fix] fix regressions from robustness refactor +- [actions] update reusable workflows + +## **6.11.3** +- [Robustness] avoid `.push`, use `void` +- [readme] clarify `parseArrays` and `arrayLimit` documentation (#543) +- [readme] document that `addQueryPrefix` does not add `?` to empty output (#418) +- [readme] replace runkit CI badge with shields.io check-runs badge +- [actions] fix rebase workflow permissions + +## **6.11.2** +- [Fix] `parse`: Fix parsing when the global Object prototype is frozen (#473) +- [Tests] add passing test cases with empty keys (#473) + +## **6.11.1** +- [Fix] `stringify`: encode comma values more consistently (#463) +- [readme] add usage of `filter` option for injecting custom serialization, i.e. of custom types (#447) +- [meta] remove extraneous code backticks (#457) +- [meta] fix changelog markdown +- [actions] update checkout action +- [actions] restrict action permissions +- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `object-inspect`, `tape` + +## **6.11.0** +- [New] [Fix] `stringify`: revert 0e903c0; add `commaRoundTrip` option (#442) +- [readme] fix version badge + +## **6.10.7** +- [Fix] fix regressions from robustness refactor +- [actions] update reusable workflows + +## **6.10.6** +- [Robustness] avoid `.push`, use `void` +- [readme] clarify `parseArrays` and `arrayLimit` documentation (#543) +- [readme] document that `addQueryPrefix` does not add `?` to empty output (#418) +- [readme] replace runkit CI badge with shields.io check-runs badge +- [actions] fix rebase workflow permissions + +## **6.10.5** +- [Fix] `stringify`: with `arrayFormat: comma`, properly include an explicit `[]` on a single-item array (#434) + +## **6.10.4** +- [Fix] `stringify`: with `arrayFormat: comma`, include an explicit `[]` on a single-item array (#441) +- [meta] use `npmignore` to autogenerate an npmignore file +- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `has-symbol`, `object-inspect`, `tape` + +## **6.10.3** +- [Fix] `parse`: ignore `__proto__` keys (#428) +- [Robustness] `stringify`: avoid relying on a global `undefined` (#427) +- [actions] reuse common workflows +- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `object-inspect`, `tape` + +## **6.10.2** +- [Fix] `stringify`: actually fix cyclic references (#426) +- [Fix] `stringify`: avoid encoding arrayformat comma when `encodeValuesOnly = true` (#424) +- [readme] remove travis badge; add github actions/codecov badges; update URLs +- [Docs] add note and links for coercing primitive values (#408) +- [actions] update codecov uploader +- [actions] update workflows +- [Tests] clean up stringify tests slightly +- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `object-inspect`, `safe-publish-latest`, `tape` + +## **6.10.1** +- [Fix] `stringify`: avoid exception on repeated object values (#402) + +## **6.10.0** +- [New] `stringify`: throw on cycles, instead of an infinite loop (#395, #394, #393) +- [New] `parse`: add `allowSparse` option for collapsing arrays with missing indices (#312) +- [meta] fix README.md (#399) +- [meta] only run `npm run dist` in publish, not install +- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `has-symbols`, `tape` +- [Tests] fix tests on node v0.6 +- [Tests] use `ljharb/actions/node/install` instead of `ljharb/actions/node/run` +- [Tests] Revert "[meta] ignore eclint transitive audit warning" + +## **6.9.9** +- [Fix] fix regressions from robustness refactor +- [meta] add `npmignore` to autogenerate an npmignore file +- [actions] update reusable workflows + +## **6.9.8** +- [Robustness] avoid `.push`, use `void` +- [readme] clarify `parseArrays` and `arrayLimit` documentation (#543) +- [readme] document that `addQueryPrefix` does not add `?` to empty output (#418) +- [readme] replace runkit CI badge with shields.io check-runs badge +- [actions] fix rebase workflow permissions + +## **6.9.7** +- [Fix] `parse`: ignore `__proto__` keys (#428) +- [Fix] `stringify`: avoid encoding arrayformat comma when `encodeValuesOnly = true` (#424) +- [Robustness] `stringify`: avoid relying on a global `undefined` (#427) +- [readme] remove travis badge; add github actions/codecov badges; update URLs +- [Docs] add note and links for coercing primitive values (#408) +- [Tests] clean up stringify tests slightly +- [meta] fix README.md (#399) +- Revert "[meta] ignore eclint transitive audit warning" +- [actions] backport actions from main +- [Dev Deps] backport updates from main + +## **6.9.6** +- [Fix] restore `dist` dir; mistakenly removed in d4f6c32 + +## **6.9.5** +- [Fix] `stringify`: do not encode parens for RFC1738 +- [Fix] `stringify`: fix arrayFormat comma with empty array/objects (#350) +- [Refactor] `format`: remove `util.assign` call +- [meta] add "Allow Edits" workflow; update rebase workflow +- [actions] switch Automatic Rebase workflow to `pull_request_target` event +- [Tests] `stringify`: add tests for #378 +- [Tests] migrate tests to Github Actions +- [Tests] run `nyc` on all tests; use `tape` runner +- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `browserify`, `mkdirp`, `object-inspect`, `tape`; add `aud` + +## **6.9.4** +- [Fix] `stringify`: when `arrayFormat` is `comma`, respect `serializeDate` (#364) +- [Refactor] `stringify`: reduce branching (part of #350) +- [Refactor] move `maybeMap` to `utils` +- [Dev Deps] update `browserify`, `tape` + +## **6.9.3** +- [Fix] proper comma parsing of URL-encoded commas (#361) +- [Fix] parses comma delimited array while having percent-encoded comma treated as normal text (#336) + +## **6.9.2** +- [Fix] `parse`: Fix parsing array from object with `comma` true (#359) +- [Fix] `parse`: throw a TypeError instead of an Error for bad charset (#349) +- [meta] ignore eclint transitive audit warning +- [meta] fix indentation in package.json +- [meta] add tidelift marketing copy +- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `object-inspect`, `has-symbols`, `tape`, `mkdirp`, `iconv-lite` +- [actions] add automatic rebasing / merge commit blocking + +## **6.9.1** +- [Fix] `parse`: with comma true, handle field that holds an array of arrays (#335) +- [Fix] `parse`: with comma true, do not split non-string values (#334) +- [meta] add `funding` field +- [Dev Deps] update `eslint`, `@ljharb/eslint-config` +- [Tests] use shared travis-ci config + +## **6.9.0** +- [New] `parse`/`stringify`: Pass extra key/value argument to `decoder` (#333) +- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `evalmd` +- [Tests] `parse`: add passing `arrayFormat` tests +- [Tests] add `posttest` using `npx aud` to run `npm audit` without a lockfile +- [Tests] up to `node` `v12.10`, `v11.15`, `v10.16`, `v8.16` +- [Tests] `Buffer.from` in node v5.0-v5.9 and v4.0-v4.4 requires a TypedArray + +## **6.8.5** +- [Fix] fix regressions from robustness refactor +- [meta] add `npmignore` to autogenerate an npmignore file +- [actions] update reusable workflows + +## **6.8.4** +- [Robustness] avoid `.push`, use `void` +- [readme] clarify `parseArrays` and `arrayLimit` documentation (#543) +- [readme] document that `addQueryPrefix` does not add `?` to empty output (#418) +- [readme] replace runkit CI badge with shields.io check-runs badge +- [actions] fix rebase workflow permissions + +## **6.8.3** +- [Fix] `parse`: ignore `__proto__` keys (#428) +- [Robustness] `stringify`: avoid relying on a global `undefined` (#427) +- [Fix] `stringify`: avoid encoding arrayformat comma when `encodeValuesOnly = true` (#424) +- [readme] remove travis badge; add github actions/codecov badges; update URLs +- [Tests] clean up stringify tests slightly +- [Docs] add note and links for coercing primitive values (#408) +- [meta] fix README.md (#399) +- [actions] backport actions from main +- [Dev Deps] backport updates from main +- [Refactor] `stringify`: reduce branching +- [meta] do not publish workflow files + +## **6.8.2** +- [Fix] proper comma parsing of URL-encoded commas (#361) +- [Fix] parses comma delimited array while having percent-encoded comma treated as normal text (#336) + +## **6.8.1** +- [Fix] `parse`: Fix parsing array from object with `comma` true (#359) +- [Fix] `parse`: throw a TypeError instead of an Error for bad charset (#349) +- [Fix] `parse`: with comma true, handle field that holds an array of arrays (#335) +- [fix] `parse`: with comma true, do not split non-string values (#334) +- [meta] add tidelift marketing copy +- [meta] add `funding` field +- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape`, `safe-publish-latest`, `evalmd`, `has-symbols`, `iconv-lite`, `mkdirp`, `object-inspect` +- [Tests] `parse`: add passing `arrayFormat` tests +- [Tests] use shared travis-ci configs +- [Tests] `Buffer.from` in node v5.0-v5.9 and v4.0-v4.4 requires a TypedArray +- [actions] add automatic rebasing / merge commit blocking + +## **6.8.0** +- [New] add `depth=false` to preserve the original key; [Fix] `depth=0` should preserve the original key (#326) +- [New] [Fix] stringify symbols and bigints +- [Fix] ensure node 0.12 can stringify Symbols +- [Fix] fix for an impossible situation: when the formatter is called with a non-string value +- [Refactor] `formats`: tiny bit of cleanup. +- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `browserify`, `safe-publish-latest`, `iconv-lite`, `tape` +- [Tests] add tests for `depth=0` and `depth=false` behavior, both current and intuitive/intended (#326) +- [Tests] use `eclint` instead of `editorconfig-tools` +- [docs] readme: add security note +- [meta] add github sponsorship +- [meta] add FUNDING.yml +- [meta] Clean up license text so it’s properly detected as BSD-3-Clause + +## **6.7.5** +- [Fix] fix regressions from robustness refactor +- [meta] add `npmignore` to autogenerate an npmignore file +- [actions] update reusable workflows + +## **6.7.4** +- [Robustness] avoid `.push`, use `void` +- [readme] clarify `parseArrays` and `arrayLimit` documentation (#543) +- [readme] document that `addQueryPrefix` does not add `?` to empty output (#418) +- [readme] replace runkit CI badge with shields.io check-runs badge +- [actions] fix rebase workflow permissions + +## **6.7.3** +- [Fix] `parse`: ignore `__proto__` keys (#428) +- [Fix] `stringify`: avoid encoding arrayformat comma when `encodeValuesOnly = true` (#424) +- [Robustness] `stringify`: avoid relying on a global `undefined` (#427) +- [readme] remove travis badge; add github actions/codecov badges; update URLs +- [Docs] add note and links for coercing primitive values (#408) +- [meta] fix README.md (#399) +- [meta] do not publish workflow files +- [actions] backport actions from main +- [Dev Deps] backport updates from main +- [Tests] use `nyc` for coverage +- [Tests] clean up stringify tests slightly + +## **6.7.2** +- [Fix] proper comma parsing of URL-encoded commas (#361) +- [Fix] parses comma delimited array while having percent-encoded comma treated as normal text (#336) + +## **6.7.1** +- [Fix] `parse`: Fix parsing array from object with `comma` true (#359) +- [Fix] `parse`: with comma true, handle field that holds an array of arrays (#335) +- [fix] `parse`: with comma true, do not split non-string values (#334) +- [Fix] `parse`: throw a TypeError instead of an Error for bad charset (#349) +- [Fix] fix for an impossible situation: when the formatter is called with a non-string value +- [Refactor] `formats`: tiny bit of cleanup. +- readme: add security note +- [meta] add tidelift marketing copy +- [meta] add `funding` field +- [meta] add FUNDING.yml +- [meta] Clean up license text so it’s properly detected as BSD-3-Clause +- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape`, `safe-publish-latest`, `evalmd`, `iconv-lite`, `mkdirp`, `object-inspect`, `browserify` +- [Tests] `parse`: add passing `arrayFormat` tests +- [Tests] use shared travis-ci configs +- [Tests] `Buffer.from` in node v5.0-v5.9 and v4.0-v4.4 requires a TypedArray +- [Tests] add tests for `depth=0` and `depth=false` behavior, both current and intuitive/intended +- [Tests] use `eclint` instead of `editorconfig-tools` +- [actions] add automatic rebasing / merge commit blocking + +## **6.7.0** +- [New] `stringify`/`parse`: add `comma` as an `arrayFormat` option (#276, #219) +- [Fix] correctly parse nested arrays (#212) +- [Fix] `utils.merge`: avoid a crash with a null target and a truthy non-array source, also with an array source +- [Robustness] `stringify`: cache `Object.prototype.hasOwnProperty` +- [Refactor] `utils`: `isBuffer`: small tweak; add tests +- [Refactor] use cached `Array.isArray` +- [Refactor] `parse`/`stringify`: make a function to normalize the options +- [Refactor] `utils`: reduce observable [[Get]]s +- [Refactor] `stringify`/`utils`: cache `Array.isArray` +- [Tests] always use `String(x)` over `x.toString()` +- [Tests] fix Buffer tests to work in node < 4.5 and node < 5.10 +- [Tests] temporarily allow coverage to fail + +## **6.6.3** +- [Fix] fix regressions from robustness refactor +- [meta] add `npmignore` to autogenerate an npmignore file +- [actions] update reusable workflows + +## **6.6.2** +- [Robustness] avoid `.push`, use `void` +- [readme] clarify `parseArrays` and `arrayLimit` documentation (#543) +- [readme] document that `addQueryPrefix` does not add `?` to empty output (#418) +- [readme] replace runkit CI badge with shields.io check-runs badge +- [actions] fix rebase workflow permissions + +## **6.6.1** +- [Fix] `parse`: ignore `__proto__` keys (#428) +- [Fix] fix for an impossible situation: when the formatter is called with a non-string value +- [Fix] `utils.merge`: avoid a crash with a null target and an array source +- [Fix] `utils.merge`: avoid a crash with a null target and a truthy non-array source +- [Fix] correctly parse nested arrays +- [Robustness] `stringify`: avoid relying on a global `undefined` (#427) +- [Robustness] `stringify`: cache `Object.prototype.hasOwnProperty` +- [Refactor] `formats`: tiny bit of cleanup. +- [Refactor] `utils`: `isBuffer`: small tweak; add tests +- [Refactor]: `stringify`/`utils`: cache `Array.isArray` +- [Refactor] `utils`: reduce observable [[Get]]s +- [Refactor] use cached `Array.isArray` +- [Refactor] `parse`/`stringify`: make a function to normalize the options +- [readme] remove travis badge; add github actions/codecov badges; update URLs +- [Docs] Clarify the need for "arrayLimit" option +- [meta] fix README.md (#399) +- [meta] do not publish workflow files +- [meta] Clean up license text so it’s properly detected as BSD-3-Clause +- [meta] add FUNDING.yml +- [meta] Fixes typo in CHANGELOG.md +- [actions] backport actions from main +- [Tests] fix Buffer tests to work in node < 4.5 and node < 5.10 +- [Tests] always use `String(x)` over `x.toString()` +- [Dev Deps] backport from main + +## **6.6.0** +- [New] Add support for iso-8859-1, utf8 "sentinel" and numeric entities (#268) +- [New] move two-value combine to a `utils` function (#189) +- [Fix] `stringify`: fix a crash with `strictNullHandling` and a custom `filter`/`serializeDate` (#279) +- [Fix] when `parseArrays` is false, properly handle keys ending in `[]` (#260) +- [Fix] `stringify`: do not crash in an obscure combo of `interpretNumericEntities`, a bad custom `decoder`, & `iso-8859-1` +- [Fix] `utils`: `merge`: fix crash when `source` is a truthy primitive & no options are provided +- [refactor] `stringify`: Avoid arr = arr.concat(...), push to the existing instance (#269) +- [Refactor] `parse`: only need to reassign the var once +- [Refactor] `parse`/`stringify`: clean up `charset` options checking; fix defaults +- [Refactor] add missing defaults +- [Refactor] `parse`: one less `concat` call +- [Refactor] `utils`: `compactQueue`: make it explicitly side-effecting +- [Dev Deps] update `browserify`, `eslint`, `@ljharb/eslint-config`, `iconv-lite`, `safe-publish-latest`, `tape` +- [Tests] up to `node` `v10.10`, `v9.11`, `v8.12`, `v6.14`, `v4.9`; pin included builds to LTS + +## **6.5.5** +- [Fix] fix regressions from robustness refactor +- [meta] add `npmignore` to autogenerate an npmignore file +- [actions] update reusable workflows + +## **6.5.4** +- [Robustness] avoid `.push`, use `void` +- [readme] clarify `parseArrays` and `arrayLimit` documentation (#543) +- [readme] document that `addQueryPrefix` does not add `?` to empty output (#418) +- [readme] replace runkit CI badge with shields.io check-runs badge +- [actions] fix rebase workflow permissions + +## **6.5.3** +- [Fix] `parse`: ignore `__proto__` keys (#428) +- [Fix] `utils.merge`: avoid a crash with a null target and a truthy non-array source +- [Fix] correctly parse nested arrays +- [Fix] `stringify`: fix a crash with `strictNullHandling` and a custom `filter`/`serializeDate` (#279) +- [Fix] `utils`: `merge`: fix crash when `source` is a truthy primitive & no options are provided +- [Fix] when `parseArrays` is false, properly handle keys ending in `[]` +- [Fix] fix for an impossible situation: when the formatter is called with a non-string value +- [Fix] `utils.merge`: avoid a crash with a null target and an array source +- [Refactor] `utils`: reduce observable [[Get]]s +- [Refactor] use cached `Array.isArray` +- [Refactor] `stringify`: Avoid arr = arr.concat(...), push to the existing instance (#269) +- [Refactor] `parse`: only need to reassign the var once +- [Robustness] `stringify`: avoid relying on a global `undefined` (#427) +- [readme] remove travis badge; add github actions/codecov badges; update URLs +- [Docs] Clean up license text so it’s properly detected as BSD-3-Clause +- [Docs] Clarify the need for "arrayLimit" option +- [meta] fix README.md (#399) +- [meta] add FUNDING.yml +- [actions] backport actions from main +- [Tests] always use `String(x)` over `x.toString()` +- [Tests] remove nonexistent tape option +- [Dev Deps] backport from main + +## **6.5.2** +- [Fix] use `safer-buffer` instead of `Buffer` constructor +- [Refactor] utils: `module.exports` one thing, instead of mutating `exports` (#230) +- [Dev Deps] update `browserify`, `eslint`, `iconv-lite`, `safer-buffer`, `tape`, `browserify` + +## **6.5.1** +- [Fix] Fix parsing & compacting very deep objects (#224) +- [Refactor] name utils functions +- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape` +- [Tests] up to `node` `v8.4`; use `nvm install-latest-npm` so newer npm doesn’t break older node +- [Tests] Use precise dist for Node.js 0.6 runtime (#225) +- [Tests] make 0.6 required, now that it’s passing +- [Tests] on `node` `v8.2`; fix npm on node 0.6 + +## **6.5.0** +- [New] add `utils.assign` +- [New] pass default encoder/decoder to custom encoder/decoder functions (#206) +- [New] `parse`/`stringify`: add `ignoreQueryPrefix`/`addQueryPrefix` options, respectively (#213) +- [Fix] Handle stringifying empty objects with addQueryPrefix (#217) +- [Fix] do not mutate `options` argument (#207) +- [Refactor] `parse`: cache index to reuse in else statement (#182) +- [Docs] add various badges to readme (#208) +- [Dev Deps] update `eslint`, `browserify`, `iconv-lite`, `tape` +- [Tests] up to `node` `v8.1`, `v7.10`, `v6.11`; npm v4.6 breaks on node < v1; npm v5+ breaks on node < v4 +- [Tests] add `editorconfig-tools` + +## **6.4.3** +- [Fix] fix regressions from robustness refactor +- [meta] add `npmignore` to autogenerate an npmignore file +- [actions] update reusable workflows + +## **6.4.2** +- [Robustness] avoid `.push`, use `void` +- [readme] clarify `parseArrays` and `arrayLimit` documentation (#543) +- [readme] replace runkit CI badge with shields.io check-runs badge +- [readme] replace travis CI badge with shields.io check-runs badge +- [actions] fix rebase workflow permissions + +## **6.4.1** +- [Fix] `parse`: ignore `__proto__` keys (#428) +- [Fix] fix for an impossible situation: when the formatter is called with a non-string value +- [Fix] use `safer-buffer` instead of `Buffer` constructor +- [Fix] `utils.merge`: avoid a crash with a null target and an array source +- [Fix] `utils.merge`: avoid a crash with a null target and a truthy non-array source +- [Fix] `stringify`: fix a crash with `strictNullHandling` and a custom `filter`/`serializeDate` (#279) +- [Fix] `utils`: `merge`: fix crash when `source` is a truthy primitive & no options are provided +- [Fix] when `parseArrays` is false, properly handle keys ending in `[]` +- [Robustness] `stringify`: avoid relying on a global `undefined` (#427) +- [Refactor] use cached `Array.isArray` +- [Refactor] `stringify`: Avoid arr = arr.concat(...), push to the existing instance (#269) +- [readme] remove travis badge; add github actions/codecov badges; update URLs +- [Docs] Clarify the need for "arrayLimit" option +- [meta] fix README.md (#399) +- [meta] Clean up license text so it’s properly detected as BSD-3-Clause +- [meta] add FUNDING.yml +- [actions] backport actions from main +- [Tests] remove nonexistent tape option +- [Dev Deps] backport from main + +## **6.4.0** +- [New] `qs.stringify`: add `encodeValuesOnly` option +- [Fix] follow `allowPrototypes` option during merge (#201, #201) +- [Fix] support keys starting with brackets (#202, #200) +- [Fix] chmod a-x +- [Dev Deps] update `eslint` +- [Tests] up to `node` `v7.7`, `v6.10`,` v4.8`; disable osx builds since they block linux builds +- [eslint] reduce warnings + +## **6.3.5** +- [Fix] fix regressions from robustness refactor +- [meta] add `npmignore` to autogenerate an npmignore file +- [actions] update reusable workflows + +## **6.3.4** +- [Robustness] avoid `.push`, use `void` +- [readme] clarify `parseArrays` and `arrayLimit` documentation (#543) +- [readme] replace travis CI badge with shields.io check-runs badge +- [actions] fix rebase workflow permissions + +## **6.3.3** +- [Fix] `parse`: ignore `__proto__` keys (#428) +- [Fix] fix for an impossible situation: when the formatter is called with a non-string value +- [Fix] `utils.merge`: avoid a crash with a null target and an array source +- [Fix] `utils.merge`: avoid a crash with a null target and a truthy non-array source +- [Fix] `stringify`: fix a crash with `strictNullHandling` and a custom `filter`/`serializeDate` (#279) +- [Fix] `utils`: `merge`: fix crash when `source` is a truthy primitive & no options are provided +- [Fix] when `parseArrays` is false, properly handle keys ending in `[]` +- [Robustness] `stringify`: avoid relying on a global `undefined` (#427) +- [Refactor] use cached `Array.isArray` +- [Refactor] `stringify`: Avoid arr = arr.concat(...), push to the existing instance (#269) +- [Docs] Clarify the need for "arrayLimit" option +- [meta] fix README.md (#399) +- [meta] Clean up license text so it’s properly detected as BSD-3-Clause +- [meta] add FUNDING.yml +- [actions] backport actions from main +- [Tests] use `safer-buffer` instead of `Buffer` constructor +- [Tests] remove nonexistent tape option +- [Dev Deps] backport from main + +## **6.3.2** +- [Fix] follow `allowPrototypes` option during merge (#201, #200) +- [Dev Deps] update `eslint` +- [Fix] chmod a-x +- [Fix] support keys starting with brackets (#202, #200) +- [Tests] up to `node` `v7.7`, `v6.10`,` v4.8`; disable osx builds since they block linux builds + +## **6.3.1** +- [Fix] ensure that `allowPrototypes: false` does not ever shadow Object.prototype properties (thanks, @snyk!) +- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `browserify`, `iconv-lite`, `qs-iconv`, `tape` +- [Tests] on all node minors; improve test matrix +- [Docs] document stringify option `allowDots` (#195) +- [Docs] add empty object and array values example (#195) +- [Docs] Fix minor inconsistency/typo (#192) +- [Docs] document stringify option `sort` (#191) +- [Refactor] `stringify`: throw faster with an invalid encoder +- [Refactor] remove unnecessary escapes (#184) +- Remove contributing.md, since `qs` is no longer part of `hapi` (#183) + +## **6.3.0** +- [New] Add support for RFC 1738 (#174, #173) +- [New] `stringify`: Add `serializeDate` option to customize Date serialization (#159) +- [Fix] ensure `utils.merge` handles merging two arrays +- [Refactor] only constructors should be capitalized +- [Refactor] capitalized var names are for constructors only +- [Refactor] avoid using a sparse array +- [Robustness] `formats`: cache `String#replace` +- [Dev Deps] update `browserify`, `eslint`, `@ljharb/eslint-config`; add `safe-publish-latest` +- [Tests] up to `node` `v6.8`, `v4.6`; improve test matrix +- [Tests] flesh out arrayLimit/arrayFormat tests (#107) +- [Tests] skip Object.create tests when null objects are not available +- [Tests] Turn on eslint for test files (#175) + +## **6.2.6** +- [Fix] fix regression from robustness refactor +- [meta] add `npmignore` to autogenerate an npmignore file +- [actions] update reusable workflows + +## **6.2.5** +- [Robustness] avoid `.push`, use `void` +- [readme] clarify `parseArrays` and `arrayLimit` documentation (#543) +- [readme] replace travis CI badge with shields.io check-runs badge +- [actions] fix rebase workflow permissions + +## **6.2.4** +- [Fix] `parse`: ignore `__proto__` keys (#428) +- [Fix] `utils.merge`: avoid a crash with a null target and an array source +- [Fix] `utils.merge`: avoid a crash with a null target and a truthy non-array source +- [Fix] `utils`: `merge`: fix crash when `source` is a truthy primitive & no options are provided +- [Fix] when `parseArrays` is false, properly handle keys ending in `[]` +- [Robustness] `stringify`: avoid relying on a global `undefined` (#427) +- [Refactor] use cached `Array.isArray` +- [Docs] Clarify the need for "arrayLimit" option +- [meta] fix README.md (#399) +- [meta] Clean up license text so it’s properly detected as BSD-3-Clause +- [meta] add FUNDING.yml +- [actions] backport actions from main +- [Tests] use `safer-buffer` instead of `Buffer` constructor +- [Tests] remove nonexistent tape option +- [Dev Deps] backport from main + +## **6.2.3** +- [Fix] follow `allowPrototypes` option during merge (#201, #200) +- [Fix] chmod a-x +- [Fix] support keys starting with brackets (#202, #200) +- [Tests] up to `node` `v7.7`, `v6.10`,` v4.8`; disable osx builds since they block linux builds + +## **6.2.2** +- [Fix] ensure that `allowPrototypes: false` does not ever shadow Object.prototype properties + +## **6.2.1** +- [Fix] ensure `key[]=x&key[]&key[]=y` results in 3, not 2, values +- [Refactor] Be explicit and use `Object.prototype.hasOwnProperty.call` +- [Tests] remove `parallelshell` since it does not reliably report failures +- [Tests] up to `node` `v6.3`, `v5.12` +- [Dev Deps] update `tape`, `eslint`, `@ljharb/eslint-config`, `qs-iconv` + +## [**6.2.0**](https://github.com/ljharb/qs/issues?milestone=36&state=closed) +- [New] pass Buffers to the encoder/decoder directly (#161) +- [New] add "encoder" and "decoder" options, for custom param encoding/decoding (#160) +- [Fix] fix compacting of nested sparse arrays (#150) + +## **6.1.4** +- [Fix] fix regression from robustness refactor +- [meta] add `npmignore` to autogenerate an npmignore file +- [actions] update reusable workflows + +## **6.1.3** +- [Robustness] avoid `.push`, use `void` +- [readme] clarify `parseArrays` and `arrayLimit` documentation (#543) +- [readme] replace travis CI badge with shields.io check-runs badge + +## **6.1.2** +- [Fix] follow `allowPrototypes` option during merge (#201, #200) +- [Fix] chmod a-x +- [Fix] support keys starting with brackets (#202, #200) +- [Tests] up to `node` `v7.7`, `v6.10`,` v4.8`; disable osx builds since they block linux builds + +## **6.1.1** +- [Fix] ensure that `allowPrototypes: false` does not ever shadow Object.prototype properties + +## [**6.1.0**](https://github.com/ljharb/qs/issues?milestone=35&state=closed) +- [New] allowDots option for `stringify` (#151) +- [Fix] "sort" option should work at a depth of 3 or more (#151) +- [Fix] Restore `dist` directory; will be removed in v7 (#148) + +## **6.0.6** +- [Fix] fix regression from robustness refactor +- [meta] add `npmignore` to autogenerate an npmignore file +- [actions] update reusable workflows + +## **6.0.5** +- [Robustness] avoid `.push`, use `void` +- [readme] clarify `parseArrays` and `arrayLimit` documentation (#543) +- [readme] replace travis CI badge with shields.io check-runs badge + +## **6.0.4** +- [Fix] follow `allowPrototypes` option during merge (#201, #200) +- [Fix] chmod a-x +- [Fix] support keys starting with brackets (#202, #200) +- [Tests] up to `node` `v7.7`, `v6.10`,` v4.8`; disable osx builds since they block linux builds + +## **6.0.3** +- [Fix] ensure that `allowPrototypes: false` does not ever shadow Object.prototype properties +- [Fix] Restore `dist` directory; will be removed in v7 (#148) + +## [**6.0.2**](https://github.com/ljharb/qs/issues?milestone=33&state=closed) +- Revert ES6 requirement and restore support for node down to v0.8. + +## [**6.0.1**](https://github.com/ljharb/qs/issues?milestone=32&state=closed) +- [**#127**](https://github.com/ljharb/qs/pull/127) Fix engines definition in package.json + +## [**6.0.0**](https://github.com/ljharb/qs/issues?milestone=31&state=closed) +- [**#124**](https://github.com/ljharb/qs/issues/124) Use ES6 and drop support for node < v4 + +## **5.2.1** +- [Fix] ensure `key[]=x&key[]&key[]=y` results in 3, not 2, values + +## [**5.2.0**](https://github.com/ljharb/qs/issues?milestone=30&state=closed) +- [**#64**](https://github.com/ljharb/qs/issues/64) Add option to sort object keys in the query string + +## [**5.1.0**](https://github.com/ljharb/qs/issues?milestone=29&state=closed) +- [**#117**](https://github.com/ljharb/qs/issues/117) make URI encoding stringified results optional +- [**#106**](https://github.com/ljharb/qs/issues/106) Add flag `skipNulls` to optionally skip null values in stringify + +## [**5.0.0**](https://github.com/ljharb/qs/issues?milestone=28&state=closed) +- [**#114**](https://github.com/ljharb/qs/issues/114) default allowDots to false +- [**#100**](https://github.com/ljharb/qs/issues/100) include dist to npm + +## [**4.0.0**](https://github.com/ljharb/qs/issues?milestone=26&state=closed) +- [**#98**](https://github.com/ljharb/qs/issues/98) make returning plain objects and allowing prototype overwriting properties optional + +## [**3.1.0**](https://github.com/ljharb/qs/issues?milestone=24&state=closed) +- [**#89**](https://github.com/ljharb/qs/issues/89) Add option to disable "Transform dot notation to bracket notation" + +## [**3.0.0**](https://github.com/ljharb/qs/issues?milestone=23&state=closed) +- [**#80**](https://github.com/ljharb/qs/issues/80) qs.parse silently drops properties +- [**#77**](https://github.com/ljharb/qs/issues/77) Perf boost +- [**#60**](https://github.com/ljharb/qs/issues/60) Add explicit option to disable array parsing +- [**#74**](https://github.com/ljharb/qs/issues/74) Bad parse when turning array into object +- [**#81**](https://github.com/ljharb/qs/issues/81) Add a `filter` option +- [**#68**](https://github.com/ljharb/qs/issues/68) Fixed issue with recursion and passing strings into objects. +- [**#66**](https://github.com/ljharb/qs/issues/66) Add mixed array and object dot notation support Closes: #47 +- [**#76**](https://github.com/ljharb/qs/issues/76) RFC 3986 +- [**#85**](https://github.com/ljharb/qs/issues/85) No equal sign +- [**#84**](https://github.com/ljharb/qs/issues/84) update license attribute + +## [**2.4.1**](https://github.com/ljharb/qs/issues?milestone=20&state=closed) +- [**#73**](https://github.com/ljharb/qs/issues/73) Property 'hasOwnProperty' of object # is not a function + +## [**2.4.0**](https://github.com/ljharb/qs/issues?milestone=19&state=closed) +- [**#70**](https://github.com/ljharb/qs/issues/70) Add arrayFormat option + +## [**2.3.3**](https://github.com/ljharb/qs/issues?milestone=18&state=closed) +- [**#59**](https://github.com/ljharb/qs/issues/59) make sure array indexes are >= 0, closes #57 +- [**#58**](https://github.com/ljharb/qs/issues/58) make qs usable for browser loader + +## [**2.3.2**](https://github.com/ljharb/qs/issues?milestone=17&state=closed) +- [**#55**](https://github.com/ljharb/qs/issues/55) allow merging a string into an object + +## [**2.3.1**](https://github.com/ljharb/qs/issues?milestone=16&state=closed) +- [**#52**](https://github.com/ljharb/qs/issues/52) Return "undefined" and "false" instead of throwing "TypeError". + +## [**2.3.0**](https://github.com/ljharb/qs/issues?milestone=15&state=closed) +- [**#50**](https://github.com/ljharb/qs/issues/50) add option to omit array indices, closes #46 + +## [**2.2.5**](https://github.com/ljharb/qs/issues?milestone=14&state=closed) +- [**#39**](https://github.com/ljharb/qs/issues/39) Is there an alternative to Buffer.isBuffer? +- [**#49**](https://github.com/ljharb/qs/issues/49) refactor utils.merge, fixes #45 +- [**#41**](https://github.com/ljharb/qs/issues/41) avoid browserifying Buffer, for #39 + +## [**2.2.4**](https://github.com/ljharb/qs/issues?milestone=13&state=closed) +- [**#38**](https://github.com/ljharb/qs/issues/38) how to handle object keys beginning with a number + +## [**2.2.3**](https://github.com/ljharb/qs/issues?milestone=12&state=closed) +- [**#37**](https://github.com/ljharb/qs/issues/37) parser discards first empty value in array +- [**#36**](https://github.com/ljharb/qs/issues/36) Update to lab 4.x + +## [**2.2.2**](https://github.com/ljharb/qs/issues?milestone=11&state=closed) +- [**#33**](https://github.com/ljharb/qs/issues/33) Error when plain object in a value +- [**#34**](https://github.com/ljharb/qs/issues/34) use Object.prototype.hasOwnProperty.call instead of obj.hasOwnProperty +- [**#24**](https://github.com/ljharb/qs/issues/24) Changelog? Semver? + +## [**2.2.1**](https://github.com/ljharb/qs/issues?milestone=10&state=closed) +- [**#32**](https://github.com/ljharb/qs/issues/32) account for circular references properly, closes #31 +- [**#31**](https://github.com/ljharb/qs/issues/31) qs.parse stackoverflow on circular objects + +## [**2.2.0**](https://github.com/ljharb/qs/issues?milestone=9&state=closed) +- [**#26**](https://github.com/ljharb/qs/issues/26) Don't use Buffer global if it's not present +- [**#30**](https://github.com/ljharb/qs/issues/30) Bug when merging non-object values into arrays +- [**#29**](https://github.com/ljharb/qs/issues/29) Don't call Utils.clone at the top of Utils.merge +- [**#23**](https://github.com/ljharb/qs/issues/23) Ability to not limit parameters? + +## [**2.1.0**](https://github.com/ljharb/qs/issues?milestone=8&state=closed) +- [**#22**](https://github.com/ljharb/qs/issues/22) Enable using a RegExp as delimiter + +## [**2.0.0**](https://github.com/ljharb/qs/issues?milestone=7&state=closed) +- [**#18**](https://github.com/ljharb/qs/issues/18) Why is there arrayLimit? +- [**#20**](https://github.com/ljharb/qs/issues/20) Configurable parametersLimit +- [**#21**](https://github.com/ljharb/qs/issues/21) make all limits optional, for #18, for #20 + +## [**1.2.2**](https://github.com/ljharb/qs/issues?milestone=6&state=closed) +- [**#19**](https://github.com/ljharb/qs/issues/19) Don't overwrite null values + +## [**1.2.1**](https://github.com/ljharb/qs/issues?milestone=5&state=closed) +- [**#16**](https://github.com/ljharb/qs/issues/16) ignore non-string delimiters +- [**#15**](https://github.com/ljharb/qs/issues/15) Close code block + +## [**1.2.0**](https://github.com/ljharb/qs/issues?milestone=4&state=closed) +- [**#12**](https://github.com/ljharb/qs/issues/12) Add optional delim argument +- [**#13**](https://github.com/ljharb/qs/issues/13) fix #11: flattened keys in array are now correctly parsed + +## [**1.1.0**](https://github.com/ljharb/qs/issues?milestone=3&state=closed) +- [**#7**](https://github.com/ljharb/qs/issues/7) Empty values of a POST array disappear after being submitted +- [**#9**](https://github.com/ljharb/qs/issues/9) Should not omit equals signs (=) when value is null +- [**#6**](https://github.com/ljharb/qs/issues/6) Minor grammar fix in README + +## [**1.0.2**](https://github.com/ljharb/qs/issues?milestone=2&state=closed) +- [**#5**](https://github.com/ljharb/qs/issues/5) array holes incorrectly copied into object on large index diff --git a/node_modules/qs/LICENSE.md b/node_modules/qs/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..fecf6b6942d17bc7ae41a5e106dc98815c0db652 --- /dev/null +++ b/node_modules/qs/LICENSE.md @@ -0,0 +1,29 @@ +BSD 3-Clause License + +Copyright (c) 2014, Nathan LaFreniere and other [contributors](https://github.com/ljharb/qs/graphs/contributors) +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/node_modules/qs/README.md b/node_modules/qs/README.md new file mode 100644 index 0000000000000000000000000000000000000000..fd64e3cad1ec9df64193504cf783f1049961bd2b --- /dev/null +++ b/node_modules/qs/README.md @@ -0,0 +1,758 @@ +

+ qs +

+ +# qs [![Version Badge][npm-version-svg]][package-url] + +[![github actions][actions-image]][actions-url] +[![coverage][codecov-image]][codecov-url] +[![License][license-image]][license-url] +[![Downloads][downloads-image]][downloads-url] +[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/9058/badge)](https://bestpractices.coreinfrastructure.org/projects/9058) + +[![npm badge][npm-badge-png]][package-url] + +A querystring parsing and stringifying library with some added security. + +Lead Maintainer: [Jordan Harband](https://github.com/ljharb) + +The **qs** module was originally created and maintained by [TJ Holowaychuk](https://github.com/visionmedia/node-querystring). + +## Usage + +```javascript +var qs = require('qs'); +var assert = require('assert'); + +var obj = qs.parse('a=c'); +assert.deepEqual(obj, { a: 'c' }); + +var str = qs.stringify(obj); +assert.equal(str, 'a=c'); +``` + +### Parsing Objects + +[](#preventEval) +```javascript +qs.parse(string, [options]); +``` + +**qs** allows you to create nested objects within your query strings, by surrounding the name of sub-keys with square brackets `[]`. +For example, the string `'foo[bar]=baz'` converts to: + +```javascript +assert.deepEqual(qs.parse('foo[bar]=baz'), { + foo: { + bar: 'baz' + } +}); +``` + +When using the `plainObjects` option the parsed value is returned as a null object, created via `{ __proto__: null }` and as such you should be aware that prototype methods will not exist on it and a user may set those names to whatever value they like: + +```javascript +var nullObject = qs.parse('a[hasOwnProperty]=b', { plainObjects: true }); +assert.deepEqual(nullObject, { a: { hasOwnProperty: 'b' } }); +``` + +By default parameters that would overwrite properties on the object prototype are ignored, if you wish to keep the data from those fields either use `plainObjects` as mentioned above, or set `allowPrototypes` to `true` which will allow user input to overwrite those properties. +*WARNING* It is generally a bad idea to enable this option as it can cause problems when attempting to use the properties that have been overwritten. +Always be careful with this option. + +```javascript +var protoObject = qs.parse('a[hasOwnProperty]=b', { allowPrototypes: true }); +assert.deepEqual(protoObject, { a: { hasOwnProperty: 'b' } }); +``` + +URI encoded strings work too: + +```javascript +assert.deepEqual(qs.parse('a%5Bb%5D=c'), { + a: { b: 'c' } +}); +``` + +You can also nest your objects, like `'foo[bar][baz]=foobarbaz'`: + +```javascript +assert.deepEqual(qs.parse('foo[bar][baz]=foobarbaz'), { + foo: { + bar: { + baz: 'foobarbaz' + } + } +}); +``` + +By default, when nesting objects **qs** will only parse up to 5 children deep. +This means if you attempt to parse a string like `'a[b][c][d][e][f][g][h][i]=j'` your resulting object will be: + +```javascript +var expected = { + a: { + b: { + c: { + d: { + e: { + f: { + '[g][h][i]': 'j' + } + } + } + } + } + } +}; +var string = 'a[b][c][d][e][f][g][h][i]=j'; +assert.deepEqual(qs.parse(string), expected); +``` + +This depth can be overridden by passing a `depth` option to `qs.parse(string, [options])`: + +```javascript +var deep = qs.parse('a[b][c][d][e][f][g][h][i]=j', { depth: 1 }); +assert.deepEqual(deep, { a: { b: { '[c][d][e][f][g][h][i]': 'j' } } }); +``` + +You can configure **qs** to throw an error when parsing nested input beyond this depth using the `strictDepth` option (defaulted to false): + +```javascript +try { + qs.parse('a[b][c][d][e][f][g][h][i]=j', { depth: 1, strictDepth: true }); +} catch (err) { + assert(err instanceof RangeError); + assert.strictEqual(err.message, 'Input depth exceeded depth option of 1 and strictDepth is true'); +} +``` + +The depth limit helps mitigate abuse when **qs** is used to parse user input, and it is recommended to keep it a reasonably small number. The strictDepth option adds a layer of protection by throwing an error when the limit is exceeded, allowing you to catch and handle such cases. + +For similar reasons, by default **qs** will only parse up to 1000 parameters. This can be overridden by passing a `parameterLimit` option: + +```javascript +var limited = qs.parse('a=b&c=d', { parameterLimit: 1 }); +assert.deepEqual(limited, { a: 'b' }); +``` + +If you want an error to be thrown whenever the a limit is exceeded (eg, `parameterLimit`, `arrayLimit`), set the `throwOnLimitExceeded` option to `true`. This option will generate a descriptive error if the query string exceeds a configured limit. +```javascript +try { + qs.parse('a=1&b=2&c=3&d=4', { parameterLimit: 3, throwOnLimitExceeded: true }); +} catch (err) { + assert(err instanceof Error); + assert.strictEqual(err.message, 'Parameter limit exceeded. Only 3 parameters allowed.'); +} +``` + +When `throwOnLimitExceeded` is set to `false` (default), **qs** will parse up to the specified `parameterLimit` and ignore the rest without throwing an error. + +To bypass the leading question mark, use `ignoreQueryPrefix`: + +```javascript +var prefixed = qs.parse('?a=b&c=d', { ignoreQueryPrefix: true }); +assert.deepEqual(prefixed, { a: 'b', c: 'd' }); +``` + +An optional delimiter can also be passed: + +```javascript +var delimited = qs.parse('a=b;c=d', { delimiter: ';' }); +assert.deepEqual(delimited, { a: 'b', c: 'd' }); +``` + +Delimiters can be a regular expression too: + +```javascript +var regexed = qs.parse('a=b;c=d,e=f', { delimiter: /[;,]/ }); +assert.deepEqual(regexed, { a: 'b', c: 'd', e: 'f' }); +``` + +Option `allowDots` can be used to enable dot notation: + +```javascript +var withDots = qs.parse('a.b=c', { allowDots: true }); +assert.deepEqual(withDots, { a: { b: 'c' } }); +``` + +Option `decodeDotInKeys` can be used to decode dots in keys +Note: it implies `allowDots`, so `parse` will error if you set `decodeDotInKeys` to `true`, and `allowDots` to `false`. + +```javascript +var withDots = qs.parse('name%252Eobj.first=John&name%252Eobj.last=Doe', { decodeDotInKeys: true }); +assert.deepEqual(withDots, { 'name.obj': { first: 'John', last: 'Doe' }}); +``` + +Option `allowEmptyArrays` can be used to allow empty array values in an object +```javascript +var withEmptyArrays = qs.parse('foo[]&bar=baz', { allowEmptyArrays: true }); +assert.deepEqual(withEmptyArrays, { foo: [], bar: 'baz' }); +``` + +Option `duplicates` can be used to change the behavior when duplicate keys are encountered +```javascript +assert.deepEqual(qs.parse('foo=bar&foo=baz'), { foo: ['bar', 'baz'] }); +assert.deepEqual(qs.parse('foo=bar&foo=baz', { duplicates: 'combine' }), { foo: ['bar', 'baz'] }); +assert.deepEqual(qs.parse('foo=bar&foo=baz', { duplicates: 'first' }), { foo: 'bar' }); +assert.deepEqual(qs.parse('foo=bar&foo=baz', { duplicates: 'last' }), { foo: 'baz' }); +``` + +Note that keys with bracket notation (`[]`) always combine into arrays, regardless of the `duplicates` setting: +```javascript +assert.deepEqual(qs.parse('a=1&a=2&b[]=1&b[]=2', { duplicates: 'last' }), { a: '2', b: ['1', '2'] }); +``` + +If you have to deal with legacy browsers or services, there's also support for decoding percent-encoded octets as iso-8859-1: + +```javascript +var oldCharset = qs.parse('a=%A7', { charset: 'iso-8859-1' }); +assert.deepEqual(oldCharset, { a: '§' }); +``` + +Some services add an initial `utf8=✓` value to forms so that old Internet Explorer versions are more likely to submit the form as utf-8. +Additionally, the server can check the value against wrong encodings of the checkmark character and detect that a query string or `application/x-www-form-urlencoded` body was *not* sent as utf-8, eg. if the form had an `accept-charset` parameter or the containing page had a different character set. + +**qs** supports this mechanism via the `charsetSentinel` option. +If specified, the `utf8` parameter will be omitted from the returned object. +It will be used to switch to `iso-8859-1`/`utf-8` mode depending on how the checkmark is encoded. + +**Important**: When you specify both the `charset` option and the `charsetSentinel` option, the `charset` will be overridden when the request contains a `utf8` parameter from which the actual charset can be deduced. +In that sense the `charset` will behave as the default charset rather than the authoritative charset. + +```javascript +var detectedAsUtf8 = qs.parse('utf8=%E2%9C%93&a=%C3%B8', { + charset: 'iso-8859-1', + charsetSentinel: true +}); +assert.deepEqual(detectedAsUtf8, { a: 'ø' }); + +// Browsers encode the checkmark as ✓ when submitting as iso-8859-1: +var detectedAsIso8859_1 = qs.parse('utf8=%26%2310003%3B&a=%F8', { + charset: 'utf-8', + charsetSentinel: true +}); +assert.deepEqual(detectedAsIso8859_1, { a: 'ø' }); +``` + +If you want to decode the `&#...;` syntax to the actual character, you can specify the `interpretNumericEntities` option as well: + +```javascript +var detectedAsIso8859_1 = qs.parse('a=%26%239786%3B', { + charset: 'iso-8859-1', + interpretNumericEntities: true +}); +assert.deepEqual(detectedAsIso8859_1, { a: '☺' }); +``` + +It also works when the charset has been detected in `charsetSentinel` mode. + +### Parsing Arrays + +**qs** can also parse arrays using a similar `[]` notation: + +```javascript +var withArray = qs.parse('a[]=b&a[]=c'); +assert.deepEqual(withArray, { a: ['b', 'c'] }); +``` + +You may specify an index as well: + +```javascript +var withIndexes = qs.parse('a[1]=c&a[0]=b'); +assert.deepEqual(withIndexes, { a: ['b', 'c'] }); +``` + +Note that the only difference between an index in an array and a key in an object is that the value between the brackets must be a number to create an array. +When creating arrays with specific indices, **qs** will compact a sparse array to only the existing values preserving their order: + +```javascript +var noSparse = qs.parse('a[1]=b&a[15]=c'); +assert.deepEqual(noSparse, { a: ['b', 'c'] }); +``` + +You may also use `allowSparse` option to parse sparse arrays: + +```javascript +var sparseArray = qs.parse('a[1]=2&a[3]=5', { allowSparse: true }); +assert.deepEqual(sparseArray, { a: [, '2', , '5'] }); +``` + +Note that an empty string is also a value, and will be preserved: + +```javascript +var withEmptyString = qs.parse('a[]=&a[]=b'); +assert.deepEqual(withEmptyString, { a: ['', 'b'] }); + +var withIndexedEmptyString = qs.parse('a[0]=b&a[1]=&a[2]=c'); +assert.deepEqual(withIndexedEmptyString, { a: ['b', '', 'c'] }); +``` + +**qs** will also limit arrays to a maximum of `20` elements. +Any array members with an index of `20` or greater will instead be converted to an object with the index as the key. +This is needed to handle cases when someone sent, for example, `a[999999999]` and it will take significant time to iterate over this huge array. + +```javascript +var withMaxIndex = qs.parse('a[100]=b'); +assert.deepEqual(withMaxIndex, { a: { '100': 'b' } }); +``` + +This limit can be overridden by passing an `arrayLimit` option: + +```javascript +var withArrayLimit = qs.parse('a[1]=b', { arrayLimit: 0 }); +assert.deepEqual(withArrayLimit, { a: { '1': 'b' } }); +``` + +If you want to throw an error whenever the array limit is exceeded, set the `throwOnLimitExceeded` option to `true`. This option will generate a descriptive error if the query string exceeds a configured limit. +```javascript +try { + qs.parse('a[1]=b', { arrayLimit: 0, throwOnLimitExceeded: true }); +} catch (err) { + assert(err instanceof Error); + assert.strictEqual(err.message, 'Array limit exceeded. Only 0 elements allowed in an array.'); +} +``` + +When `throwOnLimitExceeded` is set to `false` (default), **qs** will parse up to the specified `arrayLimit` and if the limit is exceeded, the array will instead be converted to an object with the index as the key + +To prevent array syntax (`a[]`, `a[0]`) from being parsed as arrays, set `parseArrays` to `false`. +Note that duplicate keys (e.g. `a=b&a=c`) may still produce arrays when `duplicates` is `'combine'` (the default). + +```javascript +var noParsingArrays = qs.parse('a[]=b', { parseArrays: false }); +assert.deepEqual(noParsingArrays, { a: { '0': 'b' } }); +``` + +If you mix notations, **qs** will merge the two items into an object: + +```javascript +var mixedNotation = qs.parse('a[0]=b&a[b]=c'); +assert.deepEqual(mixedNotation, { a: { '0': 'b', b: 'c' } }); +``` + +When a key appears as both a plain value and an object, **qs** will by default wrap the conflicting values in an array (`strictMerge` defaults to `true`): + +```javascript +assert.deepEqual(qs.parse('a[b]=c&a=d'), { a: [{ b: 'c' }, 'd'] }); +assert.deepEqual(qs.parse('a=d&a[b]=c'), { a: ['d', { b: 'c' }] }); +``` + +To restore the legacy behavior (where the primitive is used as a key with value `true`), set `strictMerge` to `false`: + +```javascript +assert.deepEqual(qs.parse('a[b]=c&a=d', { strictMerge: false }), { a: { b: 'c', d: true } }); +``` + +You can also create arrays of objects: + +```javascript +var arraysOfObjects = qs.parse('a[][b]=c'); +assert.deepEqual(arraysOfObjects, { a: [{ b: 'c' }] }); +``` + +Some people use comma to join array, **qs** can parse it: +```javascript +var arraysOfObjects = qs.parse('a=b,c', { comma: true }) +assert.deepEqual(arraysOfObjects, { a: ['b', 'c'] }) +``` +(_this cannot convert nested objects, such as `a={b:1},{c:d}`_) + +### Parsing primitive/scalar values (numbers, booleans, null, etc) + +By default, all values are parsed as strings. +This behavior will not change and is explained in [issue #91](https://github.com/ljharb/qs/issues/91). + +```javascript +var primitiveValues = qs.parse('a=15&b=true&c=null'); +assert.deepEqual(primitiveValues, { a: '15', b: 'true', c: 'null' }); +``` + +If you wish to auto-convert values which look like numbers, booleans, and other values into their primitive counterparts, you can use the [query-types Express JS middleware](https://github.com/xpepermint/query-types) which will auto-convert all request query parameters. + +### Stringifying + +[](#preventEval) +```javascript +qs.stringify(object, [options]); +``` + +When stringifying, **qs** by default URI encodes output. Objects are stringified as you would expect: + +```javascript +assert.equal(qs.stringify({ a: 'b' }), 'a=b'); +assert.equal(qs.stringify({ a: { b: 'c' } }), 'a%5Bb%5D=c'); +``` + +This encoding can be disabled by setting the `encode` option to `false`: + +```javascript +var unencoded = qs.stringify({ a: { b: 'c' } }, { encode: false }); +assert.equal(unencoded, 'a[b]=c'); +``` + +Encoding can be disabled for keys by setting the `encodeValuesOnly` option to `true`: +```javascript +var encodedValues = qs.stringify( + { a: 'b', c: ['d', 'e=f'], f: [['g'], ['h']] }, + { encodeValuesOnly: true } +); +assert.equal(encodedValues,'a=b&c[0]=d&c[1]=e%3Df&f[0][0]=g&f[1][0]=h'); +``` + +This encoding can also be replaced by a custom encoding method set as `encoder` option: + +```javascript +var encoded = qs.stringify({ a: { b: 'c' } }, { encoder: function (str) { + // Passed in values `a`, `b`, `c` + return // Return encoded string +}}) +``` + +_(Note: the `encoder` option does not apply if `encode` is `false`)_ + +Analogue to the `encoder` there is a `decoder` option for `parse` to override decoding of properties and values: + +```javascript +var decoded = qs.parse('x=z', { decoder: function (str) { + // Passed in values `x`, `z` + return // Return decoded string +}}) +``` + +You can encode keys and values using different logic by using the type argument provided to the encoder: + +```javascript +var encoded = qs.stringify({ a: { b: 'c' } }, { encoder: function (str, defaultEncoder, charset, type) { + if (type === 'key') { + return // Encoded key + } else if (type === 'value') { + return // Encoded value + } +}}) +``` + +The type argument is also provided to the decoder: + +```javascript +var decoded = qs.parse('x=z', { decoder: function (str, defaultDecoder, charset, type) { + if (type === 'key') { + return // Decoded key + } else if (type === 'value') { + return // Decoded value + } +}}) +``` + +Examples beyond this point will be shown as though the output is not URI encoded for clarity. +Please note that the return values in these cases *will* be URI encoded during real usage. + +When arrays are stringified, they follow the `arrayFormat` option, which defaults to `indices`: + +```javascript +qs.stringify({ a: ['b', 'c', 'd'] }); +// 'a[0]=b&a[1]=c&a[2]=d' +``` + +You may override this by setting the `indices` option to `false`, or to be more explicit, the `arrayFormat` option to `repeat`: + +```javascript +qs.stringify({ a: ['b', 'c', 'd'] }, { indices: false }); +// 'a=b&a=c&a=d' +``` + +You may use the `arrayFormat` option to specify the format of the output array: + +```javascript +qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'indices' }) +// 'a[0]=b&a[1]=c' +qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'brackets' }) +// 'a[]=b&a[]=c' +qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'repeat' }) +// 'a=b&a=c' +qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'comma' }) +// 'a=b,c' +``` + +Note: when using `arrayFormat` set to `'comma'`, you can also pass the `commaRoundTrip` option set to `true` or `false`, to append `[]` on single-item arrays, so that they can round trip through a parse. + +When objects are stringified, by default they use bracket notation: + +```javascript +qs.stringify({ a: { b: { c: 'd', e: 'f' } } }); +// 'a[b][c]=d&a[b][e]=f' +``` + +You may override this to use dot notation by setting the `allowDots` option to `true`: + +```javascript +qs.stringify({ a: { b: { c: 'd', e: 'f' } } }, { allowDots: true }); +// 'a.b.c=d&a.b.e=f' +``` + +You may encode the dot notation in the keys of object with option `encodeDotInKeys` by setting it to `true`: +Note: it implies `allowDots`, so `stringify` will error if you set `decodeDotInKeys` to `true`, and `allowDots` to `false`. +Caveat: when `encodeValuesOnly` is `true` as well as `encodeDotInKeys`, only dots in keys and nothing else will be encoded. +```javascript +qs.stringify({ "name.obj": { "first": "John", "last": "Doe" } }, { allowDots: true, encodeDotInKeys: true }) +// 'name%252Eobj.first=John&name%252Eobj.last=Doe' +``` + +You may allow empty array values by setting the `allowEmptyArrays` option to `true`: +```javascript +qs.stringify({ foo: [], bar: 'baz' }, { allowEmptyArrays: true }); +// 'foo[]&bar=baz' +``` + +Empty strings and null values will omit the value, but the equals sign (=) remains in place: + +```javascript +assert.equal(qs.stringify({ a: '' }), 'a='); +``` + +Key with no values (such as an empty object or array) will return nothing: + +```javascript +assert.equal(qs.stringify({ a: [] }), ''); +assert.equal(qs.stringify({ a: {} }), ''); +assert.equal(qs.stringify({ a: [{}] }), ''); +assert.equal(qs.stringify({ a: { b: []} }), ''); +assert.equal(qs.stringify({ a: { b: {}} }), ''); +``` + +Properties that are set to `undefined` will be omitted entirely: + +```javascript +assert.equal(qs.stringify({ a: null, b: undefined }), 'a='); +``` + +The query string may optionally be prepended with a question mark: + +```javascript +assert.equal(qs.stringify({ a: 'b', c: 'd' }, { addQueryPrefix: true }), '?a=b&c=d'); +``` + +Note that when the output is an empty string, the prefix will not be added: + +```javascript +assert.equal(qs.stringify({}, { addQueryPrefix: true }), ''); +``` + +The delimiter may be overridden with stringify as well: + +```javascript +assert.equal(qs.stringify({ a: 'b', c: 'd' }, { delimiter: ';' }), 'a=b;c=d'); +``` + +If you only want to override the serialization of `Date` objects, you can provide a `serializeDate` option: + +```javascript +var date = new Date(7); +assert.equal(qs.stringify({ a: date }), 'a=1970-01-01T00:00:00.007Z'.replace(/:/g, '%3A')); +assert.equal( + qs.stringify({ a: date }, { serializeDate: function (d) { return d.getTime(); } }), + 'a=7' +); +``` + +You may use the `sort` option to affect the order of parameter keys: + +```javascript +function alphabeticalSort(a, b) { + return a.localeCompare(b); +} +assert.equal(qs.stringify({ a: 'c', z: 'y', b : 'f' }, { sort: alphabeticalSort }), 'a=c&b=f&z=y'); +``` + +Finally, you can use the `filter` option to restrict which keys will be included in the stringified output. +If you pass a function, it will be called for each key to obtain the replacement value. +Otherwise, if you pass an array, it will be used to select properties and array indices for stringification: + +```javascript +function filterFunc(prefix, value) { + if (prefix == 'b') { + // Return an `undefined` value to omit a property. + return; + } + if (prefix == 'e[f]') { + return value.getTime(); + } + if (prefix == 'e[g][0]') { + return value * 2; + } + return value; +} +qs.stringify({ a: 'b', c: 'd', e: { f: new Date(123), g: [2] } }, { filter: filterFunc }); +// 'a=b&c=d&e[f]=123&e[g][0]=4' +qs.stringify({ a: 'b', c: 'd', e: 'f' }, { filter: ['a', 'e'] }); +// 'a=b&e=f' +qs.stringify({ a: ['b', 'c', 'd'], e: 'f' }, { filter: ['a', 0, 2] }); +// 'a[0]=b&a[2]=d' +``` + +You could also use `filter` to inject custom serialization for user defined types. +Consider you're working with some api that expects query strings of the format for ranges: + +``` +https://domain.com/endpoint?range=30...70 +``` + +For which you model as: + +```javascript +class Range { + constructor(from, to) { + this.from = from; + this.to = to; + } +} +``` + +You could _inject_ a custom serializer to handle values of this type: + +```javascript +qs.stringify( + { + range: new Range(30, 70), + }, + { + filter: (prefix, value) => { + if (value instanceof Range) { + return `${value.from}...${value.to}`; + } + // serialize the usual way + return value; + }, + } +); +// range=30...70 +``` + +### Handling of `null` values + +By default, `null` values are treated like empty strings: + +```javascript +var withNull = qs.stringify({ a: null, b: '' }); +assert.equal(withNull, 'a=&b='); +``` + +Parsing does not distinguish between parameters with and without equal signs. +Both are converted to empty strings. + +```javascript +var equalsInsensitive = qs.parse('a&b='); +assert.deepEqual(equalsInsensitive, { a: '', b: '' }); +``` + +To distinguish between `null` values and empty strings use the `strictNullHandling` flag. In the result string the `null` +values have no `=` sign: + +```javascript +var strictNull = qs.stringify({ a: null, b: '' }, { strictNullHandling: true }); +assert.equal(strictNull, 'a&b='); +``` + +To parse values without `=` back to `null` use the `strictNullHandling` flag: + +```javascript +var parsedStrictNull = qs.parse('a&b=', { strictNullHandling: true }); +assert.deepEqual(parsedStrictNull, { a: null, b: '' }); +``` + +To completely skip rendering keys with `null` values, use the `skipNulls` flag: + +```javascript +var nullsSkipped = qs.stringify({ a: 'b', c: null}, { skipNulls: true }); +assert.equal(nullsSkipped, 'a=b'); +``` + +If you're communicating with legacy systems, you can switch to `iso-8859-1` using the `charset` option: + +```javascript +var iso = qs.stringify({ æ: 'æ' }, { charset: 'iso-8859-1' }); +assert.equal(iso, '%E6=%E6'); +``` + +Characters that don't exist in `iso-8859-1` will be converted to numeric entities, similar to what browsers do: + +```javascript +var numeric = qs.stringify({ a: '☺' }, { charset: 'iso-8859-1' }); +assert.equal(numeric, 'a=%26%239786%3B'); +``` + +You can use the `charsetSentinel` option to announce the character by including an `utf8=✓` parameter with the proper encoding if the checkmark, similar to what Ruby on Rails and others do when submitting forms. + +```javascript +var sentinel = qs.stringify({ a: '☺' }, { charsetSentinel: true }); +assert.equal(sentinel, 'utf8=%E2%9C%93&a=%E2%98%BA'); + +var isoSentinel = qs.stringify({ a: 'æ' }, { charsetSentinel: true, charset: 'iso-8859-1' }); +assert.equal(isoSentinel, 'utf8=%26%2310003%3B&a=%E6'); +``` + +### Dealing with special character sets + +By default the encoding and decoding of characters is done in `utf-8`, and `iso-8859-1` support is also built in via the `charset` parameter. + +If you wish to encode querystrings to a different character set (i.e. +[Shift JIS](https://en.wikipedia.org/wiki/Shift_JIS)) you can use the +[`qs-iconv`](https://github.com/martinheidegger/qs-iconv) library: + +```javascript +var encoder = require('qs-iconv/encoder')('shift_jis'); +var shiftJISEncoded = qs.stringify({ a: 'こんにちは!' }, { encoder: encoder }); +assert.equal(shiftJISEncoded, 'a=%82%B1%82%F1%82%C9%82%BF%82%CD%81I'); +``` + +This also works for decoding of query strings: + +```javascript +var decoder = require('qs-iconv/decoder')('shift_jis'); +var obj = qs.parse('a=%82%B1%82%F1%82%C9%82%BF%82%CD%81I', { decoder: decoder }); +assert.deepEqual(obj, { a: 'こんにちは!' }); +``` + +### RFC 3986 and RFC 1738 space encoding + +RFC3986 used as default option and encodes ' ' to *%20* which is backward compatible. +In the same time, output can be stringified as per RFC1738 with ' ' equal to '+'. + +``` +assert.equal(qs.stringify({ a: 'b c' }), 'a=b%20c'); +assert.equal(qs.stringify({ a: 'b c' }, { format : 'RFC3986' }), 'a=b%20c'); +assert.equal(qs.stringify({ a: 'b c' }, { format : 'RFC1738' }), 'a=b+c'); +``` + +## Security + +Please email [@ljharb](https://github.com/ljharb) or see https://tidelift.com/security if you have a potential security vulnerability to report. + +## qs for enterprise + +Available as part of the Tidelift Subscription + +The maintainers of qs and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. +Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. +[Learn more.](https://tidelift.com/subscription/pkg/npm-qs?utm_source=npm-qs&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) + +[package-url]: https://npmjs.org/package/qs +[npm-version-svg]: https://versionbadg.es/ljharb/qs.svg +[deps-svg]: https://david-dm.org/ljharb/qs.svg +[deps-url]: https://david-dm.org/ljharb/qs +[dev-deps-svg]: https://david-dm.org/ljharb/qs/dev-status.svg +[dev-deps-url]: https://david-dm.org/ljharb/qs#info=devDependencies +[npm-badge-png]: https://nodei.co/npm/qs.png?downloads=true&stars=true +[license-image]: https://img.shields.io/npm/l/qs.svg +[license-url]: LICENSE +[downloads-image]: https://img.shields.io/npm/dm/qs.svg +[downloads-url]: https://npm-stat.com/charts.html?package=qs +[codecov-image]: https://codecov.io/gh/ljharb/qs/branch/main/graphs/badge.svg +[codecov-url]: https://app.codecov.io/gh/ljharb/qs/ +[actions-image]: https://img.shields.io/github/check-runs/ljharb/qs/main +[actions-url]: https://github.com/ljharb/qs/actions + +## Acknowledgements + +qs logo by [NUMI](https://github.com/numi-hq/open-design): + +[NUMI Logo](https://numi.tech/?ref=qs) diff --git a/node_modules/qs/eslint.config.mjs b/node_modules/qs/eslint.config.mjs new file mode 100644 index 0000000000000000000000000000000000000000..5c9fc1f989caebd47abb252d4ea9b12c4c4bafea --- /dev/null +++ b/node_modules/qs/eslint.config.mjs @@ -0,0 +1,57 @@ +import ljharbConfig from '@ljharb/eslint-config/flat'; + +export default [ + { + ignores: ['dist/'], + }, + + ...ljharbConfig, + + { + rules: { + complexity: 'off', + 'consistent-return': 'warn', + eqeqeq: ['error', 'allow-null'], + 'func-name-matching': 'off', + 'id-length': [ + 'error', + { + max: 25, + min: 1, + properties: 'never', + }, + ], + indent: ['error', 4], + 'max-lines': 'off', + 'max-lines-per-function': [ + 'error', + { max: 150 }, + ], + 'max-params': ['error', 18], + 'max-statements': ['error', 100], + 'multiline-comment-style': 'off', + 'no-continue': 'warn', + 'no-magic-numbers': 'off', + 'no-restricted-syntax': [ + 'error', + 'BreakStatement', + 'DebuggerStatement', + 'ForInStatement', + 'LabeledStatement', + 'WithStatement', + ], + }, + }, + + { + files: ['test/**'], + rules: { + 'function-paren-newline': 'off', + 'max-lines-per-function': 'off', + 'max-statements': 'off', + 'no-buffer-constructor': 'off', + 'no-extend-native': 'off', + 'no-throw-literal': 'off', + }, + }, +]; diff --git a/node_modules/qs/lib/formats.js b/node_modules/qs/lib/formats.js new file mode 100644 index 0000000000000000000000000000000000000000..f36cf206b90ff764e9709be64d57f6da60b6307e --- /dev/null +++ b/node_modules/qs/lib/formats.js @@ -0,0 +1,23 @@ +'use strict'; + +var replace = String.prototype.replace; +var percentTwenties = /%20/g; + +var Format = { + RFC1738: 'RFC1738', + RFC3986: 'RFC3986' +}; + +module.exports = { + 'default': Format.RFC3986, + formatters: { + RFC1738: function (value) { + return replace.call(value, percentTwenties, '+'); + }, + RFC3986: function (value) { + return String(value); + } + }, + RFC1738: Format.RFC1738, + RFC3986: Format.RFC3986 +}; diff --git a/node_modules/qs/lib/index.js b/node_modules/qs/lib/index.js new file mode 100644 index 0000000000000000000000000000000000000000..0d6a97dcf096449e7100cb63bb05f232a7f790a5 --- /dev/null +++ b/node_modules/qs/lib/index.js @@ -0,0 +1,11 @@ +'use strict'; + +var stringify = require('./stringify'); +var parse = require('./parse'); +var formats = require('./formats'); + +module.exports = { + formats: formats, + parse: parse, + stringify: stringify +}; diff --git a/node_modules/qs/lib/parse.js b/node_modules/qs/lib/parse.js new file mode 100644 index 0000000000000000000000000000000000000000..16bedbcd4c78a77e52f688d9c7ee4b1f5c7c7438 --- /dev/null +++ b/node_modules/qs/lib/parse.js @@ -0,0 +1,403 @@ +'use strict'; + +var utils = require('./utils'); + +var has = Object.prototype.hasOwnProperty; +var isArray = Array.isArray; + +var defaults = { + allowDots: false, + allowEmptyArrays: false, + allowPrototypes: false, + allowSparse: false, + arrayLimit: 20, + charset: 'utf-8', + charsetSentinel: false, + comma: false, + decodeDotInKeys: false, + decoder: utils.decode, + delimiter: '&', + depth: 5, + duplicates: 'combine', + ignoreQueryPrefix: false, + interpretNumericEntities: false, + parameterLimit: 1000, + parseArrays: true, + plainObjects: false, + strictDepth: false, + strictMerge: true, + strictNullHandling: false, + throwOnLimitExceeded: false +}; + +var interpretNumericEntities = function (str) { + return str.replace(/&#(\d+);/g, function ($0, numberStr) { + return String.fromCharCode(parseInt(numberStr, 10)); + }); +}; + +var parseArrayValue = function (val, options, currentArrayLength) { + if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) { + return val.split(','); + } + + if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) { + throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.'); + } + + return val; +}; + +// This is what browsers will submit when the ✓ character occurs in an +// application/x-www-form-urlencoded body and the encoding of the page containing +// the form is iso-8859-1, or when the submitted form has an accept-charset +// attribute of iso-8859-1. Presumably also with other charsets that do not contain +// the ✓ character, such as us-ascii. +var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓') + +// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded. +var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓') + +var parseValues = function parseQueryStringValues(str, options) { + var obj = { __proto__: null }; + + var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str; + cleanStr = cleanStr.replace(/%5B/gi, '[').replace(/%5D/gi, ']'); + + var limit = options.parameterLimit === Infinity ? void undefined : options.parameterLimit; + var parts = cleanStr.split( + options.delimiter, + options.throwOnLimitExceeded && typeof limit !== 'undefined' ? limit + 1 : limit + ); + + if (options.throwOnLimitExceeded && typeof limit !== 'undefined' && parts.length > limit) { + throw new RangeError('Parameter limit exceeded. Only ' + limit + ' parameter' + (limit === 1 ? '' : 's') + ' allowed.'); + } + + var skipIndex = -1; // Keep track of where the utf8 sentinel was found + var i; + + var charset = options.charset; + if (options.charsetSentinel) { + for (i = 0; i < parts.length; ++i) { + if (parts[i].indexOf('utf8=') === 0) { + if (parts[i] === charsetSentinel) { + charset = 'utf-8'; + } else if (parts[i] === isoSentinel) { + charset = 'iso-8859-1'; + } + skipIndex = i; + i = parts.length; // The eslint settings do not allow break; + } + } + } + + for (i = 0; i < parts.length; ++i) { + if (i === skipIndex) { + continue; + } + var part = parts[i]; + + var bracketEqualsPos = part.indexOf(']='); + var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1; + + var key; + var val; + if (pos === -1) { + key = options.decoder(part, defaults.decoder, charset, 'key'); + val = options.strictNullHandling ? null : ''; + } else { + key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key'); + + if (key !== null) { + val = utils.maybeMap( + parseArrayValue( + part.slice(pos + 1), + options, + isArray(obj[key]) ? obj[key].length : 0 + ), + function (encodedVal) { + return options.decoder(encodedVal, defaults.decoder, charset, 'value'); + } + ); + } + } + + if (val && options.interpretNumericEntities && charset === 'iso-8859-1') { + val = interpretNumericEntities(String(val)); + } + + if (part.indexOf('[]=') > -1) { + val = isArray(val) ? [val] : val; + } + + if (options.comma && isArray(val) && val.length > options.arrayLimit) { + if (options.throwOnLimitExceeded) { + throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.'); + } + val = utils.combine([], val, options.arrayLimit, options.plainObjects); + } + + if (key !== null) { + var existing = has.call(obj, key); + if (existing && (options.duplicates === 'combine' || part.indexOf('[]=') > -1)) { + obj[key] = utils.combine( + obj[key], + val, + options.arrayLimit, + options.plainObjects + ); + } else if (!existing || options.duplicates === 'last') { + obj[key] = val; + } + } + } + + return obj; +}; + +var parseObject = function (chain, val, options, valuesParsed) { + var currentArrayLength = 0; + if (chain.length > 0 && chain[chain.length - 1] === '[]') { + var parentKey = chain.slice(0, -1).join(''); + currentArrayLength = Array.isArray(val) && val[parentKey] ? val[parentKey].length : 0; + } + + var leaf = valuesParsed ? val : parseArrayValue(val, options, currentArrayLength); + + for (var i = chain.length - 1; i >= 0; --i) { + var obj; + var root = chain[i]; + + if (root === '[]' && options.parseArrays) { + if (utils.isOverflow(leaf)) { + // leaf is already an overflow object, preserve it + obj = leaf; + } else { + obj = options.allowEmptyArrays && (leaf === '' || (options.strictNullHandling && leaf === null)) + ? [] + : utils.combine( + [], + leaf, + options.arrayLimit, + options.plainObjects + ); + } + } else { + obj = options.plainObjects ? { __proto__: null } : {}; + var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root; + var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, '.') : cleanRoot; + var index = parseInt(decodedRoot, 10); + var isValidArrayIndex = !isNaN(index) + && root !== decodedRoot + && String(index) === decodedRoot + && index >= 0 + && options.parseArrays; + if (!options.parseArrays && decodedRoot === '') { + obj = { 0: leaf }; + } else if (isValidArrayIndex && index < options.arrayLimit) { + obj = []; + obj[index] = leaf; + } else if (isValidArrayIndex && options.throwOnLimitExceeded) { + throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.'); + } else if (isValidArrayIndex) { + obj[index] = leaf; + utils.markOverflow(obj, index); + } else if (decodedRoot !== '__proto__') { + obj[decodedRoot] = leaf; + } + } + + leaf = obj; + } + + return leaf; +}; + +// Split a key like "a[b][c[]]" into ['a', '[b]', '[c[]]'] while preserving +// qs parse semantics for depth/prototype guards. +var splitKeyIntoSegments = function splitKeyIntoSegments(originalKey, options) { + var key = options.allowDots ? originalKey.replace(/\.([^.[]+)/g, '[$1]') : originalKey; + + // depth <= 0 keeps the whole key as one segment + if (options.depth <= 0) { + if (!options.plainObjects && has.call(Object.prototype, key)) { + if (!options.allowPrototypes) { + return; + } + } + + return [key]; + } + + var segments = []; + + // parent before the first '[' (may be empty if key starts with '[') + var first = key.indexOf('['); + var parent = first >= 0 ? key.slice(0, first) : key; + if (parent) { + if (!options.plainObjects && has.call(Object.prototype, parent)) { + if (!options.allowPrototypes) { + return; + } + } + + segments[segments.length] = parent; + } + + var n = key.length; + var open = first; + var collected = 0; + + while (open >= 0 && collected < options.depth) { + var level = 1; + var i = open + 1; + var close = -1; + + // balance nested '[' and ']' inside this bracket group using a nesting level counter + while (i < n && close < 0) { + var cu = key.charCodeAt(i); + if (cu === 0x5B) { // '[' + level += 1; + } else if (cu === 0x5D) { // ']' + level -= 1; + if (level === 0) { + close = i; // found matching close; loop will exit by condition + } + } + i += 1; + } + + if (close < 0) { + // Unterminated group: wrap the raw remainder in one bracket pair so it stays + // a single literal segment (e.g. "[[]b" -> "[[]b]"); we do not infer missing ']'. + segments[segments.length] = '[' + key.slice(open) + ']'; + return segments; + } + + var seg = key.slice(open, close + 1); + // prototype guard for the content of this group + var content = seg.slice(1, -1); + if (!options.plainObjects && has.call(Object.prototype, content) && !options.allowPrototypes) { + return; + } + + segments[segments.length] = seg; + collected += 1; + + // find the next '[' after this balanced group + open = key.indexOf('[', close + 1); + } + + if (open >= 0) { + if (options.strictDepth === true) { + throw new RangeError('Input depth exceeded depth option of ' + options.depth + ' and strictDepth is true'); + } + + segments[segments.length] = '[' + key.slice(open) + ']'; + } + + return segments; +}; + +var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) { + if (!givenKey) { + return; + } + + var keys = splitKeyIntoSegments(givenKey, options); + + if (!keys) { + return; + } + + return parseObject(keys, val, options, valuesParsed); +}; + +var normalizeParseOptions = function normalizeParseOptions(opts) { + if (!opts) { + return defaults; + } + + if (typeof opts.allowEmptyArrays !== 'undefined' && typeof opts.allowEmptyArrays !== 'boolean') { + throw new TypeError('`allowEmptyArrays` option can only be `true` or `false`, when provided'); + } + + if (typeof opts.decodeDotInKeys !== 'undefined' && typeof opts.decodeDotInKeys !== 'boolean') { + throw new TypeError('`decodeDotInKeys` option can only be `true` or `false`, when provided'); + } + + if (opts.decoder !== null && typeof opts.decoder !== 'undefined' && typeof opts.decoder !== 'function') { + throw new TypeError('Decoder has to be a function.'); + } + + if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') { + throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined'); + } + + if (typeof opts.throwOnLimitExceeded !== 'undefined' && typeof opts.throwOnLimitExceeded !== 'boolean') { + throw new TypeError('`throwOnLimitExceeded` option must be a boolean'); + } + + var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset; + + var duplicates = typeof opts.duplicates === 'undefined' ? defaults.duplicates : opts.duplicates; + + if (duplicates !== 'combine' && duplicates !== 'first' && duplicates !== 'last') { + throw new TypeError('The duplicates option must be either combine, first, or last'); + } + + var allowDots = typeof opts.allowDots === 'undefined' ? opts.decodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots; + + return { + allowDots: allowDots, + allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays, + allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes, + allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse, + arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit, + charset: charset, + charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel, + comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma, + decodeDotInKeys: typeof opts.decodeDotInKeys === 'boolean' ? opts.decodeDotInKeys : defaults.decodeDotInKeys, + decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder, + delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter, + // eslint-disable-next-line no-implicit-coercion, no-extra-parens + depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth, + duplicates: duplicates, + ignoreQueryPrefix: opts.ignoreQueryPrefix === true, + interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities, + parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit, + parseArrays: opts.parseArrays !== false, + plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects, + strictDepth: typeof opts.strictDepth === 'boolean' ? !!opts.strictDepth : defaults.strictDepth, + strictMerge: typeof opts.strictMerge === 'boolean' ? !!opts.strictMerge : defaults.strictMerge, + strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling, + throwOnLimitExceeded: typeof opts.throwOnLimitExceeded === 'boolean' ? opts.throwOnLimitExceeded : false + }; +}; + +module.exports = function (str, opts) { + var options = normalizeParseOptions(opts); + + if (str === '' || str === null || typeof str === 'undefined') { + return options.plainObjects ? { __proto__: null } : {}; + } + + var tempObj = typeof str === 'string' ? parseValues(str, options) : str; + var obj = options.plainObjects ? { __proto__: null } : {}; + + // Iterate over the keys and setup the new object + + var keys = Object.keys(tempObj); + for (var i = 0; i < keys.length; ++i) { + var key = keys[i]; + var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string'); + obj = utils.merge(obj, newObj, options); + } + + if (options.allowSparse === true) { + return obj; + } + + return utils.compact(obj); +}; diff --git a/node_modules/qs/lib/stringify.js b/node_modules/qs/lib/stringify.js new file mode 100644 index 0000000000000000000000000000000000000000..b6616912ffb7a5903d8b7f87c798879a43a5effe --- /dev/null +++ b/node_modules/qs/lib/stringify.js @@ -0,0 +1,363 @@ +'use strict'; + +var getSideChannel = require('side-channel'); +var utils = require('./utils'); +var formats = require('./formats'); +var has = Object.prototype.hasOwnProperty; + +var arrayPrefixGenerators = { + brackets: function brackets(prefix) { + return prefix + '[]'; + }, + comma: 'comma', + indices: function indices(prefix, key) { + return prefix + '[' + key + ']'; + }, + repeat: function repeat(prefix) { + return prefix; + } +}; + +var isArray = Array.isArray; +var push = Array.prototype.push; +var pushToArray = function (arr, valueOrArray) { + push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]); +}; + +var toISO = Date.prototype.toISOString; + +var defaultFormat = formats['default']; +var defaults = { + addQueryPrefix: false, + allowDots: false, + allowEmptyArrays: false, + arrayFormat: 'indices', + charset: 'utf-8', + charsetSentinel: false, + commaRoundTrip: false, + delimiter: '&', + encode: true, + encodeDotInKeys: false, + encoder: utils.encode, + encodeValuesOnly: false, + filter: void undefined, + format: defaultFormat, + formatter: formats.formatters[defaultFormat], + // deprecated + indices: false, + serializeDate: function serializeDate(date) { + return toISO.call(date); + }, + skipNulls: false, + strictNullHandling: false +}; + +var isNonNullishPrimitive = function isNonNullishPrimitive(v) { + return typeof v === 'string' + || typeof v === 'number' + || typeof v === 'boolean' + || typeof v === 'symbol' + || typeof v === 'bigint'; +}; + +var sentinel = {}; + +var stringify = function stringify( + object, + prefix, + generateArrayPrefix, + commaRoundTrip, + allowEmptyArrays, + strictNullHandling, + skipNulls, + encodeDotInKeys, + encoder, + filter, + sort, + allowDots, + serializeDate, + format, + formatter, + encodeValuesOnly, + charset, + sideChannel +) { + var obj = object; + + var tmpSc = sideChannel; + var step = 0; + var findFlag = false; + while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) { + // Where object last appeared in the ref tree + var pos = tmpSc.get(object); + step += 1; + if (typeof pos !== 'undefined') { + if (pos === step) { + throw new RangeError('Cyclic object value'); + } else { + findFlag = true; // Break while + } + } + if (typeof tmpSc.get(sentinel) === 'undefined') { + step = 0; + } + } + + if (typeof filter === 'function') { + obj = filter(prefix, obj); + } else if (obj instanceof Date) { + obj = serializeDate(obj); + } else if (generateArrayPrefix === 'comma' && isArray(obj)) { + obj = utils.maybeMap(obj, function (value) { + if (value instanceof Date) { + return serializeDate(value); + } + return value; + }); + } + + if (obj === null) { + if (strictNullHandling) { + return formatter(encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix); + } + + obj = ''; + } + + if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) { + if (encoder) { + var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format); + return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))]; + } + return [formatter(prefix) + '=' + formatter(String(obj))]; + } + + var values = []; + + if (typeof obj === 'undefined') { + return values; + } + + var objKeys; + if (generateArrayPrefix === 'comma' && isArray(obj)) { + // we need to join elements in + if (encodeValuesOnly && encoder) { + obj = utils.maybeMap(obj, function (v) { + return v == null ? v : encoder(v); + }); + } + objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }]; + } else if (isArray(filter)) { + objKeys = filter; + } else { + var keys = Object.keys(obj); + objKeys = sort ? keys.sort(sort) : keys; + } + + var encodedPrefix = encodeDotInKeys ? String(prefix).replace(/\./g, '%2E') : String(prefix); + + var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + '[]' : encodedPrefix; + + if (allowEmptyArrays && isArray(obj) && obj.length === 0) { + return adjustedPrefix + '[]'; + } + + for (var j = 0; j < objKeys.length; ++j) { + var key = objKeys[j]; + var value = typeof key === 'object' && key && typeof key.value !== 'undefined' + ? key.value + : obj[key]; + + if (skipNulls && value === null) { + continue; + } + + var encodedKey = allowDots && encodeDotInKeys ? String(key).replace(/\./g, '%2E') : String(key); + var keyPrefix = isArray(obj) + ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix + : adjustedPrefix + (allowDots ? '.' + encodedKey : '[' + encodedKey + ']'); + + sideChannel.set(object, step); + var valueSideChannel = getSideChannel(); + valueSideChannel.set(sentinel, sideChannel); + pushToArray(values, stringify( + value, + keyPrefix, + generateArrayPrefix, + commaRoundTrip, + allowEmptyArrays, + strictNullHandling, + skipNulls, + encodeDotInKeys, + generateArrayPrefix === 'comma' && encodeValuesOnly && isArray(obj) ? null : encoder, + filter, + sort, + allowDots, + serializeDate, + format, + formatter, + encodeValuesOnly, + charset, + valueSideChannel + )); + } + + return values; +}; + +var normalizeStringifyOptions = function normalizeStringifyOptions(opts) { + if (!opts) { + return defaults; + } + + if (typeof opts.allowEmptyArrays !== 'undefined' && typeof opts.allowEmptyArrays !== 'boolean') { + throw new TypeError('`allowEmptyArrays` option can only be `true` or `false`, when provided'); + } + + if (typeof opts.encodeDotInKeys !== 'undefined' && typeof opts.encodeDotInKeys !== 'boolean') { + throw new TypeError('`encodeDotInKeys` option can only be `true` or `false`, when provided'); + } + + if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') { + throw new TypeError('Encoder has to be a function.'); + } + + var charset = opts.charset || defaults.charset; + if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') { + throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined'); + } + + var format = formats['default']; + if (typeof opts.format !== 'undefined') { + if (!has.call(formats.formatters, opts.format)) { + throw new TypeError('Unknown format option provided.'); + } + format = opts.format; + } + var formatter = formats.formatters[format]; + + var filter = defaults.filter; + if (typeof opts.filter === 'function' || isArray(opts.filter)) { + filter = opts.filter; + } + + var arrayFormat; + if (opts.arrayFormat in arrayPrefixGenerators) { + arrayFormat = opts.arrayFormat; + } else if ('indices' in opts) { + arrayFormat = opts.indices ? 'indices' : 'repeat'; + } else { + arrayFormat = defaults.arrayFormat; + } + + if ('commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') { + throw new TypeError('`commaRoundTrip` must be a boolean, or absent'); + } + + var allowDots = typeof opts.allowDots === 'undefined' ? opts.encodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots; + + return { + addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix, + allowDots: allowDots, + allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays, + arrayFormat: arrayFormat, + charset: charset, + charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel, + commaRoundTrip: !!opts.commaRoundTrip, + delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter, + encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode, + encodeDotInKeys: typeof opts.encodeDotInKeys === 'boolean' ? opts.encodeDotInKeys : defaults.encodeDotInKeys, + encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder, + encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly, + filter: filter, + format: format, + formatter: formatter, + serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate, + skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls, + sort: typeof opts.sort === 'function' ? opts.sort : null, + strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling + }; +}; + +module.exports = function (object, opts) { + var obj = object; + var options = normalizeStringifyOptions(opts); + + var objKeys; + var filter; + + if (typeof options.filter === 'function') { + filter = options.filter; + obj = filter('', obj); + } else if (isArray(options.filter)) { + filter = options.filter; + objKeys = filter; + } + + var keys = []; + + if (typeof obj !== 'object' || obj === null) { + return ''; + } + + var generateArrayPrefix = arrayPrefixGenerators[options.arrayFormat]; + var commaRoundTrip = generateArrayPrefix === 'comma' && options.commaRoundTrip; + + if (!objKeys) { + objKeys = Object.keys(obj); + } + + if (options.sort) { + objKeys.sort(options.sort); + } + + var sideChannel = getSideChannel(); + for (var i = 0; i < objKeys.length; ++i) { + var key = objKeys[i]; + + if (typeof key === 'undefined' || key === null) { + continue; + } + + var value = obj[key]; + + if (options.skipNulls && value === null) { + continue; + } + pushToArray(keys, stringify( + value, + key, + generateArrayPrefix, + commaRoundTrip, + options.allowEmptyArrays, + options.strictNullHandling, + options.skipNulls, + options.encodeDotInKeys, + options.encode ? options.encoder : null, + options.filter, + options.sort, + options.allowDots, + options.serializeDate, + options.format, + options.formatter, + options.encodeValuesOnly, + options.charset, + sideChannel + )); + } + + var joined = keys.join(options.delimiter); + var prefix = options.addQueryPrefix === true ? '?' : ''; + + if (options.charsetSentinel) { + if (options.charset === 'iso-8859-1') { + // encodeURIComponent('✓'), the "numeric entity" representation of a checkmark + prefix += 'utf8=%26%2310003%3B' + options.delimiter; + } else { + // encodeURIComponent('✓') + prefix += 'utf8=%E2%9C%93' + options.delimiter; + } + } + + return joined.length > 0 ? prefix + joined : ''; +}; diff --git a/node_modules/qs/lib/utils.js b/node_modules/qs/lib/utils.js new file mode 100644 index 0000000000000000000000000000000000000000..9aa39e16bc3d54e1aa20378d9638281aaed3a0de --- /dev/null +++ b/node_modules/qs/lib/utils.js @@ -0,0 +1,342 @@ +'use strict'; + +var formats = require('./formats'); +var getSideChannel = require('side-channel'); + +var has = Object.prototype.hasOwnProperty; +var isArray = Array.isArray; + +// Track objects created from arrayLimit overflow using side-channel +// Stores the current max numeric index for O(1) lookup +var overflowChannel = getSideChannel(); + +var markOverflow = function markOverflow(obj, maxIndex) { + overflowChannel.set(obj, maxIndex); + return obj; +}; + +var isOverflow = function isOverflow(obj) { + return overflowChannel.has(obj); +}; + +var getMaxIndex = function getMaxIndex(obj) { + return overflowChannel.get(obj); +}; + +var setMaxIndex = function setMaxIndex(obj, maxIndex) { + overflowChannel.set(obj, maxIndex); +}; + +var hexTable = (function () { + var array = []; + for (var i = 0; i < 256; ++i) { + array[array.length] = '%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase(); + } + + return array; +}()); + +var compactQueue = function compactQueue(queue) { + while (queue.length > 1) { + var item = queue.pop(); + var obj = item.obj[item.prop]; + + if (isArray(obj)) { + var compacted = []; + + for (var j = 0; j < obj.length; ++j) { + if (typeof obj[j] !== 'undefined') { + compacted[compacted.length] = obj[j]; + } + } + + item.obj[item.prop] = compacted; + } + } +}; + +var arrayToObject = function arrayToObject(source, options) { + var obj = options && options.plainObjects ? { __proto__: null } : {}; + for (var i = 0; i < source.length; ++i) { + if (typeof source[i] !== 'undefined') { + obj[i] = source[i]; + } + } + + return obj; +}; + +var merge = function merge(target, source, options) { + /* eslint no-param-reassign: 0 */ + if (!source) { + return target; + } + + if (typeof source !== 'object' && typeof source !== 'function') { + if (isArray(target)) { + var nextIndex = target.length; + if (options && typeof options.arrayLimit === 'number' && nextIndex > options.arrayLimit) { + return markOverflow(arrayToObject(target.concat(source), options), nextIndex); + } + target[nextIndex] = source; + } else if (target && typeof target === 'object') { + if (isOverflow(target)) { + // Add at next numeric index for overflow objects + var newIndex = getMaxIndex(target) + 1; + target[newIndex] = source; + setMaxIndex(target, newIndex); + } else if (options && options.strictMerge) { + return [target, source]; + } else if ( + (options && (options.plainObjects || options.allowPrototypes)) + || !has.call(Object.prototype, source) + ) { + target[source] = true; + } + } else { + return [target, source]; + } + + return target; + } + + if (!target || typeof target !== 'object') { + if (isOverflow(source)) { + // Create new object with target at 0, source values shifted by 1 + var sourceKeys = Object.keys(source); + var result = options && options.plainObjects + ? { __proto__: null, 0: target } + : { 0: target }; + for (var m = 0; m < sourceKeys.length; m++) { + var oldKey = parseInt(sourceKeys[m], 10); + result[oldKey + 1] = source[sourceKeys[m]]; + } + return markOverflow(result, getMaxIndex(source) + 1); + } + var combined = [target].concat(source); + if (options && typeof options.arrayLimit === 'number' && combined.length > options.arrayLimit) { + return markOverflow(arrayToObject(combined, options), combined.length - 1); + } + return combined; + } + + var mergeTarget = target; + if (isArray(target) && !isArray(source)) { + mergeTarget = arrayToObject(target, options); + } + + if (isArray(target) && isArray(source)) { + source.forEach(function (item, i) { + if (has.call(target, i)) { + var targetItem = target[i]; + if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') { + target[i] = merge(targetItem, item, options); + } else { + target[target.length] = item; + } + } else { + target[i] = item; + } + }); + return target; + } + + return Object.keys(source).reduce(function (acc, key) { + var value = source[key]; + + if (has.call(acc, key)) { + acc[key] = merge(acc[key], value, options); + } else { + acc[key] = value; + } + + if (isOverflow(source) && !isOverflow(acc)) { + markOverflow(acc, getMaxIndex(source)); + } + if (isOverflow(acc)) { + var keyNum = parseInt(key, 10); + if (String(keyNum) === key && keyNum >= 0 && keyNum > getMaxIndex(acc)) { + setMaxIndex(acc, keyNum); + } + } + + return acc; + }, mergeTarget); +}; + +var assign = function assignSingleSource(target, source) { + return Object.keys(source).reduce(function (acc, key) { + acc[key] = source[key]; + return acc; + }, target); +}; + +var decode = function (str, defaultDecoder, charset) { + var strWithoutPlus = str.replace(/\+/g, ' '); + if (charset === 'iso-8859-1') { + // unescape never throws, no try...catch needed: + return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape); + } + // utf-8 + try { + return decodeURIComponent(strWithoutPlus); + } catch (e) { + return strWithoutPlus; + } +}; + +var limit = 1024; + +/* eslint operator-linebreak: [2, "before"] */ + +var encode = function encode(str, defaultEncoder, charset, kind, format) { + // This code was originally written by Brian White (mscdex) for the io.js core querystring library. + // It has been adapted here for stricter adherence to RFC 3986 + if (str.length === 0) { + return str; + } + + var string = str; + if (typeof str === 'symbol') { + string = Symbol.prototype.toString.call(str); + } else if (typeof str !== 'string') { + string = String(str); + } + + if (charset === 'iso-8859-1') { + return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) { + return '%26%23' + parseInt($0.slice(2), 16) + '%3B'; + }); + } + + var out = ''; + for (var j = 0; j < string.length; j += limit) { + var segment = string.length >= limit ? string.slice(j, j + limit) : string; + var arr = []; + + for (var i = 0; i < segment.length; ++i) { + var c = segment.charCodeAt(i); + if ( + c === 0x2D // - + || c === 0x2E // . + || c === 0x5F // _ + || c === 0x7E // ~ + || (c >= 0x30 && c <= 0x39) // 0-9 + || (c >= 0x41 && c <= 0x5A) // a-z + || (c >= 0x61 && c <= 0x7A) // A-Z + || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( ) + ) { + arr[arr.length] = segment.charAt(i); + continue; + } + + if (c < 0x80) { + arr[arr.length] = hexTable[c]; + continue; + } + + if (c < 0x800) { + arr[arr.length] = hexTable[0xC0 | (c >> 6)] + + hexTable[0x80 | (c & 0x3F)]; + continue; + } + + if (c < 0xD800 || c >= 0xE000) { + arr[arr.length] = hexTable[0xE0 | (c >> 12)] + + hexTable[0x80 | ((c >> 6) & 0x3F)] + + hexTable[0x80 | (c & 0x3F)]; + continue; + } + + i += 1; + c = 0x10000 + (((c & 0x3FF) << 10) | (segment.charCodeAt(i) & 0x3FF)); + + arr[arr.length] = hexTable[0xF0 | (c >> 18)] + + hexTable[0x80 | ((c >> 12) & 0x3F)] + + hexTable[0x80 | ((c >> 6) & 0x3F)] + + hexTable[0x80 | (c & 0x3F)]; + } + + out += arr.join(''); + } + + return out; +}; + +var compact = function compact(value) { + var queue = [{ obj: { o: value }, prop: 'o' }]; + var refs = []; + + for (var i = 0; i < queue.length; ++i) { + var item = queue[i]; + var obj = item.obj[item.prop]; + + var keys = Object.keys(obj); + for (var j = 0; j < keys.length; ++j) { + var key = keys[j]; + var val = obj[key]; + if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) { + queue[queue.length] = { obj: obj, prop: key }; + refs[refs.length] = val; + } + } + } + + compactQueue(queue); + + return value; +}; + +var isRegExp = function isRegExp(obj) { + return Object.prototype.toString.call(obj) === '[object RegExp]'; +}; + +var isBuffer = function isBuffer(obj) { + if (!obj || typeof obj !== 'object') { + return false; + } + + return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj)); +}; + +var combine = function combine(a, b, arrayLimit, plainObjects) { + // If 'a' is already an overflow object, add to it + if (isOverflow(a)) { + var newIndex = getMaxIndex(a) + 1; + a[newIndex] = b; + setMaxIndex(a, newIndex); + return a; + } + + var result = [].concat(a, b); + if (result.length > arrayLimit) { + return markOverflow(arrayToObject(result, { plainObjects: plainObjects }), result.length - 1); + } + return result; +}; + +var maybeMap = function maybeMap(val, fn) { + if (isArray(val)) { + var mapped = []; + for (var i = 0; i < val.length; i += 1) { + mapped[mapped.length] = fn(val[i]); + } + return mapped; + } + return fn(val); +}; + +module.exports = { + arrayToObject: arrayToObject, + assign: assign, + combine: combine, + compact: compact, + decode: decode, + encode: encode, + isBuffer: isBuffer, + isOverflow: isOverflow, + isRegExp: isRegExp, + markOverflow: markOverflow, + maybeMap: maybeMap, + merge: merge +}; diff --git a/node_modules/qs/package.json b/node_modules/qs/package.json new file mode 100644 index 0000000000000000000000000000000000000000..981970e9b3943050b59f7c58abfa8b5d405461c9 --- /dev/null +++ b/node_modules/qs/package.json @@ -0,0 +1,94 @@ +{ + "name": "qs", + "description": "A querystring parser that supports nesting and arrays, with a depth limit", + "homepage": "https://github.com/ljharb/qs", + "version": "6.15.2", + "repository": { + "type": "git", + "url": "https://github.com/ljharb/qs.git" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + }, + "main": "lib/index.js", + "sideEffects": false, + "contributors": [ + { + "name": "Jordan Harband", + "email": "ljharb@gmail.com", + "url": "http://ljharb.codes" + } + ], + "keywords": [ + "querystring", + "qs", + "query", + "url", + "parse", + "stringify" + ], + "engines": { + "node": ">=0.6" + }, + "dependencies": { + "side-channel": "^1.1.0" + }, + "devDependencies": { + "@browserify/envify": "^6.0.0", + "@browserify/uglifyify": "^6.0.0", + "@ljharb/eslint-config": "^22.2.3", + "browserify": "^16.5.2", + "bundle-collapser": "^1.4.0", + "common-shakeify": "~1.0.0", + "eclint": "^2.8.1", + "es-value-fixtures": "^1.7.1", + "eslint": "^9.39.2", + "evalmd": "^0.0.19", + "for-each": "^0.3.5", + "glob": "=10.3.7", + "has-bigints": "^1.1.0", + "has-override-mistake": "^1.0.1", + "has-property-descriptors": "^1.0.2", + "has-proto": "^1.2.0", + "has-symbols": "^1.1.0", + "iconv-lite": "^0.5.2", + "in-publish": "^2.0.1", + "jackspeak": "=2.1.1", + "jiti": "^0.0.0", + "mkdirp": "^0.5.5", + "mock-property": "^1.1.0", + "module-deps": "^6.2.3", + "npmignore": "^0.3.5", + "nyc": "^10.3.2", + "object-inspect": "^1.13.4", + "qs-iconv": "^1.0.4", + "safe-publish-latest": "^2.0.0", + "safer-buffer": "^2.1.2", + "tape": "^5.9.0", + "unassertify": "^3.0.1" + }, + "scripts": { + "prepack": "npmignore --auto --commentLines=autogenerated && npm run dist", + "prepublishOnly": "safe-publish-latest", + "prepublish": "not-in-publish || npm run prepublishOnly", + "pretest": "npm run --silent readme && npm run --silent lint", + "test": "npm run tests-only", + "tests-only": "nyc tape 'test/**/*.js'", + "posttest": "npx npm@'>=10.2' audit --production", + "readme": "evalmd README.md", + "postlint": "eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git' | grep -v dist/)", + "lint": "eslint .", + "dist": "mkdirp dist && browserify --standalone Qs -g unassertify -g @browserify/envify -g [@browserify/uglifyify --mangle.keep_fnames --compress.keep_fnames --format.indent_level=1 --compress.arrows=false --compress.passes=4 --compress.typeofs=false] -p common-shakeify -p bundle-collapser/plugin lib/index.js > dist/qs.js" + }, + "license": "BSD-3-Clause", + "publishConfig": { + "ignore": [ + "!dist/*", + "bower.json", + "component.json", + ".github/workflows", + "logos", + "tea.yaml" + ] + } +} diff --git a/node_modules/qs/test/empty-keys-cases.js b/node_modules/qs/test/empty-keys-cases.js new file mode 100644 index 0000000000000000000000000000000000000000..2b1190ef5a4fe07d96e137a062a5eb41c1170e35 --- /dev/null +++ b/node_modules/qs/test/empty-keys-cases.js @@ -0,0 +1,267 @@ +'use strict'; + +module.exports = { + emptyTestCases: [ + { + input: '&', + withEmptyKeys: {}, + stringifyOutput: { + brackets: '', + indices: '', + repeat: '' + }, + noEmptyKeys: {} + }, + { + input: '&&', + withEmptyKeys: {}, + stringifyOutput: { + brackets: '', + indices: '', + repeat: '' + }, + noEmptyKeys: {} + }, + { + input: '&=', + withEmptyKeys: { '': '' }, + stringifyOutput: { + brackets: '=', + indices: '=', + repeat: '=' + }, + noEmptyKeys: {} + }, + { + input: '&=&', + withEmptyKeys: { '': '' }, + stringifyOutput: { + brackets: '=', + indices: '=', + repeat: '=' + }, + noEmptyKeys: {} + }, + { + input: '&=&=', + withEmptyKeys: { '': ['', ''] }, + stringifyOutput: { + brackets: '[]=&[]=', + indices: '[0]=&[1]=', + repeat: '=&=' + }, + noEmptyKeys: {} + }, + { + input: '&=&=&', + withEmptyKeys: { '': ['', ''] }, + stringifyOutput: { + brackets: '[]=&[]=', + indices: '[0]=&[1]=', + repeat: '=&=' + }, + noEmptyKeys: {} + }, + { + input: '=', + withEmptyKeys: { '': '' }, + noEmptyKeys: {}, + stringifyOutput: { + brackets: '=', + indices: '=', + repeat: '=' + } + }, + { + input: '=&', + withEmptyKeys: { '': '' }, + stringifyOutput: { + brackets: '=', + indices: '=', + repeat: '=' + }, + noEmptyKeys: {} + }, + { + input: '=&&&', + withEmptyKeys: { '': '' }, + stringifyOutput: { + brackets: '=', + indices: '=', + repeat: '=' + }, + noEmptyKeys: {} + }, + { + input: '=&=&=&', + withEmptyKeys: { '': ['', '', ''] }, + stringifyOutput: { + brackets: '[]=&[]=&[]=', + indices: '[0]=&[1]=&[2]=', + repeat: '=&=&=' + }, + noEmptyKeys: {} + }, + { + input: '=&a[]=b&a[1]=c', + withEmptyKeys: { '': '', a: ['b', 'c'] }, + stringifyOutput: { + brackets: '=&a[]=b&a[]=c', + indices: '=&a[0]=b&a[1]=c', + repeat: '=&a=b&a=c' + }, + noEmptyKeys: { a: ['b', 'c'] } + }, + { + input: '=a', + withEmptyKeys: { '': 'a' }, + noEmptyKeys: {}, + stringifyOutput: { + brackets: '=a', + indices: '=a', + repeat: '=a' + } + }, + { + input: 'a==a', + withEmptyKeys: { a: '=a' }, + noEmptyKeys: { a: '=a' }, + stringifyOutput: { + brackets: 'a==a', + indices: 'a==a', + repeat: 'a==a' + } + }, + { + input: '=&a[]=b', + withEmptyKeys: { '': '', a: ['b'] }, + stringifyOutput: { + brackets: '=&a[]=b', + indices: '=&a[0]=b', + repeat: '=&a=b' + }, + noEmptyKeys: { a: ['b'] } + }, + { + input: '=&a[]=b&a[]=c&a[2]=d', + withEmptyKeys: { '': '', a: ['b', 'c', 'd'] }, + stringifyOutput: { + brackets: '=&a[]=b&a[]=c&a[]=d', + indices: '=&a[0]=b&a[1]=c&a[2]=d', + repeat: '=&a=b&a=c&a=d' + }, + noEmptyKeys: { a: ['b', 'c', 'd'] } + }, + { + input: '=a&=b', + withEmptyKeys: { '': ['a', 'b'] }, + stringifyOutput: { + brackets: '[]=a&[]=b', + indices: '[0]=a&[1]=b', + repeat: '=a&=b' + }, + noEmptyKeys: {} + }, + { + input: '=a&foo=b', + withEmptyKeys: { '': 'a', foo: 'b' }, + noEmptyKeys: { foo: 'b' }, + stringifyOutput: { + brackets: '=a&foo=b', + indices: '=a&foo=b', + repeat: '=a&foo=b' + } + }, + { + input: 'a[]=b&a=c&=', + withEmptyKeys: { '': '', a: ['b', 'c'] }, + stringifyOutput: { + brackets: '=&a[]=b&a[]=c', + indices: '=&a[0]=b&a[1]=c', + repeat: '=&a=b&a=c' + }, + noEmptyKeys: { a: ['b', 'c'] } + }, + { + input: 'a[]=b&a=c&=', + withEmptyKeys: { '': '', a: ['b', 'c'] }, + stringifyOutput: { + brackets: '=&a[]=b&a[]=c', + indices: '=&a[0]=b&a[1]=c', + repeat: '=&a=b&a=c' + }, + noEmptyKeys: { a: ['b', 'c'] } + }, + { + input: 'a[0]=b&a=c&=', + withEmptyKeys: { '': '', a: ['b', 'c'] }, + stringifyOutput: { + brackets: '=&a[]=b&a[]=c', + indices: '=&a[0]=b&a[1]=c', + repeat: '=&a=b&a=c' + }, + noEmptyKeys: { a: ['b', 'c'] } + }, + { + input: 'a=b&a[]=c&=', + withEmptyKeys: { '': '', a: ['b', 'c'] }, + stringifyOutput: { + brackets: '=&a[]=b&a[]=c', + indices: '=&a[0]=b&a[1]=c', + repeat: '=&a=b&a=c' + }, + noEmptyKeys: { a: ['b', 'c'] } + }, + { + input: 'a=b&a[0]=c&=', + withEmptyKeys: { '': '', a: ['b', 'c'] }, + stringifyOutput: { + brackets: '=&a[]=b&a[]=c', + indices: '=&a[0]=b&a[1]=c', + repeat: '=&a=b&a=c' + }, + noEmptyKeys: { a: ['b', 'c'] } + }, + { + input: '[]=a&[]=b& []=1', + withEmptyKeys: { '': ['a', 'b'], ' ': ['1'] }, + stringifyOutput: { + brackets: '[]=a&[]=b& []=1', + indices: '[0]=a&[1]=b& [0]=1', + repeat: '=a&=b& =1' + }, + noEmptyKeys: { 0: 'a', 1: 'b', ' ': ['1'] } + }, + { + input: '[0]=a&[1]=b&a[0]=1&a[1]=2', + withEmptyKeys: { '': ['a', 'b'], a: ['1', '2'] }, + noEmptyKeys: { 0: 'a', 1: 'b', a: ['1', '2'] }, + stringifyOutput: { + brackets: '[]=a&[]=b&a[]=1&a[]=2', + indices: '[0]=a&[1]=b&a[0]=1&a[1]=2', + repeat: '=a&=b&a=1&a=2' + } + }, + { + input: '[deep]=a&[deep]=2', + withEmptyKeys: { '': { deep: ['a', '2'] } + }, + stringifyOutput: { + brackets: '[deep][]=a&[deep][]=2', + indices: '[deep][0]=a&[deep][1]=2', + repeat: '[deep]=a&[deep]=2' + }, + noEmptyKeys: { deep: ['a', '2'] } + }, + { + input: '%5B0%5D=a&%5B1%5D=b', + withEmptyKeys: { '': ['a', 'b'] }, + stringifyOutput: { + brackets: '[]=a&[]=b', + indices: '[0]=a&[1]=b', + repeat: '=a&=b' + }, + noEmptyKeys: { 0: 'a', 1: 'b' } + } + ] +}; diff --git a/node_modules/qs/test/parse.js b/node_modules/qs/test/parse.js new file mode 100644 index 0000000000000000000000000000000000000000..31f513d8b35d7ad659e4008cc9479e1ef1d1f5ed --- /dev/null +++ b/node_modules/qs/test/parse.js @@ -0,0 +1,1703 @@ +'use strict'; + +var test = require('tape'); +var hasPropertyDescriptors = require('has-property-descriptors')(); +var iconv = require('iconv-lite'); +var mockProperty = require('mock-property'); +var hasOverrideMistake = require('has-override-mistake')(); +var SaferBuffer = require('safer-buffer').Buffer; +var v = require('es-value-fixtures'); +var inspect = require('object-inspect'); +var emptyTestCases = require('./empty-keys-cases').emptyTestCases; +var hasProto = require('has-proto')(); + +var qs = require('../'); +var utils = require('../lib/utils'); + +test('parse()', function (t) { + t.test('parses a simple string', function (st) { + st.deepEqual(qs.parse('0=foo'), { 0: 'foo' }); + st.deepEqual(qs.parse('foo=c++'), { foo: 'c ' }); + st.deepEqual(qs.parse('a[>=]=23'), { a: { '>=': '23' } }); + st.deepEqual(qs.parse('a[<=>]==23'), { a: { '<=>': '=23' } }); + st.deepEqual(qs.parse('a[==]=23'), { a: { '==': '23' } }); + st.deepEqual(qs.parse('foo', { strictNullHandling: true }), { foo: null }); + st.deepEqual(qs.parse('foo'), { foo: '' }); + st.deepEqual(qs.parse('foo='), { foo: '' }); + st.deepEqual(qs.parse('foo=bar'), { foo: 'bar' }); + st.deepEqual(qs.parse(' foo = bar = baz '), { ' foo ': ' bar = baz ' }); + st.deepEqual(qs.parse('foo=bar=baz'), { foo: 'bar=baz' }); + st.deepEqual(qs.parse('foo=bar&bar=baz'), { foo: 'bar', bar: 'baz' }); + st.deepEqual(qs.parse('foo2=bar2&baz2='), { foo2: 'bar2', baz2: '' }); + st.deepEqual(qs.parse('foo=bar&baz', { strictNullHandling: true }), { foo: 'bar', baz: null }); + st.deepEqual(qs.parse('foo=bar&baz'), { foo: 'bar', baz: '' }); + st.deepEqual(qs.parse('cht=p3&chd=t:60,40&chs=250x100&chl=Hello|World'), { + cht: 'p3', + chd: 't:60,40', + chs: '250x100', + chl: 'Hello|World' + }); + st.end(); + }); + + t.test('comma: false', function (st) { + st.deepEqual(qs.parse('a[]=b&a[]=c'), { a: ['b', 'c'] }); + st.deepEqual(qs.parse('a[0]=b&a[1]=c'), { a: ['b', 'c'] }); + st.deepEqual(qs.parse('a=b,c'), { a: 'b,c' }); + st.deepEqual(qs.parse('a=b&a=c'), { a: ['b', 'c'] }); + st.end(); + }); + + t.test('comma: true', function (st) { + st.deepEqual(qs.parse('a[]=b&a[]=c', { comma: true }), { a: ['b', 'c'] }); + st.deepEqual(qs.parse('a[0]=b&a[1]=c', { comma: true }), { a: ['b', 'c'] }); + st.deepEqual(qs.parse('a=b,c', { comma: true }), { a: ['b', 'c'] }); + st.deepEqual(qs.parse('a=b&a=c', { comma: true }), { a: ['b', 'c'] }); + st.end(); + }); + + t.test('allows enabling dot notation', function (st) { + st.deepEqual(qs.parse('a.b=c'), { 'a.b': 'c' }); + st.deepEqual(qs.parse('a.b=c', { allowDots: true }), { a: { b: 'c' } }); + + st.end(); + }); + + t.test('decode dot keys correctly', function (st) { + st.deepEqual( + qs.parse('name%252Eobj.first=John&name%252Eobj.last=Doe', { allowDots: false, decodeDotInKeys: false }), + { 'name%2Eobj.first': 'John', 'name%2Eobj.last': 'Doe' }, + 'with allowDots false and decodeDotInKeys false' + ); + st.deepEqual( + qs.parse('name.obj.first=John&name.obj.last=Doe', { allowDots: true, decodeDotInKeys: false }), + { name: { obj: { first: 'John', last: 'Doe' } } }, + 'with allowDots false and decodeDotInKeys false' + ); + st.deepEqual( + qs.parse('name%252Eobj.first=John&name%252Eobj.last=Doe', { allowDots: true, decodeDotInKeys: false }), + { 'name%2Eobj': { first: 'John', last: 'Doe' } }, + 'with allowDots true and decodeDotInKeys false' + ); + st.deepEqual( + qs.parse('name%252Eobj.first=John&name%252Eobj.last=Doe', { allowDots: true, decodeDotInKeys: true }), + { 'name.obj': { first: 'John', last: 'Doe' } }, + 'with allowDots true and decodeDotInKeys true' + ); + + st.deepEqual( + qs.parse( + 'name%252Eobj%252Esubobject.first%252Egodly%252Ename=John&name%252Eobj%252Esubobject.last=Doe', + { allowDots: false, decodeDotInKeys: false } + ), + { 'name%2Eobj%2Esubobject.first%2Egodly%2Ename': 'John', 'name%2Eobj%2Esubobject.last': 'Doe' }, + 'with allowDots false and decodeDotInKeys false' + ); + st.deepEqual( + qs.parse( + 'name.obj.subobject.first.godly.name=John&name.obj.subobject.last=Doe', + { allowDots: true, decodeDotInKeys: false } + ), + { name: { obj: { subobject: { first: { godly: { name: 'John' } }, last: 'Doe' } } } }, + 'with allowDots true and decodeDotInKeys false' + ); + st.deepEqual( + qs.parse( + 'name%252Eobj%252Esubobject.first%252Egodly%252Ename=John&name%252Eobj%252Esubobject.last=Doe', + { allowDots: true, decodeDotInKeys: true } + ), + { 'name.obj.subobject': { 'first.godly.name': 'John', last: 'Doe' } }, + 'with allowDots true and decodeDotInKeys true' + ); + st.deepEqual( + qs.parse('name%252Eobj.first=John&name%252Eobj.last=Doe'), + { 'name%2Eobj.first': 'John', 'name%2Eobj.last': 'Doe' }, + 'with allowDots and decodeDotInKeys undefined' + ); + + st.end(); + }); + + t.test('decodes dot in key of object, and allow enabling dot notation when decodeDotInKeys is set to true and allowDots is undefined', function (st) { + st.deepEqual( + qs.parse( + 'name%252Eobj%252Esubobject.first%252Egodly%252Ename=John&name%252Eobj%252Esubobject.last=Doe', + { decodeDotInKeys: true } + ), + { 'name.obj.subobject': { 'first.godly.name': 'John', last: 'Doe' } }, + 'with allowDots undefined and decodeDotInKeys true' + ); + + st.end(); + }); + + t.test('throws when decodeDotInKeys is not of type boolean', function (st) { + st['throws']( + function () { qs.parse('foo[]&bar=baz', { decodeDotInKeys: 'foobar' }); }, + TypeError + ); + + st['throws']( + function () { qs.parse('foo[]&bar=baz', { decodeDotInKeys: 0 }); }, + TypeError + ); + st['throws']( + function () { qs.parse('foo[]&bar=baz', { decodeDotInKeys: NaN }); }, + TypeError + ); + + st['throws']( + function () { qs.parse('foo[]&bar=baz', { decodeDotInKeys: null }); }, + TypeError + ); + + st.end(); + }); + + t.test('allows empty arrays in obj values', function (st) { + st.deepEqual(qs.parse('foo[]&bar=baz', { allowEmptyArrays: true }), { foo: [], bar: 'baz' }); + st.deepEqual(qs.parse('foo[]&bar=baz', { allowEmptyArrays: false }), { foo: [''], bar: 'baz' }); + + st.end(); + }); + + t.test('throws when allowEmptyArrays is not of type boolean', function (st) { + st['throws']( + function () { qs.parse('foo[]&bar=baz', { allowEmptyArrays: 'foobar' }); }, + TypeError + ); + + st['throws']( + function () { qs.parse('foo[]&bar=baz', { allowEmptyArrays: 0 }); }, + TypeError + ); + st['throws']( + function () { qs.parse('foo[]&bar=baz', { allowEmptyArrays: NaN }); }, + TypeError + ); + + st['throws']( + function () { qs.parse('foo[]&bar=baz', { allowEmptyArrays: null }); }, + TypeError + ); + + st.end(); + }); + + t.test('allowEmptyArrays + strictNullHandling', function (st) { + st.deepEqual( + qs.parse('testEmptyArray[]', { strictNullHandling: true, allowEmptyArrays: true }), + { testEmptyArray: [] } + ); + + st.end(); + }); + + t.deepEqual(qs.parse('a[b]=c'), { a: { b: 'c' } }, 'parses a single nested string'); + t.deepEqual(qs.parse('a[b][c]=d'), { a: { b: { c: 'd' } } }, 'parses a double nested string'); + t.deepEqual( + qs.parse('a[b][c][d][e][f][g][h]=i'), + { a: { b: { c: { d: { e: { f: { '[g][h]': 'i' } } } } } } }, + 'defaults to a depth of 5' + ); + + t.test('only parses one level when depth = 1', function (st) { + st.deepEqual(qs.parse('a[b][c]=d', { depth: 1 }), { a: { b: { '[c]': 'd' } } }); + st.deepEqual(qs.parse('a[b][c][d]=e', { depth: 1 }), { a: { b: { '[c][d]': 'e' } } }); + st.end(); + }); + + t.test('uses original key when depth = 0', function (st) { + st.deepEqual(qs.parse('a[0]=b&a[1]=c', { depth: 0 }), { 'a[0]': 'b', 'a[1]': 'c' }); + st.deepEqual(qs.parse('a[0][0]=b&a[0][1]=c&a[1]=d&e=2', { depth: 0 }), { 'a[0][0]': 'b', 'a[0][1]': 'c', 'a[1]': 'd', e: '2' }); + st.deepEqual(qs.parse('a.b=c', { depth: 0, allowDots: true }), { 'a[b]': 'c' }, 'normalizes dots before applying depth-0 behavior'); + st.deepEqual(qs.parse('toString=foo', { depth: 0 }), {}, 'respects prototype guard at depth 0'); + st.deepEqual(qs.parse('toString=foo', { depth: 0, allowPrototypes: true }), { toString: 'foo' }, 'allows prototypes at depth 0 when enabled'); + st.end(); + }); + + t.test('ignores prototype keys when depth = 0 and allowPrototypes is false', function (st) { + st.deepEqual(qs.parse('toString=foo', { depth: 0 }), {}); + st.deepEqual(qs.parse('hasOwnProperty=bar', { depth: 0 }), {}); + st.deepEqual(qs.parse('toString=foo&a=b', { depth: 0 }), { a: 'b' }); + st.end(); + }); + + t.test('allows prototype keys when depth = 0 and allowPrototypes is true', function (st) { + st.deepEqual(qs.parse('toString=foo', { depth: 0, allowPrototypes: true }), { toString: 'foo' }); + st.end(); + }); + + t.test('uses original key when depth = false', function (st) { + st.deepEqual(qs.parse('a[0]=b&a[1]=c', { depth: false }), { 'a[0]': 'b', 'a[1]': 'c' }); + st.deepEqual(qs.parse('a[0][0]=b&a[0][1]=c&a[1]=d&e=2', { depth: false }), { 'a[0][0]': 'b', 'a[0][1]': 'c', 'a[1]': 'd', e: '2' }); + st.end(); + }); + + t.deepEqual(qs.parse('a=b&a=c'), { a: ['b', 'c'] }, 'parses a simple array'); + + t.test('parses an explicit array', function (st) { + st.deepEqual(qs.parse('a[]=b'), { a: ['b'] }); + st.deepEqual(qs.parse('a[]=b&a[]=c'), { a: ['b', 'c'] }); + st.deepEqual(qs.parse('a[]=b&a[]=c&a[]=d'), { a: ['b', 'c', 'd'] }); + st.end(); + }); + + t.test('parses a mix of simple and explicit arrays', function (st) { + st.deepEqual(qs.parse('a=b&a[]=c'), { a: ['b', 'c'] }); + st.deepEqual(qs.parse('a[]=b&a=c'), { a: ['b', 'c'] }); + st.deepEqual(qs.parse('a[0]=b&a=c'), { a: ['b', 'c'] }); + st.deepEqual(qs.parse('a=b&a[0]=c'), { a: ['b', 'c'] }); + + st.deepEqual(qs.parse('a[1]=b&a=c', { arrayLimit: 20 }), { a: ['b', 'c'] }); + st.deepEqual(qs.parse('a[]=b&a=c', { arrayLimit: 0 }), { a: { 0: 'b', 1: 'c' } }); + st.deepEqual(qs.parse('a[]=b&a=c'), { a: ['b', 'c'] }); + + st.deepEqual(qs.parse('a=b&a[1]=c', { arrayLimit: 20 }), { a: ['b', 'c'] }); + st.deepEqual(qs.parse('a=b&a[]=c', { arrayLimit: 0 }), { a: { 0: 'b', 1: 'c' } }); + st.deepEqual(qs.parse('a=b&a[]=c'), { a: ['b', 'c'] }); + + st.end(); + }); + + t.test('parses a nested array', function (st) { + st.deepEqual(qs.parse('a[b][]=c&a[b][]=d'), { a: { b: ['c', 'd'] } }); + st.deepEqual(qs.parse('a[>=]=25'), { a: { '>=': '25' } }); + st.end(); + }); + + t.test('parses keys with literal [] inside a bracket group (#493)', function (st) { + // A bracket pair inside a bracket group should be treated literally as part of the key + st.deepEqual( + qs.parse('search[withbracket[]]=foobar'), + { search: { 'withbracket[]': 'foobar' } }, + 'treats inner [] literally when inside a bracket group' + ); + + // Single-level variant + st.deepEqual( + qs.parse('a[b[]]=c'), + { a: { 'b[]': 'c' } }, + 'keeps "b[]" as a literal key' + ); + + // Nested with an array push on the outer level + st.deepEqual( + qs.parse('list[][x[]]=y'), + { list: [{ 'x[]': 'y' }] }, + 'preserves inner [] while still treating outer [] as array push' + ); + + // Multiple nested bracket pairs: inner [] remains literal as part of the key + st.deepEqual( + qs.parse('a[b[c[]]]=d'), + { a: { 'b[c[]]': 'd' } }, + 'treats "b[c[]]" as a literal key inside the bracket group' + ); + + // Depth limits with literal brackets: preserve inner [] while limiting bracket-group parsing + st.deepEqual( + qs.parse('a[b[c[]]][d]=e', { depth: 1 }), + { a: { 'b[c[]]': { '[d]': 'e' } } }, + 'respects depth: 1 and preserves literal inner [] in the parsed key' + ); + + // Unterminated inner bracket group is wrapped as a literal remainder segment + st.deepEqual( + qs.parse('a[[]b=c'), + { a: { '[[]b': 'c' } }, + 'handles unterminated inner bracket groups without throwing' + ); + + st.end(); + }); + + t.test('allows to specify array indices', function (st) { + st.deepEqual(qs.parse('a[1]=c&a[0]=b&a[2]=d'), { a: ['b', 'c', 'd'] }); + st.deepEqual(qs.parse('a[1]=c&a[0]=b'), { a: ['b', 'c'] }); + st.deepEqual(qs.parse('a[1]=c', { arrayLimit: 20 }), { a: ['c'] }); + st.deepEqual(qs.parse('a[1]=c', { arrayLimit: 0 }), { a: { 1: 'c' } }); + st.deepEqual(qs.parse('a[1]=c'), { a: ['c'] }); + st.end(); + }); + + t.test('limits specific array indices to arrayLimit', function (st) { + st.deepEqual(qs.parse('a[19]=a', { arrayLimit: 20 }), { a: ['a'] }); + st.deepEqual(qs.parse('a[20]=a', { arrayLimit: 20 }), { a: { 20: 'a' } }); + + st.deepEqual(qs.parse('a[19]=a'), { a: ['a'] }); + st.deepEqual(qs.parse('a[20]=a'), { a: { 20: 'a' } }); + st.end(); + }); + + t.deepEqual(qs.parse('a[12b]=c'), { a: { '12b': 'c' } }, 'supports keys that begin with a number'); + + t.test('supports encoded = signs', function (st) { + st.deepEqual(qs.parse('he%3Dllo=th%3Dere'), { 'he=llo': 'th=ere' }); + st.end(); + }); + + t.test('is ok with url encoded strings', function (st) { + st.deepEqual(qs.parse('a[b%20c]=d'), { a: { 'b c': 'd' } }); + st.deepEqual(qs.parse('a[b]=c%20d'), { a: { b: 'c d' } }); + st.end(); + }); + + t.test('allows brackets in the value', function (st) { + st.deepEqual(qs.parse('pets=["tobi"]'), { pets: '["tobi"]' }); + st.deepEqual(qs.parse('operators=[">=", "<="]'), { operators: '[">=", "<="]' }); + st.end(); + }); + + t.test('allows empty values', function (st) { + st.deepEqual(qs.parse(''), {}); + st.deepEqual(qs.parse(null), {}); + st.deepEqual(qs.parse(undefined), {}); + st.end(); + }); + + t.test('transforms arrays to objects', function (st) { + st.deepEqual(qs.parse('foo[0]=bar&foo[bad]=baz'), { foo: { 0: 'bar', bad: 'baz' } }); + st.deepEqual(qs.parse('foo[bad]=baz&foo[0]=bar'), { foo: { bad: 'baz', 0: 'bar' } }); + st.deepEqual(qs.parse('foo[bad]=baz&foo[]=bar'), { foo: { bad: 'baz', 0: 'bar' } }); + st.deepEqual(qs.parse('foo[]=bar&foo[bad]=baz'), { foo: { 0: 'bar', bad: 'baz' } }); + st.deepEqual(qs.parse('foo[bad]=baz&foo[]=bar&foo[]=foo'), { foo: { bad: 'baz', 0: 'bar', 1: 'foo' } }); + st.deepEqual(qs.parse('foo[0][a]=a&foo[0][b]=b&foo[1][a]=aa&foo[1][b]=bb'), { foo: [{ a: 'a', b: 'b' }, { a: 'aa', b: 'bb' }] }); + + st.deepEqual(qs.parse('a[]=b&a[t]=u&a[hasOwnProperty]=c', { allowPrototypes: false }), { a: { 0: 'b', t: 'u' } }); + st.deepEqual(qs.parse('a[]=b&a[t]=u&a[hasOwnProperty]=c', { allowPrototypes: true }), { a: { 0: 'b', t: 'u', hasOwnProperty: 'c' } }); + st.deepEqual(qs.parse('a[]=b&a[hasOwnProperty]=c&a[x]=y', { allowPrototypes: false }), { a: { 0: 'b', x: 'y' } }); + st.deepEqual(qs.parse('a[]=b&a[hasOwnProperty]=c&a[x]=y', { allowPrototypes: true }), { a: { 0: 'b', hasOwnProperty: 'c', x: 'y' } }); + st.end(); + }); + + t.test('transforms arrays to objects (dot notation)', function (st) { + st.deepEqual(qs.parse('foo[0].baz=bar&fool.bad=baz', { allowDots: true }), { foo: [{ baz: 'bar' }], fool: { bad: 'baz' } }); + st.deepEqual(qs.parse('foo[0].baz=bar&fool.bad.boo=baz', { allowDots: true }), { foo: [{ baz: 'bar' }], fool: { bad: { boo: 'baz' } } }); + st.deepEqual(qs.parse('foo[0][0].baz=bar&fool.bad=baz', { allowDots: true }), { foo: [[{ baz: 'bar' }]], fool: { bad: 'baz' } }); + st.deepEqual(qs.parse('foo[0].baz[0]=15&foo[0].bar=2', { allowDots: true }), { foo: [{ baz: ['15'], bar: '2' }] }); + st.deepEqual(qs.parse('foo[0].baz[0]=15&foo[0].baz[1]=16&foo[0].bar=2', { allowDots: true }), { foo: [{ baz: ['15', '16'], bar: '2' }] }); + st.deepEqual(qs.parse('foo.bad=baz&foo[0]=bar', { allowDots: true }), { foo: { bad: 'baz', 0: 'bar' } }); + st.deepEqual(qs.parse('foo.bad=baz&foo[]=bar', { allowDots: true }), { foo: { bad: 'baz', 0: 'bar' } }); + st.deepEqual(qs.parse('foo[]=bar&foo.bad=baz', { allowDots: true }), { foo: { 0: 'bar', bad: 'baz' } }); + st.deepEqual(qs.parse('foo.bad=baz&foo[]=bar&foo[]=foo', { allowDots: true }), { foo: { bad: 'baz', 0: 'bar', 1: 'foo' } }); + st.deepEqual(qs.parse('foo[0].a=a&foo[0].b=b&foo[1].a=aa&foo[1].b=bb', { allowDots: true }), { foo: [{ a: 'a', b: 'b' }, { a: 'aa', b: 'bb' }] }); + st.end(); + }); + + t.test('correctly prunes undefined values when converting an array to an object', function (st) { + st.deepEqual(qs.parse('a[2]=b&a[99999999]=c'), { a: { 2: 'b', 99999999: 'c' } }); + st.end(); + }); + + t.test('supports malformed uri characters', function (st) { + st.deepEqual(qs.parse('{%:%}', { strictNullHandling: true }), { '{%:%}': null }); + st.deepEqual(qs.parse('{%:%}='), { '{%:%}': '' }); + st.deepEqual(qs.parse('foo=%:%}'), { foo: '%:%}' }); + st.end(); + }); + + t.test('doesn\'t produce empty keys', function (st) { + st.deepEqual(qs.parse('_r=1&'), { _r: '1' }); + st.end(); + }); + + t.test('cannot access Object prototype', function (st) { + qs.parse('constructor[prototype][bad]=bad'); + qs.parse('bad[constructor][prototype][bad]=bad'); + st.equal(typeof Object.prototype.bad, 'undefined'); + st.end(); + }); + + t.test('parses arrays of objects', function (st) { + st.deepEqual(qs.parse('a[][b]=c'), { a: [{ b: 'c' }] }); + st.deepEqual(qs.parse('a[0][b]=c'), { a: [{ b: 'c' }] }); + st.end(); + }); + + t.test('allows for empty strings in arrays', function (st) { + st.deepEqual(qs.parse('a[]=b&a[]=&a[]=c'), { a: ['b', '', 'c'] }); + + st.deepEqual( + qs.parse('a[0]=b&a[1]&a[2]=c&a[19]=', { strictNullHandling: true, arrayLimit: 20 }), + { a: ['b', null, 'c', ''] }, + 'with arrayLimit 20 + array indices: null then empty string works' + ); + st.deepEqual( + qs.parse('a[]=b&a[]&a[]=c&a[]=', { strictNullHandling: true, arrayLimit: 0 }), + { a: { 0: 'b', 1: null, 2: 'c', 3: '' } }, + 'with arrayLimit 0 + array brackets: null then empty string works' + ); + + st.deepEqual( + qs.parse('a[0]=b&a[1]=&a[2]=c&a[19]', { strictNullHandling: true, arrayLimit: 20 }), + { a: ['b', '', 'c', null] }, + 'with arrayLimit 20 + array indices: empty string then null works' + ); + st.deepEqual( + qs.parse('a[]=b&a[]=&a[]=c&a[]', { strictNullHandling: true, arrayLimit: 0 }), + { a: { 0: 'b', 1: '', 2: 'c', 3: null } }, + 'with arrayLimit 0 + array brackets: empty string then null works' + ); + + st.deepEqual( + qs.parse('a[]=&a[]=b&a[]=c'), + { a: ['', 'b', 'c'] }, + 'array brackets: empty strings work' + ); + st.end(); + }); + + t.test('compacts sparse arrays', function (st) { + st.deepEqual(qs.parse('a[10]=1&a[2]=2', { arrayLimit: 20 }), { a: ['2', '1'] }); + st.deepEqual(qs.parse('a[1][b][2][c]=1', { arrayLimit: 20 }), { a: [{ b: [{ c: '1' }] }] }); + st.deepEqual(qs.parse('a[1][2][3][c]=1', { arrayLimit: 20 }), { a: [[[{ c: '1' }]]] }); + st.deepEqual(qs.parse('a[1][2][3][c][1]=1', { arrayLimit: 20 }), { a: [[[{ c: ['1'] }]]] }); + st.end(); + }); + + t.test('parses sparse arrays', function (st) { + /* eslint no-sparse-arrays: 0 */ + st.deepEqual(qs.parse('a[4]=1&a[1]=2', { allowSparse: true }), { a: [, '2', , , '1'] }); + st.deepEqual(qs.parse('a[1][b][2][c]=1', { allowSparse: true }), { a: [, { b: [, , { c: '1' }] }] }); + st.deepEqual(qs.parse('a[1][2][3][c]=1', { allowSparse: true }), { a: [, [, , [, , , { c: '1' }]]] }); + st.deepEqual(qs.parse('a[1][2][3][c][1]=1', { allowSparse: true }), { a: [, [, , [, , , { c: [, '1'] }]]] }); + st.end(); + }); + + t.test('parses semi-parsed strings', function (st) { + st.deepEqual(qs.parse({ 'a[b]': 'c' }), { a: { b: 'c' } }); + st.deepEqual(qs.parse({ 'a[b]': 'c', 'a[d]': 'e' }), { a: { b: 'c', d: 'e' } }); + st.end(); + }); + + t.test('parses buffers correctly', function (st) { + var b = SaferBuffer.from('test'); + st.deepEqual(qs.parse({ a: b }), { a: b }); + st.end(); + }); + + t.test('parses jquery-param strings', function (st) { + // readable = 'filter[0][]=int1&filter[0][]==&filter[0][]=77&filter[]=and&filter[2][]=int2&filter[2][]==&filter[2][]=8' + var encoded = 'filter%5B0%5D%5B%5D=int1&filter%5B0%5D%5B%5D=%3D&filter%5B0%5D%5B%5D=77&filter%5B%5D=and&filter%5B2%5D%5B%5D=int2&filter%5B2%5D%5B%5D=%3D&filter%5B2%5D%5B%5D=8'; + var expected = { filter: [['int1', '=', '77'], 'and', ['int2', '=', '8']] }; + st.deepEqual(qs.parse(encoded), expected); + st.end(); + }); + + t.test('continues parsing when no parent is found', function (st) { + st.deepEqual(qs.parse('[]=&a=b'), { 0: '', a: 'b' }); + st.deepEqual(qs.parse('[]&a=b', { strictNullHandling: true }), { 0: null, a: 'b' }); + st.deepEqual(qs.parse('[foo]=bar'), { foo: 'bar' }); + st.end(); + }); + + t.test('does not error when parsing a very long array', function (st) { + var str = 'a[]=a'; + while (Buffer.byteLength(str) < 128 * 1024) { + str = str + '&' + str; + } + + st.doesNotThrow(function () { + qs.parse(str); + }); + + st.end(); + }); + + t.test('does not throw when a native prototype has an enumerable property', function (st) { + st.intercept(Object.prototype, 'crash', { value: '' }); + st.intercept(Array.prototype, 'crash', { value: '' }); + + st.doesNotThrow(qs.parse.bind(null, 'a=b')); + st.deepEqual(qs.parse('a=b'), { a: 'b' }); + st.doesNotThrow(qs.parse.bind(null, 'a[][b]=c')); + st.deepEqual(qs.parse('a[][b]=c'), { a: [{ b: 'c' }] }); + + st.end(); + }); + + t.test('parses a string with an alternative string delimiter', function (st) { + st.deepEqual(qs.parse('a=b;c=d', { delimiter: ';' }), { a: 'b', c: 'd' }); + st.end(); + }); + + t.test('parses a string with an alternative RegExp delimiter', function (st) { + st.deepEqual(qs.parse('a=b; c=d', { delimiter: /[;,] */ }), { a: 'b', c: 'd' }); + st.end(); + }); + + t.test('does not use non-splittable objects as delimiters', function (st) { + st.deepEqual(qs.parse('a=b&c=d', { delimiter: true }), { a: 'b', c: 'd' }); + st.end(); + }); + + t.test('allows overriding parameter limit', function (st) { + st.deepEqual(qs.parse('a=b&c=d', { parameterLimit: 1 }), { a: 'b' }); + st.end(); + }); + + t.test('allows setting the parameter limit to Infinity', function (st) { + st.deepEqual(qs.parse('a=b&c=d', { parameterLimit: Infinity }), { a: 'b', c: 'd' }); + st.end(); + }); + + t.test('allows overriding array limit', function (st) { + st.deepEqual(qs.parse('a[0]=b', { arrayLimit: -1 }), { a: { 0: 'b' } }); + st.deepEqual(qs.parse('a[0]=b', { arrayLimit: 0 }), { a: { 0: 'b' } }); + + st.deepEqual(qs.parse('a[-1]=b', { arrayLimit: -1 }), { a: { '-1': 'b' } }); + st.deepEqual(qs.parse('a[-1]=b', { arrayLimit: 0 }), { a: { '-1': 'b' } }); + + st.deepEqual(qs.parse('a[0]=b&a[1]=c', { arrayLimit: -1 }), { a: { 0: 'b', 1: 'c' } }); + st.deepEqual(qs.parse('a[0]=b&a[1]=c', { arrayLimit: 0 }), { a: { 0: 'b', 1: 'c' } }); + + st.end(); + }); + + t.test('allows disabling array parsing', function (st) { + var indices = qs.parse('a[0]=b&a[1]=c', { parseArrays: false }); + st.deepEqual(indices, { a: { 0: 'b', 1: 'c' } }); + st.equal(Array.isArray(indices.a), false, 'parseArrays:false, indices case is not an array'); + + var emptyBrackets = qs.parse('a[]=b', { parseArrays: false }); + st.deepEqual(emptyBrackets, { a: { 0: 'b' } }); + st.equal(Array.isArray(emptyBrackets.a), false, 'parseArrays:false, empty brackets case is not an array'); + + st.end(); + }); + + t.test('allows for query string prefix', function (st) { + st.deepEqual(qs.parse('?foo=bar', { ignoreQueryPrefix: true }), { foo: 'bar' }); + st.deepEqual(qs.parse('foo=bar', { ignoreQueryPrefix: true }), { foo: 'bar' }); + st.deepEqual(qs.parse('?foo=bar', { ignoreQueryPrefix: false }), { '?foo': 'bar' }); + + st.end(); + }); + + t.test('parses an object', function (st) { + var input = { + 'user[name]': { 'pop[bob]': 3 }, + 'user[email]': null + }; + + var expected = { + user: { + name: { 'pop[bob]': 3 }, + email: null + } + }; + + var result = qs.parse(input); + + st.deepEqual(result, expected); + st.end(); + }); + + t.test('parses string with comma as array divider', function (st) { + st.deepEqual(qs.parse('foo=bar,tee', { comma: true }), { foo: ['bar', 'tee'] }); + st.deepEqual(qs.parse('foo[bar]=coffee,tee', { comma: true }), { foo: { bar: ['coffee', 'tee'] } }); + st.deepEqual(qs.parse('foo=', { comma: true }), { foo: '' }); + st.deepEqual(qs.parse('foo', { comma: true }), { foo: '' }); + st.deepEqual(qs.parse('foo', { comma: true, strictNullHandling: true }), { foo: null }); + + // test cases inversed from from stringify tests + st.deepEqual(qs.parse('a[0]=c'), { a: ['c'] }); + st.deepEqual(qs.parse('a[]=c'), { a: ['c'] }); + st.deepEqual(qs.parse('a[]=c', { comma: true }), { a: ['c'] }); + + st.deepEqual(qs.parse('a[0]=c&a[1]=d'), { a: ['c', 'd'] }); + st.deepEqual(qs.parse('a[]=c&a[]=d'), { a: ['c', 'd'] }); + st.deepEqual(qs.parse('a=c,d', { comma: true }), { a: ['c', 'd'] }); + + st.end(); + }); + + t.test('parses values with comma as array divider', function (st) { + st.deepEqual(qs.parse({ foo: 'bar,tee' }, { comma: false }), { foo: 'bar,tee' }); + st.deepEqual(qs.parse({ foo: 'bar,tee' }, { comma: true }), { foo: ['bar', 'tee'] }); + st.end(); + }); + + t.test('use number decoder, parses string that has one number with comma option enabled', function (st) { + var decoder = function (str, defaultDecoder, charset, type) { + if (!isNaN(Number(str))) { + return parseFloat(str); + } + return defaultDecoder(str, defaultDecoder, charset, type); + }; + + st.deepEqual(qs.parse('foo=1', { comma: true, decoder: decoder }), { foo: 1 }); + st.deepEqual(qs.parse('foo=0', { comma: true, decoder: decoder }), { foo: 0 }); + + st.end(); + }); + + t.test('parses brackets holds array of arrays when having two parts of strings with comma as array divider', function (st) { + st.deepEqual(qs.parse('foo[]=1,2,3&foo[]=4,5,6', { comma: true }), { foo: [['1', '2', '3'], ['4', '5', '6']] }); + st.deepEqual(qs.parse('foo[]=1,2,3&foo[]=', { comma: true }), { foo: [['1', '2', '3'], ''] }); + st.deepEqual(qs.parse('foo[]=1,2,3&foo[]=,', { comma: true }), { foo: [['1', '2', '3'], ['', '']] }); + st.deepEqual(qs.parse('foo[]=1,2,3&foo[]=a', { comma: true }), { foo: [['1', '2', '3'], 'a'] }); + + st.end(); + }); + + t.test('parses url-encoded brackets holds array of arrays when having two parts of strings with comma as array divider', function (st) { + st.deepEqual(qs.parse('foo%5B%5D=1,2,3&foo%5B%5D=4,5,6', { comma: true }), { foo: [['1', '2', '3'], ['4', '5', '6']] }); + st.deepEqual(qs.parse('foo%5B%5D=1,2,3&foo%5B%5D=', { comma: true }), { foo: [['1', '2', '3'], ''] }); + st.deepEqual(qs.parse('foo%5B%5D=1,2,3&foo%5B%5D=,', { comma: true }), { foo: [['1', '2', '3'], ['', '']] }); + st.deepEqual(qs.parse('foo%5B%5D=1,2,3&foo%5B%5D=a', { comma: true }), { foo: [['1', '2', '3'], 'a'] }); + + st.end(); + }); + + t.test('parses comma delimited array while having percent-encoded comma treated as normal text', function (st) { + st.deepEqual(qs.parse('foo=a%2Cb', { comma: true }), { foo: 'a,b' }); + st.deepEqual(qs.parse('foo=a%2C%20b,d', { comma: true }), { foo: ['a, b', 'd'] }); + st.deepEqual(qs.parse('foo=a%2C%20b,c%2C%20d', { comma: true }), { foo: ['a, b', 'c, d'] }); + + st.end(); + }); + + t.test('parses an object in dot notation', function (st) { + var input = { + 'user.name': { 'pop[bob]': 3 }, + 'user.email.': null + }; + + var expected = { + user: { + name: { 'pop[bob]': 3 }, + email: null + } + }; + + var result = qs.parse(input, { allowDots: true }); + + st.deepEqual(result, expected); + st.end(); + }); + + t.test('parses an object and not child values', function (st) { + var input = { + 'user[name]': { 'pop[bob]': { test: 3 } }, + 'user[email]': null + }; + + var expected = { + user: { + name: { 'pop[bob]': { test: 3 } }, + email: null + } + }; + + var result = qs.parse(input); + + st.deepEqual(result, expected); + st.end(); + }); + + t.test('does not blow up when Buffer global is missing', function (st) { + var restore = mockProperty(global, 'Buffer', { 'delete': true }); + + var result = qs.parse('a=b&c=d'); + + restore(); + + st.deepEqual(result, { a: 'b', c: 'd' }); + st.end(); + }); + + t.test('does not crash when parsing circular references', function (st) { + var a = {}; + a.b = a; + + var parsed; + + st.doesNotThrow(function () { + parsed = qs.parse({ 'foo[bar]': 'baz', 'foo[baz]': a }); + }); + + st.equal('foo' in parsed, true, 'parsed has "foo" property'); + st.equal('bar' in parsed.foo, true); + st.equal('baz' in parsed.foo, true); + st.equal(parsed.foo.bar, 'baz'); + st.deepEqual(parsed.foo.baz, a); + st.end(); + }); + + t.test('does not crash when parsing deep objects', function (st) { + var parsed; + var str = 'foo'; + + for (var i = 0; i < 5000; i++) { + str += '[p]'; + } + + str += '=bar'; + + st.doesNotThrow(function () { + parsed = qs.parse(str, { depth: 5000 }); + }); + + st.equal('foo' in parsed, true, 'parsed has "foo" property'); + + var depth = 0; + var ref = parsed.foo; + while ((ref = ref.p)) { + depth += 1; + } + + st.equal(depth, 5000, 'parsed is 5000 properties deep'); + + st.end(); + }); + + t.test('parses null objects correctly', { skip: !hasProto }, function (st) { + var a = { __proto__: null, b: 'c' }; + + st.deepEqual(qs.parse(a), { b: 'c' }); + var result = qs.parse({ a: a }); + st.equal('a' in result, true, 'result has "a" property'); + st.deepEqual(result.a, a); + st.end(); + }); + + t.test('parses dates correctly', function (st) { + var now = new Date(); + st.deepEqual(qs.parse({ a: now }), { a: now }); + st.end(); + }); + + t.test('parses regular expressions correctly', function (st) { + var re = /^test$/; + st.deepEqual(qs.parse({ a: re }), { a: re }); + st.end(); + }); + + t.test('does not allow overwriting prototype properties', function (st) { + st.deepEqual(qs.parse('a[hasOwnProperty]=b', { allowPrototypes: false }), {}); + st.deepEqual(qs.parse('hasOwnProperty=b', { allowPrototypes: false }), {}); + + st.deepEqual( + qs.parse('toString', { allowPrototypes: false }), + {}, + 'bare "toString" results in {}' + ); + + st.end(); + }); + + t.test('can allow overwriting prototype properties', function (st) { + st.deepEqual(qs.parse('a[hasOwnProperty]=b', { allowPrototypes: true }), { a: { hasOwnProperty: 'b' } }); + st.deepEqual(qs.parse('hasOwnProperty=b', { allowPrototypes: true }), { hasOwnProperty: 'b' }); + + st.deepEqual( + qs.parse('toString', { allowPrototypes: true }), + { toString: '' }, + 'bare "toString" results in { toString: "" }' + ); + + st.end(); + }); + + t.test('does not crash when the global Object prototype is frozen', { skip: !hasPropertyDescriptors || !hasOverrideMistake }, function (st) { + // We can't actually freeze the global Object prototype as that will interfere with other tests, and once an object is frozen, it + // can't be unfrozen. Instead, we add a new non-writable property to simulate this. + st.teardown(mockProperty(Object.prototype, 'frozenProp', { value: 'foo', nonWritable: true, nonEnumerable: true })); + + st['throws']( + function () { + var obj = {}; + obj.frozenProp = 'bar'; + }, + // node < 6 has a different error message + /^TypeError: Cannot assign to read only property 'frozenProp' of (?:object '#'|#)/, + 'regular assignment of an inherited non-writable property throws' + ); + + var parsed; + st.doesNotThrow( + function () { + parsed = qs.parse('frozenProp', { allowPrototypes: false }); + }, + 'parsing a nonwritable Object.prototype property does not throw' + ); + + st.deepEqual(parsed, {}, 'bare "frozenProp" results in {}'); + + st.end(); + }); + + t.test('params starting with a closing bracket', function (st) { + st.deepEqual(qs.parse(']=toString'), { ']': 'toString' }); + st.deepEqual(qs.parse(']]=toString'), { ']]': 'toString' }); + st.deepEqual(qs.parse(']hello]=toString'), { ']hello]': 'toString' }); + st.end(); + }); + + t.test('params starting with a starting bracket', function (st) { + st.deepEqual(qs.parse('[=toString'), { '[': 'toString' }); + st.deepEqual(qs.parse('[[=toString'), { '[[': 'toString' }); + st.deepEqual(qs.parse('[hello[=toString'), { '[hello[': 'toString' }); + st.end(); + }); + + t.test('add keys to objects', function (st) { + st.deepEqual( + qs.parse('a[b]=c&a=d', { strictMerge: false }), + { a: { b: 'c', d: true } }, + 'can add keys to objects' + ); + + st.deepEqual( + qs.parse('a[b]=c&a=toString', { strictMerge: false }), + { a: { b: 'c' } }, + 'can not overwrite prototype' + ); + + st.deepEqual( + qs.parse('a[b]=c&a=toString', { strictMerge: false, allowPrototypes: true }), + { a: { b: 'c', toString: true } }, + 'can overwrite prototype with allowPrototypes true' + ); + + st.deepEqual( + qs.parse('a[b]=c&a=toString', { strictMerge: false, plainObjects: true }), + { __proto__: null, a: { __proto__: null, b: 'c', toString: true } }, + 'can overwrite prototype with plainObjects true' + ); + + st.end(); + }); + + t.test('strictMerge wraps object and primitive into an array', function (st) { + st.deepEqual( + qs.parse('a[b]=c&a=d'), + { a: [{ b: 'c' }, 'd'] }, + 'object then primitive produces array' + ); + + st.deepEqual( + qs.parse('a=d&a[b]=c'), + { a: ['d', { b: 'c' }] }, + 'primitive then object produces array' + ); + + st.deepEqual( + qs.parse('a[b]=c&a=toString'), + { a: [{ b: 'c' }, 'toString'] }, + 'prototype-colliding value is preserved in array' + ); + + st.deepEqual( + qs.parse('a[b]=c&a=toString', { plainObjects: true }), + { __proto__: null, a: [{ __proto__: null, b: 'c' }, 'toString'] }, + 'plainObjects preserved in array wrapping' + ); + + st.end(); + }); + + t.test('dunder proto is ignored', function (st) { + var payload = 'categories[__proto__]=login&categories[__proto__]&categories[length]=42'; + var result = qs.parse(payload, { allowPrototypes: true }); + + st.deepEqual( + result, + { + categories: { + length: '42' + } + }, + 'silent [[Prototype]] payload' + ); + + var plainResult = qs.parse(payload, { allowPrototypes: true, plainObjects: true }); + + st.deepEqual( + plainResult, + { + __proto__: null, + categories: { + __proto__: null, + length: '42' + } + }, + 'silent [[Prototype]] payload: plain objects' + ); + + var query = qs.parse('categories[__proto__]=cats&categories[__proto__]=dogs&categories[some][json]=toInject', { allowPrototypes: true }); + + st.notOk(Array.isArray(query.categories), 'is not an array'); + st.notOk(query.categories instanceof Array, 'is not instanceof an array'); + st.deepEqual(query.categories, { some: { json: 'toInject' } }); + st.equal(JSON.stringify(query.categories), '{"some":{"json":"toInject"}}', 'stringifies as a non-array'); + + st.deepEqual( + qs.parse('foo[__proto__][hidden]=value&foo[bar]=stuffs', { allowPrototypes: true }), + { + foo: { + bar: 'stuffs' + } + }, + 'hidden values' + ); + + st.deepEqual( + qs.parse('foo[__proto__][hidden]=value&foo[bar]=stuffs', { allowPrototypes: true, plainObjects: true }), + { + __proto__: null, + foo: { + __proto__: null, + bar: 'stuffs' + } + }, + 'hidden values: plain objects' + ); + + st.end(); + }); + + t.test('can return null objects', { skip: !hasProto }, function (st) { + var expected = { + __proto__: null, + a: { + __proto__: null, + b: 'c', + hasOwnProperty: 'd' + } + }; + st.deepEqual(qs.parse('a[b]=c&a[hasOwnProperty]=d', { plainObjects: true }), expected); + st.deepEqual(qs.parse(null, { plainObjects: true }), { __proto__: null }); + var expectedArray = { + __proto__: null, + a: { + __proto__: null, + 0: 'b', + c: 'd' + } + }; + st.deepEqual(qs.parse('a[]=b&a[c]=d', { plainObjects: true }), expectedArray); + st.end(); + }); + + t.test('can parse with custom encoding', function (st) { + st.deepEqual(qs.parse('%8c%a7=%91%e5%8d%e3%95%7b', { + decoder: function (str) { + var reg = /%([0-9A-F]{2})/ig; + var result = []; + var parts = reg.exec(str); + while (parts) { + result.push(parseInt(parts[1], 16)); + parts = reg.exec(str); + } + return String(iconv.decode(SaferBuffer.from(result), 'shift_jis')); + } + }), { 県: '大阪府' }); + st.end(); + }); + + t.test('receives the default decoder as a second argument', function (st) { + st.plan(1); + qs.parse('a', { + decoder: function (str, defaultDecoder) { + st.equal(defaultDecoder, utils.decode); + } + }); + st.end(); + }); + + t.test('throws error with wrong decoder', function (st) { + st['throws'](function () { + qs.parse({}, { decoder: 'string' }); + }, new TypeError('Decoder has to be a function.')); + st.end(); + }); + + t.test('does not mutate the options argument', function (st) { + var options = {}; + qs.parse('a[b]=true', options); + st.deepEqual(options, {}); + st.end(); + }); + + t.test('throws if an invalid charset is specified', function (st) { + st['throws'](function () { + qs.parse('a=b', { charset: 'foobar' }); + }, new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined')); + st.end(); + }); + + t.test('parses an iso-8859-1 string if asked to', function (st) { + st.deepEqual(qs.parse('%A2=%BD', { charset: 'iso-8859-1' }), { '¢': '½' }); + st.end(); + }); + + var urlEncodedCheckmarkInUtf8 = '%E2%9C%93'; + var urlEncodedOSlashInUtf8 = '%C3%B8'; + var urlEncodedNumCheckmark = '%26%2310003%3B'; + var urlEncodedNumSmiley = '%26%239786%3B'; + + t.test('prefers an utf-8 charset specified by the utf8 sentinel to a default charset of iso-8859-1', function (st) { + st.deepEqual(qs.parse('utf8=' + urlEncodedCheckmarkInUtf8 + '&' + urlEncodedOSlashInUtf8 + '=' + urlEncodedOSlashInUtf8, { charsetSentinel: true, charset: 'iso-8859-1' }), { ø: 'ø' }); + st.end(); + }); + + t.test('prefers an iso-8859-1 charset specified by the utf8 sentinel to a default charset of utf-8', function (st) { + st.deepEqual(qs.parse('utf8=' + urlEncodedNumCheckmark + '&' + urlEncodedOSlashInUtf8 + '=' + urlEncodedOSlashInUtf8, { charsetSentinel: true, charset: 'utf-8' }), { 'ø': 'ø' }); + st.end(); + }); + + t.test('does not require the utf8 sentinel to be defined before the parameters whose decoding it affects', function (st) { + st.deepEqual(qs.parse('a=' + urlEncodedOSlashInUtf8 + '&utf8=' + urlEncodedNumCheckmark, { charsetSentinel: true, charset: 'utf-8' }), { a: 'ø' }); + st.end(); + }); + + t.test('ignores an utf8 sentinel with an unknown value', function (st) { + st.deepEqual(qs.parse('utf8=foo&' + urlEncodedOSlashInUtf8 + '=' + urlEncodedOSlashInUtf8, { charsetSentinel: true, charset: 'utf-8' }), { ø: 'ø' }); + st.end(); + }); + + t.test('uses the utf8 sentinel to switch to utf-8 when no default charset is given', function (st) { + st.deepEqual(qs.parse('utf8=' + urlEncodedCheckmarkInUtf8 + '&' + urlEncodedOSlashInUtf8 + '=' + urlEncodedOSlashInUtf8, { charsetSentinel: true }), { ø: 'ø' }); + st.end(); + }); + + t.test('uses the utf8 sentinel to switch to iso-8859-1 when no default charset is given', function (st) { + st.deepEqual(qs.parse('utf8=' + urlEncodedNumCheckmark + '&' + urlEncodedOSlashInUtf8 + '=' + urlEncodedOSlashInUtf8, { charsetSentinel: true }), { 'ø': 'ø' }); + st.end(); + }); + + t.test('interprets numeric entities in iso-8859-1 when `interpretNumericEntities`', function (st) { + st.deepEqual(qs.parse('foo=' + urlEncodedNumSmiley, { charset: 'iso-8859-1', interpretNumericEntities: true }), { foo: '☺' }); + st.end(); + }); + + t.test('handles a custom decoder returning `null`, in the `iso-8859-1` charset, when `interpretNumericEntities`', function (st) { + st.deepEqual(qs.parse('foo=&bar=' + urlEncodedNumSmiley, { + charset: 'iso-8859-1', + decoder: function (str, defaultDecoder, charset) { + return str ? defaultDecoder(str, defaultDecoder, charset) : null; + }, + interpretNumericEntities: true + }), { foo: null, bar: '☺' }); + st.end(); + }); + + t.test('handles a custom decoder returning `null`, with a string key of `null`', function (st) { + st.deepEqual( + qs.parse('null=1&ToNull=2', { + decoder: function (str, defaultDecoder, charset) { + return str === 'ToNull' ? null : defaultDecoder(str, defaultDecoder, charset); + } + }), + { 'null': '1' }, + '"null" key is not overridden by `null` decoder result' + ); + + st.end(); + }); + + t.test('does not interpret numeric entities in iso-8859-1 when `interpretNumericEntities` is absent', function (st) { + st.deepEqual(qs.parse('foo=' + urlEncodedNumSmiley, { charset: 'iso-8859-1' }), { foo: '☺' }); + st.end(); + }); + + t.test('does not interpret numeric entities when the charset is utf-8, even when `interpretNumericEntities`', function (st) { + st.deepEqual(qs.parse('foo=' + urlEncodedNumSmiley, { charset: 'utf-8', interpretNumericEntities: true }), { foo: '☺' }); + st.end(); + }); + + t.test('interpretNumericEntities with comma:true and iso charset does not crash', function (st) { + st.deepEqual( + qs.parse('b&a[]=1,' + urlEncodedNumSmiley, { comma: true, charset: 'iso-8859-1', interpretNumericEntities: true }), + { b: '', a: ['1,☺'] } + ); + + st.end(); + }); + + t.test('does not interpret %uXXXX syntax in iso-8859-1 mode', function (st) { + st.deepEqual(qs.parse('%u263A=%u263A', { charset: 'iso-8859-1' }), { '%u263A': '%u263A' }); + st.end(); + }); + + t.test('allows for decoding keys and values differently', function (st) { + var decoder = function (str, defaultDecoder, charset, type) { + if (type === 'key') { + return defaultDecoder(str, defaultDecoder, charset, type).toLowerCase(); + } + if (type === 'value') { + return defaultDecoder(str, defaultDecoder, charset, type).toUpperCase(); + } + throw 'this should never happen! type: ' + type; + }; + + st.deepEqual(qs.parse('KeY=vAlUe', { decoder: decoder }), { key: 'VALUE' }); + + var noopDecoder = function () { return 'x'; }; + noopDecoder(); + st['throws']( + function () { decoder('x', noopDecoder, 'utf-8', 'unknown'); }, + 'this should never happen! type: unknown', + 'decoder throws for unexpected type' + ); + + st.end(); + }); + + t.test('parameter limit tests', function (st) { + st.test('does not throw error when within parameter limit', function (sst) { + var result = qs.parse('a=1&b=2&c=3', { parameterLimit: 5, throwOnLimitExceeded: true }); + sst.deepEqual(result, { a: '1', b: '2', c: '3' }, 'parses without errors'); + sst.end(); + }); + + st.test('throws error when throwOnLimitExceeded is present but not boolean', function (sst) { + sst['throws']( + function () { + qs.parse('a=1&b=2&c=3&d=4&e=5&f=6', { parameterLimit: 3, throwOnLimitExceeded: 'true' }); + }, + new TypeError('`throwOnLimitExceeded` option must be a boolean'), + 'throws error when throwOnLimitExceeded is present and not boolean' + ); + sst.end(); + }); + + st.test('throws error when parameter limit exceeded', function (sst) { + sst['throws']( + function () { + qs.parse('a=1&b=2&c=3&d=4&e=5&f=6', { parameterLimit: 3, throwOnLimitExceeded: true }); + }, + new RangeError('Parameter limit exceeded. Only 3 parameters allowed.'), + 'throws error when parameter limit is exceeded' + ); + + sst['throws']( + function () { + qs.parse('a=1&b=2', { parameterLimit: 1, throwOnLimitExceeded: true }); + }, + new RangeError('Parameter limit exceeded. Only 1 parameter allowed.'), + 'throws error with singular "parameter" when parameterLimit is 1' + ); + sst.end(); + }); + + st.test('silently truncates when throwOnLimitExceeded is not given', function (sst) { + var result = qs.parse('a=1&b=2&c=3&d=4&e=5', { parameterLimit: 3 }); + sst.deepEqual(result, { a: '1', b: '2', c: '3' }, 'parses and truncates silently'); + sst.end(); + }); + + st.test('silently truncates when parameter limit exceeded without error', function (sst) { + var result = qs.parse('a=1&b=2&c=3&d=4&e=5', { parameterLimit: 3, throwOnLimitExceeded: false }); + sst.deepEqual(result, { a: '1', b: '2', c: '3' }, 'parses and truncates silently'); + sst.end(); + }); + + st.test('allows unlimited parameters when parameterLimit set to Infinity', function (sst) { + var result = qs.parse('a=1&b=2&c=3&d=4&e=5&f=6', { parameterLimit: Infinity }); + sst.deepEqual(result, { a: '1', b: '2', c: '3', d: '4', e: '5', f: '6' }, 'parses all parameters without truncation'); + sst.end(); + }); + + st.test('allows unlimited parameters when parameterLimit is Infinity and throwOnLimitExceeded is true', function (sst) { + var result = qs.parse('a=1&b=2&c=3&d=4&e=5&f=6', { parameterLimit: Infinity, throwOnLimitExceeded: true }); + sst.deepEqual(result, { a: '1', b: '2', c: '3', d: '4', e: '5', f: '6' }, 'parses all parameters without truncation or throwing'); + sst.end(); + }); + + st.end(); + }); + + t.test('array limit tests', function (st) { + st.test('does not throw error when array is within limit', function (sst) { + var result = qs.parse('a[]=1&a[]=2&a[]=3', { arrayLimit: 5, throwOnLimitExceeded: true }); + sst.deepEqual(result, { a: ['1', '2', '3'] }, 'parses array without errors'); + sst.end(); + }); + + st.test('throws error when throwOnLimitExceeded is present but not boolean for array limit', function (sst) { + sst['throws']( + function () { + qs.parse('a[]=1&a[]=2&a[]=3&a[]=4', { arrayLimit: 3, throwOnLimitExceeded: 'true' }); + }, + new TypeError('`throwOnLimitExceeded` option must be a boolean'), + 'throws error when throwOnLimitExceeded is present and not boolean for array limit' + ); + sst.end(); + }); + + st.test('throws error when array limit exceeded', function (sst) { + // 4 elements exceeds limit of 3 + sst['throws']( + function () { + qs.parse('a[]=1&a[]=2&a[]=3&a[]=4', { arrayLimit: 3, throwOnLimitExceeded: true }); + }, + new RangeError('Array limit exceeded. Only 3 elements allowed in an array.'), + 'throws error when array limit is exceeded' + ); + sst.end(); + }); + + st.test('does not throw when at limit', function (sst) { + // 3 elements = limit of 3, should not throw + var result = qs.parse('a[]=1&a[]=2&a[]=3', { arrayLimit: 3, throwOnLimitExceeded: true }); + sst.ok(Array.isArray(result.a), 'result is an array'); + sst.deepEqual(result.a, ['1', '2', '3'], 'all values present'); + sst.end(); + }); + + st.test('converts array to object if length is greater than limit', function (sst) { + var result = qs.parse('a[1]=1&a[2]=2&a[3]=3&a[4]=4&a[5]=5&a[6]=6', { arrayLimit: 5 }); + + sst.deepEqual(result, { a: { 1: '1', 2: '2', 3: '3', 4: '4', 5: '5', 6: '6' } }, 'parses into object if array length is greater than limit'); + sst.end(); + }); + + st.test('throws error when indexed notation exceeds arrayLimit with throwOnLimitExceeded', function (sst) { + sst['throws']( + function () { + qs.parse('a[1001]=b', { arrayLimit: 1000, throwOnLimitExceeded: true }); + }, + new RangeError('Array limit exceeded. Only 1000 elements allowed in an array.'), + 'throws error for a single index exceeding arrayLimit' + ); + + sst['throws']( + function () { + qs.parse('a[0]=1&a[1]=2&a[2]=3&a[10]=4', { arrayLimit: 6, throwOnLimitExceeded: true, allowSparse: true }); + }, + new RangeError('Array limit exceeded. Only 6 elements allowed in an array.'), + 'throws error when a sparse index exceeds arrayLimit' + ); + + sst['throws']( + function () { + qs.parse('a[2]=b', { arrayLimit: 1, throwOnLimitExceeded: true }); + }, + new RangeError('Array limit exceeded. Only 1 element allowed in an array.'), + 'throws error with singular "element" when arrayLimit is 1' + ); + + sst.end(); + }); + + st.test('does not throw for indexed notation within arrayLimit with throwOnLimitExceeded', function (sst) { + var result = qs.parse('a[4]=b', { arrayLimit: 5, throwOnLimitExceeded: true, allowSparse: true }); + sst.ok(Array.isArray(result.a), 'result is an array'); + sst.equal(result.a.length, 5, 'array has correct length'); + sst.equal(result.a[4], 'b', 'value at index 4 is correct'); + sst.end(); + }); + + st.test('silently converts to object for indexed notation exceeding arrayLimit without throwOnLimitExceeded', function (sst) { + var result = qs.parse('a[1001]=b', { arrayLimit: 1000 }); + sst.deepEqual(result, { a: { 1001: 'b' } }, 'converts to object without throwing'); + sst.end(); + }); + + st.test('throws when duplicate bracket keys exceed arrayLimit with throwOnLimitExceeded', function (sst) { + sst['throws']( + function () { + qs.parse('a[]=1&a[]=2&a[]=3&a[]=4&a[]=5&a[]=6', { arrayLimit: 5, throwOnLimitExceeded: true }); + }, + new RangeError('Array limit exceeded. Only 5 elements allowed in an array.'), + 'throws error when duplicate bracket notation exceeds array limit' + ); + sst.end(); + }); + + st.end(); + }); + + t.end(); +}); + +test('parses empty keys', function (t) { + emptyTestCases.forEach(function (testCase) { + t.test('skips empty string key with ' + testCase.input, function (st) { + st.deepEqual(qs.parse(testCase.input), testCase.noEmptyKeys); + + st.end(); + }); + }); +}); + +test('`duplicates` option', function (t) { + v.nonStrings.concat('not a valid option').forEach(function (invalidOption) { + if (typeof invalidOption !== 'undefined') { + t['throws']( + function () { qs.parse('', { duplicates: invalidOption }); }, + TypeError, + 'throws on invalid option: ' + inspect(invalidOption) + ); + } + }); + + t.deepEqual( + qs.parse('foo=bar&foo=baz'), + { foo: ['bar', 'baz'] }, + 'duplicates: default, combine' + ); + + t.deepEqual( + qs.parse('foo=bar&foo=baz', { duplicates: 'combine' }), + { foo: ['bar', 'baz'] }, + 'duplicates: combine' + ); + + t.deepEqual( + qs.parse('foo=bar&foo=baz', { duplicates: 'first' }), + { foo: 'bar' }, + 'duplicates: first' + ); + + t.deepEqual( + qs.parse('foo=bar&foo=baz', { duplicates: 'last' }), + { foo: 'baz' }, + 'duplicates: last' + ); + + t.test('bracket notation always combines regardless of duplicates', function (st) { + st.deepEqual( + qs.parse('a=1&a=2&b[]=1&b[]=2', { duplicates: 'last' }), + { a: '2', b: ['1', '2'] }, + 'duplicates last: unbracketed takes last, bracketed combines' + ); + + st.deepEqual( + qs.parse('b[]=1&b[]=2', { duplicates: 'last' }), + { b: ['1', '2'] }, + 'duplicates last: bracketed always combines' + ); + + st.deepEqual( + qs.parse('b[]=1&b[]=2', { duplicates: 'first' }), + { b: ['1', '2'] }, + 'duplicates first: bracketed always combines' + ); + + st.deepEqual( + qs.parse('a=1&a=2&b[]=1&b[]=2', { duplicates: 'first' }), + { a: '1', b: ['1', '2'] }, + 'duplicates first: unbracketed takes first, bracketed combines' + ); + + st.end(); + }); + + t.end(); +}); + +test('qs strictDepth option - throw cases', function (t) { + t.test('throws an exception when depth exceeds the limit with strictDepth: true', function (st) { + st['throws']( + function () { + qs.parse('a[b][c][d][e][f][g][h][i]=j', { depth: 1, strictDepth: true }); + }, + RangeError, + 'throws RangeError' + ); + st.end(); + }); + + t.test('throws an exception for multiple nested arrays with strictDepth: true', function (st) { + st['throws']( + function () { + qs.parse('a[0][1][2][3][4]=b', { depth: 3, strictDepth: true }); + }, + RangeError, + 'throws RangeError' + ); + st.end(); + }); + + t.test('throws an exception for nested objects and arrays with strictDepth: true', function (st) { + st['throws']( + function () { + qs.parse('a[b][c][0][d][e]=f', { depth: 3, strictDepth: true }); + }, + RangeError, + 'throws RangeError' + ); + st.end(); + }); + + t.test('throws an exception for different types of values with strictDepth: true', function (st) { + st['throws']( + function () { + qs.parse('a[b][c][d][e]=true&a[b][c][d][f]=42', { depth: 3, strictDepth: true }); + }, + RangeError, + 'throws RangeError' + ); + st.end(); + }); + +}); + +test('qs strictDepth option - non-throw cases', function (t) { + t.test('when depth is 0 and strictDepth true, do not throw', function (st) { + st.doesNotThrow( + function () { + qs.parse('a[b][c][d][e]=true&a[b][c][d][f]=42', { depth: 0, strictDepth: true }); + }, + RangeError, + 'does not throw RangeError' + ); + st.end(); + }); + + t.test('parses successfully when depth is within the limit with strictDepth: true', function (st) { + st.doesNotThrow( + function () { + var result = qs.parse('a[b]=c', { depth: 1, strictDepth: true }); + st.deepEqual(result, { a: { b: 'c' } }, 'parses correctly'); + } + ); + st.end(); + }); + + t.test('does not throw an exception when depth exceeds the limit with strictDepth: false', function (st) { + st.doesNotThrow( + function () { + var result = qs.parse('a[b][c][d][e][f][g][h][i]=j', { depth: 1 }); + st.deepEqual(result, { a: { b: { '[c][d][e][f][g][h][i]': 'j' } } }, 'parses with depth limit'); + } + ); + st.end(); + }); + + t.test('parses successfully when depth is within the limit with strictDepth: false', function (st) { + st.doesNotThrow( + function () { + var result = qs.parse('a[b]=c', { depth: 1 }); + st.deepEqual(result, { a: { b: 'c' } }, 'parses correctly'); + } + ); + st.end(); + }); + + t.test('does not throw when depth is exactly at the limit with strictDepth: true', function (st) { + st.doesNotThrow( + function () { + var result = qs.parse('a[b][c]=d', { depth: 2, strictDepth: true }); + st.deepEqual(result, { a: { b: { c: 'd' } } }, 'parses correctly'); + } + ); + st.end(); + }); +}); + +test('DOS', function (t) { + var arr = []; + for (var i = 0; i < 105; i++) { + arr[arr.length] = 'x'; + } + var attack = 'a[]=' + arr.join('&a[]='); + var result = qs.parse(attack, { arrayLimit: 100 }); + + t.notOk(Array.isArray(result.a), 'arrayLimit is respected: result is an object, not an array'); + t.equal(Object.keys(result.a).length, 105, 'all values are preserved'); + + t.end(); +}); + +test('arrayLimit boundary conditions', function (t) { + // arrayLimit is the max number of elements allowed in an array + t.test('exactly at the limit stays as array', function (st) { + // 3 elements = limit of 3 + var result = qs.parse('a[]=1&a[]=2&a[]=3', { arrayLimit: 3 }); + st.ok(Array.isArray(result.a), 'result is an array when count equals limit'); + st.deepEqual(result.a, ['1', '2', '3'], 'all values present'); + st.end(); + }); + + t.test('one over the limit converts to object', function (st) { + // 4 elements exceeds limit of 3 + var result = qs.parse('a[]=1&a[]=2&a[]=3&a[]=4', { arrayLimit: 3 }); + st.notOk(Array.isArray(result.a), 'result is not an array when over limit'); + st.deepEqual(result.a, { 0: '1', 1: '2', 2: '3', 3: '4' }, 'all values preserved as object'); + st.end(); + }); + + t.test('arrayLimit 1 with one value', function (st) { + // 1 element = limit of 1 + var result = qs.parse('a[]=1', { arrayLimit: 1 }); + st.ok(Array.isArray(result.a), 'result is an array when count equals limit'); + st.deepEqual(result.a, ['1'], 'value preserved as array'); + st.end(); + }); + + t.test('arrayLimit 1 with two values converts to object', function (st) { + // 2 elements exceeds limit of 1 + var result = qs.parse('a[]=1&a[]=2', { arrayLimit: 1 }); + st.notOk(Array.isArray(result.a), 'result is not an array'); + st.deepEqual(result.a, { 0: '1', 1: '2' }, 'all values preserved as object'); + st.end(); + }); + + t.end(); +}); + +test('comma + arrayLimit', function (t) { + t.test('comma-separated values within arrayLimit stay as array', function (st) { + var result = qs.parse('a=1,2,3', { comma: true, arrayLimit: 5 }); + st.ok(Array.isArray(result.a), 'result is an array'); + st.deepEqual(result.a, ['1', '2', '3'], 'all values present'); + st.end(); + }); + + t.test('comma-separated values exceeding arrayLimit convert to object', function (st) { + var result = qs.parse('a=1,2,3,4', { comma: true, arrayLimit: 3 }); + st.notOk(Array.isArray(result.a), 'result is not an array when over limit'); + st.deepEqual(result.a, { 0: '1', 1: '2', 2: '3', 3: '4' }, 'all values preserved as object'); + st.end(); + }); + + t.test('comma-separated values exceeding arrayLimit with throwOnLimitExceeded throws', function (st) { + st['throws']( + function () { + qs.parse('a=1,2,3,4', { comma: true, arrayLimit: 3, throwOnLimitExceeded: true }); + }, + new RangeError('Array limit exceeded. Only 3 elements allowed in an array.'), + 'throws error when comma-split exceeds array limit' + ); + + st['throws']( + function () { + qs.parse('a=1,2,3', { comma: true, arrayLimit: 1, throwOnLimitExceeded: true }); + }, + new RangeError('Array limit exceeded. Only 1 element allowed in an array.'), + 'throws error with singular "element" when arrayLimit is 1' + ); + st.end(); + }); + + t.test('comma-separated values at exactly arrayLimit stay as array', function (st) { + var result = qs.parse('a=1,2,3', { comma: true, arrayLimit: 3 }); + st.ok(Array.isArray(result.a), 'result is an array when exactly at limit'); + st.deepEqual(result.a, ['1', '2', '3'], 'all values present'); + st.end(); + }); + + t.end(); +}); + +test('mixed array and object notation', function (t) { + t.test('array brackets with object key - under limit', function (st) { + st.deepEqual( + qs.parse('a[]=b&a[c]=d'), + { a: { 0: 'b', c: 'd' } }, + 'mixing [] and [key] converts to object' + ); + st.end(); + }); + + t.test('array index with object key - under limit', function (st) { + st.deepEqual( + qs.parse('a[0]=b&a[c]=d'), + { a: { 0: 'b', c: 'd' } }, + 'mixing [0] and [key] produces object' + ); + st.end(); + }); + + t.test('plain value with array brackets - under limit', function (st) { + st.deepEqual( + qs.parse('a=b&a[]=c', { arrayLimit: 20 }), + { a: ['b', 'c'] }, + 'plain value combined with [] stays as array under limit' + ); + st.end(); + }); + + t.test('array brackets with plain value - under limit', function (st) { + st.deepEqual( + qs.parse('a[]=b&a=c', { arrayLimit: 20 }), + { a: ['b', 'c'] }, + '[] combined with plain value stays as array under limit' + ); + st.end(); + }); + + t.test('plain value with array index - under limit', function (st) { + st.deepEqual( + qs.parse('a=b&a[0]=c', { arrayLimit: 20 }), + { a: ['b', 'c'] }, + 'plain value combined with [0] stays as array under limit' + ); + st.end(); + }); + + t.test('multiple plain values with duplicates combine', function (st) { + st.deepEqual( + qs.parse('a=b&a=c&a=d', { arrayLimit: 20 }), + { a: ['b', 'c', 'd'] }, + 'duplicate plain keys combine into array' + ); + st.end(); + }); + + t.test('multiple plain values exceeding limit', function (st) { + // 3 elements (indices 0-2), max index 2 > limit 1 + st.deepEqual( + qs.parse('a=b&a=c&a=d', { arrayLimit: 1 }), + { a: { 0: 'b', 1: 'c', 2: 'd' } }, + 'duplicate plain keys convert to object when exceeding limit' + ); + st.end(); + }); + + t.test('mixed notation produces consistent results when arrayLimit is exceeded', function (st) { + var expected = { a: { 0: 'b', 1: 'c', 2: 'd' } }; + + st.deepEqual( + qs.parse('a[]=b&a[1]=c&a=d', { arrayLimit: -1 }), + expected, + 'arrayLimit -1' + ); + + st.deepEqual( + qs.parse('a[]=b&a[1]=c&a=d', { arrayLimit: 0 }), + expected, + 'arrayLimit 0' + ); + + st.deepEqual( + qs.parse('a[]=b&a[1]=c&a=d', { arrayLimit: 1 }), + expected, + 'arrayLimit 1' + ); + + st.end(); + }); + + t.test('uses existing array length for currentArrayLength when parsing object input with bracket keys', function (st) { + var input = {}; + var arr = ['x', 'y']; + arr.a = ['z', 'w']; + input['a[]'] = arr; + st.deepEqual(qs.parse(input), { a: ['x', 'y'] }, 'parses object input with bracket keys using existing array values'); + st.end(); + }); + + t.test('throws with singular message when object input bracket key exceeds arrayLimit of 1', function (st) { + var input = {}; + var arr = ['x']; + arr.a = ['z', 'w']; + input['a[]'] = arr; + st['throws']( + function () { + qs.parse(input, { throwOnLimitExceeded: true, arrayLimit: 1 }); + }, + new RangeError('Array limit exceeded. Only 1 element allowed in an array.'), + 'throws singular error for object input exceeding arrayLimit 1' + ); + st.end(); + }); + + t.end(); +}); diff --git a/node_modules/qs/test/stringify.js b/node_modules/qs/test/stringify.js new file mode 100644 index 0000000000000000000000000000000000000000..07324cf22e0d8084ebedc1ad996a486a189d837a --- /dev/null +++ b/node_modules/qs/test/stringify.js @@ -0,0 +1,1448 @@ +'use strict'; + +var test = require('tape'); +var qs = require('../'); +var utils = require('../lib/utils'); +var iconv = require('iconv-lite'); +var SaferBuffer = require('safer-buffer').Buffer; +var hasSymbols = require('has-symbols'); +var mockProperty = require('mock-property'); +var emptyTestCases = require('./empty-keys-cases').emptyTestCases; +var hasProto = require('has-proto')(); +var hasBigInt = require('has-bigints')(); + +test('stringify()', function (t) { + t.test('stringifies a querystring object', function (st) { + st.equal(qs.stringify({ a: 'b' }), 'a=b'); + st.equal(qs.stringify({ a: 1 }), 'a=1'); + st.equal(qs.stringify({ a: 1, b: 2 }), 'a=1&b=2'); + st.equal(qs.stringify({ a: 'A_Z' }), 'a=A_Z'); + st.equal(qs.stringify({ a: '€' }), 'a=%E2%82%AC'); + st.equal(qs.stringify({ a: '' }), 'a=%EE%80%80'); + st.equal(qs.stringify({ a: 'א' }), 'a=%D7%90'); + st.equal(qs.stringify({ a: '𐐷' }), 'a=%F0%90%90%B7'); + st.end(); + }); + + t.test('stringifies falsy values', function (st) { + st.equal(qs.stringify(undefined), ''); + st.equal(qs.stringify(null), ''); + st.equal(qs.stringify(null, { strictNullHandling: true }), ''); + st.equal(qs.stringify(false), ''); + st.equal(qs.stringify(0), ''); + st.end(); + }); + + t.test('stringifies symbols', { skip: !hasSymbols() }, function (st) { + st.equal(qs.stringify(Symbol.iterator), ''); + st.equal(qs.stringify([Symbol.iterator]), '0=Symbol%28Symbol.iterator%29'); + st.equal(qs.stringify({ a: Symbol.iterator }), 'a=Symbol%28Symbol.iterator%29'); + st.equal( + qs.stringify({ a: [Symbol.iterator] }, { encodeValuesOnly: true, arrayFormat: 'brackets' }), + 'a[]=Symbol%28Symbol.iterator%29' + ); + st.end(); + }); + + t.test('stringifies bigints', { skip: !hasBigInt }, function (st) { + var three = BigInt(3); + var encodeWithN = function (value, defaultEncoder, charset) { + var result = defaultEncoder(value, defaultEncoder, charset); + return typeof value === 'bigint' ? result + 'n' : result; + }; + st.equal(qs.stringify(three), ''); + st.equal(qs.stringify([three]), '0=3'); + st.equal(qs.stringify([three], { encoder: encodeWithN }), '0=3n'); + st.equal(qs.stringify({ a: three }), 'a=3'); + st.equal(qs.stringify({ a: three }, { encoder: encodeWithN }), 'a=3n'); + st.equal( + qs.stringify({ a: [three] }, { encodeValuesOnly: true, arrayFormat: 'brackets' }), + 'a[]=3' + ); + st.equal( + qs.stringify({ a: [three] }, { encodeValuesOnly: true, encoder: encodeWithN, arrayFormat: 'brackets' }), + 'a[]=3n' + ); + st.end(); + }); + + t.test('encodes dot in key of object when encodeDotInKeys and allowDots is provided', function (st) { + st.equal( + qs.stringify( + { 'name.obj': { first: 'John', last: 'Doe' } }, + { allowDots: false, encodeDotInKeys: false } + ), + 'name.obj%5Bfirst%5D=John&name.obj%5Blast%5D=Doe', + 'with allowDots false and encodeDotInKeys false' + ); + st.equal( + qs.stringify( + { 'name.obj': { first: 'John', last: 'Doe' } }, + { allowDots: true, encodeDotInKeys: false } + ), + 'name.obj.first=John&name.obj.last=Doe', + 'with allowDots true and encodeDotInKeys false' + ); + st.equal( + qs.stringify( + { 'name.obj': { first: 'John', last: 'Doe' } }, + { allowDots: false, encodeDotInKeys: true } + ), + 'name%252Eobj%5Bfirst%5D=John&name%252Eobj%5Blast%5D=Doe', + 'with allowDots false and encodeDotInKeys true' + ); + st.equal( + qs.stringify( + { 'name.obj': { first: 'John', last: 'Doe' } }, + { allowDots: true, encodeDotInKeys: true } + ), + 'name%252Eobj.first=John&name%252Eobj.last=Doe', + 'with allowDots true and encodeDotInKeys true' + ); + + st.equal( + qs.stringify( + { 'name.obj.subobject': { 'first.godly.name': 'John', last: 'Doe' } }, + { allowDots: false, encodeDotInKeys: false } + ), + 'name.obj.subobject%5Bfirst.godly.name%5D=John&name.obj.subobject%5Blast%5D=Doe', + 'with allowDots false and encodeDotInKeys false' + ); + st.equal( + qs.stringify( + { 'name.obj.subobject': { 'first.godly.name': 'John', last: 'Doe' } }, + { allowDots: true, encodeDotInKeys: false } + ), + 'name.obj.subobject.first.godly.name=John&name.obj.subobject.last=Doe', + 'with allowDots false and encodeDotInKeys false' + ); + st.equal( + qs.stringify( + { 'name.obj.subobject': { 'first.godly.name': 'John', last: 'Doe' } }, + { allowDots: false, encodeDotInKeys: true } + ), + 'name%252Eobj%252Esubobject%5Bfirst.godly.name%5D=John&name%252Eobj%252Esubobject%5Blast%5D=Doe', + 'with allowDots false and encodeDotInKeys true' + ); + st.equal( + qs.stringify( + { 'name.obj.subobject': { 'first.godly.name': 'John', last: 'Doe' } }, + { allowDots: true, encodeDotInKeys: true } + ), + 'name%252Eobj%252Esubobject.first%252Egodly%252Ename=John&name%252Eobj%252Esubobject.last=Doe', + 'with allowDots true and encodeDotInKeys true' + ); + + st.end(); + }); + + t.test('should encode dot in key of object, and automatically set allowDots to `true` when encodeDotInKeys is true and allowDots in undefined', function (st) { + st.equal( + qs.stringify( + { 'name.obj.subobject': { 'first.godly.name': 'John', last: 'Doe' } }, + { encodeDotInKeys: true } + ), + 'name%252Eobj%252Esubobject.first%252Egodly%252Ename=John&name%252Eobj%252Esubobject.last=Doe', + 'with allowDots undefined and encodeDotInKeys true' + ); + st.end(); + }); + + t.test('should encode dot in key of object when encodeDotInKeys and allowDots is provided, and nothing else when encodeValuesOnly is provided', function (st) { + st.equal( + qs.stringify({ 'name.obj': { first: 'John', last: 'Doe' } }, { + encodeDotInKeys: true, allowDots: true, encodeValuesOnly: true + }), + 'name%2Eobj.first=John&name%2Eobj.last=Doe' + ); + + st.equal( + qs.stringify({ 'name.obj.subobject': { 'first.godly.name': 'John', last: 'Doe' } }, { allowDots: true, encodeDotInKeys: true, encodeValuesOnly: true }), + 'name%2Eobj%2Esubobject.first%2Egodly%2Ename=John&name%2Eobj%2Esubobject.last=Doe' + ); + + st.end(); + }); + + t.test('throws when `commaRoundTrip` is not a boolean', function (st) { + st['throws']( + function () { qs.stringify({}, { commaRoundTrip: 'not a boolean' }); }, + TypeError, + 'throws when `commaRoundTrip` is not a boolean' + ); + + st.end(); + }); + + t.test('throws when `encodeDotInKeys` is not a boolean', function (st) { + st['throws']( + function () { qs.stringify({ a: [], b: 'zz' }, { encodeDotInKeys: 'foobar' }); }, + TypeError + ); + + st['throws']( + function () { qs.stringify({ a: [], b: 'zz' }, { encodeDotInKeys: 0 }); }, + TypeError + ); + + st['throws']( + function () { qs.stringify({ a: [], b: 'zz' }, { encodeDotInKeys: NaN }); }, + TypeError + ); + + st['throws']( + function () { qs.stringify({ a: [], b: 'zz' }, { encodeDotInKeys: null }); }, + TypeError + ); + + st.end(); + }); + + t.test('adds query prefix', function (st) { + st.equal(qs.stringify({ a: 'b' }, { addQueryPrefix: true }), '?a=b'); + st.end(); + }); + + t.test('with query prefix, outputs blank string given an empty object', function (st) { + st.equal(qs.stringify({}, { addQueryPrefix: true }), ''); + st.end(); + }); + + t.test('stringifies nested falsy values', function (st) { + st.equal(qs.stringify({ a: { b: { c: null } } }), 'a%5Bb%5D%5Bc%5D='); + st.equal(qs.stringify({ a: { b: { c: null } } }, { strictNullHandling: true }), 'a%5Bb%5D%5Bc%5D'); + st.equal(qs.stringify({ a: { b: { c: false } } }), 'a%5Bb%5D%5Bc%5D=false'); + st.end(); + }); + + t.test('stringifies a nested object', function (st) { + st.equal(qs.stringify({ a: { b: 'c' } }), 'a%5Bb%5D=c'); + st.equal(qs.stringify({ a: { b: { c: { d: 'e' } } } }), 'a%5Bb%5D%5Bc%5D%5Bd%5D=e'); + st.end(); + }); + + t.test('`allowDots` option: stringifies a nested object with dots notation', function (st) { + st.equal(qs.stringify({ a: { b: 'c' } }, { allowDots: true }), 'a.b=c'); + st.equal(qs.stringify({ a: { b: { c: { d: 'e' } } } }, { allowDots: true }), 'a.b.c.d=e'); + st.end(); + }); + + t.test('stringifies an array value', function (st) { + st.equal( + qs.stringify({ a: ['b', 'c', 'd'] }, { arrayFormat: 'indices' }), + 'a%5B0%5D=b&a%5B1%5D=c&a%5B2%5D=d', + 'indices => indices' + ); + st.equal( + qs.stringify({ a: ['b', 'c', 'd'] }, { arrayFormat: 'brackets' }), + 'a%5B%5D=b&a%5B%5D=c&a%5B%5D=d', + 'brackets => brackets' + ); + st.equal( + qs.stringify({ a: ['b', 'c', 'd'] }, { arrayFormat: 'comma' }), + 'a=b%2Cc%2Cd', + 'comma => comma' + ); + st.equal( + qs.stringify({ a: ['b', 'c', 'd'] }, { arrayFormat: 'comma', commaRoundTrip: true }), + 'a=b%2Cc%2Cd', + 'comma round trip => comma' + ); + st.equal( + qs.stringify({ a: ['b', 'c', 'd'] }), + 'a%5B0%5D=b&a%5B1%5D=c&a%5B2%5D=d', + 'default => indices' + ); + st.end(); + }); + + t.test('`skipNulls` option', function (st) { + st.equal( + qs.stringify({ a: 'b', c: null }, { skipNulls: true }), + 'a=b', + 'omits nulls when asked' + ); + + st.equal( + qs.stringify({ a: { b: 'c', d: null } }, { skipNulls: true }), + 'a%5Bb%5D=c', + 'omits nested nulls when asked' + ); + + st.end(); + }); + + t.test('omits array indices when asked', function (st) { + st.equal(qs.stringify({ a: ['b', 'c', 'd'] }, { indices: false }), 'a=b&a=c&a=d'); + + st.end(); + }); + + t.test('omits object key/value pair when value is empty array', function (st) { + st.equal(qs.stringify({ a: [], b: 'zz' }), 'b=zz'); + + st.end(); + }); + + t.test('should not omit object key/value pair when value is empty array and when asked', function (st) { + st.equal(qs.stringify({ a: [], b: 'zz' }), 'b=zz'); + st.equal(qs.stringify({ a: [], b: 'zz' }, { allowEmptyArrays: false }), 'b=zz'); + st.equal(qs.stringify({ a: [], b: 'zz' }, { allowEmptyArrays: true }), 'a[]&b=zz'); + + st.end(); + }); + + t.test('should throw when allowEmptyArrays is not of type boolean', function (st) { + st['throws']( + function () { qs.stringify({ a: [], b: 'zz' }, { allowEmptyArrays: 'foobar' }); }, + TypeError + ); + + st['throws']( + function () { qs.stringify({ a: [], b: 'zz' }, { allowEmptyArrays: 0 }); }, + TypeError + ); + + st['throws']( + function () { qs.stringify({ a: [], b: 'zz' }, { allowEmptyArrays: NaN }); }, + TypeError + ); + + st['throws']( + function () { qs.stringify({ a: [], b: 'zz' }, { allowEmptyArrays: null }); }, + TypeError + ); + + st.end(); + }); + + t.test('allowEmptyArrays + strictNullHandling', function (st) { + st.equal( + qs.stringify( + { testEmptyArray: [] }, + { strictNullHandling: true, allowEmptyArrays: true } + ), + 'testEmptyArray[]' + ); + + st.end(); + }); + + t.test('stringifies an array value with one item vs multiple items', function (st) { + st.test('non-array item', function (s2t) { + s2t.equal(qs.stringify({ a: 'c' }, { encodeValuesOnly: true, arrayFormat: 'indices' }), 'a=c'); + s2t.equal(qs.stringify({ a: 'c' }, { encodeValuesOnly: true, arrayFormat: 'brackets' }), 'a=c'); + s2t.equal(qs.stringify({ a: 'c' }, { encodeValuesOnly: true, arrayFormat: 'comma' }), 'a=c'); + s2t.equal(qs.stringify({ a: 'c' }, { encodeValuesOnly: true }), 'a=c'); + + s2t.end(); + }); + + st.test('array with a single item', function (s2t) { + s2t.equal(qs.stringify({ a: ['c'] }, { encodeValuesOnly: true, arrayFormat: 'indices' }), 'a[0]=c'); + s2t.equal(qs.stringify({ a: ['c'] }, { encodeValuesOnly: true, arrayFormat: 'brackets' }), 'a[]=c'); + s2t.equal(qs.stringify({ a: ['c'] }, { encodeValuesOnly: true, arrayFormat: 'comma' }), 'a=c'); + s2t.equal(qs.stringify({ a: ['c'] }, { encodeValuesOnly: true, arrayFormat: 'comma', commaRoundTrip: true }), 'a[]=c'); // so it parses back as an array + s2t.equal(qs.stringify({ a: ['c'] }, { encodeValuesOnly: true }), 'a[0]=c'); + + s2t.end(); + }); + + st.test('array with multiple items', function (s2t) { + s2t.equal(qs.stringify({ a: ['c', 'd'] }, { encodeValuesOnly: true, arrayFormat: 'indices' }), 'a[0]=c&a[1]=d'); + s2t.equal(qs.stringify({ a: ['c', 'd'] }, { encodeValuesOnly: true, arrayFormat: 'brackets' }), 'a[]=c&a[]=d'); + s2t.equal(qs.stringify({ a: ['c', 'd'] }, { encodeValuesOnly: true, arrayFormat: 'comma' }), 'a=c,d'); + s2t.equal(qs.stringify({ a: ['c', 'd'] }, { encodeValuesOnly: true, arrayFormat: 'comma', commaRoundTrip: true }), 'a=c,d'); + s2t.equal(qs.stringify({ a: ['c', 'd'] }, { encodeValuesOnly: true }), 'a[0]=c&a[1]=d'); + + s2t.end(); + }); + + st.test('array with multiple items with a comma inside', function (s2t) { + s2t.equal(qs.stringify({ a: ['c,d', 'e'] }, { encodeValuesOnly: true, arrayFormat: 'comma' }), 'a=c%2Cd,e'); + s2t.equal(qs.stringify({ a: ['c,d', 'e'] }, { arrayFormat: 'comma' }), 'a=c%2Cd%2Ce'); + + s2t.equal(qs.stringify({ a: ['c,d', 'e'] }, { encodeValuesOnly: true, arrayFormat: 'comma', commaRoundTrip: true }), 'a=c%2Cd,e'); + s2t.equal(qs.stringify({ a: ['c,d', 'e'] }, { arrayFormat: 'comma', commaRoundTrip: true }), 'a=c%2Cd%2Ce'); + + s2t.end(); + }); + + st.end(); + }); + + t.test('stringifies a nested array value', function (st) { + st.equal(qs.stringify({ a: { b: ['c', 'd'] } }, { encodeValuesOnly: true, arrayFormat: 'indices' }), 'a[b][0]=c&a[b][1]=d'); + st.equal(qs.stringify({ a: { b: ['c', 'd'] } }, { encodeValuesOnly: true, arrayFormat: 'brackets' }), 'a[b][]=c&a[b][]=d'); + st.equal(qs.stringify({ a: { b: ['c', 'd'] } }, { encodeValuesOnly: true, arrayFormat: 'comma' }), 'a[b]=c,d'); + st.equal(qs.stringify({ a: { b: ['c', 'd'] } }, { encodeValuesOnly: true }), 'a[b][0]=c&a[b][1]=d'); + st.end(); + }); + + t.test('stringifies comma and empty array values', function (st) { + st.equal(qs.stringify({ a: [',', '', 'c,d%'] }, { encode: false, arrayFormat: 'indices' }), 'a[0]=,&a[1]=&a[2]=c,d%'); + st.equal(qs.stringify({ a: [',', '', 'c,d%'] }, { encode: false, arrayFormat: 'brackets' }), 'a[]=,&a[]=&a[]=c,d%'); + st.equal(qs.stringify({ a: [',', '', 'c,d%'] }, { encode: false, arrayFormat: 'comma' }), 'a=,,,c,d%'); + st.equal(qs.stringify({ a: [',', '', 'c,d%'] }, { encode: false, arrayFormat: 'repeat' }), 'a=,&a=&a=c,d%'); + + st.equal(qs.stringify({ a: [',', '', 'c,d%'] }, { encode: true, encodeValuesOnly: true, arrayFormat: 'indices' }), 'a[0]=%2C&a[1]=&a[2]=c%2Cd%25'); + st.equal(qs.stringify({ a: [',', '', 'c,d%'] }, { encode: true, encodeValuesOnly: true, arrayFormat: 'brackets' }), 'a[]=%2C&a[]=&a[]=c%2Cd%25'); + st.equal(qs.stringify({ a: [',', '', 'c,d%'] }, { encode: true, encodeValuesOnly: true, arrayFormat: 'comma' }), 'a=%2C,,c%2Cd%25'); + st.equal(qs.stringify({ a: [',', '', 'c,d%'] }, { encode: true, encodeValuesOnly: true, arrayFormat: 'repeat' }), 'a=%2C&a=&a=c%2Cd%25'); + + st.equal(qs.stringify({ a: [',', '', 'c,d%'] }, { encode: true, encodeValuesOnly: false, arrayFormat: 'indices' }), 'a%5B0%5D=%2C&a%5B1%5D=&a%5B2%5D=c%2Cd%25'); + st.equal(qs.stringify({ a: [',', '', 'c,d%'] }, { encode: true, encodeValuesOnly: false, arrayFormat: 'brackets' }), 'a%5B%5D=%2C&a%5B%5D=&a%5B%5D=c%2Cd%25'); + st.equal(qs.stringify({ a: [',', '', 'c,d%'] }, { encode: true, encodeValuesOnly: false, arrayFormat: 'comma' }), 'a=%2C%2C%2Cc%2Cd%25'); + st.equal(qs.stringify({ a: [',', '', 'c,d%'] }, { encode: true, encodeValuesOnly: false, arrayFormat: 'repeat' }), 'a=%2C&a=&a=c%2Cd%25'); + + st.end(); + }); + + t.test('stringifies comma and empty non-array values', function (st) { + st.equal(qs.stringify({ a: ',', b: '', c: 'c,d%' }, { encode: false, arrayFormat: 'indices' }), 'a=,&b=&c=c,d%'); + st.equal(qs.stringify({ a: ',', b: '', c: 'c,d%' }, { encode: false, arrayFormat: 'brackets' }), 'a=,&b=&c=c,d%'); + st.equal(qs.stringify({ a: ',', b: '', c: 'c,d%' }, { encode: false, arrayFormat: 'comma' }), 'a=,&b=&c=c,d%'); + st.equal(qs.stringify({ a: ',', b: '', c: 'c,d%' }, { encode: false, arrayFormat: 'repeat' }), 'a=,&b=&c=c,d%'); + + st.equal(qs.stringify({ a: ',', b: '', c: 'c,d%' }, { encode: true, encodeValuesOnly: true, arrayFormat: 'indices' }), 'a=%2C&b=&c=c%2Cd%25'); + st.equal(qs.stringify({ a: ',', b: '', c: 'c,d%' }, { encode: true, encodeValuesOnly: true, arrayFormat: 'brackets' }), 'a=%2C&b=&c=c%2Cd%25'); + st.equal(qs.stringify({ a: ',', b: '', c: 'c,d%' }, { encode: true, encodeValuesOnly: true, arrayFormat: 'comma' }), 'a=%2C&b=&c=c%2Cd%25'); + st.equal(qs.stringify({ a: ',', b: '', c: 'c,d%' }, { encode: true, encodeValuesOnly: true, arrayFormat: 'repeat' }), 'a=%2C&b=&c=c%2Cd%25'); + + st.equal(qs.stringify({ a: ',', b: '', c: 'c,d%' }, { encode: true, encodeValuesOnly: false, arrayFormat: 'indices' }), 'a=%2C&b=&c=c%2Cd%25'); + st.equal(qs.stringify({ a: ',', b: '', c: 'c,d%' }, { encode: true, encodeValuesOnly: false, arrayFormat: 'brackets' }), 'a=%2C&b=&c=c%2Cd%25'); + st.equal(qs.stringify({ a: ',', b: '', c: 'c,d%' }, { encode: true, encodeValuesOnly: false, arrayFormat: 'comma' }), 'a=%2C&b=&c=c%2Cd%25'); + st.equal(qs.stringify({ a: ',', b: '', c: 'c,d%' }, { encode: true, encodeValuesOnly: false, arrayFormat: 'repeat' }), 'a=%2C&b=&c=c%2Cd%25'); + + st.end(); + }); + + t.test('stringifies a nested array value with dots notation', function (st) { + st.equal( + qs.stringify( + { a: { b: ['c', 'd'] } }, + { allowDots: true, encodeValuesOnly: true, arrayFormat: 'indices' } + ), + 'a.b[0]=c&a.b[1]=d', + 'indices: stringifies with dots + indices' + ); + st.equal( + qs.stringify( + { a: { b: ['c', 'd'] } }, + { allowDots: true, encodeValuesOnly: true, arrayFormat: 'brackets' } + ), + 'a.b[]=c&a.b[]=d', + 'brackets: stringifies with dots + brackets' + ); + st.equal( + qs.stringify( + { a: { b: ['c', 'd'] } }, + { allowDots: true, encodeValuesOnly: true, arrayFormat: 'comma' } + ), + 'a.b=c,d', + 'comma: stringifies with dots + comma' + ); + st.equal( + qs.stringify( + { a: { b: ['c', 'd'] } }, + { allowDots: true, encodeValuesOnly: true } + ), + 'a.b[0]=c&a.b[1]=d', + 'default: stringifies with dots + indices' + ); + st.end(); + }); + + t.test('stringifies an object inside an array', function (st) { + st.equal( + qs.stringify({ a: [{ b: 'c' }] }, { arrayFormat: 'indices', encodeValuesOnly: true }), + 'a[0][b]=c', + 'indices => indices' + ); + st.equal( + qs.stringify({ a: [{ b: 'c' }] }, { arrayFormat: 'repeat', encodeValuesOnly: true }), + 'a[b]=c', + 'repeat => repeat' + ); + st.equal( + qs.stringify({ a: [{ b: 'c' }] }, { arrayFormat: 'brackets', encodeValuesOnly: true }), + 'a[][b]=c', + 'brackets => brackets' + ); + st.equal( + qs.stringify({ a: [{ b: 'c' }] }, { encodeValuesOnly: true }), + 'a[0][b]=c', + 'default => indices' + ); + + st.equal( + qs.stringify({ a: [{ b: { c: [1] } }] }, { arrayFormat: 'indices', encodeValuesOnly: true }), + 'a[0][b][c][0]=1', + 'indices => indices' + ); + st.equal( + qs.stringify({ a: [{ b: { c: [1] } }] }, { arrayFormat: 'repeat', encodeValuesOnly: true }), + 'a[b][c]=1', + 'repeat => repeat' + ); + st.equal( + qs.stringify({ a: [{ b: { c: [1] } }] }, { arrayFormat: 'brackets', encodeValuesOnly: true }), + 'a[][b][c][]=1', + 'brackets => brackets' + ); + st.equal( + qs.stringify({ a: [{ b: { c: [1] } }] }, { encodeValuesOnly: true }), + 'a[0][b][c][0]=1', + 'default => indices' + ); + + st.end(); + }); + + t.test('stringifies an array with mixed objects and primitives', function (st) { + st.equal( + qs.stringify({ a: [{ b: 1 }, 2, 3] }, { encodeValuesOnly: true, arrayFormat: 'indices' }), + 'a[0][b]=1&a[1]=2&a[2]=3', + 'indices => indices' + ); + st.equal( + qs.stringify({ a: [{ b: 1 }, 2, 3] }, { encodeValuesOnly: true, arrayFormat: 'brackets' }), + 'a[][b]=1&a[]=2&a[]=3', + 'brackets => brackets' + ); + st.equal( + qs.stringify({ a: [{ b: 1 }, 2, 3] }, { encodeValuesOnly: true, arrayFormat: 'comma' }), + '???', + 'brackets => brackets', + { skip: 'TODO: figure out what this should do' } + ); + st.equal( + qs.stringify({ a: [{ b: 1 }, 2, 3] }, { encodeValuesOnly: true }), + 'a[0][b]=1&a[1]=2&a[2]=3', + 'default => indices' + ); + + st.end(); + }); + + t.test('stringifies an object inside an array with dots notation', function (st) { + st.equal( + qs.stringify( + { a: [{ b: 'c' }] }, + { allowDots: true, encode: false, arrayFormat: 'indices' } + ), + 'a[0].b=c', + 'indices => indices' + ); + st.equal( + qs.stringify( + { a: [{ b: 'c' }] }, + { allowDots: true, encode: false, arrayFormat: 'brackets' } + ), + 'a[].b=c', + 'brackets => brackets' + ); + st.equal( + qs.stringify( + { a: [{ b: 'c' }] }, + { allowDots: true, encode: false } + ), + 'a[0].b=c', + 'default => indices' + ); + + st.equal( + qs.stringify( + { a: [{ b: { c: [1] } }] }, + { allowDots: true, encode: false, arrayFormat: 'indices' } + ), + 'a[0].b.c[0]=1', + 'indices => indices' + ); + st.equal( + qs.stringify( + { a: [{ b: { c: [1] } }] }, + { allowDots: true, encode: false, arrayFormat: 'brackets' } + ), + 'a[].b.c[]=1', + 'brackets => brackets' + ); + st.equal( + qs.stringify( + { a: [{ b: { c: [1] } }] }, + { allowDots: true, encode: false } + ), + 'a[0].b.c[0]=1', + 'default => indices' + ); + + st.end(); + }); + + t.test('does not omit object keys when indices = false', function (st) { + st.equal(qs.stringify({ a: [{ b: 'c' }] }, { indices: false }), 'a%5Bb%5D=c'); + st.end(); + }); + + t.test('uses indices notation for arrays when indices=true', function (st) { + st.equal(qs.stringify({ a: ['b', 'c'] }, { indices: true }), 'a%5B0%5D=b&a%5B1%5D=c'); + st.end(); + }); + + t.test('uses indices notation for arrays when no arrayFormat is specified', function (st) { + st.equal(qs.stringify({ a: ['b', 'c'] }), 'a%5B0%5D=b&a%5B1%5D=c'); + st.end(); + }); + + t.test('uses indices notation for arrays when arrayFormat=indices', function (st) { + st.equal(qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'indices' }), 'a%5B0%5D=b&a%5B1%5D=c'); + st.end(); + }); + + t.test('uses repeat notation for arrays when arrayFormat=repeat', function (st) { + st.equal(qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'repeat' }), 'a=b&a=c'); + st.end(); + }); + + t.test('uses brackets notation for arrays when arrayFormat=brackets', function (st) { + st.equal(qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'brackets' }), 'a%5B%5D=b&a%5B%5D=c'); + st.end(); + }); + + t.test('stringifies a complicated object', function (st) { + st.equal(qs.stringify({ a: { b: 'c', d: 'e' } }), 'a%5Bb%5D=c&a%5Bd%5D=e'); + st.end(); + }); + + t.test('stringifies an empty value', function (st) { + st.equal(qs.stringify({ a: '' }), 'a='); + st.equal(qs.stringify({ a: null }, { strictNullHandling: true }), 'a'); + + st.equal(qs.stringify({ a: '', b: '' }), 'a=&b='); + st.equal(qs.stringify({ a: null, b: '' }, { strictNullHandling: true }), 'a&b='); + + st.equal(qs.stringify({ a: { b: '' } }), 'a%5Bb%5D='); + st.equal(qs.stringify({ a: { b: null } }, { strictNullHandling: true }), 'a%5Bb%5D'); + st.equal(qs.stringify({ a: { b: null } }, { strictNullHandling: false }), 'a%5Bb%5D='); + + st.end(); + }); + + t.test('stringifies an empty array in different arrayFormat', function (st) { + st.equal(qs.stringify({ a: [], b: [null], c: 'c' }, { encode: false }), 'b[0]=&c=c'); + // arrayFormat default + st.equal(qs.stringify({ a: [], b: [null], c: 'c' }, { encode: false, arrayFormat: 'indices' }), 'b[0]=&c=c'); + st.equal(qs.stringify({ a: [], b: [null], c: 'c' }, { encode: false, arrayFormat: 'brackets' }), 'b[]=&c=c'); + st.equal(qs.stringify({ a: [], b: [null], c: 'c' }, { encode: false, arrayFormat: 'repeat' }), 'b=&c=c'); + st.equal(qs.stringify({ a: [], b: [null], c: 'c' }, { encode: false, arrayFormat: 'comma' }), 'b=&c=c'); + st.equal(qs.stringify({ a: [], b: [null], c: 'c' }, { encode: false, arrayFormat: 'comma', commaRoundTrip: true }), 'b[]=&c=c'); + // with strictNullHandling + st.equal(qs.stringify({ a: [], b: [null], c: 'c' }, { encode: false, arrayFormat: 'indices', strictNullHandling: true }), 'b[0]&c=c'); + st.equal(qs.stringify({ a: [], b: [null], c: 'c' }, { encode: false, arrayFormat: 'brackets', strictNullHandling: true }), 'b[]&c=c'); + st.equal(qs.stringify({ a: [], b: [null], c: 'c' }, { encode: false, arrayFormat: 'repeat', strictNullHandling: true }), 'b&c=c'); + st.equal(qs.stringify({ a: [], b: [null], c: 'c' }, { encode: false, arrayFormat: 'comma', strictNullHandling: true }), 'b&c=c'); + st.equal(qs.stringify({ a: [], b: [null], c: 'c' }, { encode: false, arrayFormat: 'comma', strictNullHandling: true, commaRoundTrip: true }), 'b[]&c=c'); + // with skipNulls + st.equal(qs.stringify({ a: [], b: [null], c: 'c' }, { encode: false, arrayFormat: 'indices', skipNulls: true }), 'c=c'); + st.equal(qs.stringify({ a: [], b: [null], c: 'c' }, { encode: false, arrayFormat: 'brackets', skipNulls: true }), 'c=c'); + st.equal(qs.stringify({ a: [], b: [null], c: 'c' }, { encode: false, arrayFormat: 'repeat', skipNulls: true }), 'c=c'); + st.equal(qs.stringify({ a: [], b: [null], c: 'c' }, { encode: false, arrayFormat: 'comma', skipNulls: true }), 'c=c'); + + st.end(); + }); + + t.test('does not crash on null/undefined entries in arrayFormat=comma with encodeValuesOnly', function (st) { + st.doesNotThrow( + function () { qs.stringify({ a: [null, 'b'] }, { arrayFormat: 'comma', encodeValuesOnly: true }); }, + 'does not pass a raw null array entry to the encoder' + ); + st.doesNotThrow( + function () { qs.stringify({ a: [undefined, 'b'] }, { arrayFormat: 'comma', encodeValuesOnly: true }); }, + 'does not pass a raw undefined array entry to the encoder' + ); + st.doesNotThrow( + function () { qs.stringify({ a: [null] }, { arrayFormat: 'comma', encodeValuesOnly: true }); }, + 'does not crash on a single-null array' + ); + + st.equal( + qs.stringify({ a: [null, 'b'] }, { arrayFormat: 'comma', encodeValuesOnly: true }), + 'a=,b', + 'null entry joins as empty, comma stays unencoded under encodeValuesOnly' + ); + st.equal( + qs.stringify({ a: [undefined, 'b'] }, { arrayFormat: 'comma', encodeValuesOnly: true }), + 'a=,b', + 'undefined entry joins as empty, comma stays unencoded under encodeValuesOnly' + ); + st.equal( + qs.stringify({ a: [null] }, { arrayFormat: 'comma', encodeValuesOnly: true }), + 'a=', + 'single-null array stringifies as empty value' + ); + st.equal( + qs.stringify({ a: [null] }, { arrayFormat: 'comma', encodeValuesOnly: true, strictNullHandling: true }), + 'a', + 'strictNullHandling drops the equals sign for a single-null array' + ); + st.equal( + qs.stringify({ a: [null] }, { arrayFormat: 'comma', encodeValuesOnly: true, skipNulls: true }), + '', + 'skipNulls drops a single-null array entirely' + ); + + st.end(); + }); + + t.test('stringifies a null object', { skip: !hasProto }, function (st) { + st.equal(qs.stringify({ __proto__: null, a: 'b' }), 'a=b'); + st.end(); + }); + + t.test('returns an empty string for invalid input', function (st) { + st.equal(qs.stringify(undefined), ''); + st.equal(qs.stringify(false), ''); + st.equal(qs.stringify(null), ''); + st.equal(qs.stringify(''), ''); + st.end(); + }); + + t.test('stringifies an object with a null object as a child', { skip: !hasProto }, function (st) { + st.equal(qs.stringify({ a: { __proto__: null, b: 'c' } }), 'a%5Bb%5D=c'); + st.end(); + }); + + t.test('drops keys with a value of undefined', function (st) { + st.equal(qs.stringify({ a: undefined }), ''); + + st.equal(qs.stringify({ a: { b: undefined, c: null } }, { strictNullHandling: true }), 'a%5Bc%5D'); + st.equal(qs.stringify({ a: { b: undefined, c: null } }, { strictNullHandling: false }), 'a%5Bc%5D='); + st.equal(qs.stringify({ a: { b: undefined, c: '' } }), 'a%5Bc%5D='); + st.end(); + }); + + t.test('url encodes values', function (st) { + st.equal(qs.stringify({ a: 'b c' }), 'a=b%20c'); + st.end(); + }); + + t.test('stringifies a date', function (st) { + var now = new Date(); + var str = 'a=' + encodeURIComponent(now.toISOString()); + st.equal(qs.stringify({ a: now }), str); + st.end(); + }); + + t.test('stringifies the weird object from qs', function (st) { + st.equal(qs.stringify({ 'my weird field': '~q1!2"\'w$5&7/z8)?' }), 'my%20weird%20field=~q1%212%22%27w%245%267%2Fz8%29%3F'); + st.end(); + }); + + t.test('skips properties that are part of the object prototype', function (st) { + st.intercept(Object.prototype, 'crash', { value: 'test' }); + + st.equal(qs.stringify({ a: 'b' }), 'a=b'); + st.equal(qs.stringify({ a: { b: 'c' } }), 'a%5Bb%5D=c'); + + st.end(); + }); + + t.test('stringifies boolean values', function (st) { + st.equal(qs.stringify({ a: true }), 'a=true'); + st.equal(qs.stringify({ a: { b: true } }), 'a%5Bb%5D=true'); + st.equal(qs.stringify({ b: false }), 'b=false'); + st.equal(qs.stringify({ b: { c: false } }), 'b%5Bc%5D=false'); + st.end(); + }); + + t.test('stringifies buffer values', function (st) { + st.equal(qs.stringify({ a: SaferBuffer.from('test') }), 'a=test'); + st.equal(qs.stringify({ a: { b: SaferBuffer.from('test') } }), 'a%5Bb%5D=test'); + st.end(); + }); + + t.test('stringifies an object using an alternative delimiter', function (st) { + st.equal(qs.stringify({ a: 'b', c: 'd' }, { delimiter: ';' }), 'a=b;c=d'); + st.end(); + }); + + t.test('does not blow up when Buffer global is missing', function (st) { + var restore = mockProperty(global, 'Buffer', { 'delete': true }); + + var result = qs.stringify({ a: 'b', c: 'd' }); + + restore(); + + st.equal(result, 'a=b&c=d'); + st.end(); + }); + + t.test('does not crash when parsing circular references', function (st) { + var a = {}; + a.b = a; + + st['throws']( + function () { qs.stringify({ 'foo[bar]': 'baz', 'foo[baz]': a }); }, + /RangeError: Cyclic object value/, + 'cyclic values throw' + ); + + var circular = { + a: 'value' + }; + circular.a = circular; + st['throws']( + function () { qs.stringify(circular); }, + /RangeError: Cyclic object value/, + 'cyclic values throw' + ); + + var arr = ['a']; + st.doesNotThrow( + function () { qs.stringify({ x: arr, y: arr }); }, + 'non-cyclic values do not throw' + ); + + st.end(); + }); + + t.test('non-circular duplicated references can still work', function (st) { + var hourOfDay = { + 'function': 'hour_of_day' + }; + + var p1 = { + 'function': 'gte', + arguments: [hourOfDay, 0] + }; + var p2 = { + 'function': 'lte', + arguments: [hourOfDay, 23] + }; + + st.equal( + qs.stringify({ filters: { $and: [p1, p2] } }, { encodeValuesOnly: true, arrayFormat: 'indices' }), + 'filters[$and][0][function]=gte&filters[$and][0][arguments][0][function]=hour_of_day&filters[$and][0][arguments][1]=0&filters[$and][1][function]=lte&filters[$and][1][arguments][0][function]=hour_of_day&filters[$and][1][arguments][1]=23' + ); + st.equal( + qs.stringify({ filters: { $and: [p1, p2] } }, { encodeValuesOnly: true, arrayFormat: 'brackets' }), + 'filters[$and][][function]=gte&filters[$and][][arguments][][function]=hour_of_day&filters[$and][][arguments][]=0&filters[$and][][function]=lte&filters[$and][][arguments][][function]=hour_of_day&filters[$and][][arguments][]=23' + ); + st.equal( + qs.stringify({ filters: { $and: [p1, p2] } }, { encodeValuesOnly: true, arrayFormat: 'repeat' }), + 'filters[$and][function]=gte&filters[$and][arguments][function]=hour_of_day&filters[$and][arguments]=0&filters[$and][function]=lte&filters[$and][arguments][function]=hour_of_day&filters[$and][arguments]=23' + ); + + st.end(); + }); + + t.test('selects properties when filter=array', function (st) { + st.equal(qs.stringify({ a: 'b' }, { filter: ['a'] }), 'a=b'); + st.equal(qs.stringify({ a: 1 }, { filter: [] }), ''); + + st.equal( + qs.stringify( + { a: { b: [1, 2, 3, 4], c: 'd' }, c: 'f' }, + { filter: ['a', 'b', 0, 2], arrayFormat: 'indices' } + ), + 'a%5Bb%5D%5B0%5D=1&a%5Bb%5D%5B2%5D=3', + 'indices => indices' + ); + st.equal( + qs.stringify( + { a: { b: [1, 2, 3, 4], c: 'd' }, c: 'f' }, + { filter: ['a', 'b', 0, 2], arrayFormat: 'brackets' } + ), + 'a%5Bb%5D%5B%5D=1&a%5Bb%5D%5B%5D=3', + 'brackets => brackets' + ); + st.equal( + qs.stringify( + { a: { b: [1, 2, 3, 4], c: 'd' }, c: 'f' }, + { filter: ['a', 'b', 0, 2] } + ), + 'a%5Bb%5D%5B0%5D=1&a%5Bb%5D%5B2%5D=3', + 'default => indices' + ); + + st.end(); + }); + + t.test('skips null/undefined entries in filter=array', function (st) { + st.doesNotThrow( + function () { qs.stringify({ a: 'b', undefined: 'x' }, { filter: ['a', undefined] }); }, + 'does not pass a raw undefined filter entry to the encoder' + ); + st.doesNotThrow( + function () { qs.stringify({ a: 'b', 'null': 'x' }, { filter: ['a', null] }); }, + 'does not pass a raw null filter entry to the encoder' + ); + + st.equal( + qs.stringify({ a: 'b', undefined: 'x', c: 'd' }, { filter: ['a', undefined, 'c'] }), + 'a=b&c=d', + 'undefined filter entry is skipped, remaining keys are kept' + ); + st.equal( + qs.stringify({ a: 'b', 'null': 'x', c: 'd' }, { filter: ['a', null, 'c'] }), + 'a=b&c=d', + 'null filter entry is skipped, remaining keys are kept' + ); + st.equal( + qs.stringify({ a: 'b', 'null': 'x' }, { filter: [null] }), + '', + 'filter array containing only null yields empty string' + ); + + st.end(); + }); + + t.test('supports custom representations when filter=function', function (st) { + var calls = 0; + var obj = { a: 'b', c: 'd', e: { f: new Date(1257894000000) } }; + var filterFunc = function (prefix, value) { + calls += 1; + if (calls === 1) { + st.equal(prefix, '', 'prefix is empty'); + st.equal(value, obj); + } else if (prefix === 'c') { + return void 0; + } else if (value instanceof Date) { + st.equal(prefix, 'e[f]'); + return value.getTime(); + } + return value; + }; + + st.equal(qs.stringify(obj, { filter: filterFunc }), 'a=b&e%5Bf%5D=1257894000000'); + st.equal(calls, 5); + st.end(); + }); + + t.test('can disable uri encoding', function (st) { + st.equal(qs.stringify({ a: 'b' }, { encode: false }), 'a=b'); + st.equal(qs.stringify({ a: { b: 'c' } }, { encode: false }), 'a[b]=c'); + st.equal(qs.stringify({ a: 'b', c: null }, { strictNullHandling: true, encode: false }), 'a=b&c'); + st.end(); + }); + + t.test('can sort the keys', function (st) { + var sort = function (a, b) { + return a.localeCompare(b); + }; + st.equal(qs.stringify({ a: 'c', z: 'y', b: 'f' }, { sort: sort }), 'a=c&b=f&z=y'); + st.equal(qs.stringify({ a: 'c', z: { j: 'a', i: 'b' }, b: 'f' }, { sort: sort }), 'a=c&b=f&z%5Bi%5D=b&z%5Bj%5D=a'); + st.end(); + }); + + t.test('can sort the keys at depth 3 or more too', function (st) { + var sort = function (a, b) { + return a.localeCompare(b); + }; + st.equal( + qs.stringify( + { a: 'a', z: { zj: { zjb: 'zjb', zja: 'zja' }, zi: { zib: 'zib', zia: 'zia' } }, b: 'b' }, + { sort: sort, encode: false } + ), + 'a=a&b=b&z[zi][zia]=zia&z[zi][zib]=zib&z[zj][zja]=zja&z[zj][zjb]=zjb' + ); + st.equal( + qs.stringify( + { a: 'a', z: { zj: { zjb: 'zjb', zja: 'zja' }, zi: { zib: 'zib', zia: 'zia' } }, b: 'b' }, + { sort: null, encode: false } + ), + 'a=a&z[zj][zjb]=zjb&z[zj][zja]=zja&z[zi][zib]=zib&z[zi][zia]=zia&b=b' + ); + st.end(); + }); + + t.test('can stringify with custom encoding', function (st) { + st.equal(qs.stringify({ 県: '大阪府', '': '' }, { + encoder: function (str) { + if (str.length === 0) { + return ''; + } + var buf = iconv.encode(str, 'shiftjis'); + var result = []; + for (var i = 0; i < buf.length; ++i) { + result.push(buf.readUInt8(i).toString(16)); + } + return '%' + result.join('%'); + } + }), '%8c%a7=%91%e5%8d%e3%95%7b&='); + st.end(); + }); + + t.test('receives the default encoder as a second argument', function (st) { + st.plan(8); + + qs.stringify({ a: 1, b: new Date(), c: true, d: [1] }, { + encoder: function (str) { + st.match(typeof str, /^(?:string|number|boolean)$/); + return ''; + } + }); + + st.end(); + }); + + t.test('receives the default encoder as a second argument', function (st) { + st.plan(2); + + qs.stringify({ a: 1 }, { + encoder: function (str, defaultEncoder) { + st.equal(defaultEncoder, utils.encode); + } + }); + + st.end(); + }); + + t.test('throws error with wrong encoder', function (st) { + st['throws'](function () { + qs.stringify({}, { encoder: 'string' }); + }, new TypeError('Encoder has to be a function.')); + st.end(); + }); + + t.test('can use custom encoder for a buffer object', { skip: typeof Buffer === 'undefined' }, function (st) { + st.equal(qs.stringify({ a: SaferBuffer.from([1]) }, { + encoder: function (buffer) { + if (typeof buffer === 'string') { + return buffer; + } + return String.fromCharCode(buffer.readUInt8(0) + 97); + } + }), 'a=b'); + + st.equal(qs.stringify({ a: SaferBuffer.from('a b') }, { + encoder: function (buffer) { + return buffer; + } + }), 'a=a b'); + st.end(); + }); + + t.test('serializeDate option', function (st) { + var date = new Date(); + st.equal( + qs.stringify({ a: date }), + 'a=' + date.toISOString().replace(/:/g, '%3A'), + 'default is toISOString' + ); + + var mutatedDate = new Date(); + mutatedDate.toISOString = function () { + throw new SyntaxError(); + }; + st['throws'](function () { + mutatedDate.toISOString(); + }, SyntaxError); + st.equal( + qs.stringify({ a: mutatedDate }), + 'a=' + Date.prototype.toISOString.call(mutatedDate).replace(/:/g, '%3A'), + 'toISOString works even when method is not locally present' + ); + + var specificDate = new Date(6); + st.equal( + qs.stringify( + { a: specificDate }, + { serializeDate: function (d) { return d.getTime() * 7; } } + ), + 'a=42', + 'custom serializeDate function called' + ); + + st.equal( + qs.stringify( + { a: [date] }, + { + serializeDate: function (d) { return d.getTime(); }, + arrayFormat: 'comma' + } + ), + 'a=' + date.getTime(), + 'works with arrayFormat comma' + ); + st.equal( + qs.stringify( + { a: [date] }, + { + serializeDate: function (d) { return d.getTime(); }, + arrayFormat: 'comma', + commaRoundTrip: true + } + ), + 'a%5B%5D=' + date.getTime(), + 'works with arrayFormat comma' + ); + + st.end(); + }); + + t.test('RFC 1738 serialization', function (st) { + st.equal(qs.stringify({ a: 'b c' }, { format: qs.formats.RFC1738 }), 'a=b+c'); + st.equal(qs.stringify({ 'a b': 'c d' }, { format: qs.formats.RFC1738 }), 'a+b=c+d'); + st.equal(qs.stringify({ 'a b': SaferBuffer.from('a b') }, { format: qs.formats.RFC1738 }), 'a+b=a+b'); + + st.equal(qs.stringify({ 'foo(ref)': 'bar' }, { format: qs.formats.RFC1738 }), 'foo(ref)=bar'); + + st.end(); + }); + + t.test('RFC 3986 spaces serialization', function (st) { + st.equal(qs.stringify({ a: 'b c' }, { format: qs.formats.RFC3986 }), 'a=b%20c'); + st.equal(qs.stringify({ 'a b': 'c d' }, { format: qs.formats.RFC3986 }), 'a%20b=c%20d'); + st.equal(qs.stringify({ 'a b': SaferBuffer.from('a b') }, { format: qs.formats.RFC3986 }), 'a%20b=a%20b'); + + st.end(); + }); + + t.test('Backward compatibility to RFC 3986', function (st) { + st.equal(qs.stringify({ a: 'b c' }), 'a=b%20c'); + st.equal(qs.stringify({ 'a b': SaferBuffer.from('a b') }), 'a%20b=a%20b'); + + st.end(); + }); + + t.test('Edge cases and unknown formats', function (st) { + ['UFO1234', false, 1234, null, {}, []].forEach(function (format) { + st['throws']( + function () { + qs.stringify({ a: 'b c' }, { format: format }); + }, + new TypeError('Unknown format option provided.') + ); + }); + st.end(); + }); + + t.test('encodeValuesOnly', function (st) { + st.equal( + qs.stringify( + { a: 'b', c: ['d', 'e=f'], f: [['g'], ['h']] }, + { encodeValuesOnly: true, arrayFormat: 'indices' } + ), + 'a=b&c[0]=d&c[1]=e%3Df&f[0][0]=g&f[1][0]=h', + 'encodeValuesOnly + indices' + ); + st.equal( + qs.stringify( + { a: 'b', c: ['d', 'e=f'], f: [['g'], ['h']] }, + { encodeValuesOnly: true, arrayFormat: 'brackets' } + ), + 'a=b&c[]=d&c[]=e%3Df&f[][]=g&f[][]=h', + 'encodeValuesOnly + brackets' + ); + st.equal( + qs.stringify( + { a: 'b', c: ['d', 'e=f'], f: [['g'], ['h']] }, + { encodeValuesOnly: true, arrayFormat: 'repeat' } + ), + 'a=b&c=d&c=e%3Df&f=g&f=h', + 'encodeValuesOnly + repeat' + ); + + st.equal( + qs.stringify( + { a: 'b', c: ['d', 'e'], f: [['g'], ['h']] }, + { arrayFormat: 'indices' } + ), + 'a=b&c%5B0%5D=d&c%5B1%5D=e&f%5B0%5D%5B0%5D=g&f%5B1%5D%5B0%5D=h', + 'no encodeValuesOnly + indices' + ); + st.equal( + qs.stringify( + { a: 'b', c: ['d', 'e'], f: [['g'], ['h']] }, + { arrayFormat: 'brackets' } + ), + 'a=b&c%5B%5D=d&c%5B%5D=e&f%5B%5D%5B%5D=g&f%5B%5D%5B%5D=h', + 'no encodeValuesOnly + brackets' + ); + st.equal( + qs.stringify( + { a: 'b', c: ['d', 'e'], f: [['g'], ['h']] }, + { arrayFormat: 'repeat' } + ), + 'a=b&c=d&c=e&f=g&f=h', + 'no encodeValuesOnly + repeat' + ); + + st.end(); + }); + + t.test('encodeValuesOnly - strictNullHandling', function (st) { + st.equal( + qs.stringify( + { a: { b: null } }, + { encodeValuesOnly: true, strictNullHandling: true } + ), + 'a[b]' + ); + st.end(); + }); + + t.test('strictNullHandling: applies the formatter to the encoded key (RFC1738)', function (st) { + st.equal( + qs.stringify( + { 'a b': null, 'c d': 'e f' }, + { strictNullHandling: false, format: 'RFC1738' } + ), + 'a+b=&c+d=e+f', + 'without: as expected' + ); + + st.equal( + qs.stringify( + { 'a b': null, 'c d': 'e f' }, + { strictNullHandling: true, format: 'RFC1738' } + ), + 'a+b&c+d=e+f', + 'with: as expected' + ); + + st.end(); + }); + + t.test('throws if an invalid charset is specified', function (st) { + st['throws'](function () { + qs.stringify({ a: 'b' }, { charset: 'foobar' }); + }, new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined')); + st.end(); + }); + + t.test('respects a charset of iso-8859-1', function (st) { + st.equal(qs.stringify({ æ: 'æ' }, { charset: 'iso-8859-1' }), '%E6=%E6'); + st.end(); + }); + + t.test('encodes unrepresentable chars as numeric entities in iso-8859-1 mode', function (st) { + st.equal(qs.stringify({ a: '☺' }, { charset: 'iso-8859-1' }), 'a=%26%239786%3B'); + st.end(); + }); + + t.test('respects an explicit charset of utf-8 (the default)', function (st) { + st.equal(qs.stringify({ a: 'æ' }, { charset: 'utf-8' }), 'a=%C3%A6'); + st.end(); + }); + + t.test('`charsetSentinel` option', function (st) { + st.equal( + qs.stringify({ a: 'æ' }, { charsetSentinel: true, charset: 'utf-8' }), + 'utf8=%E2%9C%93&a=%C3%A6', + 'adds the right sentinel when instructed to and the charset is utf-8' + ); + + st.equal( + qs.stringify({ a: 'æ' }, { charsetSentinel: true, charset: 'iso-8859-1' }), + 'utf8=%26%2310003%3B&a=%E6', + 'adds the right sentinel when instructed to and the charset is iso-8859-1' + ); + + st.equal( + qs.stringify({ a: 1, b: 2 }, { charsetSentinel: true, delimiter: ';' }), + 'utf8=%E2%9C%93;a=1;b=2', + 'uses the configured delimiter after the sentinel' + ); + + st.end(); + }); + + t.test('does not mutate the options argument', function (st) { + var options = {}; + qs.stringify({}, options); + st.deepEqual(options, {}); + st.end(); + }); + + t.test('strictNullHandling works with custom filter', function (st) { + var filter = function (prefix, value) { + return value; + }; + + var options = { strictNullHandling: true, filter: filter }; + st.equal(qs.stringify({ key: null }, options), 'key'); + st.end(); + }); + + t.test('strictNullHandling works with null serializeDate', function (st) { + var serializeDate = function () { + return null; + }; + var options = { strictNullHandling: true, serializeDate: serializeDate }; + var date = new Date(); + st.equal(qs.stringify({ key: date }, options), 'key'); + st.end(); + }); + + t.test('allows for encoding keys and values differently', function (st) { + var encoder = function (str, defaultEncoder, charset, type) { + if (type === 'key') { + return defaultEncoder(str, defaultEncoder, charset, type).toLowerCase(); + } + if (type === 'value') { + return defaultEncoder(str, defaultEncoder, charset, type).toUpperCase(); + } + throw 'this should never happen! type: ' + type; + }; + + st.deepEqual(qs.stringify({ KeY: 'vAlUe' }, { encoder: encoder }), 'key=VALUE'); + + var noopEncoder = function () { return 'x'; }; + noopEncoder(); + st['throws']( + function () { encoder('x', noopEncoder, 'utf-8', 'unknown'); }, + 'this should never happen! type: unknown', + 'encoder throws for unexpected type' + ); + + st.end(); + }); + + t.test('objects inside arrays', function (st) { + var obj = { a: { b: { c: 'd', e: 'f' } } }; + var withArray = { a: { b: [{ c: 'd', e: 'f' }] } }; + + st.equal(qs.stringify(obj, { encode: false }), 'a[b][c]=d&a[b][e]=f', 'no array, no arrayFormat'); + st.equal(qs.stringify(obj, { encode: false, arrayFormat: 'brackets' }), 'a[b][c]=d&a[b][e]=f', 'no array, bracket'); + st.equal(qs.stringify(obj, { encode: false, arrayFormat: 'indices' }), 'a[b][c]=d&a[b][e]=f', 'no array, indices'); + st.equal(qs.stringify(obj, { encode: false, arrayFormat: 'repeat' }), 'a[b][c]=d&a[b][e]=f', 'no array, repeat'); + st.equal(qs.stringify(obj, { encode: false, arrayFormat: 'comma' }), 'a[b][c]=d&a[b][e]=f', 'no array, comma'); + + st.equal(qs.stringify(withArray, { encode: false }), 'a[b][0][c]=d&a[b][0][e]=f', 'array, no arrayFormat'); + st.equal(qs.stringify(withArray, { encode: false, arrayFormat: 'brackets' }), 'a[b][][c]=d&a[b][][e]=f', 'array, bracket'); + st.equal(qs.stringify(withArray, { encode: false, arrayFormat: 'indices' }), 'a[b][0][c]=d&a[b][0][e]=f', 'array, indices'); + st.equal(qs.stringify(withArray, { encode: false, arrayFormat: 'repeat' }), 'a[b][c]=d&a[b][e]=f', 'array, repeat'); + st.equal( + qs.stringify(withArray, { encode: false, arrayFormat: 'comma' }), + '???', + 'array, comma', + { skip: 'TODO: figure out what this should do' } + ); + + st.end(); + }); + + t.test('stringifies sparse arrays', function (st) { + /* eslint no-sparse-arrays: 0 */ + st.equal(qs.stringify({ a: [, '2', , , '1'] }, { encodeValuesOnly: true, arrayFormat: 'indices' }), 'a[1]=2&a[4]=1'); + st.equal(qs.stringify({ a: [, '2', , , '1'] }, { encodeValuesOnly: true, arrayFormat: 'brackets' }), 'a[]=2&a[]=1'); + st.equal(qs.stringify({ a: [, '2', , , '1'] }, { encodeValuesOnly: true, arrayFormat: 'repeat' }), 'a=2&a=1'); + + st.equal(qs.stringify({ a: [, { b: [, , { c: '1' }] }] }, { encodeValuesOnly: true, arrayFormat: 'indices' }), 'a[1][b][2][c]=1'); + st.equal(qs.stringify({ a: [, { b: [, , { c: '1' }] }] }, { encodeValuesOnly: true, arrayFormat: 'brackets' }), 'a[][b][][c]=1'); + st.equal(qs.stringify({ a: [, { b: [, , { c: '1' }] }] }, { encodeValuesOnly: true, arrayFormat: 'repeat' }), 'a[b][c]=1'); + + st.equal(qs.stringify({ a: [, [, , [, , , { c: '1' }]]] }, { encodeValuesOnly: true, arrayFormat: 'indices' }), 'a[1][2][3][c]=1'); + st.equal(qs.stringify({ a: [, [, , [, , , { c: '1' }]]] }, { encodeValuesOnly: true, arrayFormat: 'brackets' }), 'a[][][][c]=1'); + st.equal(qs.stringify({ a: [, [, , [, , , { c: '1' }]]] }, { encodeValuesOnly: true, arrayFormat: 'repeat' }), 'a[c]=1'); + + st.equal(qs.stringify({ a: [, [, , [, , , { c: [, '1'] }]]] }, { encodeValuesOnly: true, arrayFormat: 'indices' }), 'a[1][2][3][c][1]=1'); + st.equal(qs.stringify({ a: [, [, , [, , , { c: [, '1'] }]]] }, { encodeValuesOnly: true, arrayFormat: 'brackets' }), 'a[][][][c][]=1'); + st.equal(qs.stringify({ a: [, [, , [, , , { c: [, '1'] }]]] }, { encodeValuesOnly: true, arrayFormat: 'repeat' }), 'a[c]=1'); + + st.end(); + }); + + t.test('encodes a very long string', function (st) { + var chars = []; + var expected = []; + for (var i = 0; i < 5e3; i++) { + chars.push(' ' + i); + + expected.push('%20' + i); + } + + var obj = { + foo: chars.join('') + }; + + st.equal( + qs.stringify(obj, { arrayFormat: 'brackets', charset: 'utf-8' }), + 'foo=' + expected.join('') + ); + + st.end(); + }); + + t.end(); +}); + +test('stringifies empty keys', function (t) { + emptyTestCases.forEach(function (testCase) { + t.test('stringifies an object with empty string key with ' + testCase.input, function (st) { + st.deepEqual( + qs.stringify(testCase.withEmptyKeys, { encode: false, arrayFormat: 'indices' }), + testCase.stringifyOutput.indices, + 'test case: ' + testCase.input + ', indices' + ); + st.deepEqual( + qs.stringify(testCase.withEmptyKeys, { encode: false, arrayFormat: 'brackets' }), + testCase.stringifyOutput.brackets, + 'test case: ' + testCase.input + ', brackets' + ); + st.deepEqual( + qs.stringify(testCase.withEmptyKeys, { encode: false, arrayFormat: 'repeat' }), + testCase.stringifyOutput.repeat, + 'test case: ' + testCase.input + ', repeat' + ); + + st.end(); + }); + }); + + t.test('edge case with object/arrays', function (st) { + st.deepEqual(qs.stringify({ '': { '': [2, 3] } }, { encode: false }), '[][0]=2&[][1]=3'); + st.deepEqual(qs.stringify({ '': { '': [2, 3], a: 2 } }, { encode: false }), '[][0]=2&[][1]=3&[a]=2'); + st.deepEqual(qs.stringify({ '': { '': [2, 3] } }, { encode: false, arrayFormat: 'indices' }), '[][0]=2&[][1]=3'); + st.deepEqual(qs.stringify({ '': { '': [2, 3], a: 2 } }, { encode: false, arrayFormat: 'indices' }), '[][0]=2&[][1]=3&[a]=2'); + + st.end(); + }); + + t.test('stringifies non-string keys', function (st) { + var S = Object('abc'); + S.toString = function () { + return 'd'; + }; + var actual = qs.stringify({ a: 'b', 'false': {}, 1e+22: 'c', d: 'e' }, { + filter: ['a', false, null, 10000000000000000000000, S], + allowDots: true, + encodeDotInKeys: true + }); + + st.equal(actual, 'a=b&1e%2B22=c&d=e', 'stringifies correctly'); + + st.end(); + }); + + t.test('round-trips keys containing percent-encoded bracket text', function (st) { + var cases = [ + { 'a%5Bb': 'c' }, + { 'a%5Db': 'c' }, + { 'a%255Bb': 'c' }, + { 'a%255Db': 'c' }, + { a: { 'b%5Bc': 'd' } }, + { a: { 'b%255Bc': 'd' } }, + { 'a%5B%255Bb': 'c' } + ]; + for (var i = 0; i < cases.length; i++) { + st.deepEqual( + qs.parse(qs.stringify(cases[i])), + cases[i], + 'round-trips ' + JSON.stringify(cases[i]) + ); + } + + st.end(); + }); + + t.test('parses input containing percent-encoded bracket text without mangling', function (st) { + st.deepEqual(qs.parse('a%25255Bb=c'), { 'a%255Bb': 'c' }, 'a%25255Bb decodes to a%255Bb, not a%5Bb'); + st.deepEqual(qs.parse('a%25255Db=c'), { 'a%255Db': 'c' }, 'a%25255Db decodes to a%255Db, not a%5Db'); + st.deepEqual(qs.parse('a%5Bb%25255Bc%5D=d'), { a: { 'b%255Bc': 'd' } }, 'nested %25255B decodes to %255B inside segment, not %5B'); + + st.end(); + }); +}); diff --git a/node_modules/qs/test/utils.js b/node_modules/qs/test/utils.js new file mode 100644 index 0000000000000000000000000000000000000000..049c0106dcbba004d5ea73a816abb1ed94477753 --- /dev/null +++ b/node_modules/qs/test/utils.js @@ -0,0 +1,432 @@ +'use strict'; + +var test = require('tape'); +var inspect = require('object-inspect'); +var SaferBuffer = require('safer-buffer').Buffer; +var forEach = require('for-each'); +var v = require('es-value-fixtures'); + +var utils = require('../lib/utils'); + +test('merge()', function (t) { + t.deepEqual(utils.merge(null, true), [null, true], 'merges true into null'); + + t.deepEqual(utils.merge(null, [42]), [null, 42], 'merges null into an array'); + + t.deepEqual(utils.merge({ a: 'b' }, { a: 'c' }), { a: ['b', 'c'] }, 'merges two objects with the same key'); + + var oneMerged = utils.merge({ foo: 'bar' }, { foo: { first: '123' } }); + t.deepEqual(oneMerged, { foo: ['bar', { first: '123' }] }, 'merges a standalone and an object into an array'); + + var twoMerged = utils.merge({ foo: ['bar', { first: '123' }] }, { foo: { second: '456' } }); + t.deepEqual(twoMerged, { foo: { 0: 'bar', 1: { first: '123' }, second: '456' } }, 'merges a standalone and two objects into an array'); + + var sandwiched = utils.merge({ foo: ['bar', { first: '123', second: '456' }] }, { foo: 'baz' }); + t.deepEqual(sandwiched, { foo: ['bar', { first: '123', second: '456' }, 'baz'] }, 'merges an object sandwiched by two standalones into an array'); + + var nestedArrays = utils.merge({ foo: ['baz'] }, { foo: ['bar', 'xyzzy'] }); + t.deepEqual(nestedArrays, { foo: ['baz', 'bar', 'xyzzy'] }); + + var noOptionsNonObjectSource = utils.merge({ foo: 'baz' }, 'bar'); + t.deepEqual(noOptionsNonObjectSource, { foo: 'baz', bar: true }); + + var func = function f() {}; + func(); + t.deepEqual( + utils.merge(func, { foo: 'bar' }), + [func, { foo: 'bar' }], + 'functions can not be merged into' + ); + + func.bar = 'baz'; + t.deepEqual( + utils.merge({ foo: 'bar' }, func), + { foo: 'bar', bar: 'baz' }, + 'functions can be merge sources' + ); + + t.test( + 'avoids invoking array setters unnecessarily', + { skip: typeof Object.defineProperty !== 'function' }, + function (st) { + var setCount = 0; + var getCount = 0; + var observed = []; + Object.defineProperty(observed, 0, { + get: function () { + getCount += 1; + return { bar: 'baz' }; + }, + set: function () { setCount += 1; } + }); + utils.merge(observed, [null]); + st.equal(setCount, 0); + st.equal(getCount, 1); + observed[0] = observed[0]; // eslint-disable-line no-self-assign + st.equal(setCount, 1); + st.equal(getCount, 2); + st.end(); + } + ); + + t.test('with overflow objects (from arrayLimit)', function (st) { + // arrayLimit is max index, so with limit 0, max index 0 is allowed (1 element) + // To create overflow, need 2+ elements with limit 0, or 3+ with limit 1, etc. + st.test('merges primitive into overflow object at next index', function (s2t) { + // Create an overflow object via combine: 3 elements (indices 0-2) with limit 0 + var overflow = utils.combine(['a', 'b'], 'c', 0, false); + s2t.ok(utils.isOverflow(overflow), 'overflow object is marked'); + var merged = utils.merge(overflow, 'd'); + s2t.deepEqual(merged, { 0: 'a', 1: 'b', 2: 'c', 3: 'd' }, 'adds primitive at next numeric index'); + s2t.end(); + }); + + st.test('merges primitive into regular object with numeric keys normally', function (s2t) { + var obj = { 0: 'a', 1: 'b' }; + s2t.notOk(utils.isOverflow(obj), 'plain object is not marked as overflow'); + var merged = utils.merge(obj, 'c'); + s2t.deepEqual(merged, { 0: 'a', 1: 'b', c: true }, 'adds primitive as key (not at next index)'); + s2t.end(); + }); + + st.test('merges primitive into object with non-numeric keys normally', function (s2t) { + var obj = { foo: 'bar' }; + var merged = utils.merge(obj, 'baz'); + s2t.deepEqual(merged, { foo: 'bar', baz: true }, 'adds primitive as key with value true'); + s2t.end(); + }); + + st.test('with strictMerge, wraps object and primitive in array', function (s2t) { + var obj = { foo: 'bar' }; + var merged = utils.merge(obj, 'baz', { strictMerge: true }); + s2t.deepEqual(merged, [{ foo: 'bar' }, 'baz'], 'wraps in array with strictMerge'); + s2t.end(); + }); + + st.test('merges overflow object into primitive', function (s2t) { + // Create an overflow object via combine: 2 elements (indices 0-1) with limit 0 + var overflow = utils.combine(['a'], 'b', 0, false); + s2t.ok(utils.isOverflow(overflow), 'overflow object is marked'); + var merged = utils.merge('c', overflow); + s2t.ok(utils.isOverflow(merged), 'result is also marked as overflow'); + s2t.deepEqual(merged, { 0: 'c', 1: 'a', 2: 'b' }, 'creates object with primitive at 0, source values shifted'); + s2t.end(); + }); + + st.test('merges overflow object into primitive with plainObjects', function (s2t) { + var overflow = utils.combine(['a'], 'b', 0, false); + s2t.ok(utils.isOverflow(overflow), 'overflow object is marked'); + var merged = utils.merge('c', overflow, { plainObjects: true }); + s2t.ok(utils.isOverflow(merged), 'result is also marked as overflow'); + s2t.deepEqual(merged, { __proto__: null, 0: 'c', 1: 'a', 2: 'b' }, 'creates null-proto object with primitive at 0'); + s2t.end(); + }); + + st.test('merges overflow object with multiple values into primitive', function (s2t) { + // Create an overflow object via combine: 3 elements (indices 0-2) with limit 0 + var overflow = utils.combine(['b', 'c'], 'd', 0, false); + s2t.ok(utils.isOverflow(overflow), 'overflow object is marked'); + var merged = utils.merge('a', overflow); + s2t.deepEqual(merged, { 0: 'a', 1: 'b', 2: 'c', 3: 'd' }, 'shifts all source indices by 1'); + s2t.end(); + }); + + st.test('merges regular object into primitive as array', function (s2t) { + var obj = { foo: 'bar' }; + var merged = utils.merge('a', obj); + s2t.deepEqual(merged, ['a', { foo: 'bar' }], 'creates array with primitive and object'); + s2t.end(); + }); + + st.test('merges primitive into array that exceeds arrayLimit', function (s2t) { + var arr = ['a', 'b', 'c']; + var merged = utils.merge(arr, 'd', { arrayLimit: 1 }); + s2t.ok(utils.isOverflow(merged), 'result is marked as overflow'); + s2t.deepEqual(merged, { 0: 'a', 1: 'b', 2: 'c', 3: 'd' }, 'converts to overflow object with primitive appended'); + s2t.end(); + }); + + st.test('merges array into primitive that exceeds arrayLimit', function (s2t) { + var merged = utils.merge('a', ['b', 'c'], { arrayLimit: 1 }); + s2t.ok(utils.isOverflow(merged), 'result is marked as overflow'); + s2t.deepEqual(merged, { 0: 'a', 1: 'b', 2: 'c' }, 'converts to overflow object'); + s2t.end(); + }); + + st.end(); + }); + + t.end(); +}); + +test('assign()', function (t) { + var target = { a: 1, b: 2 }; + var source = { b: 3, c: 4 }; + var result = utils.assign(target, source); + + t.equal(result, target, 'returns the target'); + t.deepEqual(target, { a: 1, b: 3, c: 4 }, 'target and source are merged'); + t.deepEqual(source, { b: 3, c: 4 }, 'source is untouched'); + + t.end(); +}); + +test('combine()', function (t) { + t.test('both arrays', function (st) { + var a = [1]; + var b = [2]; + var combined = utils.combine(a, b); + + st.deepEqual(a, [1], 'a is not mutated'); + st.deepEqual(b, [2], 'b is not mutated'); + st.notEqual(a, combined, 'a !== combined'); + st.notEqual(b, combined, 'b !== combined'); + st.deepEqual(combined, [1, 2], 'combined is a + b'); + + st.end(); + }); + + t.test('one array, one non-array', function (st) { + var aN = 1; + var a = [aN]; + var bN = 2; + var b = [bN]; + + var combinedAnB = utils.combine(aN, b); + st.deepEqual(b, [bN], 'b is not mutated'); + st.notEqual(aN, combinedAnB, 'aN + b !== aN'); + st.notEqual(a, combinedAnB, 'aN + b !== a'); + st.notEqual(bN, combinedAnB, 'aN + b !== bN'); + st.notEqual(b, combinedAnB, 'aN + b !== b'); + st.deepEqual([1, 2], combinedAnB, 'first argument is array-wrapped when not an array'); + + var combinedABn = utils.combine(a, bN); + st.deepEqual(a, [aN], 'a is not mutated'); + st.notEqual(aN, combinedABn, 'a + bN !== aN'); + st.notEqual(a, combinedABn, 'a + bN !== a'); + st.notEqual(bN, combinedABn, 'a + bN !== bN'); + st.notEqual(b, combinedABn, 'a + bN !== b'); + st.deepEqual([1, 2], combinedABn, 'second argument is array-wrapped when not an array'); + + st.end(); + }); + + t.test('neither is an array', function (st) { + var combined = utils.combine(1, 2); + st.notEqual(1, combined, '1 + 2 !== 1'); + st.notEqual(2, combined, '1 + 2 !== 2'); + st.deepEqual([1, 2], combined, 'both arguments are array-wrapped when not an array'); + + st.end(); + }); + + t.test('with arrayLimit', function (st) { + st.test('under the limit', function (s2t) { + var combined = utils.combine(['a', 'b'], 'c', 10, false); + s2t.deepEqual(combined, ['a', 'b', 'c'], 'returns array when under limit'); + s2t.ok(Array.isArray(combined), 'result is an array'); + s2t.end(); + }); + + st.test('exactly at the limit stays as array', function (s2t) { + var combined = utils.combine(['a', 'b'], 'c', 3, false); + s2t.deepEqual(combined, ['a', 'b', 'c'], 'stays as array when count equals limit'); + s2t.ok(Array.isArray(combined), 'result is an array'); + s2t.end(); + }); + + st.test('over the limit', function (s2t) { + var combined = utils.combine(['a', 'b', 'c'], 'd', 3, false); + s2t.deepEqual(combined, { 0: 'a', 1: 'b', 2: 'c', 3: 'd' }, 'converts to object when over limit'); + s2t.notOk(Array.isArray(combined), 'result is not an array'); + s2t.end(); + }); + + st.test('with arrayLimit 1', function (s2t) { + var combined = utils.combine([], 'a', 1, false); + s2t.deepEqual(combined, ['a'], 'stays as array when count equals limit'); + s2t.ok(Array.isArray(combined), 'result is an array'); + s2t.end(); + }); + + st.test('with arrayLimit 0 converts single element to object', function (s2t) { + var combined = utils.combine([], 'a', 0, false); + s2t.deepEqual(combined, { 0: 'a' }, 'converts to object when count exceeds limit'); + s2t.notOk(Array.isArray(combined), 'result is not an array'); + s2t.end(); + }); + + st.test('with arrayLimit 0 and two elements converts to object', function (s2t) { + var combined = utils.combine(['a'], 'b', 0, false); + s2t.deepEqual(combined, { 0: 'a', 1: 'b' }, 'converts to object when count exceeds limit'); + s2t.notOk(Array.isArray(combined), 'result is not an array'); + s2t.end(); + }); + + st.test('with plainObjects option', function (s2t) { + var combined = utils.combine(['a', 'b'], 'c', 1, true); + var expected = { __proto__: null, 0: 'a', 1: 'b', 2: 'c' }; + s2t.deepEqual(combined, expected, 'converts to object with null prototype'); + s2t.equal(Object.getPrototypeOf(combined), null, 'result has null prototype when plainObjects is true'); + s2t.end(); + }); + + st.end(); + }); + + t.test('with existing overflow object', function (st) { + st.test('adds to existing overflow object at next index', function (s2t) { + // Create overflow object first via combine: 3 elements (indices 0-2) with limit 0 + var overflow = utils.combine(['a', 'b'], 'c', 0, false); + s2t.ok(utils.isOverflow(overflow), 'initial object is marked as overflow'); + + var combined = utils.combine(overflow, 'd', 10, false); + s2t.equal(combined, overflow, 'returns the same object (mutated)'); + s2t.deepEqual(combined, { 0: 'a', 1: 'b', 2: 'c', 3: 'd' }, 'adds value at next numeric index'); + s2t.end(); + }); + + st.test('does not treat plain object with numeric keys as overflow', function (s2t) { + var plainObj = { 0: 'a', 1: 'b' }; + s2t.notOk(utils.isOverflow(plainObj), 'plain object is not marked as overflow'); + + // combine treats this as a regular value, not an overflow object to append to + var combined = utils.combine(plainObj, 'c', 10, false); + s2t.deepEqual(combined, [{ 0: 'a', 1: 'b' }, 'c'], 'concatenates as regular values'); + s2t.end(); + }); + + st.end(); + }); + + t.end(); +}); + +test('decode', function (t) { + t.equal( + utils.decode('a+b'), + 'a b', + 'decodes + to space' + ); + + t.equal( + utils.decode('name%2Eobj'), + 'name.obj', + 'decodes a string' + ); + t.equal( + utils.decode('name%2Eobj%2Efoo', null, 'iso-8859-1'), + 'name.obj.foo', + 'decodes a string in iso-8859-1' + ); + + t.end(); +}); + +test('encode', function (t) { + forEach(v.nullPrimitives, function (nullish) { + t['throws']( + function () { utils.encode(nullish); }, + TypeError, + inspect(nullish) + ' is not a string' + ); + }); + + t.equal(utils.encode(''), '', 'empty string returns itself'); + t.deepEqual(utils.encode([]), [], 'empty array returns itself'); + t.deepEqual(utils.encode({ length: 0 }), { length: 0 }, 'empty arraylike returns itself'); + + t.test('symbols', { skip: !v.hasSymbols }, function (st) { + st.equal(utils.encode(Symbol('x')), 'Symbol%28x%29', 'symbol is encoded'); + + st.end(); + }); + + t.equal( + utils.encode('(abc)'), + '%28abc%29', + 'encodes parentheses' + ); + t.equal( + utils.encode({ toString: function () { return '(abc)'; } }), + '%28abc%29', + 'toStrings and encodes parentheses' + ); + + t.equal( + utils.encode('abc 123 💩', null, 'iso-8859-1'), + 'abc%20123%20%26%2355357%3B%26%2356489%3B', + 'encodes in iso-8859-1' + ); + + var longString = ''; + var expectedString = ''; + for (var i = 0; i < 1500; i++) { + longString += ' '; + expectedString += '%20'; + } + + t.equal( + utils.encode(longString), + expectedString, + 'encodes a long string' + ); + + t.equal( + utils.encode('\x28\x29'), + '%28%29', + 'encodes parens normally' + ); + t.equal( + utils.encode('\x28\x29', null, null, null, 'RFC1738'), + '()', + 'does not encode parens in RFC1738' + ); + + // todo RFC1738 format + + t.equal( + utils.encode('Āက豈'), + '%C4%80%E1%80%80%EF%A4%80', + 'encodes multibyte chars' + ); + + t.equal( + utils.encode('\uD83D \uDCA9'), + '%F0%9F%90%A0%F0%BA%90%80', + 'encodes lone surrogates' + ); + + t.end(); +}); + +test('isBuffer()', function (t) { + var fn = function () {}; + fn(); + forEach([null, undefined, true, false, '', 'abc', 42, 0, NaN, {}, [], fn, /a/g], function (x) { + t.equal(utils.isBuffer(x), false, inspect(x) + ' is not a buffer'); + }); + + var fakeBuffer = { constructor: Buffer }; + t.equal(utils.isBuffer(fakeBuffer), false, 'fake buffer is not a buffer'); + + var saferBuffer = SaferBuffer.from('abc'); + t.equal(utils.isBuffer(saferBuffer), true, 'SaferBuffer instance is a buffer'); + + var buffer = SaferBuffer.from('abc'); + t.notEqual(saferBuffer, buffer, 'different buffer instances'); + t.equal(utils.isBuffer(buffer), true, 'another Buffer instance is a buffer'); + t.end(); +}); + +test('isRegExp()', function (t) { + t.equal(utils.isRegExp(/a/g), true, 'RegExp is a RegExp'); + t.equal(utils.isRegExp(new RegExp('a', 'g')), true, 'new RegExp is a RegExp'); + t.equal(utils.isRegExp(new Date()), false, 'Date is not a RegExp'); + + forEach(v.primitives, function (primitive) { + t.equal(utils.isRegExp(primitive), false, inspect(primitive) + ' is not a RegExp'); + }); + + t.end(); +}); diff --git a/node_modules/quansync/LICENSE.md b/node_modules/quansync/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..231d850f18e388f0431568891e84c13b540d6ffc --- /dev/null +++ b/node_modules/quansync/LICENSE.md @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2025-PRESENT Anthony Fu and Kevin Deng + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/node_modules/quansync/README.md b/node_modules/quansync/README.md new file mode 100644 index 0000000000000000000000000000000000000000..f18df6b760713a5aef630763dabac003e1ff4b05 --- /dev/null +++ b/node_modules/quansync/README.md @@ -0,0 +1,144 @@ +# quansync + +[![npm version][npm-version-src]][npm-version-href] +[![npm downloads][npm-downloads-src]][npm-downloads-href] +[![bundle][bundle-src]][bundle-href] +[![JSDocs][jsdocs-src]][jsdocs-href] +[![License][license-src]][license-href] + +Create sync/async APIs with usable logic. + +**Quan**tum + **Sync** - "_Superposition_" between `sync` and `async`. + +- Typesafe +- ESM, modern JavaScript +- Zero dependencies + +Heavily inspired by [`genasync`](https://github.com/loganfsmyth/gensync) by [@loganfsmyth](https://github.com/loganfsmyth). + +## Why & How + +Please refer to Anthony's blog post: [**Async, Sync, in Between**](https://antfu.me/posts/async-sync-in-between). + +## Usage + +```bash +pnpm i quansync +``` + +```ts +import fs from 'node:fs' +import { quansync } from 'quansync' + +// Create a quansync function by providing `sync` and `async` implementations +const readFile = quansync({ + sync: (path: string) => fs.readFileSync(path), + async: (path: string) => fs.promises.readFile(path), +}) + +// Create a quansync function by providing a generator function +const myFunction = quansync(function* (filename) { + // Use `yield*` to call another quansync function + const code = yield* readFile(filename, 'utf8') + + return `// some custom prefix\n${code}` +}) + +// Use it as a sync function +const result = myFunction.sync('./some-file.js') + +// Use it as an async function +const asyncResult = await myFunction.async('./some-file.js') +``` + +### `getIsAsync` + +Returns a boolean indicating whether the current execution is in async mode. + +```ts +import { getIsAsync, quansync } from 'quansync' + +const fn = quansync(function* () { + const isAsync: boolean = yield* getIsAsync() + console.log(isAsync) +}) + +fn.sync() // false +await fn() // true +await fn.async() // true +``` + +## Build-time Macro + +If you don't like the `function*` and `yield*` syntax, we also provide a build-time macro via [unplugin-quansync](https://github.com/quansync-dev/unplugin-quansync#usage) allowing you use quansync with async/await syntax, while still able to get the sync version out of that. + +Here is an example: + +```ts +import fs from 'node:fs' +import { quansync } from 'quansync/macro' + +// Create a quansync function by providing `sync` and `async` implementations +const readFile = quansync({ + sync: (path: string) => fs.readFileSync(path), + async: (path: string) => fs.promises.readFile(path), +}) + +// Create a quansync function by providing an **async** function +const myFunction = quansync(async (filename) => { + // Use `await` to call another quansync function + const code = await readFile(filename, 'utf8') + + return `// some custom prefix\n${code}` +}) + +// Use it as a sync function +const result = myFunction.sync('./some-file.js') + +// Use it as an async function +const asyncResult = await myFunction.async('./some-file.js') +``` + +For more details on usage, refer to [unplugin-quansync's docs](https://github.com/unplugin/unplugin-quansync#usage). + +## Benchmark + +Run the following command to benchmark the performance of `quansync`: + +```bash +pnpm run build && pnpm run benchmark +``` + +Benchmark results indicate that each `yield` incurs an overhead of +approximately 150 ns, comparable to that of `await sync()`. (On Apple M1 Max) + +## Sponsors + +

+ + + +

+ +

+ + + +

+ +## License + +[MIT](./LICENSE) License © [Anthony Fu](https://github.com/antfu) and [Kevin Deng](https://github.com/sxzz) + + + +[npm-version-src]: https://img.shields.io/npm/v/quansync?style=flat&colorA=080f12&colorB=1fa669 +[npm-version-href]: https://npmjs.com/package/quansync +[npm-downloads-src]: https://img.shields.io/npm/dm/quansync?style=flat&colorA=080f12&colorB=1fa669 +[npm-downloads-href]: https://npmjs.com/package/quansync +[bundle-src]: https://img.shields.io/bundlephobia/minzip/quansync?style=flat&colorA=080f12&colorB=1fa669&label=minzip +[bundle-href]: https://bundlephobia.com/result?p=quansync +[license-src]: https://img.shields.io/github/license/antfu/quansync.svg?style=flat&colorA=080f12&colorB=1fa669 +[license-href]: https://github.com/antfu/quansync/blob/main/LICENSE +[jsdocs-src]: https://img.shields.io/badge/jsdocs-reference-080f12?style=flat&colorA=080f12&colorB=1fa669 +[jsdocs-href]: https://www.jsdocs.io/package/quansync diff --git a/node_modules/quansync/package.json b/node_modules/quansync/package.json new file mode 100644 index 0000000000000000000000000000000000000000..ac673340e7fc181cc2b01370d87dab6d384427f4 --- /dev/null +++ b/node_modules/quansync/package.json @@ -0,0 +1,85 @@ +{ + "name": "quansync", + "type": "module", + "version": "1.0.0", + "description": "Create sync/async APIs with usable logic", + "author": "Anthony Fu ", + "contributors": [ + { + "name": "Kevin Deng", + "email": "sxzz@sxzz.moe" + } + ], + "license": "MIT", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/antfu" + }, + { + "type": "individual", + "url": "https://github.com/sponsors/sxzz" + } + ], + "homepage": "https://github.com/quansync-dev/quansync#readme", + "repository": { + "type": "git", + "url": "git+https://github.com/quansync-dev/quansync.git" + }, + "bugs": "https://github.com/quansync-dev/quansync/issues", + "keywords": [ + "async", + "sync", + "generator" + ], + "sideEffects": false, + "exports": { + ".": "./dist/index.js", + "./macro": "./dist/macro.js", + "./package.json": "./package.json" + }, + "main": "./dist/index.js", + "module": "./dist/index.js", + "types": "./dist/index.d.ts", + "typesVersions": { + "*": { + "*": [ + "./dist/*.d.mts", + "./*" + ] + } + }, + "files": [ + "dist" + ], + "devDependencies": { + "@antfu/eslint-config": "^6.2.0", + "@types/node": "^24.10.1", + "@typescript/native-preview": "7.0.0-dev.20251202.1", + "bumpp": "^10.3.2", + "eslint": "^9.39.1", + "gensync": "1.0.0-beta.2", + "lint-staged": "^16.2.7", + "mitata": "^1.0.34", + "simple-git-hooks": "^2.13.1", + "tsdown": "^0.17.0-beta.5", + "typescript": "^5.9.3", + "vite": "^7.2.6", + "vitest": "^4.0.15" + }, + "simple-git-hooks": { + "pre-commit": "pnpm lint-staged" + }, + "lint-staged": { + "*": "eslint --fix" + }, + "scripts": { + "build": "tsdown", + "dev": "tsdown -w", + "lint": "eslint .", + "release": "bumpp", + "benchmark": "node scripts/benchmark.js", + "test": "vitest", + "typecheck": "tsgo --noEmit" + } +} \ No newline at end of file diff --git a/node_modules/queue-microtask/LICENSE b/node_modules/queue-microtask/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..c7e6852752b72edbf0eb6b2adef53f0863ae5876 --- /dev/null +++ b/node_modules/queue-microtask/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) Feross Aboukhadijeh + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/queue-microtask/README.md b/node_modules/queue-microtask/README.md new file mode 100644 index 0000000000000000000000000000000000000000..0be05a64f5aa1448ecf379ae25625c2ca573e912 --- /dev/null +++ b/node_modules/queue-microtask/README.md @@ -0,0 +1,90 @@ +# queue-microtask [![ci][ci-image]][ci-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url] + +[ci-image]: https://img.shields.io/github/workflow/status/feross/queue-microtask/ci/master +[ci-url]: https://github.com/feross/queue-microtask/actions +[npm-image]: https://img.shields.io/npm/v/queue-microtask.svg +[npm-url]: https://npmjs.org/package/queue-microtask +[downloads-image]: https://img.shields.io/npm/dm/queue-microtask.svg +[downloads-url]: https://npmjs.org/package/queue-microtask +[standard-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg +[standard-url]: https://standardjs.com + +### fast, tiny [`queueMicrotask`](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/queueMicrotask) shim for modern engines + +- Use [`queueMicrotask`](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/queueMicrotask) in all modern JS engines. +- No dependencies. Less than 10 lines. No shims or complicated fallbacks. +- Optimal performance in all modern environments + - Uses `queueMicrotask` in modern environments + - Fallback to `Promise.resolve().then(fn)` in Node.js 10 and earlier, and old browsers (same performance as `queueMicrotask`) + +## install + +``` +npm install queue-microtask +``` + +## usage + +```js +const queueMicrotask = require('queue-microtask') + +queueMicrotask(() => { /* this will run soon */ }) +``` + +## What is `queueMicrotask` and why would one use it? + +The `queueMicrotask` function is a WHATWG standard. It queues a microtask to be executed prior to control returning to the event loop. + +A microtask is a short function which will run after the current task has completed its work and when there is no other code waiting to be run before control of the execution context is returned to the event loop. + +The code `queueMicrotask(fn)` is equivalent to the code `Promise.resolve().then(fn)`. It is also very similar to [`process.nextTick(fn)`](https://nodejs.org/api/process.html#process_process_nexttick_callback_args) in Node. + +Using microtasks lets code run without interfering with any other, potentially higher priority, code that is pending, but before the JS engine regains control over the execution context. + +See the [spec](https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#microtask-queuing) or [Node documentation](https://nodejs.org/api/globals.html#globals_queuemicrotask_callback) for more information. + +## Who is this package for? + +This package allows you to use `queueMicrotask` safely in all modern JS engines. Use it if you prioritize small JS bundle size over support for old browsers. + +If you just need to support Node 12 and later, use `queueMicrotask` directly. If you need to support all versions of Node, use this package. + +## Why not use `process.nextTick`? + +In Node, `queueMicrotask` and `process.nextTick` are [essentially equivalent](https://nodejs.org/api/globals.html#globals_queuemicrotask_callback), though there are [subtle differences](https://github.com/YuzuJS/setImmediate#macrotasks-and-microtasks) that don't matter in most situations. + +You can think of `queueMicrotask` as a standardized version of `process.nextTick` that works in the browser. No need to rely on your browser bundler to shim `process` for the browser environment. + +## Why not use `setTimeout(fn, 0)`? + +This approach is the most compatible, but it has problems. Modern browsers throttle timers severely, so `setTimeout(…, 0)` usually takes at least 4ms to run. Furthermore, the throttling gets even worse if the page is backgrounded. If you have many `setTimeout` calls, then this can severely limit the performance of your program. + +## Why not use a microtask library like [`immediate`](https://www.npmjs.com/package/immediate) or [`asap`](https://www.npmjs.com/package/asap)? + +These packages are great! However, if you prioritize small JS bundle size over optimal performance in old browsers then you may want to consider this package. + +This package (`queue-microtask`) is four times smaller than `immediate`, twice as small as `asap`, and twice as small as using `process.nextTick` and letting the browser bundler shim it automatically. + +Note: This package throws an exception in JS environments which lack `Promise` support -- which are usually very old browsers and Node.js versions. + +Since the `queueMicrotask` API is supported in Node.js, Chrome, Firefox, Safari, Opera, and Edge, **the vast majority of users will get optimal performance**. Any JS environment with `Promise`, which is almost all of them, also get optimal performance. If you need support for JS environments which lack `Promise` support, use one of the alternative packages. + +## What is a shim? + +> In computer programming, a shim is a library that transparently intercepts API calls and changes the arguments passed, handles the operation itself or redirects the operation elsewhere. – [Wikipedia](https://en.wikipedia.org/wiki/Shim_(computing)) + +This package could also be described as a "ponyfill". + +> A ponyfill is almost the same as a polyfill, but not quite. Instead of patching functionality for older browsers, a ponyfill provides that functionality as a standalone module you can use. – [PonyFoo](https://ponyfoo.com/articles/polyfills-or-ponyfills) + +## API + +### `queueMicrotask(fn)` + +The `queueMicrotask()` method queues a microtask. + +The `fn` argument is a function to be executed after all pending tasks have completed but before yielding control to the browser's event loop. + +## license + +MIT. Copyright (c) [Feross Aboukhadijeh](https://feross.org). diff --git a/node_modules/queue-microtask/index.d.ts b/node_modules/queue-microtask/index.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..b6a864632282d84d7a87c19488604e0c753588e7 --- /dev/null +++ b/node_modules/queue-microtask/index.d.ts @@ -0,0 +1,2 @@ +declare const queueMicrotask: (cb: () => void) => void +export = queueMicrotask diff --git a/node_modules/queue-microtask/index.js b/node_modules/queue-microtask/index.js new file mode 100644 index 0000000000000000000000000000000000000000..55605343a2defd5f8567f0b564d32e22e2e7556f --- /dev/null +++ b/node_modules/queue-microtask/index.js @@ -0,0 +1,9 @@ +/*! queue-microtask. MIT License. Feross Aboukhadijeh */ +let promise + +module.exports = typeof queueMicrotask === 'function' + ? queueMicrotask.bind(typeof window !== 'undefined' ? window : global) + // reuse resolved promise, and allocate it lazily + : cb => (promise || (promise = Promise.resolve())) + .then(cb) + .catch(err => setTimeout(() => { throw err }, 0)) diff --git a/node_modules/queue-microtask/package.json b/node_modules/queue-microtask/package.json new file mode 100644 index 0000000000000000000000000000000000000000..d29a401f5178a60ac1ccd1ef6227d09df3cbef59 --- /dev/null +++ b/node_modules/queue-microtask/package.json @@ -0,0 +1,55 @@ +{ + "name": "queue-microtask", + "description": "fast, tiny `queueMicrotask` shim for modern engines", + "version": "1.2.3", + "author": { + "name": "Feross Aboukhadijeh", + "email": "feross@feross.org", + "url": "https://feross.org" + }, + "bugs": { + "url": "https://github.com/feross/queue-microtask/issues" + }, + "devDependencies": { + "standard": "*", + "tape": "^5.2.2" + }, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "homepage": "https://github.com/feross/queue-microtask", + "keywords": [ + "asap", + "immediate", + "micro task", + "microtask", + "nextTick", + "process.nextTick", + "queue micro task", + "queue microtask", + "queue-microtask", + "queueMicrotask", + "setImmediate", + "task" + ], + "license": "MIT", + "main": "index.js", + "repository": { + "type": "git", + "url": "git://github.com/feross/queue-microtask.git" + }, + "scripts": { + "test": "standard && tape test/*.js" + } +} diff --git a/node_modules/queue/LICENSE b/node_modules/queue/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..50e9460986256279546acd8da5f41f8130f7b53b --- /dev/null +++ b/node_modules/queue/LICENSE @@ -0,0 +1,8 @@ +The MIT License (MIT) +Copyright (c) 2014 Jesse Tane + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/queue/index.d.ts b/node_modules/queue/index.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..560d65209a4ce19d0792d604927e78dbb5f9dce8 --- /dev/null +++ b/node_modules/queue/index.d.ts @@ -0,0 +1,173 @@ +// Type definitions for Queue 4.5.1 +// Project: https://github.com/jessetane/queue +// Definitions by: Alex Miller + +import { EventEmitter } from "events"; + +export interface Options { + /** + * Max number of jobs the queue should process concurrently. + * + * @default Infinity + */ + concurrency?: number; + + /** + * Milliseconds to wait for a job to execute its callback. + * + * @default 0 + */ + timeout?: number; + + /** + * Ensures the queue is always running if jobs are available. Useful in situations where you are using a queue only for concurrency control. + * + * @default false + */ + autostart?: boolean; + + /** + * An array to set job callback arguments on. + * + * @default null + */ + results?: any[]; +} + +interface Queue extends EventEmitter { + /** + * Max number of jobs the queue should process concurrently. + */ + concurrency: number; + + /** + * Milliseconds to wait for a job to execute its callback. + */ + timeout: number; + + /** + * Ensures the queue is always running if jobs are available. + */ + autostart: boolean; + + /** + * An array to set job callback arguments on. + */ + results: any[] | null; + + /** + * Jobs pending + jobs to process. + */ + readonly length: number; + + /** + * Adds one or more elements to the end of the Queue and returns the new length of the Queue. + * + * @param workers New workers of the Queue. + */ + push(...workers: QueueWorker[]): number; + + /** + * Adds one or more elements to the front of the Queue and returns the new length of the Queue. + * + * @param workers Workers to insert at the start of the Queue. + */ + unshift(...workers: QueueWorker[]): number; + + /** + * Adds and/or removes elements from the queue. + * + * @param start The zero-based location in the Queue from which to start removing elements. + * @param deleteCount The number of elements to remove. + */ + splice(start: number, deleteCount?: number): Queue; + + /** + * Adds and/or removes elements from the queue. + * + * @param start The zero-based location in the Queue from which to start removing elements. + * @param deleteCount The number of elements to remove. + * @param workers Workers to insert into the Queue in place of the deleted elements. + */ + splice(start: number, deleteCount: number, ...workers: QueueWorker[]): Queue; + + /** + * Removes the last element from the Queue and returns that element. + */ + pop(): QueueWorker | undefined; + + /** + * Removes the first element from the Queue and returns that element. + */ + shift(): QueueWorker | undefined; + + /** + * Extracts a section of the Queue and returns Queue. + * + * @param start The beginning of the specified portion of the Queue. + * @param end The end of the specified portion of the Queue. + */ + slice(start?: number, end?: number): Queue; + + /** + * Reverses the order of the elements of the Queue in place. + */ + reverse(): Queue; + + /** + * Returns the first (least) index of an element within the Queue equal to the specified value, or -1 if none is found. + * + * @param searchElement The value to locate in the Queue. + * @param fromIndex The Queue index at which to begin the search. If omitted, the search starts at index 0. + */ + indexOf(searchElement: QueueWorker, fromIndex?: number): number; + + /** + * Returns the last (greatest) index of an element within the Queue equal to the specified value, or -1 if none is found. + * + * @param searchElement The value to locate in the Queue. + * @param fromIndex The Queue index at which to begin the search. If omitted, the search starts at the last index in the Queue. + */ + lastIndexOf(searchElement: QueueWorker, fromIndex?: number): number; + + /** + * Starts the queue. + * + * @param callback Callback to be called when the queue empties or when an error occurs. + */ + start(callback?: (error?: Error) => void): void; + + /** + * Stops the queue. + */ + stop(): void; + + /** + * Stop and empty the queue immediately. + * + * @param error error of why the stop has occurred, to be passed to start callback if supplied. + */ + end(error?: Error): void; +} + +interface QueueConstructor { + (options?: Options): Queue; + new (options?: Options): Queue; +} + +declare const Queue: QueueConstructor; + +export default Queue; + +export interface QueueWorker { + (callback?: QueueWorkerCallback): void; + + /** + * Override queue timeout. + */ + timeout?: number; +} + +export interface QueueWorkerCallback { + (error?: Error, data?: Object): void; +} diff --git a/node_modules/queue/index.js b/node_modules/queue/index.js new file mode 100644 index 0000000000000000000000000000000000000000..990d1d11f19bb3ced1cdc38695c02f5ff5d4d7f3 --- /dev/null +++ b/node_modules/queue/index.js @@ -0,0 +1,195 @@ +var inherits = require('inherits') +var EventEmitter = require('events').EventEmitter + +module.exports = Queue +module.exports.default = Queue + +function Queue (options) { + if (!(this instanceof Queue)) { + return new Queue(options) + } + + EventEmitter.call(this) + options = options || {} + this.concurrency = options.concurrency || Infinity + this.timeout = options.timeout || 0 + this.autostart = options.autostart || false + this.results = options.results || null + this.pending = 0 + this.session = 0 + this.running = false + this.jobs = [] + this.timers = {} +} +inherits(Queue, EventEmitter) + +var arrayMethods = [ + 'pop', + 'shift', + 'indexOf', + 'lastIndexOf' +] + +arrayMethods.forEach(function (method) { + Queue.prototype[method] = function () { + return Array.prototype[method].apply(this.jobs, arguments) + } +}) + +Queue.prototype.slice = function (begin, end) { + this.jobs = this.jobs.slice(begin, end) + return this +} + +Queue.prototype.reverse = function () { + this.jobs.reverse() + return this +} + +var arrayAddMethods = [ + 'push', + 'unshift', + 'splice' +] + +arrayAddMethods.forEach(function (method) { + Queue.prototype[method] = function () { + var methodResult = Array.prototype[method].apply(this.jobs, arguments) + if (this.autostart) { + this.start() + } + return methodResult + } +}) + +Object.defineProperty(Queue.prototype, 'length', { + get: function () { + return this.pending + this.jobs.length + } +}) + +Queue.prototype.start = function (cb) { + if (cb) { + callOnErrorOrEnd.call(this, cb) + } + + this.running = true + + if (this.pending >= this.concurrency) { + return + } + + if (this.jobs.length === 0) { + if (this.pending === 0) { + done.call(this) + } + return + } + + var self = this + var job = this.jobs.shift() + var once = true + var session = this.session + var timeoutId = null + var didTimeout = false + var resultIndex = null + var timeout = job.hasOwnProperty('timeout') ? job.timeout : this.timeout + + function next (err, result) { + if (once && self.session === session) { + once = false + self.pending-- + if (timeoutId !== null) { + delete self.timers[timeoutId] + clearTimeout(timeoutId) + } + + if (err) { + self.emit('error', err, job) + } else if (didTimeout === false) { + if (resultIndex !== null) { + self.results[resultIndex] = Array.prototype.slice.call(arguments, 1) + } + self.emit('success', result, job) + } + + if (self.session === session) { + if (self.pending === 0 && self.jobs.length === 0) { + done.call(self) + } else if (self.running) { + self.start() + } + } + } + } + + if (timeout) { + timeoutId = setTimeout(function () { + didTimeout = true + if (self.listeners('timeout').length > 0) { + self.emit('timeout', next, job) + } else { + next() + } + }, timeout) + this.timers[timeoutId] = timeoutId + } + + if (this.results) { + resultIndex = this.results.length + this.results[resultIndex] = null + } + + this.pending++ + self.emit('start', job) + var promise = job(next) + if (promise && promise.then && typeof promise.then === 'function') { + promise.then(function (result) { + return next(null, result) + }).catch(function (err) { + return next(err || true) + }) + } + + if (this.running && this.jobs.length > 0) { + this.start() + } +} + +Queue.prototype.stop = function () { + this.running = false +} + +Queue.prototype.end = function (err) { + clearTimers.call(this) + this.jobs.length = 0 + this.pending = 0 + done.call(this, err) +} + +function clearTimers () { + for (var key in this.timers) { + var timeoutId = this.timers[key] + delete this.timers[key] + clearTimeout(timeoutId) + } +} + +function callOnErrorOrEnd (cb) { + var self = this + this.on('error', onerror) + this.on('end', onend) + + function onerror (err) { self.end(err) } + function onend (err) { + self.removeListener('error', onerror) + self.removeListener('end', onend) + cb(err, this.results) + } +} + +function done (err) { + this.session++ + this.running = false + this.emit('end', err) +} diff --git a/node_modules/queue/package.json b/node_modules/queue/package.json new file mode 100644 index 0000000000000000000000000000000000000000..13097c123596e2cd1296775f99ce382d5313c1b5 --- /dev/null +++ b/node_modules/queue/package.json @@ -0,0 +1,43 @@ +{ + "name": "queue", + "version": "6.0.2", + "description": "asynchronous function queue with adjustable concurrency", + "keywords": [ + "queue", + "async", + "asynchronous", + "synchronous", + "job", + "task", + "concurrency", + "concurrent" + ], + "files": [ + "index.js", + "index.d.ts" + ], + "dependencies": { + "inherits": "~2.0.3" + }, + "devDependencies": { + "@types/node": "*", + "browserify": "^16.2.3", + "coveralls": "^3.0.3", + "istanbul": "^0.4.5", + "standard": "^12.0.1", + "tape": "^4.10.1", + "tsd-check": "*", + "typescript": "^3.3.3333" + }, + "scripts": { + "test": "standard && node test && tsd-check", + "test-browser": "standard && browserify test/index.js > test/bundle.js && echo \"open test/index.html in your browser\"", + "travis": "standard && istanbul cover test --report lcovonly && cat coverage/lcov.info | coveralls", + "travis-ts": "tsc test/typescript.ts --m System --out /dev/null && echo 'TypeScript compilation passed.'", + "example": "node example", + "lint": "standard" + }, + "repository": "https://github.com/jessetane/queue.git", + "author": "Jesse Tane ", + "license": "MIT" +} diff --git a/node_modules/queue/readme.md b/node_modules/queue/readme.md new file mode 100644 index 0000000000000000000000000000000000000000..687485f2d3bf8540e76145307e4bc630b33e15e4 --- /dev/null +++ b/node_modules/queue/readme.md @@ -0,0 +1,221 @@ +``` + ____ __ _____ __ _____ + / __ `/ / / / _ \/ / / / _ \ + / /_/ / /_/ / __/ /_/ / __/ + \__, /\__,_/\___/\__,_/\___/ + /_/ +``` +Asynchronous function queue with adjustable concurrency. + +[![npm](http://img.shields.io/npm/v/queue.svg?style=flat-square)](http://www.npmjs.org/queue) +[![tests](https://img.shields.io/travis/jessetane/queue.svg?style=flat-square&branch=master)](https://travis-ci.org/jessetane/queue) +[![coverage](https://img.shields.io/coveralls/jessetane/queue.svg?style=flat-square&branch=master)](https://coveralls.io/r/jessetane/queue) + +This module exports a class `Queue` that implements most of the `Array` API. Pass async functions (ones that accept a callback or return a promise) to an instance's additive array methods. Processing begins when you call `q.start()`. + +## Example +`npm run example` +``` javascript +var queue = require('../') + +var q = queue({ results: [] }) + +// add jobs using the familiar Array API +q.push(function (cb) { + const result = 'two' + cb(null, result) +}) + +q.push( + function (cb) { + const result = 'four' + cb(null, result) + }, + function (cb) { + const result = 'five' + cb(null, result) + } +) + +// jobs can accept a callback or return a promise +q.push(function () { + return new Promise(function (resolve, reject) { + const result = 'one' + resolve(result) + }) +}) + +q.unshift(function (cb) { + const result = 'one' + cb(null, result) +}) + +q.splice(2, 0, function (cb) { + const result = 'three' + cb(null, result) +}) + +// use the timeout feature to deal with jobs that +// take too long or forget to execute a callback +q.timeout = 100 + +q.on('timeout', function (next, job) { + console.log('job timed out:', job.toString().replace(/\n/g, '')) + next() +}) + +q.push(function (cb) { + setTimeout(function () { + console.log('slow job finished') + cb() + }, 200) +}) + +q.push(function (cb) { + console.log('forgot to execute callback') +}) + +// jobs can also override the queue's timeout +// on a per-job basis +function extraSlowJob (cb) { + setTimeout(function () { + console.log('extra slow job finished') + cb() + }, 400) +} + +extraSlowJob.timeout = 500 +q.push(extraSlowJob) + +// jobs can also opt-out of the timeout altogether +function superSlowJob (cb) { + setTimeout(function () { + console.log('super slow job finished') + cb() + }, 1000) +} + +superSlowJob.timeout = null +q.push(superSlowJob) + +// get notified when jobs complete +q.on('success', function (result, job) { + console.log('job finished processing:', job.toString().replace(/\n/g, '')) + console.log('The result is:', result) +}) + +// begin processing, get notified on end / failure +q.start(function (err) { + if (err) throw err + console.log('all done:', q.results) +}) + +``` + +## Install +`npm install queue` + +_Note_: You may need to install the [`events`](https://github.com/Gozala/events) dependency if +your environment does not have it by default (eg. browser, react-native). + +## Test +`npm test` +`npm run test-browser` + +## API + +### `var q = queue([opts])` +Constructor. `opts` may contain inital values for: +* `q.concurrency` +* `q.timeout` +* `q.autostart` +* `q.results` + +## Instance methods +### `q.start([cb])` +cb, if passed, will be called when the queue empties or when an error occurs. + +### `q.stop()` +Stops the queue. can be resumed with `q.start()`. + +### `q.end([err])` +Stop and empty the queue immediately. + +## Instance methods mixed in from `Array` +Mozilla has docs on how these methods work [here](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array). Note that `slice` does not copy the queue. +### `q.push(element1, ..., elementN)` +### `q.unshift(element1, ..., elementN)` +### `q.splice(index , howMany[, element1[, ...[, elementN]]])` +### `q.pop()` +### `q.shift()` +### `q.slice(begin[, end])` +### `q.reverse()` +### `q.indexOf(searchElement[, fromIndex])` +### `q.lastIndexOf(searchElement[, fromIndex])` + +## Properties +### `q.concurrency` +Max number of jobs the queue should process concurrently, defaults to `Infinity`. + +### `q.timeout` +Milliseconds to wait for a job to execute its callback. This can be overridden by specifying a `timeout` property on a per-job basis. + +### `q.autostart` +Ensures the queue is always running if jobs are available. Useful in situations where you are using a queue only for concurrency control. + +### `q.results` +An array to set job callback arguments on. + +### `q.length` +Jobs pending + jobs to process (readonly). + +## Events + +### `q.emit('start', job)` +Immediately before a job begins to execute. + +### `q.emit('success', result, job)` +After a job executes its callback. + +### `q.emit('error', err, job)` +After a job passes an error to its callback. + +### `q.emit('timeout', continue, job)` +After `q.timeout` milliseconds have elapsed and a job has not executed its callback. + +### `q.emit('end'[, err])` +After all jobs have been processed + +## Releases +The latest stable release is published to [npm](http://npmjs.org/queue). Abbreviated changelog below: +* [6.0](https://github.com/jessetane/queue/archive/6.0.1.tar.gz) + * Add `start` event before job begins (@joelgriffith) + * Add `timeout` property on a job to override the queue's timeout (@joelgriffith) +* [5.0](https://github.com/jessetane/queue/archive/5.0.0.tar.gz) + * Updated TypeScript bindings (@Codex-) +* [4.4](https://github.com/jessetane/queue/archive/4.4.0.tar.gz) + * Add results feature +* [4.3](https://github.com/jessetane/queue/archive/4.3.0.tar.gz) + * Add promise support (@kwolfy) +* [4.2](https://github.com/jessetane/queue/archive/4.2.0.tar.gz) + * Unref timers on end +* [4.1](https://github.com/jessetane/queue/archive/4.1.0.tar.gz) + * Add autostart feature +* [4.0](https://github.com/jessetane/queue/archive/4.0.0.tar.gz) + * Change license to MIT +* [3.1.x](https://github.com/jessetane/queue/archive/3.0.6.tar.gz) + * Add .npmignore +* [3.0.x](https://github.com/jessetane/queue/archive/3.0.6.tar.gz) + * Change the default concurrency to `Infinity` + * Allow `q.start()` to accept an optional callback executed on `q.emit('end')` +* [2.x](https://github.com/jessetane/queue/archive/2.2.0.tar.gz) + * Major api changes / not backwards compatible with 1.x +* [1.x](https://github.com/jessetane/queue/archive/1.0.2.tar.gz) + * Early prototype + +## License +Copyright © 2014 Jesse Tane + +This work is free. You can redistribute it and/or modify it under the +terms of the [MIT License](https://opensource.org/licenses/MIT). +See LICENSE for full details. diff --git a/node_modules/quickselect/LICENSE b/node_modules/quickselect/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..29365be72721b3e0057a56634326d46001e6f67a --- /dev/null +++ b/node_modules/quickselect/LICENSE @@ -0,0 +1,15 @@ +ISC License + +Copyright (c) 2024, Vladimir Agafonkin + +Permission to use, copy, modify, and/or distribute this software for any purpose +with or without fee is hereby granted, provided that the above copyright notice +and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS +OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER +TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF +THIS SOFTWARE. diff --git a/node_modules/quickselect/README.md b/node_modules/quickselect/README.md new file mode 100644 index 0000000000000000000000000000000000000000..eec5403dc4084182d6f89dca9ad4d68e2fa2654e --- /dev/null +++ b/node_modules/quickselect/README.md @@ -0,0 +1,28 @@ +## quickselect + +A tiny and fast [selection algorithm](https://en.wikipedia.org/wiki/Selection_algorithm) in JavaScript +(specifically, [Floyd-Rivest selection](https://en.wikipedia.org/wiki/Floyd%E2%80%93Rivest_algorithm)). + +```js +quickselect(array, k[, left, right, compareFn]); +``` + +Rearranges items so that all items in the `[left, k]` are the smallest. +The `k`-th element will have the `(k - left + 1)`-th smallest value in `[left, right]`. + +- `array`: the array to partially sort (in place) +- `k`: middle index for partial sorting (as defined above) +- `left`: left index of the range to sort (`0` by default) +- `right`: right index (last index of the array by default) +- `compareFn`: compare function + +Example: + +```js +const arr = [65, 28, 59, 33, 21, 56, 22, 95, 50, 12, 90, 53, 28, 77, 39]; + +quickselect(arr, 8); + +// arr is [39, 28, 28, 33, 21, 12, 22, 50, 53, 56, 59, 65, 90, 77, 95] +// ^^ middle index +``` diff --git a/node_modules/quickselect/index.d.ts b/node_modules/quickselect/index.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..deea91da879c1beae028b1f1b7f50dd3fccf5030 --- /dev/null +++ b/node_modules/quickselect/index.d.ts @@ -0,0 +1,12 @@ +/** + * Rearranges items so that all items in the [left, k] are the smallest. + * The k-th element will have the (k - left + 1)-th smallest value in [left, right]. + * + * @template T + * @param {T[]} arr the array to partially sort (in place) + * @param {number} k middle index for partial sorting (as defined above) + * @param {number} [left=0] left index of the range to sort + * @param {number} [right=arr.length-1] right index + * @param {(a: T, b: T) => number} [compare = (a, b) => a - b] compare function + */ +export default function quickselect(arr: T[], k: number, left?: number | undefined, right?: number | undefined, compare?: ((a: T, b: T) => number) | undefined): void; diff --git a/node_modules/quickselect/index.js b/node_modules/quickselect/index.js new file mode 100644 index 0000000000000000000000000000000000000000..64b48249cfa80409c165b35dd80007e85104efc4 --- /dev/null +++ b/node_modules/quickselect/index.js @@ -0,0 +1,74 @@ + +/** + * Rearranges items so that all items in the [left, k] are the smallest. + * The k-th element will have the (k - left + 1)-th smallest value in [left, right]. + * + * @template T + * @param {T[]} arr the array to partially sort (in place) + * @param {number} k middle index for partial sorting (as defined above) + * @param {number} [left=0] left index of the range to sort + * @param {number} [right=arr.length-1] right index + * @param {(a: T, b: T) => number} [compare = (a, b) => a - b] compare function + */ +export default function quickselect(arr, k, left = 0, right = arr.length - 1, compare = defaultCompare) { + + while (right > left) { + if (right - left > 600) { + const n = right - left + 1; + const m = k - left + 1; + const z = Math.log(n); + const s = 0.5 * Math.exp(2 * z / 3); + const sd = 0.5 * Math.sqrt(z * s * (n - s) / n) * (m - n / 2 < 0 ? -1 : 1); + const newLeft = Math.max(left, Math.floor(k - m * s / n + sd)); + const newRight = Math.min(right, Math.floor(k + (n - m) * s / n + sd)); + quickselect(arr, k, newLeft, newRight, compare); + } + + const t = arr[k]; + let i = left; + /** @type {number} */ + let j = right; + + swap(arr, left, k); + if (compare(arr[right], t) > 0) swap(arr, left, right); + + while (i < j) { + swap(arr, i, j); + i++; + j--; + while (compare(arr[i], t) < 0) i++; + while (compare(arr[j], t) > 0) j--; + } + + if (compare(arr[left], t) === 0) swap(arr, left, j); + else { + j++; + swap(arr, j, right); + } + + if (j <= k) left = j + 1; + if (k <= j) right = j - 1; + } +} + +/** + * @template T + * @param {T[]} arr + * @param {number} i + * @param {number} j + */ +function swap(arr, i, j) { + const tmp = arr[i]; + arr[i] = arr[j]; + arr[j] = tmp; +} + +/** + * @template T + * @param {T} a + * @param {T} b + * @returns {number} + */ +function defaultCompare(a, b) { + return a < b ? -1 : a > b ? 1 : 0; +} diff --git a/node_modules/quickselect/package.json b/node_modules/quickselect/package.json new file mode 100644 index 0000000000000000000000000000000000000000..0502ebe6f79a22208e636d02477c15686b1b34d6 --- /dev/null +++ b/node_modules/quickselect/package.json @@ -0,0 +1,39 @@ +{ + "name": "quickselect", + "version": "3.0.0", + "type": "module", + "description": "A tiny and fast selection algorithm in JavaScript.", + "repository": "github:mourner/quickselect", + "module": "index.js", + "main": "index.js", + "exports": "./index.js", + "devDependencies": { + "eslint": "^9.6.0", + "eslint-config-mourner": "^4.0.1", + "esm": "^3.2.25", + "rollup": "^4.18.0", + "tape": "^5.8.1", + "typescript": "^5.5.3" + }, + "scripts": { + "pretest": "eslint *.js && tsc", + "test": "node test.js", + "bench": "node bench.js" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "types": "index.d.ts", + "keywords": [ + "selection", + "algorithm", + "quickselect", + "sort", + "partial", + "floyd", + "rivest" + ], + "author": "Vladimir Agafonkin", + "license": "ISC" +} diff --git a/node_modules/range-parser/HISTORY.md b/node_modules/range-parser/HISTORY.md new file mode 100644 index 0000000000000000000000000000000000000000..70a973d800ef108fda6ee25ad76ec626594b656d --- /dev/null +++ b/node_modules/range-parser/HISTORY.md @@ -0,0 +1,56 @@ +1.2.1 / 2019-05-10 +================== + + * Improve error when `str` is not a string + +1.2.0 / 2016-06-01 +================== + + * Add `combine` option to combine overlapping ranges + +1.1.0 / 2016-05-13 +================== + + * Fix incorrectly returning -1 when there is at least one valid range + * perf: remove internal function + +1.0.3 / 2015-10-29 +================== + + * perf: enable strict mode + +1.0.2 / 2014-09-08 +================== + + * Support Node.js 0.6 + +1.0.1 / 2014-09-07 +================== + + * Move repository to jshttp + +1.0.0 / 2013-12-11 +================== + + * Add repository to package.json + * Add MIT license + +0.0.4 / 2012-06-17 +================== + + * Change ret -1 for unsatisfiable and -2 when invalid + +0.0.3 / 2012-06-17 +================== + + * Fix last-byte-pos default to len - 1 + +0.0.2 / 2012-06-14 +================== + + * Add `.type` + +0.0.1 / 2012-06-11 +================== + + * Initial release diff --git a/node_modules/range-parser/LICENSE b/node_modules/range-parser/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..359995436311ca2c69c0d05c1b7ad389aa63e9b9 --- /dev/null +++ b/node_modules/range-parser/LICENSE @@ -0,0 +1,23 @@ +(The MIT License) + +Copyright (c) 2012-2014 TJ Holowaychuk +Copyright (c) 2015-2016 Douglas Christopher Wilson + +```js +var parseRange = require('range-parser') +``` + +### parseRange(size, header, options) + +Parse the given `header` string where `size` is the maximum size of the resource. +An array of ranges will be returned or negative numbers indicating an error parsing. + + * `-2` signals a malformed header string + * `-1` signals an unsatisfiable range + + + +```js +// parse header from request +var range = parseRange(size, req.headers.range) + +// the type of the range +if (range.type === 'bytes') { + // the ranges + range.forEach(function (r) { + // do something with r.start and r.end + }) +} +``` + +#### Options + +These properties are accepted in the options object. + +##### combine + +Specifies if overlapping & adjacent ranges should be combined, defaults to `false`. +When `true`, ranges will be combined and returned as if they were specified that +way in the header. + + + +```js +parseRange(100, 'bytes=50-55,0-10,5-10,56-60', { combine: true }) +// => [ +// { start: 0, end: 10 }, +// { start: 50, end: 60 } +// ] +``` + +## License + +[MIT](LICENSE) + +[coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/range-parser/master +[coveralls-url]: https://coveralls.io/r/jshttp/range-parser?branch=master +[node-image]: https://badgen.net/npm/node/range-parser +[node-url]: https://nodejs.org/en/download +[npm-downloads-image]: https://badgen.net/npm/dm/range-parser +[npm-url]: https://npmjs.org/package/range-parser +[npm-version-image]: https://badgen.net/npm/v/range-parser +[travis-image]: https://badgen.net/travis/jshttp/range-parser/master +[travis-url]: https://travis-ci.org/jshttp/range-parser diff --git a/node_modules/range-parser/index.js b/node_modules/range-parser/index.js new file mode 100644 index 0000000000000000000000000000000000000000..b7dc5c0f15fe00172c496cae3bc48f238a3a8469 --- /dev/null +++ b/node_modules/range-parser/index.js @@ -0,0 +1,162 @@ +/*! + * range-parser + * Copyright(c) 2012-2014 TJ Holowaychuk + * Copyright(c) 2015-2016 Douglas Christopher Wilson + * MIT Licensed + */ + +'use strict' + +/** + * Module exports. + * @public + */ + +module.exports = rangeParser + +/** + * Parse "Range" header `str` relative to the given file `size`. + * + * @param {Number} size + * @param {String} str + * @param {Object} [options] + * @return {Array} + * @public + */ + +function rangeParser (size, str, options) { + if (typeof str !== 'string') { + throw new TypeError('argument str must be a string') + } + + var index = str.indexOf('=') + + if (index === -1) { + return -2 + } + + // split the range string + var arr = str.slice(index + 1).split(',') + var ranges = [] + + // add ranges type + ranges.type = str.slice(0, index) + + // parse all ranges + for (var i = 0; i < arr.length; i++) { + var range = arr[i].split('-') + var start = parseInt(range[0], 10) + var end = parseInt(range[1], 10) + + // -nnn + if (isNaN(start)) { + start = size - end + end = size - 1 + // nnn- + } else if (isNaN(end)) { + end = size - 1 + } + + // limit last-byte-pos to current length + if (end > size - 1) { + end = size - 1 + } + + // invalid or unsatisifiable + if (isNaN(start) || isNaN(end) || start > end || start < 0) { + continue + } + + // add range + ranges.push({ + start: start, + end: end + }) + } + + if (ranges.length < 1) { + // unsatisifiable + return -1 + } + + return options && options.combine + ? combineRanges(ranges) + : ranges +} + +/** + * Combine overlapping & adjacent ranges. + * @private + */ + +function combineRanges (ranges) { + var ordered = ranges.map(mapWithIndex).sort(sortByRangeStart) + + for (var j = 0, i = 1; i < ordered.length; i++) { + var range = ordered[i] + var current = ordered[j] + + if (range.start > current.end + 1) { + // next range + ordered[++j] = range + } else if (range.end > current.end) { + // extend range + current.end = range.end + current.index = Math.min(current.index, range.index) + } + } + + // trim ordered array + ordered.length = j + 1 + + // generate combined range + var combined = ordered.sort(sortByRangeIndex).map(mapWithoutIndex) + + // copy ranges type + combined.type = ranges.type + + return combined +} + +/** + * Map function to add index value to ranges. + * @private + */ + +function mapWithIndex (range, index) { + return { + start: range.start, + end: range.end, + index: index + } +} + +/** + * Map function to remove index value from ranges. + * @private + */ + +function mapWithoutIndex (range) { + return { + start: range.start, + end: range.end + } +} + +/** + * Sort function to sort ranges by index. + * @private + */ + +function sortByRangeIndex (a, b) { + return a.index - b.index +} + +/** + * Sort function to sort ranges by start position. + * @private + */ + +function sortByRangeStart (a, b) { + return a.start - b.start +} diff --git a/node_modules/range-parser/package.json b/node_modules/range-parser/package.json new file mode 100644 index 0000000000000000000000000000000000000000..abea6d852e9baa772152be996c4a6ed5b2e8e514 --- /dev/null +++ b/node_modules/range-parser/package.json @@ -0,0 +1,44 @@ +{ + "name": "range-parser", + "author": "TJ Holowaychuk (http://tjholowaychuk.com)", + "description": "Range header field string parser", + "version": "1.2.1", + "contributors": [ + "Douglas Christopher Wilson ", + "James Wyatt Cready ", + "Jonathan Ong (http://jongleberry.com)" + ], + "license": "MIT", + "keywords": [ + "range", + "parser", + "http" + ], + "repository": "jshttp/range-parser", + "devDependencies": { + "deep-equal": "1.0.1", + "eslint": "5.16.0", + "eslint-config-standard": "12.0.0", + "eslint-plugin-markdown": "1.0.0", + "eslint-plugin-import": "2.17.2", + "eslint-plugin-node": "8.0.1", + "eslint-plugin-promise": "4.1.1", + "eslint-plugin-standard": "4.0.0", + "mocha": "6.1.4", + "nyc": "14.1.1" + }, + "files": [ + "HISTORY.md", + "LICENSE", + "index.js" + ], + "engines": { + "node": ">= 0.6" + }, + "scripts": { + "lint": "eslint --plugin markdown --ext js,md .", + "test": "mocha --reporter spec", + "test-cov": "nyc --reporter=html --reporter=text npm test", + "test-travis": "nyc --reporter=text npm test" + } +} diff --git a/node_modules/raw-body/LICENSE b/node_modules/raw-body/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..1029a7a7c79e867208857f4830072b35229b8844 --- /dev/null +++ b/node_modules/raw-body/LICENSE @@ -0,0 +1,22 @@ +The MIT License (MIT) + +Copyright (c) 2013-2014 Jonathan Ong +Copyright (c) 2014-2022 Douglas Christopher Wilson + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/node_modules/raw-body/README.md b/node_modules/raw-body/README.md new file mode 100644 index 0000000000000000000000000000000000000000..d9b36d611830efeaae613bd8dff4082d7fd55971 --- /dev/null +++ b/node_modules/raw-body/README.md @@ -0,0 +1,223 @@ +# raw-body + +[![NPM Version][npm-image]][npm-url] +[![NPM Downloads][downloads-image]][downloads-url] +[![Node.js Version][node-version-image]][node-version-url] +[![Build status][github-actions-ci-image]][github-actions-ci-url] +[![Test coverage][coveralls-image]][coveralls-url] + +Gets the entire buffer of a stream either as a `Buffer` or a string. +Validates the stream's length against an expected length and maximum limit. +Ideal for parsing request bodies. + +## Install + +This is a [Node.js](https://nodejs.org/en/) module available through the +[npm registry](https://www.npmjs.com/). Installation is done using the +[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally): + +```sh +$ npm install raw-body +``` + +### TypeScript + +This module includes a [TypeScript](https://www.typescriptlang.org/) +declaration file to enable auto complete in compatible editors and type +information for TypeScript projects. This module depends on the Node.js +types, so install `@types/node`: + +```sh +$ npm install @types/node +``` + +## API + +```js +var getRawBody = require('raw-body') +``` + +### getRawBody(stream, [options], [callback]) + +**Returns a promise if no callback specified and global `Promise` exists.** + +Options: + +- `length` - The length of the stream. + If the contents of the stream do not add up to this length, + an `400` error code is returned. +- `limit` - The byte limit of the body. + This is the number of bytes or any string format supported by + [bytes](https://www.npmjs.com/package/bytes), + for example `1000`, `'500kb'` or `'3mb'`. + If the body ends up being larger than this limit, + a `413` error code is returned. +- `encoding` - The encoding to use to decode the body into a string. + By default, a `Buffer` instance will be returned when no encoding is specified. + Most likely, you want `utf-8`, so setting `encoding` to `true` will decode as `utf-8`. + You can use any type of encoding supported by [iconv-lite](https://www.npmjs.org/package/iconv-lite#readme). + +You can also pass a string in place of options to just specify the encoding. + +If an error occurs, the stream will be paused, everything unpiped, +and you are responsible for correctly disposing the stream. +For HTTP requests, you may need to finish consuming the stream if +you want to keep the socket open for future requests. For streams +that use file descriptors, you should `stream.destroy()` or +`stream.close()` to prevent leaks. + +## Errors + +This module creates errors depending on the error condition during reading. +The error may be an error from the underlying Node.js implementation, but is +otherwise an error created by this module, which has the following attributes: + + * `limit` - the limit in bytes + * `length` and `expected` - the expected length of the stream + * `received` - the received bytes + * `encoding` - the invalid encoding + * `status` and `statusCode` - the corresponding status code for the error + * `type` - the error type + +### Types + +The errors from this module have a `type` property which allows for the programmatic +determination of the type of error returned. + +#### encoding.unsupported + +This error will occur when the `encoding` option is specified, but the value does +not map to an encoding supported by the [iconv-lite](https://www.npmjs.org/package/iconv-lite#readme) +module. + +#### entity.too.large + +This error will occur when the `limit` option is specified, but the stream has +an entity that is larger. + +#### request.aborted + +This error will occur when the request stream is aborted by the client before +reading the body has finished. + +#### request.size.invalid + +This error will occur when the `length` option is specified, but the stream has +emitted more bytes. + +#### stream.encoding.set + +This error will occur when the given stream has an encoding set on it, making it +a decoded stream. The stream should not have an encoding set and is expected to +emit `Buffer` objects. + +#### stream.not.readable + +This error will occur when the given stream is not readable. + +## Examples + +### Simple Express example + +```js +var contentType = require('content-type') +var express = require('express') +var getRawBody = require('raw-body') + +var app = express() + +app.use(function (req, res, next) { + getRawBody(req, { + length: req.headers['content-length'], + limit: '1mb', + encoding: contentType.parse(req).parameters.charset + }, function (err, string) { + if (err) return next(err) + req.text = string + next() + }) +}) + +// now access req.text +``` + +### Simple Koa example + +```js +var contentType = require('content-type') +var getRawBody = require('raw-body') +var koa = require('koa') + +var app = koa() + +app.use(function * (next) { + this.text = yield getRawBody(this.req, { + length: this.req.headers['content-length'], + limit: '1mb', + encoding: contentType.parse(this.req).parameters.charset + }) + yield next +}) + +// now access this.text +``` + +### Using as a promise + +To use this library as a promise, simply omit the `callback` and a promise is +returned, provided that a global `Promise` is defined. + +```js +var getRawBody = require('raw-body') +var http = require('http') + +var server = http.createServer(function (req, res) { + getRawBody(req) + .then(function (buf) { + res.statusCode = 200 + res.end(buf.length + ' bytes submitted') + }) + .catch(function (err) { + res.statusCode = 500 + res.end(err.message) + }) +}) + +server.listen(3000) +``` + +### Using with TypeScript + +```ts +import * as getRawBody from 'raw-body'; +import * as http from 'http'; + +const server = http.createServer((req, res) => { + getRawBody(req) + .then((buf) => { + res.statusCode = 200; + res.end(buf.length + ' bytes submitted'); + }) + .catch((err) => { + res.statusCode = err.statusCode; + res.end(err.message); + }); +}); + +server.listen(3000); +``` + +## License + +[MIT](LICENSE) + +[npm-image]: https://img.shields.io/npm/v/raw-body.svg +[npm-url]: https://npmjs.org/package/raw-body +[node-version-image]: https://img.shields.io/node/v/raw-body.svg +[node-version-url]: https://nodejs.org/en/download/ +[coveralls-image]: https://img.shields.io/coveralls/stream-utils/raw-body/master.svg +[coveralls-url]: https://coveralls.io/r/stream-utils/raw-body?branch=master +[downloads-image]: https://img.shields.io/npm/dm/raw-body.svg +[downloads-url]: https://npmjs.org/package/raw-body +[github-actions-ci-image]: https://img.shields.io/github/actions/workflow/status/stream-utils/raw-body/ci.yml?branch=master&label=ci +[github-actions-ci-url]: https://github.com/jshttp/stream-utils/raw-body?query=workflow%3Aci diff --git a/node_modules/raw-body/index.d.ts b/node_modules/raw-body/index.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..b5046118c30938a4a804606d2d846358f331b4a3 --- /dev/null +++ b/node_modules/raw-body/index.d.ts @@ -0,0 +1,85 @@ +declare namespace getRawBody { + export type Encoding = string | true; + + export interface Options { + /** + * The expected length of the stream. + */ + length?: number | string | null; + /** + * The byte limit of the body. This is the number of bytes or any string + * format supported by `bytes`, for example `1000`, `'500kb'` or `'3mb'`. + */ + limit?: number | string | null; + /** + * The encoding to use to decode the body into a string. By default, a + * `Buffer` instance will be returned when no encoding is specified. Most + * likely, you want `utf-8`, so setting encoding to `true` will decode as + * `utf-8`. You can use any type of encoding supported by `iconv-lite`. + */ + encoding?: Encoding | null; + } + + export interface RawBodyError extends Error { + /** + * The limit in bytes. + */ + limit?: number; + /** + * The expected length of the stream. + */ + length?: number; + expected?: number; + /** + * The received bytes. + */ + received?: number; + /** + * The encoding. + */ + encoding?: string; + /** + * The corresponding status code for the error. + */ + status: number; + statusCode: number; + /** + * The error type. + */ + type: string; + } +} + +/** + * Gets the entire buffer of a stream either as a `Buffer` or a string. + * Validates the stream's length against an expected length and maximum + * limit. Ideal for parsing request bodies. + */ +declare function getRawBody( + stream: NodeJS.ReadableStream, + callback: (err: getRawBody.RawBodyError, body: Buffer) => void +): void; + +declare function getRawBody( + stream: NodeJS.ReadableStream, + options: (getRawBody.Options & { encoding: getRawBody.Encoding }) | getRawBody.Encoding, + callback: (err: getRawBody.RawBodyError, body: string) => void +): void; + +declare function getRawBody( + stream: NodeJS.ReadableStream, + options: getRawBody.Options, + callback: (err: getRawBody.RawBodyError, body: Buffer) => void +): void; + +declare function getRawBody( + stream: NodeJS.ReadableStream, + options: (getRawBody.Options & { encoding: getRawBody.Encoding }) | getRawBody.Encoding +): Promise; + +declare function getRawBody( + stream: NodeJS.ReadableStream, + options?: getRawBody.Options +): Promise; + +export = getRawBody; diff --git a/node_modules/raw-body/index.js b/node_modules/raw-body/index.js new file mode 100644 index 0000000000000000000000000000000000000000..9cdcd12217303cdbbf1c2524978db7ba3379555e --- /dev/null +++ b/node_modules/raw-body/index.js @@ -0,0 +1,336 @@ +/*! + * raw-body + * Copyright(c) 2013-2014 Jonathan Ong + * Copyright(c) 2014-2022 Douglas Christopher Wilson + * MIT Licensed + */ + +'use strict' + +/** + * Module dependencies. + * @private + */ + +var asyncHooks = tryRequireAsyncHooks() +var bytes = require('bytes') +var createError = require('http-errors') +var iconv = require('iconv-lite') +var unpipe = require('unpipe') + +/** + * Module exports. + * @public + */ + +module.exports = getRawBody + +/** + * Module variables. + * @private + */ + +var ICONV_ENCODING_MESSAGE_REGEXP = /^Encoding not recognized: / + +/** + * Get the decoder for a given encoding. + * + * @param {string} encoding + * @private + */ + +function getDecoder (encoding) { + if (!encoding) return null + + try { + return iconv.getDecoder(encoding) + } catch (e) { + // error getting decoder + if (!ICONV_ENCODING_MESSAGE_REGEXP.test(e.message)) throw e + + // the encoding was not found + throw createError(415, 'specified encoding unsupported', { + encoding: encoding, + type: 'encoding.unsupported' + }) + } +} + +/** + * Get the raw body of a stream (typically HTTP). + * + * @param {object} stream + * @param {object|string|function} [options] + * @param {function} [callback] + * @public + */ + +function getRawBody (stream, options, callback) { + var done = callback + var opts = options || {} + + // light validation + if (stream === undefined) { + throw new TypeError('argument stream is required') + } else if (typeof stream !== 'object' || stream === null || typeof stream.on !== 'function') { + throw new TypeError('argument stream must be a stream') + } + + if (options === true || typeof options === 'string') { + // short cut for encoding + opts = { + encoding: options + } + } + + if (typeof options === 'function') { + done = options + opts = {} + } + + // validate callback is a function, if provided + if (done !== undefined && typeof done !== 'function') { + throw new TypeError('argument callback must be a function') + } + + // require the callback without promises + if (!done && !global.Promise) { + throw new TypeError('argument callback is required') + } + + // get encoding + var encoding = opts.encoding !== true + ? opts.encoding + : 'utf-8' + + // convert the limit to an integer + var limit = bytes.parse(opts.limit) + + // convert the expected length to an integer + var length = opts.length != null && !isNaN(opts.length) + ? parseInt(opts.length, 10) + : null + + if (done) { + // classic callback style + return readStream(stream, encoding, length, limit, wrap(done)) + } + + return new Promise(function executor (resolve, reject) { + readStream(stream, encoding, length, limit, function onRead (err, buf) { + if (err) return reject(err) + resolve(buf) + }) + }) +} + +/** + * Halt a stream. + * + * @param {Object} stream + * @private + */ + +function halt (stream) { + // unpipe everything from the stream + unpipe(stream) + + // pause stream + if (typeof stream.pause === 'function') { + stream.pause() + } +} + +/** + * Read the data from the stream. + * + * @param {object} stream + * @param {string} encoding + * @param {number} length + * @param {number} limit + * @param {function} callback + * @public + */ + +function readStream (stream, encoding, length, limit, callback) { + var complete = false + var sync = true + + // check the length and limit options. + // note: we intentionally leave the stream paused, + // so users should handle the stream themselves. + if (limit !== null && length !== null && length > limit) { + return done(createError(413, 'request entity too large', { + expected: length, + length: length, + limit: limit, + type: 'entity.too.large' + })) + } + + // streams1: assert request encoding is buffer. + // streams2+: assert the stream encoding is buffer. + // stream._decoder: streams1 + // state.encoding: streams2 + // state.decoder: streams2, specifically < 0.10.6 + var state = stream._readableState + if (stream._decoder || (state && (state.encoding || state.decoder))) { + // developer error + return done(createError(500, 'stream encoding should not be set', { + type: 'stream.encoding.set' + })) + } + + if (typeof stream.readable !== 'undefined' && !stream.readable) { + return done(createError(500, 'stream is not readable', { + type: 'stream.not.readable' + })) + } + + var received = 0 + var decoder + + try { + decoder = getDecoder(encoding) + } catch (err) { + return done(err) + } + + var buffer = decoder + ? '' + : [] + + // attach listeners + stream.on('aborted', onAborted) + stream.on('close', cleanup) + stream.on('data', onData) + stream.on('end', onEnd) + stream.on('error', onEnd) + + // mark sync section complete + sync = false + + function done () { + var args = new Array(arguments.length) + + // copy arguments + for (var i = 0; i < args.length; i++) { + args[i] = arguments[i] + } + + // mark complete + complete = true + + if (sync) { + process.nextTick(invokeCallback) + } else { + invokeCallback() + } + + function invokeCallback () { + cleanup() + + if (args[0]) { + // halt the stream on error + halt(stream) + } + + callback.apply(null, args) + } + } + + function onAborted () { + if (complete) return + + done(createError(400, 'request aborted', { + code: 'ECONNABORTED', + expected: length, + length: length, + received: received, + type: 'request.aborted' + })) + } + + function onData (chunk) { + if (complete) return + + received += chunk.length + + if (limit !== null && received > limit) { + done(createError(413, 'request entity too large', { + limit: limit, + received: received, + type: 'entity.too.large' + })) + } else if (decoder) { + buffer += decoder.write(chunk) + } else { + buffer.push(chunk) + } + } + + function onEnd (err) { + if (complete) return + if (err) return done(err) + + if (length !== null && received !== length) { + done(createError(400, 'request size did not match content length', { + expected: length, + length: length, + received: received, + type: 'request.size.invalid' + })) + } else { + var string = decoder + ? buffer + (decoder.end() || '') + : Buffer.concat(buffer) + done(null, string) + } + } + + function cleanup () { + buffer = null + + stream.removeListener('aborted', onAborted) + stream.removeListener('data', onData) + stream.removeListener('end', onEnd) + stream.removeListener('error', onEnd) + stream.removeListener('close', cleanup) + } +} + +/** + * Try to require async_hooks + * @private + */ + +function tryRequireAsyncHooks () { + try { + return require('async_hooks') + } catch (e) { + return {} + } +} + +/** + * Wrap function with async resource, if possible. + * AsyncResource.bind static method backported. + * @private + */ + +function wrap (fn) { + var res + + // create anonymous resource + if (asyncHooks.AsyncResource) { + res = new asyncHooks.AsyncResource(fn.name || 'bound-anonymous-fn') + } + + // incompatible node.js + if (!res || !res.runInAsyncScope) { + return fn + } + + // return bound function + return res.runInAsyncScope.bind(res, fn, null) +} diff --git a/node_modules/raw-body/package.json b/node_modules/raw-body/package.json new file mode 100644 index 0000000000000000000000000000000000000000..eab819f21f6c5833718a86fe88f7f43d00ff7776 --- /dev/null +++ b/node_modules/raw-body/package.json @@ -0,0 +1,46 @@ +{ + "name": "raw-body", + "description": "Get and validate the raw body of a readable stream.", + "version": "3.0.2", + "author": "Jonathan Ong (http://jongleberry.com)", + "contributors": [ + "Douglas Christopher Wilson ", + "Raynos " + ], + "license": "MIT", + "repository": "stream-utils/raw-body", + "dependencies": { + "bytes": "~3.1.2", + "http-errors": "~2.0.1", + "iconv-lite": "~0.7.0", + "unpipe": "~1.0.0" + }, + "devDependencies": { + "@stylistic/eslint-plugin": "^5.1.0", + "@stylistic/eslint-plugin-js": "^4.1.0", + "bluebird": "3.7.2", + "eslint": "^9.0.0", + "mocha": "10.7.0", + "neostandard": "^0.12.0", + "nyc": "17.0.0", + "readable-stream": "2.3.7", + "safe-buffer": "5.2.1" + }, + "engines": { + "node": ">= 0.10" + }, + "files": [ + "LICENSE", + "README.md", + "index.d.ts", + "index.js" + ], + "scripts": { + "lint": "eslint", + "lint:fix": "eslint --fix", + "test": "mocha --trace-deprecation --reporter spec --check-leaks test/", + "test:ci": "nyc --reporter=lcovonly --reporter=text npm test", + "test:cov": "nyc --reporter=html --reporter=text npm test", + "version": "node scripts/version-history.js && git add HISTORY.md" + } +} diff --git a/node_modules/rc/LICENSE.APACHE2 b/node_modules/rc/LICENSE.APACHE2 new file mode 100644 index 0000000000000000000000000000000000000000..6366c04716fb9e88262da7cf0b5cdfa69dbd2c65 --- /dev/null +++ b/node_modules/rc/LICENSE.APACHE2 @@ -0,0 +1,15 @@ +Apache License, Version 2.0 + +Copyright (c) 2011 Dominic Tarr + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/node_modules/rc/LICENSE.BSD b/node_modules/rc/LICENSE.BSD new file mode 100644 index 0000000000000000000000000000000000000000..96bb796aa5f2d2bba855ba963ccb4326e29ba3d6 --- /dev/null +++ b/node_modules/rc/LICENSE.BSD @@ -0,0 +1,26 @@ +Copyright (c) 2013, Dominic Tarr +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +The views and conclusions contained in the software and documentation are those +of the authors and should not be interpreted as representing official policies, +either expressed or implied, of the FreeBSD Project. diff --git a/node_modules/rc/LICENSE.MIT b/node_modules/rc/LICENSE.MIT new file mode 100644 index 0000000000000000000000000000000000000000..6eafbd734a6e062459ba4b3b4a99f8aeb7178664 --- /dev/null +++ b/node_modules/rc/LICENSE.MIT @@ -0,0 +1,24 @@ +The MIT License + +Copyright (c) 2011 Dominic Tarr + +Permission is hereby granted, free of charge, +to any person obtaining a copy of this software and +associated documentation files (the "Software"), to +deal in the Software without restriction, including +without limitation the rights to use, copy, modify, +merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom +the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR +ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/rc/README.md b/node_modules/rc/README.md new file mode 100644 index 0000000000000000000000000000000000000000..e6522e26788f148b913dc99a3e6daa515818ca9c --- /dev/null +++ b/node_modules/rc/README.md @@ -0,0 +1,227 @@ +# rc + +The non-configurable configuration loader for lazy people. + +## Usage + +The only option is to pass rc the name of your app, and your default configuration. + +```javascript +var conf = require('rc')(appname, { + //defaults go here. + port: 2468, + + //defaults which are objects will be merged, not replaced + views: { + engine: 'jade' + } +}); +``` + +`rc` will return your configuration options merged with the defaults you specify. +If you pass in a predefined defaults object, it will be mutated: + +```javascript +var conf = {}; +require('rc')(appname, conf); +``` + +If `rc` finds any config files for your app, the returned config object will have +a `configs` array containing their paths: + +```javascript +var appCfg = require('rc')(appname, conf); +appCfg.configs[0] // /etc/appnamerc +appCfg.configs[1] // /home/dominictarr/.config/appname +appCfg.config // same as appCfg.configs[appCfg.configs.length - 1] +``` + +## Standards + +Given your application name (`appname`), rc will look in all the obvious places for configuration. + + * command line arguments, parsed by minimist _(e.g. `--foo baz`, also nested: `--foo.bar=baz`)_ + * environment variables prefixed with `${appname}_` + * or use "\_\_" to indicate nested properties
_(e.g. `appname_foo__bar__baz` => `foo.bar.baz`)_ + * if you passed an option `--config file` then from that file + * a local `.${appname}rc` or the first found looking in `./ ../ ../../ ../../../` etc. + * `$HOME/.${appname}rc` + * `$HOME/.${appname}/config` + * `$HOME/.config/${appname}` + * `$HOME/.config/${appname}/config` + * `/etc/${appname}rc` + * `/etc/${appname}/config` + * the defaults object you passed in. + +All configuration sources that were found will be flattened into one object, +so that sources **earlier** in this list override later ones. + + +## Configuration File Formats + +Configuration files (e.g. `.appnamerc`) may be in either [json](http://json.org/example) or [ini](http://en.wikipedia.org/wiki/INI_file) format. **No** file extension (`.json` or `.ini`) should be used. The example configurations below are equivalent: + + +#### Formatted as `ini` + +``` +; You can include comments in `ini` format if you want. + +dependsOn=0.10.0 + + +; `rc` has built-in support for ini sections, see? + +[commands] + www = ./commands/www + console = ./commands/repl + + +; You can even do nested sections + +[generators.options] + engine = ejs + +[generators.modules] + new = generate-new + engine = generate-backend + +``` + +#### Formatted as `json` + +```javascript +{ + // You can even comment your JSON, if you want + "dependsOn": "0.10.0", + "commands": { + "www": "./commands/www", + "console": "./commands/repl" + }, + "generators": { + "options": { + "engine": "ejs" + }, + "modules": { + "new": "generate-new", + "backend": "generate-backend" + } + } +} +``` + +Comments are stripped from JSON config via [strip-json-comments](https://github.com/sindresorhus/strip-json-comments). + +> Since ini, and env variables do not have a standard for types, your application needs be prepared for strings. + +To ensure that string representations of booleans and numbers are always converted into their proper types (especially useful if you intend to do strict `===` comparisons), consider using a module such as [parse-strings-in-object](https://github.com/anselanza/parse-strings-in-object) to wrap the config object returned from rc. + + +## Simple example demonstrating precedence +Assume you have an application like this (notice the hard-coded defaults passed to rc): +``` +const conf = require('rc')('myapp', { + port: 12345, + mode: 'test' +}); + +console.log(JSON.stringify(conf, null, 2)); +``` +You also have a file `config.json`, with these contents: +``` +{ + "port": 9000, + "foo": "from config json", + "something": "else" +} +``` +And a file `.myapprc` in the same folder, with these contents: +``` +{ + "port": "3001", + "foo": "bar" +} +``` +Here is the expected output from various commands: + +`node .` +``` +{ + "port": "3001", + "mode": "test", + "foo": "bar", + "_": [], + "configs": [ + "/Users/stephen/repos/conftest/.myapprc" + ], + "config": "/Users/stephen/repos/conftest/.myapprc" +} +``` +*Default `mode` from hard-coded object is retained, but port is overridden by `.myapprc` file (automatically found based on appname match), and `foo` is added.* + + +`node . --foo baz` +``` +{ + "port": "3001", + "mode": "test", + "foo": "baz", + "_": [], + "configs": [ + "/Users/stephen/repos/conftest/.myapprc" + ], + "config": "/Users/stephen/repos/conftest/.myapprc" +} +``` +*Same result as above but `foo` is overridden because command-line arguments take precedence over `.myapprc` file.* + +`node . --foo barbar --config config.json` +``` +{ + "port": 9000, + "mode": "test", + "foo": "barbar", + "something": "else", + "_": [], + "config": "config.json", + "configs": [ + "/Users/stephen/repos/conftest/.myapprc", + "config.json" + ] +} +``` +*Now the `port` comes from the `config.json` file specified (overriding the value from `.myapprc`), and `foo` value is overriden by command-line despite also being specified in the `config.json` file.* + + + +## Advanced Usage + +#### Pass in your own `argv` + +You may pass in your own `argv` as the third argument to `rc`. This is in case you want to [use your own command-line opts parser](https://github.com/dominictarr/rc/pull/12). + +```javascript +require('rc')(appname, defaults, customArgvParser); +``` + +## Pass in your own parser + +If you have a special need to use a non-standard parser, +you can do so by passing in the parser as the 4th argument. +(leave the 3rd as null to get the default args parser) + +```javascript +require('rc')(appname, defaults, null, parser); +``` + +This may also be used to force a more strict format, +such as strict, valid JSON only. + +## Note on Performance + +`rc` is running `fs.statSync`-- so make sure you don't use it in a hot code path (e.g. a request handler) + + +## License + +Multi-licensed under the two-clause BSD License, MIT License, or Apache License, version 2.0 diff --git a/node_modules/rc/browser.js b/node_modules/rc/browser.js new file mode 100644 index 0000000000000000000000000000000000000000..8c230c5cd2d397f79e30a278debc314256d15256 --- /dev/null +++ b/node_modules/rc/browser.js @@ -0,0 +1,7 @@ + +// when this is loaded into the browser, +// just use the defaults... + +module.exports = function (name, defaults) { + return defaults +} diff --git a/node_modules/rc/cli.js b/node_modules/rc/cli.js new file mode 100644 index 0000000000000000000000000000000000000000..ab05b6072b01701227f5e2765b327a8e409c6553 --- /dev/null +++ b/node_modules/rc/cli.js @@ -0,0 +1,4 @@ +#! /usr/bin/env node +var rc = require('./index') + +console.log(JSON.stringify(rc(process.argv[2]), false, 2)) diff --git a/node_modules/rc/index.js b/node_modules/rc/index.js new file mode 100644 index 0000000000000000000000000000000000000000..65eb47afe20f7bc719214d3e963ba0c80be26331 --- /dev/null +++ b/node_modules/rc/index.js @@ -0,0 +1,53 @@ +var cc = require('./lib/utils') +var join = require('path').join +var deepExtend = require('deep-extend') +var etc = '/etc' +var win = process.platform === "win32" +var home = win + ? process.env.USERPROFILE + : process.env.HOME + +module.exports = function (name, defaults, argv, parse) { + if('string' !== typeof name) + throw new Error('rc(name): name *must* be string') + if(!argv) + argv = require('minimist')(process.argv.slice(2)) + defaults = ( + 'string' === typeof defaults + ? cc.json(defaults) : defaults + ) || {} + + parse = parse || cc.parse + + var env = cc.env(name + '_') + + var configs = [defaults] + var configFiles = [] + function addConfigFile (file) { + if (configFiles.indexOf(file) >= 0) return + var fileConfig = cc.file(file) + if (fileConfig) { + configs.push(parse(fileConfig)) + configFiles.push(file) + } + } + + // which files do we look at? + if (!win) + [join(etc, name, 'config'), + join(etc, name + 'rc')].forEach(addConfigFile) + if (home) + [join(home, '.config', name, 'config'), + join(home, '.config', name), + join(home, '.' + name, 'config'), + join(home, '.' + name + 'rc')].forEach(addConfigFile) + addConfigFile(cc.find('.'+name+'rc')) + if (env.config) addConfigFile(env.config) + if (argv.config) addConfigFile(argv.config) + + return deepExtend.apply(null, configs.concat([ + env, + argv, + configFiles.length ? {configs: configFiles, config: configFiles[configFiles.length - 1]} : undefined, + ])) +} diff --git a/node_modules/rc/lib/utils.js b/node_modules/rc/lib/utils.js new file mode 100644 index 0000000000000000000000000000000000000000..8b3beffa3295b6d025ffdc5c9a1a5e27468fc044 --- /dev/null +++ b/node_modules/rc/lib/utils.js @@ -0,0 +1,104 @@ +'use strict'; +var fs = require('fs') +var ini = require('ini') +var path = require('path') +var stripJsonComments = require('strip-json-comments') + +var parse = exports.parse = function (content) { + + //if it ends in .json or starts with { then it must be json. + //must be done this way, because ini accepts everything. + //can't just try and parse it and let it throw if it's not ini. + //everything is ini. even json with a syntax error. + + if(/^\s*{/.test(content)) + return JSON.parse(stripJsonComments(content)) + return ini.parse(content) + +} + +var file = exports.file = function () { + var args = [].slice.call(arguments).filter(function (arg) { return arg != null }) + + //path.join breaks if it's a not a string, so just skip this. + for(var i in args) + if('string' !== typeof args[i]) + return + + var file = path.join.apply(null, args) + var content + try { + return fs.readFileSync(file,'utf-8') + } catch (err) { + return + } +} + +var json = exports.json = function () { + var content = file.apply(null, arguments) + return content ? parse(content) : null +} + +var env = exports.env = function (prefix, env) { + env = env || process.env + var obj = {} + var l = prefix.length + for(var k in env) { + if(k.toLowerCase().indexOf(prefix.toLowerCase()) === 0) { + + var keypath = k.substring(l).split('__') + + // Trim empty strings from keypath array + var _emptyStringIndex + while ((_emptyStringIndex=keypath.indexOf('')) > -1) { + keypath.splice(_emptyStringIndex, 1) + } + + var cursor = obj + keypath.forEach(function _buildSubObj(_subkey,i){ + + // (check for _subkey first so we ignore empty strings) + // (check for cursor to avoid assignment to primitive objects) + if (!_subkey || typeof cursor !== 'object') + return + + // If this is the last key, just stuff the value in there + // Assigns actual value from env variable to final key + // (unless it's just an empty string- in that case use the last valid key) + if (i === keypath.length-1) + cursor[_subkey] = env[k] + + + // Build sub-object if nothing already exists at the keypath + if (cursor[_subkey] === undefined) + cursor[_subkey] = {} + + // Increment cursor used to track the object at the current depth + cursor = cursor[_subkey] + + }) + + } + + } + + return obj +} + +var find = exports.find = function () { + var rel = path.join.apply(null, [].slice.call(arguments)) + + function find(start, rel) { + var file = path.join(start, rel) + try { + fs.statSync(file) + return file + } catch (err) { + if(path.dirname(start) !== start) // root + return find(path.dirname(start), rel) + } + } + return find(process.cwd(), rel) +} + + diff --git a/node_modules/rc/package.json b/node_modules/rc/package.json new file mode 100644 index 0000000000000000000000000000000000000000..887238fa43cff07b103022e6311d4867d9f5670d --- /dev/null +++ b/node_modules/rc/package.json @@ -0,0 +1,29 @@ +{ + "name": "rc", + "version": "1.2.8", + "description": "hardwired configuration loader", + "main": "index.js", + "browser": "browser.js", + "scripts": { + "test": "set -e; node test/test.js; node test/ini.js; node test/nested-env-vars.js" + }, + "repository": { + "type": "git", + "url": "https://github.com/dominictarr/rc.git" + }, + "license": "(BSD-2-Clause OR MIT OR Apache-2.0)", + "keywords": [ + "config", + "rc", + "unix", + "defaults" + ], + "bin": "./cli.js", + "author": "Dominic Tarr (dominictarr.com)", + "dependencies": { + "deep-extend": "^0.6.0", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~2.0.1" + } +} diff --git a/node_modules/rc/test/ini.js b/node_modules/rc/test/ini.js new file mode 100644 index 0000000000000000000000000000000000000000..e6857f8b382cf93c772418cc16a68acb83308629 --- /dev/null +++ b/node_modules/rc/test/ini.js @@ -0,0 +1,16 @@ +var cc =require('../lib/utils') +var INI = require('ini') +var assert = require('assert') + +function test(obj) { + + var _json, _ini + var json = cc.parse (_json = JSON.stringify(obj)) + var ini = cc.parse (_ini = INI.stringify(obj)) + console.log(_ini, _json) + assert.deepEqual(json, ini) +} + + +test({hello: true}) + diff --git a/node_modules/rc/test/nested-env-vars.js b/node_modules/rc/test/nested-env-vars.js new file mode 100644 index 0000000000000000000000000000000000000000..0ecd176344018e7bfc903b4a45058b59d646c6c2 --- /dev/null +++ b/node_modules/rc/test/nested-env-vars.js @@ -0,0 +1,50 @@ + +var seed = Math.random(); +var n = 'rc'+ seed; +var N = 'RC'+ seed; +var assert = require('assert') + + +// Basic usage +process.env[n+'_someOpt__a'] = 42 +process.env[n+'_someOpt__x__'] = 99 +process.env[n+'_someOpt__a__b'] = 186 +process.env[n+'_someOpt__a__b__c'] = 243 +process.env[n+'_someOpt__x__y'] = 1862 +process.env[n+'_someOpt__z'] = 186577 + +// Should ignore empty strings from orphaned '__' +process.env[n+'_someOpt__z__x__'] = 18629 +process.env[n+'_someOpt__w__w__'] = 18629 + +// Leading '__' should ignore everything up to 'z' +process.env[n+'___z__i__'] = 9999 + +// should ignore case for config name section. +process.env[N+'_test_upperCase'] = 187 + +function testPrefix(prefix) { + var config = require('../')(prefix, { + option: true + }) + + console.log('\n\n------ nested-env-vars ------\n',{prefix: prefix}, '\n', config); + + assert.equal(config.option, true) + assert.equal(config.someOpt.a, 42) + assert.equal(config.someOpt.x, 99) + // Should not override `a` once it's been set + assert.equal(config.someOpt.a/*.b*/, 42) + // Should not override `x` once it's been set + assert.equal(config.someOpt.x/*.y*/, 99) + assert.equal(config.someOpt.z, 186577) + // Should not override `z` once it's been set + assert.equal(config.someOpt.z/*.x*/, 186577) + assert.equal(config.someOpt.w.w, 18629) + assert.equal(config.z.i, 9999) + + assert.equal(config.test_upperCase, 187) +} + +testPrefix(n); +testPrefix(N); diff --git a/node_modules/rc/test/test.js b/node_modules/rc/test/test.js new file mode 100644 index 0000000000000000000000000000000000000000..4f6335189b6f810739873ed4c6337949c08d70c7 --- /dev/null +++ b/node_modules/rc/test/test.js @@ -0,0 +1,59 @@ + +var n = 'rc'+Math.random() +var assert = require('assert') + +process.env[n+'_envOption'] = 42 + +var config = require('../')(n, { + option: true +}) + +console.log(config) + +assert.equal(config.option, true) +assert.equal(config.envOption, 42) + +var customArgv = require('../')(n, { + option: true +}, { // nopt-like argv + option: false, + envOption: 24, + argv: { + remain: [], + cooked: ['--no-option', '--envOption', '24'], + original: ['--no-option', '--envOption=24'] + } +}) + +console.log(customArgv) + +assert.equal(customArgv.option, false) +assert.equal(customArgv.envOption, 24) + +var fs = require('fs') +var path = require('path') +var jsonrc = path.resolve('.' + n + 'rc'); + +fs.writeFileSync(jsonrc, [ + '{', + '// json overrides default', + '"option": false,', + '/* env overrides json */', + '"envOption": 24', + '}' +].join('\n')); + +var commentedJSON = require('../')(n, { + option: true +}) + +fs.unlinkSync(jsonrc); + +console.log(commentedJSON) + +assert.equal(commentedJSON.option, false) +assert.equal(commentedJSON.envOption, 42) + +assert.equal(commentedJSON.config, jsonrc) +assert.equal(commentedJSON.configs.length, 1) +assert.equal(commentedJSON.configs[0], jsonrc) diff --git a/node_modules/react-dom/LICENSE b/node_modules/react-dom/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..b93be90515ccd0b9daedaa589e42bf5929693f1f --- /dev/null +++ b/node_modules/react-dom/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/node_modules/react-dom/README.md b/node_modules/react-dom/README.md new file mode 100644 index 0000000000000000000000000000000000000000..b078f194ce6f6a6890f9e8081ae4da583b0e99f8 --- /dev/null +++ b/node_modules/react-dom/README.md @@ -0,0 +1,60 @@ +# `react-dom` + +This package serves as the entry point to the DOM and server renderers for React. It is intended to be paired with the generic React package, which is shipped as `react` to npm. + +## Installation + +```sh +npm install react react-dom +``` + +## Usage + +### In the browser + +```js +import { createRoot } from 'react-dom/client'; + +function App() { + return
Hello World
; +} + +const root = createRoot(document.getElementById('root')); +root.render(); +``` + +### On the server + +```js +import { renderToPipeableStream } from 'react-dom/server'; + +function App() { + return
Hello World
; +} + +function handleRequest(res) { + // ... in your server handler ... + const stream = renderToPipeableStream(, { + onShellReady() { + res.statusCode = 200; + res.setHeader('Content-type', 'text/html'); + stream.pipe(res); + }, + // ... + }); +} +``` + +## API + +### `react-dom` + +See https://react.dev/reference/react-dom + +### `react-dom/client` + +See https://react.dev/reference/react-dom/client + +### `react-dom/server` + +See https://react.dev/reference/react-dom/server diff --git a/node_modules/react-dom/cjs/react-dom-client.development.js b/node_modules/react-dom/cjs/react-dom-client.development.js new file mode 100644 index 0000000000000000000000000000000000000000..4c7515ae8c32d3930c94fc4a17c033d5d67c29b4 --- /dev/null +++ b/node_modules/react-dom/cjs/react-dom-client.development.js @@ -0,0 +1,28121 @@ +/** + * @license React + * react-dom-client.development.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +/* + Modernizr 3.0.0pre (Custom Build) | MIT +*/ +"use strict"; +"production" !== process.env.NODE_ENV && + (function () { + function findHook(fiber, id) { + for (fiber = fiber.memoizedState; null !== fiber && 0 < id; ) + (fiber = fiber.next), id--; + return fiber; + } + function copyWithSetImpl(obj, path, index, value) { + if (index >= path.length) return value; + var key = path[index], + updated = isArrayImpl(obj) ? obj.slice() : assign({}, obj); + updated[key] = copyWithSetImpl(obj[key], path, index + 1, value); + return updated; + } + function copyWithRename(obj, oldPath, newPath) { + if (oldPath.length !== newPath.length) + console.warn("copyWithRename() expects paths of the same length"); + else { + for (var i = 0; i < newPath.length - 1; i++) + if (oldPath[i] !== newPath[i]) { + console.warn( + "copyWithRename() expects paths to be the same except for the deepest key" + ); + return; + } + return copyWithRenameImpl(obj, oldPath, newPath, 0); + } + } + function copyWithRenameImpl(obj, oldPath, newPath, index) { + var oldKey = oldPath[index], + updated = isArrayImpl(obj) ? obj.slice() : assign({}, obj); + index + 1 === oldPath.length + ? ((updated[newPath[index]] = updated[oldKey]), + isArrayImpl(updated) + ? updated.splice(oldKey, 1) + : delete updated[oldKey]) + : (updated[oldKey] = copyWithRenameImpl( + obj[oldKey], + oldPath, + newPath, + index + 1 + )); + return updated; + } + function copyWithDeleteImpl(obj, path, index) { + var key = path[index], + updated = isArrayImpl(obj) ? obj.slice() : assign({}, obj); + if (index + 1 === path.length) + return ( + isArrayImpl(updated) ? updated.splice(key, 1) : delete updated[key], + updated + ); + updated[key] = copyWithDeleteImpl(obj[key], path, index + 1); + return updated; + } + function shouldSuspendImpl() { + return !1; + } + function shouldErrorImpl() { + return null; + } + function warnInvalidHookAccess() { + console.error( + "Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks" + ); + } + function warnInvalidContextAccess() { + console.error( + "Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()." + ); + } + function noop() {} + function warnForMissingKey() {} + function setToSortedString(set) { + var array = []; + set.forEach(function (value) { + array.push(value); + }); + return array.sort().join(", "); + } + function createFiber(tag, pendingProps, key, mode) { + return new FiberNode(tag, pendingProps, key, mode); + } + function scheduleRoot(root, element) { + root.context === emptyContextObject && + (updateContainerImpl(root.current, 2, element, root, null, null), + flushSyncWork$1()); + } + function scheduleRefresh(root, update) { + if (null !== resolveFamily) { + var staleFamilies = update.staleFamilies; + update = update.updatedFamilies; + flushPendingEffects(); + scheduleFibersWithFamiliesRecursively( + root.current, + update, + staleFamilies + ); + flushSyncWork$1(); + } + } + function setRefreshHandler(handler) { + resolveFamily = handler; + } + function isValidContainer(node) { + return !( + !node || + (1 !== node.nodeType && 9 !== node.nodeType && 11 !== node.nodeType) + ); + } + function getNearestMountedFiber(fiber) { + var node = fiber, + nearestMounted = fiber; + if (fiber.alternate) for (; node.return; ) node = node.return; + else { + fiber = node; + do + (node = fiber), + 0 !== (node.flags & 4098) && (nearestMounted = node.return), + (fiber = node.return); + while (fiber); + } + return 3 === node.tag ? nearestMounted : null; + } + function getSuspenseInstanceFromFiber(fiber) { + if (13 === fiber.tag) { + var suspenseState = fiber.memoizedState; + null === suspenseState && + ((fiber = fiber.alternate), + null !== fiber && (suspenseState = fiber.memoizedState)); + if (null !== suspenseState) return suspenseState.dehydrated; + } + return null; + } + function getActivityInstanceFromFiber(fiber) { + if (31 === fiber.tag) { + var activityState = fiber.memoizedState; + null === activityState && + ((fiber = fiber.alternate), + null !== fiber && (activityState = fiber.memoizedState)); + if (null !== activityState) return activityState.dehydrated; + } + return null; + } + function assertIsMounted(fiber) { + if (getNearestMountedFiber(fiber) !== fiber) + throw Error("Unable to find node on an unmounted component."); + } + function findCurrentFiberUsingSlowPath(fiber) { + var alternate = fiber.alternate; + if (!alternate) { + alternate = getNearestMountedFiber(fiber); + if (null === alternate) + throw Error("Unable to find node on an unmounted component."); + return alternate !== fiber ? null : fiber; + } + for (var a = fiber, b = alternate; ; ) { + var parentA = a.return; + if (null === parentA) break; + var parentB = parentA.alternate; + if (null === parentB) { + b = parentA.return; + if (null !== b) { + a = b; + continue; + } + break; + } + if (parentA.child === parentB.child) { + for (parentB = parentA.child; parentB; ) { + if (parentB === a) return assertIsMounted(parentA), fiber; + if (parentB === b) return assertIsMounted(parentA), alternate; + parentB = parentB.sibling; + } + throw Error("Unable to find node on an unmounted component."); + } + if (a.return !== b.return) (a = parentA), (b = parentB); + else { + for (var didFindChild = !1, _child = parentA.child; _child; ) { + if (_child === a) { + didFindChild = !0; + a = parentA; + b = parentB; + break; + } + if (_child === b) { + didFindChild = !0; + b = parentA; + a = parentB; + break; + } + _child = _child.sibling; + } + if (!didFindChild) { + for (_child = parentB.child; _child; ) { + if (_child === a) { + didFindChild = !0; + a = parentB; + b = parentA; + break; + } + if (_child === b) { + didFindChild = !0; + b = parentB; + a = parentA; + break; + } + _child = _child.sibling; + } + if (!didFindChild) + throw Error( + "Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue." + ); + } + } + if (a.alternate !== b) + throw Error( + "Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue." + ); + } + if (3 !== a.tag) + throw Error("Unable to find node on an unmounted component."); + return a.stateNode.current === a ? fiber : alternate; + } + function findCurrentHostFiberImpl(node) { + var tag = node.tag; + if (5 === tag || 26 === tag || 27 === tag || 6 === tag) return node; + for (node = node.child; null !== node; ) { + tag = findCurrentHostFiberImpl(node); + if (null !== tag) return tag; + node = node.sibling; + } + return null; + } + function getIteratorFn(maybeIterable) { + if (null === maybeIterable || "object" !== typeof maybeIterable) + return null; + maybeIterable = + (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) || + maybeIterable["@@iterator"]; + return "function" === typeof maybeIterable ? maybeIterable : null; + } + function getComponentNameFromType(type) { + if (null == type) return null; + if ("function" === typeof type) + return type.$$typeof === REACT_CLIENT_REFERENCE + ? null + : type.displayName || type.name || null; + if ("string" === typeof type) return type; + switch (type) { + case REACT_FRAGMENT_TYPE: + return "Fragment"; + case REACT_PROFILER_TYPE: + return "Profiler"; + case REACT_STRICT_MODE_TYPE: + return "StrictMode"; + case REACT_SUSPENSE_TYPE: + return "Suspense"; + case REACT_SUSPENSE_LIST_TYPE: + return "SuspenseList"; + case REACT_ACTIVITY_TYPE: + return "Activity"; + } + if ("object" === typeof type) + switch ( + ("number" === typeof type.tag && + console.error( + "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." + ), + type.$$typeof) + ) { + case REACT_PORTAL_TYPE: + return "Portal"; + case REACT_CONTEXT_TYPE: + return type.displayName || "Context"; + case REACT_CONSUMER_TYPE: + return (type._context.displayName || "Context") + ".Consumer"; + case REACT_FORWARD_REF_TYPE: + var innerType = type.render; + type = type.displayName; + type || + ((type = innerType.displayName || innerType.name || ""), + (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef")); + return type; + case REACT_MEMO_TYPE: + return ( + (innerType = type.displayName || null), + null !== innerType + ? innerType + : getComponentNameFromType(type.type) || "Memo" + ); + case REACT_LAZY_TYPE: + innerType = type._payload; + type = type._init; + try { + return getComponentNameFromType(type(innerType)); + } catch (x) {} + } + return null; + } + function getComponentNameFromOwner(owner) { + return "number" === typeof owner.tag + ? getComponentNameFromFiber(owner) + : "string" === typeof owner.name + ? owner.name + : null; + } + function getComponentNameFromFiber(fiber) { + var type = fiber.type; + switch (fiber.tag) { + case 31: + return "Activity"; + case 24: + return "Cache"; + case 9: + return (type._context.displayName || "Context") + ".Consumer"; + case 10: + return type.displayName || "Context"; + case 18: + return "DehydratedFragment"; + case 11: + return ( + (fiber = type.render), + (fiber = fiber.displayName || fiber.name || ""), + type.displayName || + ("" !== fiber ? "ForwardRef(" + fiber + ")" : "ForwardRef") + ); + case 7: + return "Fragment"; + case 26: + case 27: + case 5: + return type; + case 4: + return "Portal"; + case 3: + return "Root"; + case 6: + return "Text"; + case 16: + return getComponentNameFromType(type); + case 8: + return type === REACT_STRICT_MODE_TYPE ? "StrictMode" : "Mode"; + case 22: + return "Offscreen"; + case 12: + return "Profiler"; + case 21: + return "Scope"; + case 13: + return "Suspense"; + case 19: + return "SuspenseList"; + case 25: + return "TracingMarker"; + case 1: + case 0: + case 14: + case 15: + if ("function" === typeof type) + return type.displayName || type.name || null; + if ("string" === typeof type) return type; + break; + case 29: + type = fiber._debugInfo; + if (null != type) + for (var i = type.length - 1; 0 <= i; i--) + if ("string" === typeof type[i].name) return type[i].name; + if (null !== fiber.return) + return getComponentNameFromFiber(fiber.return); + } + return null; + } + function createCursor(defaultValue) { + return { current: defaultValue }; + } + function pop(cursor, fiber) { + 0 > index$jscomp$0 + ? console.error("Unexpected pop.") + : (fiber !== fiberStack[index$jscomp$0] && + console.error("Unexpected Fiber popped."), + (cursor.current = valueStack[index$jscomp$0]), + (valueStack[index$jscomp$0] = null), + (fiberStack[index$jscomp$0] = null), + index$jscomp$0--); + } + function push(cursor, value, fiber) { + index$jscomp$0++; + valueStack[index$jscomp$0] = cursor.current; + fiberStack[index$jscomp$0] = fiber; + cursor.current = value; + } + function requiredContext(c) { + null === c && + console.error( + "Expected host context to exist. This error is likely caused by a bug in React. Please file an issue." + ); + return c; + } + function pushHostContainer(fiber, nextRootInstance) { + push(rootInstanceStackCursor, nextRootInstance, fiber); + push(contextFiberStackCursor, fiber, fiber); + push(contextStackCursor, null, fiber); + var nextRootContext = nextRootInstance.nodeType; + switch (nextRootContext) { + case 9: + case 11: + nextRootContext = 9 === nextRootContext ? "#document" : "#fragment"; + nextRootInstance = (nextRootInstance = + nextRootInstance.documentElement) + ? (nextRootInstance = nextRootInstance.namespaceURI) + ? getOwnHostContext(nextRootInstance) + : HostContextNamespaceNone + : HostContextNamespaceNone; + break; + default: + if ( + ((nextRootContext = nextRootInstance.tagName), + (nextRootInstance = nextRootInstance.namespaceURI)) + ) + (nextRootInstance = getOwnHostContext(nextRootInstance)), + (nextRootInstance = getChildHostContextProd( + nextRootInstance, + nextRootContext + )); + else + switch (nextRootContext) { + case "svg": + nextRootInstance = HostContextNamespaceSvg; + break; + case "math": + nextRootInstance = HostContextNamespaceMath; + break; + default: + nextRootInstance = HostContextNamespaceNone; + } + } + nextRootContext = nextRootContext.toLowerCase(); + nextRootContext = updatedAncestorInfoDev(null, nextRootContext); + nextRootContext = { + context: nextRootInstance, + ancestorInfo: nextRootContext + }; + pop(contextStackCursor, fiber); + push(contextStackCursor, nextRootContext, fiber); + } + function popHostContainer(fiber) { + pop(contextStackCursor, fiber); + pop(contextFiberStackCursor, fiber); + pop(rootInstanceStackCursor, fiber); + } + function getHostContext() { + return requiredContext(contextStackCursor.current); + } + function pushHostContext(fiber) { + null !== fiber.memoizedState && + push(hostTransitionProviderCursor, fiber, fiber); + var context = requiredContext(contextStackCursor.current); + var type = fiber.type; + var nextContext = getChildHostContextProd(context.context, type); + type = updatedAncestorInfoDev(context.ancestorInfo, type); + nextContext = { context: nextContext, ancestorInfo: type }; + context !== nextContext && + (push(contextFiberStackCursor, fiber, fiber), + push(contextStackCursor, nextContext, fiber)); + } + function popHostContext(fiber) { + contextFiberStackCursor.current === fiber && + (pop(contextStackCursor, fiber), pop(contextFiberStackCursor, fiber)); + hostTransitionProviderCursor.current === fiber && + (pop(hostTransitionProviderCursor, fiber), + (HostTransitionContext._currentValue = NotPendingTransition)); + } + function disabledLog() {} + function disableLogs() { + if (0 === disabledDepth) { + prevLog = console.log; + prevInfo = console.info; + prevWarn = console.warn; + prevError = console.error; + prevGroup = console.group; + prevGroupCollapsed = console.groupCollapsed; + prevGroupEnd = console.groupEnd; + var props = { + configurable: !0, + enumerable: !0, + value: disabledLog, + writable: !0 + }; + Object.defineProperties(console, { + info: props, + log: props, + warn: props, + error: props, + group: props, + groupCollapsed: props, + groupEnd: props + }); + } + disabledDepth++; + } + function reenableLogs() { + disabledDepth--; + if (0 === disabledDepth) { + var props = { configurable: !0, enumerable: !0, writable: !0 }; + Object.defineProperties(console, { + log: assign({}, props, { value: prevLog }), + info: assign({}, props, { value: prevInfo }), + warn: assign({}, props, { value: prevWarn }), + error: assign({}, props, { value: prevError }), + group: assign({}, props, { value: prevGroup }), + groupCollapsed: assign({}, props, { value: prevGroupCollapsed }), + groupEnd: assign({}, props, { value: prevGroupEnd }) + }); + } + 0 > disabledDepth && + console.error( + "disabledDepth fell below zero. This is a bug in React. Please file an issue." + ); + } + function formatOwnerStack(error) { + var prevPrepareStackTrace = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + error = error.stack; + Error.prepareStackTrace = prevPrepareStackTrace; + error.startsWith("Error: react-stack-top-frame\n") && + (error = error.slice(29)); + prevPrepareStackTrace = error.indexOf("\n"); + -1 !== prevPrepareStackTrace && + (error = error.slice(prevPrepareStackTrace + 1)); + prevPrepareStackTrace = error.indexOf("react_stack_bottom_frame"); + -1 !== prevPrepareStackTrace && + (prevPrepareStackTrace = error.lastIndexOf( + "\n", + prevPrepareStackTrace + )); + if (-1 !== prevPrepareStackTrace) + error = error.slice(0, prevPrepareStackTrace); + else return ""; + return error; + } + function describeBuiltInComponentFrame(name) { + if (void 0 === prefix) + try { + throw Error(); + } catch (x) { + var match = x.stack.trim().match(/\n( *(at )?)/); + prefix = (match && match[1]) || ""; + suffix = + -1 < x.stack.indexOf("\n at") + ? " ()" + : -1 < x.stack.indexOf("@") + ? "@unknown:0:0" + : ""; + } + return "\n" + prefix + name + suffix; + } + function describeNativeComponentFrame(fn, construct) { + if (!fn || reentry) return ""; + var frame = componentFrameCache.get(fn); + if (void 0 !== frame) return frame; + reentry = !0; + frame = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + var previousDispatcher = null; + previousDispatcher = ReactSharedInternals.H; + ReactSharedInternals.H = null; + disableLogs(); + try { + var RunInRootFrame = { + DetermineComponentFrameRoot: function () { + try { + if (construct) { + var Fake = function () { + throw Error(); + }; + Object.defineProperty(Fake.prototype, "props", { + set: function () { + throw Error(); + } + }); + if ("object" === typeof Reflect && Reflect.construct) { + try { + Reflect.construct(Fake, []); + } catch (x) { + var control = x; + } + Reflect.construct(fn, [], Fake); + } else { + try { + Fake.call(); + } catch (x$0) { + control = x$0; + } + fn.call(Fake.prototype); + } + } else { + try { + throw Error(); + } catch (x$1) { + control = x$1; + } + (Fake = fn()) && + "function" === typeof Fake.catch && + Fake.catch(function () {}); + } + } catch (sample) { + if (sample && control && "string" === typeof sample.stack) + return [sample.stack, control.stack]; + } + return [null, null]; + } + }; + RunInRootFrame.DetermineComponentFrameRoot.displayName = + "DetermineComponentFrameRoot"; + var namePropDescriptor = Object.getOwnPropertyDescriptor( + RunInRootFrame.DetermineComponentFrameRoot, + "name" + ); + namePropDescriptor && + namePropDescriptor.configurable && + Object.defineProperty( + RunInRootFrame.DetermineComponentFrameRoot, + "name", + { value: "DetermineComponentFrameRoot" } + ); + var _RunInRootFrame$Deter = + RunInRootFrame.DetermineComponentFrameRoot(), + sampleStack = _RunInRootFrame$Deter[0], + controlStack = _RunInRootFrame$Deter[1]; + if (sampleStack && controlStack) { + var sampleLines = sampleStack.split("\n"), + controlLines = controlStack.split("\n"); + for ( + _RunInRootFrame$Deter = namePropDescriptor = 0; + namePropDescriptor < sampleLines.length && + !sampleLines[namePropDescriptor].includes( + "DetermineComponentFrameRoot" + ); + + ) + namePropDescriptor++; + for ( + ; + _RunInRootFrame$Deter < controlLines.length && + !controlLines[_RunInRootFrame$Deter].includes( + "DetermineComponentFrameRoot" + ); + + ) + _RunInRootFrame$Deter++; + if ( + namePropDescriptor === sampleLines.length || + _RunInRootFrame$Deter === controlLines.length + ) + for ( + namePropDescriptor = sampleLines.length - 1, + _RunInRootFrame$Deter = controlLines.length - 1; + 1 <= namePropDescriptor && + 0 <= _RunInRootFrame$Deter && + sampleLines[namePropDescriptor] !== + controlLines[_RunInRootFrame$Deter]; + + ) + _RunInRootFrame$Deter--; + for ( + ; + 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter; + namePropDescriptor--, _RunInRootFrame$Deter-- + ) + if ( + sampleLines[namePropDescriptor] !== + controlLines[_RunInRootFrame$Deter] + ) { + if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) { + do + if ( + (namePropDescriptor--, + _RunInRootFrame$Deter--, + 0 > _RunInRootFrame$Deter || + sampleLines[namePropDescriptor] !== + controlLines[_RunInRootFrame$Deter]) + ) { + var _frame = + "\n" + + sampleLines[namePropDescriptor].replace( + " at new ", + " at " + ); + fn.displayName && + _frame.includes("") && + (_frame = _frame.replace("", fn.displayName)); + "function" === typeof fn && + componentFrameCache.set(fn, _frame); + return _frame; + } + while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter); + } + break; + } + } + } finally { + (reentry = !1), + (ReactSharedInternals.H = previousDispatcher), + reenableLogs(), + (Error.prepareStackTrace = frame); + } + sampleLines = (sampleLines = fn ? fn.displayName || fn.name : "") + ? describeBuiltInComponentFrame(sampleLines) + : ""; + "function" === typeof fn && componentFrameCache.set(fn, sampleLines); + return sampleLines; + } + function describeFiber(fiber, childFiber) { + switch (fiber.tag) { + case 26: + case 27: + case 5: + return describeBuiltInComponentFrame(fiber.type); + case 16: + return describeBuiltInComponentFrame("Lazy"); + case 13: + return fiber.child !== childFiber && null !== childFiber + ? describeBuiltInComponentFrame("Suspense Fallback") + : describeBuiltInComponentFrame("Suspense"); + case 19: + return describeBuiltInComponentFrame("SuspenseList"); + case 0: + case 15: + return describeNativeComponentFrame(fiber.type, !1); + case 11: + return describeNativeComponentFrame(fiber.type.render, !1); + case 1: + return describeNativeComponentFrame(fiber.type, !0); + case 31: + return describeBuiltInComponentFrame("Activity"); + default: + return ""; + } + } + function getStackByFiberInDevAndProd(workInProgress) { + try { + var info = "", + previous = null; + do { + info += describeFiber(workInProgress, previous); + var debugInfo = workInProgress._debugInfo; + if (debugInfo) + for (var i = debugInfo.length - 1; 0 <= i; i--) { + var entry = debugInfo[i]; + if ("string" === typeof entry.name) { + var JSCompiler_temp_const = info; + a: { + var name = entry.name, + env = entry.env, + location = entry.debugLocation; + if (null != location) { + var childStack = formatOwnerStack(location), + idx = childStack.lastIndexOf("\n"), + lastLine = + -1 === idx ? childStack : childStack.slice(idx + 1); + if (-1 !== lastLine.indexOf(name)) { + var JSCompiler_inline_result = "\n" + lastLine; + break a; + } + } + JSCompiler_inline_result = describeBuiltInComponentFrame( + name + (env ? " [" + env + "]" : "") + ); + } + info = JSCompiler_temp_const + JSCompiler_inline_result; + } + } + previous = workInProgress; + workInProgress = workInProgress.return; + } while (workInProgress); + return info; + } catch (x) { + return "\nError generating stack: " + x.message + "\n" + x.stack; + } + } + function describeFunctionComponentFrameWithoutLineNumber(fn) { + return (fn = fn ? fn.displayName || fn.name : "") + ? describeBuiltInComponentFrame(fn) + : ""; + } + function getCurrentFiberOwnerNameInDevOrNull() { + if (null === current) return null; + var owner = current._debugOwner; + return null != owner ? getComponentNameFromOwner(owner) : null; + } + function getCurrentFiberStackInDev() { + if (null === current) return ""; + var workInProgress = current; + try { + var info = ""; + 6 === workInProgress.tag && (workInProgress = workInProgress.return); + switch (workInProgress.tag) { + case 26: + case 27: + case 5: + info += describeBuiltInComponentFrame(workInProgress.type); + break; + case 13: + info += describeBuiltInComponentFrame("Suspense"); + break; + case 19: + info += describeBuiltInComponentFrame("SuspenseList"); + break; + case 31: + info += describeBuiltInComponentFrame("Activity"); + break; + case 30: + case 0: + case 15: + case 1: + workInProgress._debugOwner || + "" !== info || + (info += describeFunctionComponentFrameWithoutLineNumber( + workInProgress.type + )); + break; + case 11: + workInProgress._debugOwner || + "" !== info || + (info += describeFunctionComponentFrameWithoutLineNumber( + workInProgress.type.render + )); + } + for (; workInProgress; ) + if ("number" === typeof workInProgress.tag) { + var fiber = workInProgress; + workInProgress = fiber._debugOwner; + var debugStack = fiber._debugStack; + if (workInProgress && debugStack) { + var formattedStack = formatOwnerStack(debugStack); + "" !== formattedStack && (info += "\n" + formattedStack); + } + } else if (null != workInProgress.debugStack) { + var ownerStack = workInProgress.debugStack; + (workInProgress = workInProgress.owner) && + ownerStack && + (info += "\n" + formatOwnerStack(ownerStack)); + } else break; + var JSCompiler_inline_result = info; + } catch (x) { + JSCompiler_inline_result = + "\nError generating stack: " + x.message + "\n" + x.stack; + } + return JSCompiler_inline_result; + } + function runWithFiberInDEV(fiber, callback, arg0, arg1, arg2, arg3, arg4) { + var previousFiber = current; + setCurrentFiber(fiber); + try { + return null !== fiber && fiber._debugTask + ? fiber._debugTask.run( + callback.bind(null, arg0, arg1, arg2, arg3, arg4) + ) + : callback(arg0, arg1, arg2, arg3, arg4); + } finally { + setCurrentFiber(previousFiber); + } + throw Error( + "runWithFiberInDEV should never be called in production. This is a bug in React." + ); + } + function setCurrentFiber(fiber) { + ReactSharedInternals.getCurrentStack = + null === fiber ? null : getCurrentFiberStackInDev; + isRendering = !1; + current = fiber; + } + function typeName(value) { + return ( + ("function" === typeof Symbol && + Symbol.toStringTag && + value[Symbol.toStringTag]) || + value.constructor.name || + "Object" + ); + } + function willCoercionThrow(value) { + try { + return testStringCoercion(value), !1; + } catch (e) { + return !0; + } + } + function testStringCoercion(value) { + return "" + value; + } + function checkAttributeStringCoercion(value, attributeName) { + if (willCoercionThrow(value)) + return ( + console.error( + "The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.", + attributeName, + typeName(value) + ), + testStringCoercion(value) + ); + } + function checkCSSPropertyStringCoercion(value, propName) { + if (willCoercionThrow(value)) + return ( + console.error( + "The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.", + propName, + typeName(value) + ), + testStringCoercion(value) + ); + } + function checkFormFieldValueStringCoercion(value) { + if (willCoercionThrow(value)) + return ( + console.error( + "Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.", + typeName(value) + ), + testStringCoercion(value) + ); + } + function injectInternals(internals) { + if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1; + var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__; + if (hook.isDisabled) return !0; + if (!hook.supportsFiber) + return ( + console.error( + "The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools" + ), + !0 + ); + try { + (rendererID = hook.inject(internals)), (injectedHook = hook); + } catch (err) { + console.error("React instrumentation encountered an error: %o.", err); + } + return hook.checkDCE ? !0 : !1; + } + function setIsStrictModeForDevtools(newIsStrictMode) { + "function" === typeof log$1 && + unstable_setDisableYieldValue(newIsStrictMode); + if (injectedHook && "function" === typeof injectedHook.setStrictMode) + try { + injectedHook.setStrictMode(rendererID, newIsStrictMode); + } catch (err) { + hasLoggedError || + ((hasLoggedError = !0), + console.error( + "React instrumentation encountered an error: %o", + err + )); + } + } + function clz32Fallback(x) { + x >>>= 0; + return 0 === x ? 32 : (31 - ((log(x) / LN2) | 0)) | 0; + } + function getHighestPriorityLanes(lanes) { + var pendingSyncLanes = lanes & 42; + if (0 !== pendingSyncLanes) return pendingSyncLanes; + switch (lanes & -lanes) { + case 1: + return 1; + case 2: + return 2; + case 4: + return 4; + case 8: + return 8; + case 16: + return 16; + case 32: + return 32; + case 64: + return 64; + case 128: + return 128; + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + return lanes & 261888; + case 262144: + case 524288: + case 1048576: + case 2097152: + return lanes & 3932160; + case 4194304: + case 8388608: + case 16777216: + case 33554432: + return lanes & 62914560; + case 67108864: + return 67108864; + case 134217728: + return 134217728; + case 268435456: + return 268435456; + case 536870912: + return 536870912; + case 1073741824: + return 0; + default: + return ( + console.error( + "Should have found matching lanes. This is a bug in React." + ), + lanes + ); + } + } + function getNextLanes(root, wipLanes, rootHasPendingCommit) { + var pendingLanes = root.pendingLanes; + if (0 === pendingLanes) return 0; + var nextLanes = 0, + suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes; + root = root.warmLanes; + var nonIdlePendingLanes = pendingLanes & 134217727; + 0 !== nonIdlePendingLanes + ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes), + 0 !== pendingLanes + ? (nextLanes = getHighestPriorityLanes(pendingLanes)) + : ((pingedLanes &= nonIdlePendingLanes), + 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : rootHasPendingCommit || + ((rootHasPendingCommit = nonIdlePendingLanes & ~root), + 0 !== rootHasPendingCommit && + (nextLanes = + getHighestPriorityLanes(rootHasPendingCommit))))) + : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), + 0 !== nonIdlePendingLanes + ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) + : 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : rootHasPendingCommit || + ((rootHasPendingCommit = pendingLanes & ~root), + 0 !== rootHasPendingCommit && + (nextLanes = getHighestPriorityLanes(rootHasPendingCommit)))); + return 0 === nextLanes + ? 0 + : 0 !== wipLanes && + wipLanes !== nextLanes && + 0 === (wipLanes & suspendedLanes) && + ((suspendedLanes = nextLanes & -nextLanes), + (rootHasPendingCommit = wipLanes & -wipLanes), + suspendedLanes >= rootHasPendingCommit || + (32 === suspendedLanes && 0 !== (rootHasPendingCommit & 4194048))) + ? wipLanes + : nextLanes; + } + function checkIfRootIsPrerendering(root, renderLanes) { + return ( + 0 === + (root.pendingLanes & + ~(root.suspendedLanes & ~root.pingedLanes) & + renderLanes) + ); + } + function computeExpirationTime(lane, currentTime) { + switch (lane) { + case 1: + case 2: + case 4: + case 8: + case 64: + return currentTime + 250; + case 16: + case 32: + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + return currentTime + 5e3; + case 4194304: + case 8388608: + case 16777216: + case 33554432: + return -1; + case 67108864: + case 134217728: + case 268435456: + case 536870912: + case 1073741824: + return -1; + default: + return ( + console.error( + "Should have found matching lanes. This is a bug in React." + ), + -1 + ); + } + } + function claimNextRetryLane() { + var lane = nextRetryLane; + nextRetryLane <<= 1; + 0 === (nextRetryLane & 62914560) && (nextRetryLane = 4194304); + return lane; + } + function createLaneMap(initial) { + for (var laneMap = [], i = 0; 31 > i; i++) laneMap.push(initial); + return laneMap; + } + function markRootUpdated$1(root, updateLane) { + root.pendingLanes |= updateLane; + 268435456 !== updateLane && + ((root.suspendedLanes = 0), + (root.pingedLanes = 0), + (root.warmLanes = 0)); + } + function markRootFinished( + root, + finishedLanes, + remainingLanes, + spawnedLane, + updatedLanes, + suspendedRetryLanes + ) { + var previouslyPendingLanes = root.pendingLanes; + root.pendingLanes = remainingLanes; + root.suspendedLanes = 0; + root.pingedLanes = 0; + root.warmLanes = 0; + root.expiredLanes &= remainingLanes; + root.entangledLanes &= remainingLanes; + root.errorRecoveryDisabledLanes &= remainingLanes; + root.shellSuspendCounter = 0; + var entanglements = root.entanglements, + expirationTimes = root.expirationTimes, + hiddenUpdates = root.hiddenUpdates; + for ( + remainingLanes = previouslyPendingLanes & ~remainingLanes; + 0 < remainingLanes; + + ) { + var index = 31 - clz32(remainingLanes), + lane = 1 << index; + entanglements[index] = 0; + expirationTimes[index] = -1; + var hiddenUpdatesForLane = hiddenUpdates[index]; + if (null !== hiddenUpdatesForLane) + for ( + hiddenUpdates[index] = null, index = 0; + index < hiddenUpdatesForLane.length; + index++ + ) { + var update = hiddenUpdatesForLane[index]; + null !== update && (update.lane &= -536870913); + } + remainingLanes &= ~lane; + } + 0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0); + 0 !== suspendedRetryLanes && + 0 === updatedLanes && + 0 !== root.tag && + (root.suspendedLanes |= + suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes)); + } + function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { + root.pendingLanes |= spawnedLane; + root.suspendedLanes &= ~spawnedLane; + var spawnedLaneIndex = 31 - clz32(spawnedLane); + root.entangledLanes |= spawnedLane; + root.entanglements[spawnedLaneIndex] = + root.entanglements[spawnedLaneIndex] | + 1073741824 | + (entangledLanes & 261930); + } + function markRootEntangled(root, entangledLanes) { + var rootEntangledLanes = (root.entangledLanes |= entangledLanes); + for (root = root.entanglements; rootEntangledLanes; ) { + var index = 31 - clz32(rootEntangledLanes), + lane = 1 << index; + (lane & entangledLanes) | (root[index] & entangledLanes) && + (root[index] |= entangledLanes); + rootEntangledLanes &= ~lane; + } + } + function getBumpedLaneForHydration(root, renderLanes) { + var renderLane = renderLanes & -renderLanes; + renderLane = + 0 !== (renderLane & 42) + ? 1 + : getBumpedLaneForHydrationByLane(renderLane); + return 0 !== (renderLane & (root.suspendedLanes | renderLanes)) + ? 0 + : renderLane; + } + function getBumpedLaneForHydrationByLane(lane) { + switch (lane) { + case 2: + lane = 1; + break; + case 8: + lane = 4; + break; + case 32: + lane = 16; + break; + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + case 4194304: + case 8388608: + case 16777216: + case 33554432: + lane = 128; + break; + case 268435456: + lane = 134217728; + break; + default: + lane = 0; + } + return lane; + } + function addFiberToLanesMap(root, fiber, lanes) { + if (isDevToolsPresent) + for (root = root.pendingUpdatersLaneMap; 0 < lanes; ) { + var index = 31 - clz32(lanes), + lane = 1 << index; + root[index].add(fiber); + lanes &= ~lane; + } + } + function movePendingFibersToMemoized(root, lanes) { + if (isDevToolsPresent) + for ( + var pendingUpdatersLaneMap = root.pendingUpdatersLaneMap, + memoizedUpdaters = root.memoizedUpdaters; + 0 < lanes; + + ) { + var index = 31 - clz32(lanes); + root = 1 << index; + index = pendingUpdatersLaneMap[index]; + 0 < index.size && + (index.forEach(function (fiber) { + var alternate = fiber.alternate; + (null !== alternate && memoizedUpdaters.has(alternate)) || + memoizedUpdaters.add(fiber); + }), + index.clear()); + lanes &= ~root; + } + } + function lanesToEventPriority(lanes) { + lanes &= -lanes; + return 0 !== DiscreteEventPriority && DiscreteEventPriority < lanes + ? 0 !== ContinuousEventPriority && ContinuousEventPriority < lanes + ? 0 !== (lanes & 134217727) + ? DefaultEventPriority + : IdleEventPriority + : ContinuousEventPriority + : DiscreteEventPriority; + } + function resolveUpdatePriority() { + var updatePriority = ReactDOMSharedInternals.p; + if (0 !== updatePriority) return updatePriority; + updatePriority = window.event; + return void 0 === updatePriority + ? DefaultEventPriority + : getEventPriority(updatePriority.type); + } + function runWithPriority(priority, fn) { + var previousPriority = ReactDOMSharedInternals.p; + try { + return (ReactDOMSharedInternals.p = priority), fn(); + } finally { + ReactDOMSharedInternals.p = previousPriority; + } + } + function detachDeletedInstance(node) { + delete node[internalInstanceKey]; + delete node[internalPropsKey]; + delete node[internalEventHandlersKey]; + delete node[internalEventHandlerListenersKey]; + delete node[internalEventHandlesSetKey]; + } + function getClosestInstanceFromNode(targetNode) { + var targetInst = targetNode[internalInstanceKey]; + if (targetInst) return targetInst; + for (var parentNode = targetNode.parentNode; parentNode; ) { + if ( + (targetInst = + parentNode[internalContainerInstanceKey] || + parentNode[internalInstanceKey]) + ) { + parentNode = targetInst.alternate; + if ( + null !== targetInst.child || + (null !== parentNode && null !== parentNode.child) + ) + for ( + targetNode = getParentHydrationBoundary(targetNode); + null !== targetNode; + + ) { + if ((parentNode = targetNode[internalInstanceKey])) + return parentNode; + targetNode = getParentHydrationBoundary(targetNode); + } + return targetInst; + } + targetNode = parentNode; + parentNode = targetNode.parentNode; + } + return null; + } + function getInstanceFromNode(node) { + if ( + (node = node[internalInstanceKey] || node[internalContainerInstanceKey]) + ) { + var tag = node.tag; + if ( + 5 === tag || + 6 === tag || + 13 === tag || + 31 === tag || + 26 === tag || + 27 === tag || + 3 === tag + ) + return node; + } + return null; + } + function getNodeFromInstance(inst) { + var tag = inst.tag; + if (5 === tag || 26 === tag || 27 === tag || 6 === tag) + return inst.stateNode; + throw Error("getNodeFromInstance: Invalid argument."); + } + function getResourcesFromRoot(root) { + var resources = root[internalRootNodeResourcesKey]; + resources || + (resources = root[internalRootNodeResourcesKey] = + { hoistableStyles: new Map(), hoistableScripts: new Map() }); + return resources; + } + function markNodeAsHoistable(node) { + node[internalHoistableMarker] = !0; + } + function registerTwoPhaseEvent(registrationName, dependencies) { + registerDirectEvent(registrationName, dependencies); + registerDirectEvent(registrationName + "Capture", dependencies); + } + function registerDirectEvent(registrationName, dependencies) { + registrationNameDependencies[registrationName] && + console.error( + "EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.", + registrationName + ); + registrationNameDependencies[registrationName] = dependencies; + var lowerCasedName = registrationName.toLowerCase(); + possibleRegistrationNames[lowerCasedName] = registrationName; + "onDoubleClick" === registrationName && + (possibleRegistrationNames.ondblclick = registrationName); + for ( + registrationName = 0; + registrationName < dependencies.length; + registrationName++ + ) + allNativeEvents.add(dependencies[registrationName]); + } + function checkControlledValueProps(tagName, props) { + hasReadOnlyValue[props.type] || + props.onChange || + props.onInput || + props.readOnly || + props.disabled || + null == props.value || + ("select" === tagName + ? console.error( + "You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`." + ) + : console.error( + "You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`." + )); + props.onChange || + props.readOnly || + props.disabled || + null == props.checked || + console.error( + "You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`." + ); + } + function isAttributeNameSafe(attributeName) { + if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) + return !0; + if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) + return !1; + if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) + return (validatedAttributeNameCache[attributeName] = !0); + illegalAttributeNameCache[attributeName] = !0; + console.error("Invalid attribute name: `%s`", attributeName); + return !1; + } + function getValueForAttributeOnCustomComponent(node, name, expected) { + if (isAttributeNameSafe(name)) { + if (!node.hasAttribute(name)) { + switch (typeof expected) { + case "symbol": + case "object": + return expected; + case "function": + return expected; + case "boolean": + if (!1 === expected) return expected; + } + return void 0 === expected ? void 0 : null; + } + node = node.getAttribute(name); + if ("" === node && !0 === expected) return !0; + checkAttributeStringCoercion(expected, name); + return node === "" + expected ? expected : node; + } + } + function setValueForAttribute(node, name, value) { + if (isAttributeNameSafe(name)) + if (null === value) node.removeAttribute(name); + else { + switch (typeof value) { + case "undefined": + case "function": + case "symbol": + node.removeAttribute(name); + return; + case "boolean": + var prefix = name.toLowerCase().slice(0, 5); + if ("data-" !== prefix && "aria-" !== prefix) { + node.removeAttribute(name); + return; + } + } + checkAttributeStringCoercion(value, name); + node.setAttribute(name, "" + value); + } + } + function setValueForKnownAttribute(node, name, value) { + if (null === value) node.removeAttribute(name); + else { + switch (typeof value) { + case "undefined": + case "function": + case "symbol": + case "boolean": + node.removeAttribute(name); + return; + } + checkAttributeStringCoercion(value, name); + node.setAttribute(name, "" + value); + } + } + function setValueForNamespacedAttribute(node, namespace, name, value) { + if (null === value) node.removeAttribute(name); + else { + switch (typeof value) { + case "undefined": + case "function": + case "symbol": + case "boolean": + node.removeAttribute(name); + return; + } + checkAttributeStringCoercion(value, name); + node.setAttributeNS(namespace, name, "" + value); + } + } + function getToStringValue(value) { + switch (typeof value) { + case "bigint": + case "boolean": + case "number": + case "string": + case "undefined": + return value; + case "object": + return checkFormFieldValueStringCoercion(value), value; + default: + return ""; + } + } + function isCheckable(elem) { + var type = elem.type; + return ( + (elem = elem.nodeName) && + "input" === elem.toLowerCase() && + ("checkbox" === type || "radio" === type) + ); + } + function trackValueOnNode(node, valueField, currentValue) { + var descriptor = Object.getOwnPropertyDescriptor( + node.constructor.prototype, + valueField + ); + if ( + !node.hasOwnProperty(valueField) && + "undefined" !== typeof descriptor && + "function" === typeof descriptor.get && + "function" === typeof descriptor.set + ) { + var get = descriptor.get, + set = descriptor.set; + Object.defineProperty(node, valueField, { + configurable: !0, + get: function () { + return get.call(this); + }, + set: function (value) { + checkFormFieldValueStringCoercion(value); + currentValue = "" + value; + set.call(this, value); + } + }); + Object.defineProperty(node, valueField, { + enumerable: descriptor.enumerable + }); + return { + getValue: function () { + return currentValue; + }, + setValue: function (value) { + checkFormFieldValueStringCoercion(value); + currentValue = "" + value; + }, + stopTracking: function () { + node._valueTracker = null; + delete node[valueField]; + } + }; + } + } + function track(node) { + if (!node._valueTracker) { + var valueField = isCheckable(node) ? "checked" : "value"; + node._valueTracker = trackValueOnNode( + node, + valueField, + "" + node[valueField] + ); + } + } + function updateValueIfChanged(node) { + if (!node) return !1; + var tracker = node._valueTracker; + if (!tracker) return !0; + var lastValue = tracker.getValue(); + var value = ""; + node && + (value = isCheckable(node) + ? node.checked + ? "true" + : "false" + : node.value); + node = value; + return node !== lastValue ? (tracker.setValue(node), !0) : !1; + } + function getActiveElement(doc) { + doc = doc || ("undefined" !== typeof document ? document : void 0); + if ("undefined" === typeof doc) return null; + try { + return doc.activeElement || doc.body; + } catch (e) { + return doc.body; + } + } + function escapeSelectorAttributeValueInsideDoubleQuotes(value) { + return value.replace( + escapeSelectorAttributeValueInsideDoubleQuotesRegex, + function (ch) { + return "\\" + ch.charCodeAt(0).toString(16) + " "; + } + ); + } + function validateInputProps(element, props) { + void 0 === props.checked || + void 0 === props.defaultChecked || + didWarnCheckedDefaultChecked || + (console.error( + "%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components", + getCurrentFiberOwnerNameInDevOrNull() || "A component", + props.type + ), + (didWarnCheckedDefaultChecked = !0)); + void 0 === props.value || + void 0 === props.defaultValue || + didWarnValueDefaultValue$1 || + (console.error( + "%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components", + getCurrentFiberOwnerNameInDevOrNull() || "A component", + props.type + ), + (didWarnValueDefaultValue$1 = !0)); + } + function updateInput( + element, + value, + defaultValue, + lastDefaultValue, + checked, + defaultChecked, + type, + name + ) { + element.name = ""; + null != type && + "function" !== typeof type && + "symbol" !== typeof type && + "boolean" !== typeof type + ? (checkAttributeStringCoercion(type, "type"), (element.type = type)) + : element.removeAttribute("type"); + if (null != value) + if ("number" === type) { + if ((0 === value && "" === element.value) || element.value != value) + element.value = "" + getToStringValue(value); + } else + element.value !== "" + getToStringValue(value) && + (element.value = "" + getToStringValue(value)); + else + ("submit" !== type && "reset" !== type) || + element.removeAttribute("value"); + null != value + ? setDefaultValue(element, type, getToStringValue(value)) + : null != defaultValue + ? setDefaultValue(element, type, getToStringValue(defaultValue)) + : null != lastDefaultValue && element.removeAttribute("value"); + null == checked && + null != defaultChecked && + (element.defaultChecked = !!defaultChecked); + null != checked && + (element.checked = + checked && + "function" !== typeof checked && + "symbol" !== typeof checked); + null != name && + "function" !== typeof name && + "symbol" !== typeof name && + "boolean" !== typeof name + ? (checkAttributeStringCoercion(name, "name"), + (element.name = "" + getToStringValue(name))) + : element.removeAttribute("name"); + } + function initInput( + element, + value, + defaultValue, + checked, + defaultChecked, + type, + name, + isHydrating + ) { + null != type && + "function" !== typeof type && + "symbol" !== typeof type && + "boolean" !== typeof type && + (checkAttributeStringCoercion(type, "type"), (element.type = type)); + if (null != value || null != defaultValue) { + if ( + !( + ("submit" !== type && "reset" !== type) || + (void 0 !== value && null !== value) + ) + ) { + track(element); + return; + } + defaultValue = + null != defaultValue ? "" + getToStringValue(defaultValue) : ""; + value = null != value ? "" + getToStringValue(value) : defaultValue; + isHydrating || value === element.value || (element.value = value); + element.defaultValue = value; + } + checked = null != checked ? checked : defaultChecked; + checked = + "function" !== typeof checked && + "symbol" !== typeof checked && + !!checked; + element.checked = isHydrating ? element.checked : !!checked; + element.defaultChecked = !!checked; + null != name && + "function" !== typeof name && + "symbol" !== typeof name && + "boolean" !== typeof name && + (checkAttributeStringCoercion(name, "name"), (element.name = name)); + track(element); + } + function setDefaultValue(node, type, value) { + ("number" === type && getActiveElement(node.ownerDocument) === node) || + node.defaultValue === "" + value || + (node.defaultValue = "" + value); + } + function validateOptionProps(element, props) { + null == props.value && + ("object" === typeof props.children && null !== props.children + ? React.Children.forEach(props.children, function (child) { + null == child || + "string" === typeof child || + "number" === typeof child || + "bigint" === typeof child || + didWarnInvalidChild || + ((didWarnInvalidChild = !0), + console.error( + "Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to